* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
body,
html {
  height: 100%;
}
:root {
  --header-height: 13vh; /* same idea as your height: 10%; */
  --footer-height: 3rem; /* guess – adjust to your footer */
}
main {
  display: flex;
  justify-content: center; /* horizontal centering of #loginWindow */
  align-items: center; /* vertical centering of #loginWindow */
  height: 100vh; /* fill the screen */
  width: 100%;
  font-size: 0.9em;
  position: relative; /* or just remove this line */
  padding-top: var(--header-height); /* push content below fixed header */
  padding-bottom: var(
    --footer-height
  ); /* so footer doesn’t overlap (if fixed) */
  box-sizing: border-box;
}
body {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  font-size: clamp(0.8rem, 3vmin, 1.3rem);
  background-image: url("../images/MrSoftware.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: 1000;
}
#baseContainerHeader {
  display: grid;
  justify-content: left;
  align-items: center;
  grid-template-columns: 3fr repeat(5, 1fr) 2fr;
  height: var(--header-height); /* instead of 10% */
  align-items: top;
  position: relative;
  background: rgb(225, 233, 232);
  border: solid 1px rgb(7, 20, 39);
  border-top-left-radius: 0.3em;
  border-top-right-radius: 0.3em;
  color: black;
  font-size: clamp(0.8rem, 2.5vmin, 1.5rem);
  z-index: 1000;
}
.header-title {
  font-size: 1.8em;
}
.header-logo {
  display: block;
  max-width: 100%;
  object-fit: contain; /* safe if you even give both w & h via container */
}
#logoCompany {
  height: var(--header-height);
  padding: 1em;
}
#logoPostgres,
#logoPython,
#logoDocker {
  width: clamp(1em, 3vw, 4em);
  height: auto; /* maintain aspect ratio */
  justify-self: center;
}

#logoJs,
#logoFastApi {
  width: clamp(1em, 3vw, 5em);
  height: auto; /* maintain aspect ratio */
  margin: 1em;
  justify-self: center;
}
#logoPython {
  width: clamp(1em, 2vw, 2.5em);
  height: auto; /* maintain aspect ratio */
  margin: 1em;
  justify-self: center;
}

#logoPostgres {
  margin: 1em;
  align-self: start;
}
#logoJs {
  align-self: end;
}
#logoDocker {
  margin: 1em;
  align-self: end;
}
#logoFastApi {
  align-self: start;
}

.menu-toggle {
  width: 2.5em;
  height: 1.4em;
  position: absolute;
  right: 1.5em;
  bottom: 0.2em;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  height: 0.3em;
  width: 100%;
  background-color: black;
  border-radius: 0.3em;
  transition: all 0.3s ease;
}

/* Transform bars when menu is open */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(0.5em, 0.5em);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(0.3em, -0.3em);
}

/* Dropdown menu */
.nav {
  display: none;
  position: absolute;
  right: 0em;
  top: 100%;
  background: rgb(225, 233, 232);
  border: solid 1px rgb(7, 20, 39);
  border-radius: 0.3em;
  width: 10em;
  white-space: nowrap;
  font-size: 0.8em;
  z-index: 1000;
  box-shadow: 0 0.4em 1em rgb(31, 53, 71);
}

.nav.open {
  display: block;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  border-bottom: 1px solid rgb(7, 20, 39);
  text-shadow: 0.2em 0.2em 0.5em var(--col-grey-2);
  padding: 0;
}

.nav a {
  display: block;
  padding: 0.5em;
  color: black;
  font-weight: bold;
  text-decoration: none;
}

.nav a:hover {
  background-color: var(--col-hover);
  text-shadow: 0.2em 0.2em 0.5em white, -0.2em 0.2em 0.5em white,
    0.2em -0.2em 0.5em white, -0.2em -0.2em 0.5em white;
}
