/* Global box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Basic body styling */
body {
  font-size: 12px;
  font-family: Consolas, "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", Monaco, "Courier New", monospace;
  margin: 0;
  padding: 0;
  background-color: #31053F;
  min-height: 100vh; /* Ensure body takes full height */
}

/* Navbar styles */
#mainnav {
  position: fixed;
  top: 0;
  right: 0; /* Align the navbar to the right side of the screen */
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0 10px; /* Removed extra padding to avoid gaps */
  height: 70px; /* Reduced height for a shorter navbar */
}

#mainnav.scrolled {
  background-color: rgba(0, 0, 0, 0.3);
}

#mainnav ul {
  display: flex;
  justify-content: flex-end; /* Align list items to the right */
  align-items: center; /* Vertically center items */
  margin: 0;
  padding: 0;
}

#mainnav li {
  display: inline-block;
  padding: 5px 8px; /* Reduced padding for less space between items */
  font-size: 12px;
  font-weight: 300;
  margin: 0; /* Ensure no extra margin between icons */
}

#mainnav a {
  color: #fff;
  text-decoration: none;
  transition: text-shadow 0.3s ease;
}

#mainnav a:hover {
  text-shadow: 0 0 20px #FFFFFF, 0 0 40px #FFFFFF;
}

/* Language button styled like other navbar items */
.language-button {
  display: inline-flex; /* Use inline-flex to make it behave like other list items */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  background-color: transparent; /* No background for language button */
  padding: 5px 10px; /* Same padding as other items */
  font-size: 12px; /* Font size matching other items */
  font-weight: 300; /* Same font weight */
  margin-left: 5px; /* Reduced space between language button and other items */
  text-align: center; /* Center the text within the button */
  height: 50px; /* Fixed height for the language button's box */
  width: 50px; /* Fixed width for the language button's box */
  border: 1px solid transparent; /* Optional: Adds a border if you'd like */
}

/* Hover effect for language button */
.language-button:hover {
  text-shadow: 0 0 20px #FFFFFF, 0 0 40px #FFFFFF; /* Same hover effect */
}

/* 480px and below */
@media (max-width: 480px) {
  #mainnav {
    top: 0;
    height: 60px; /* Reduced height for small screens */
  }

  #mainnav ul {
    padding: 0 10px;
    justify-content: flex-end;
  }

  #mainnav li {
    padding: 5px 5px 5px;
    font-size: 10px;
  }

  .instagram-icon {
    width: 40px;
    height: 40px;
  }
}

/* 768px and below */
@media (max-width: 768px) {
  #mainnav {
    top: 0;
    height: 80px; /* Adjusted height for medium screens */
  }

  #mainnav ul {
    padding: 0 15px;
    justify-content: flex-end;
  }

  #mainnav li {
    padding: 10px 8px;
    font-size: 12px;
  }

  .instagram-icon {
    width: 45px;
    height: 45px;
  }
}

/* 1024px and below */
@media (max-width: 1024px) {
  #mainnav {
    top: 0;
    height: 90px; /* Adjusted height for larger tablets */
  }

  #mainnav ul {
    padding: 0 20px;
    justify-content: flex-end;
  }

  #mainnav li {
    padding: 12px 10px;
    font-size: 13px;
  }

  .instagram-icon {
    width: 50px;
    height: 50px;
  }
}

/* Above 1200px */
@media (min-width: 1200px) {
  #mainnav {
    top: 0; /* Adjusted position for larger screens */
    height: 90px; /* Shortened height for large screens */
  }

  #mainnav ul {
    padding: 0 30px;
    justify-content: flex-end;
  }

  #mainnav li {
    padding: 15px 15px;
    font-size: 14px;
  }

  .instagram-icon {
    width: 60px;
    height: 60px;
  }
}
