:root {
  --primary-color: #0057ff;
  --secondary-color: #9653da;
  --tertiary-color: #100e2c;
  --font-family: "Arial, sans-serif";
  --font-size: 16px;
  --background-color: #f4f4f4;
  --text-color: #333;
  --another: rgb(252, 238, 218);
}
body {
  display: grid;
  align-content: center;
  place-items: center;
}

nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.667);
  align-items: center;
  color: white;
  gap: 20em;
  padding: 0.5em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2em;
}
.logo {
  color: var(--secondary-color);
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
}
.nav-links a:hover {
  color: var(--secondary-color);
}
.container {
  text-align: center;
  position: relative;
  display: grid;
  justify-content: center;
  align-items: center;
}
.btn {
  position: relative;
  color: var(--background-color);
  background-color: #9653da;
  padding: 1em 2em;
  width: auto;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.btn:hover {
  background-color: var(--tertiary-color);
}
#houseForm {
  display: grid;
  width: auto;
  grid-template-columns: repeat(2, 1fr);
  padding: 4em;
  background-color: var(--background-color);
  gap: 2em;
  border-radius: 6px;
}
#houseForm input {
  width: 19em;
  padding: 1em;
  border: 1px solid var(--secondary-color);
  border-radius: 6px;
}

main h1 {
  text-align: center;
  color: var(--secondary-color);
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1100; /* above nav-links */
}

.hamburger span {
  display: block;
  height: 3px;
  background: var(--tertiary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile nav behavior */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  #houseForm input {
    width: 12em;
  }
  .btn {
    left: 0em;
  }
  .nav-links {
    position: absolute;
    top: 60px; /* below nav */
    left: -100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    padding: 2em 0;
    text-align: center;
    gap: 1.5em;
    transition: left 0.3s ease-in-out;
  }
  #houseForm {
    grid-template-columns: repeat(1, 1fr);
  }
  .nav-links.active {
    left: 0;
  }
  .container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
  .auth-buttons {
    display: flex;
    margin-right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  /* Animate hamburger into an X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
