#menu {
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  z-index: 999;
}

#menu span {
  width: 30px;
  height: 4px;
  background-color: black;
  transition: 0.3s ease;
  transform-origin: center;
}

.open .line1 {
  transform: rotate(45deg) translateY(3px) translateX(4px);
}

.open .line2 {
  transform: rotate(-45deg) translateY(-3px) translateX(4px);
}

.nav-links {
  display: none;
}

/* Landscape orientation */
@media (max-width: 920px) and (orientation: landscape) {
  #menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    height: 100svh;
    width: 100%;
    background-color: #fffcf5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 1s ease;
    touch-action: none;
  }

  .nav-links li a {
    font-weight: 400;
    font-size: 20px;
  }

  .nav-links.show {
    left: 0;
    opacity: 1;
  }
}

@media (max-width: 1280px) {
  #menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    height: 100svh;
    width: 100%;
    background-color: #fffcf5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 1s ease;
    touch-action: none;
  }

  .nav-links li a {
    font-weight: 400;
    font-size: 20px;
  }

  .nav-links.show {
    left: 0;
    opacity: 1;
  }
}

@media (max-width: 375px) {
  .nav-links li a {
    font-size: 18px;
  }

  .nav-links {
    gap: 30px;
  }
}
