* {
  box-sizing: border-box;
}

#menu {
  position: absolute;
  top: 2vw;  /* Position at top */
  right: 2vw;  /* Position at top */
  cursor: grab;
  touch-action: none; /* helps with touch dragging */
  z-index: 1000;
}

.container {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#toggle {
  -webkit-appearance: none;
  display: none; /* Hide the actual checkbox */
}

.button {
  z-index: 999;
  width: 10vw;
  height: 10vw;
  background: var(--color-primary);
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 300ms linear;
  letter-spacing: normal;
  text-align: center;
}

.button:before {
  position: absolute;
  content: "";
  width: 10vw;
  height: 10vw;
  background: #FFF;
  transform: rotate(90deg);
  transition: all 0.4s ease;
}

.button:after {
  position: absolute;
  content: "";
  width: 10vw;
  height: 10vw;
  background: #C40000;
  transform: rotate(0deg);
  transition: all 0.4s ease;
}

.button::before, .button::after {
  content: none; /* Remove X lines */
}

.button i {
  font-size: 1rem; /* Bigger icon */
  color: var(--color-secondary);
  width: 100%;
}

/* When checked, show the menu */
#toggle:checked ~ .nav {
  width: 72vw; /* Show with width */
  opacity: 1;
}

/* Change X to + when menu is open */
#toggle:checked ~ .button:before {
  transform: none; /*rotate(225deg);*/
}

#toggle:checked ~ .button:after {
  transform: none; /*rotate(135deg);*/
}

@media (max-width: 640px) {
}

@media (min-width: 480px) { /* Small tablets */
}

@media (min-width: 768px) { /* Tablets & small desktops */
}

@media (min-width: 1024px) { /* Desktops */
  #menu {
    top: 2vw;  /* Position at top */
    right: 2vw;  /* Position at top */
  }

  .button i {
    font-size: 2.2rem; /* Bigger icon */
  }
}
@media (min-width: 1280px) { /* Large desktops */
  .button {
    width: 5vw;
    height: 5vw;
  }

  .button:before {
    width: 5vw;
    height: 5vw;
  }

  .button:after {
    width: 5vw;
    height: 5vw;
  }

  .button i {
    font-size: 2rem; /* Bigger icon */
  }
}

/* Hide the overlay by default */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Style for the menu content */
.menu-content {
  width: 100%;
  letter-spacing: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Style for the menu links */
.menu-content a {
  color: white;
  font-size: 1rem;
  text-decoration: none;
}

@media (min-width: 1280px) { /* Large desktops */
    .menu-separator {
        margin: 0 !important;
    }
}
