/* Reset */

/* Toggle Button Container */
.menu-button {
  position: fixed;
  top: 0;
  right: 20px;
  width: 75px;
  height: 75px;
  background: #fef7ea;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: background 0.3s ease;
}

/* Bar Style */
.menu-button .bar {
  width: 50px;
  height: 2px;
  background: #000000;
  position: relative;
  transition: all 0.4s ease;
  border-radius: 2px;
}

/* Top and Bottom Bars */
.menu-button .bar::before,
.menu-button .bar::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #000000;
  transition: all 0.4s ease;
  border-radius: 2px;
}

.menu-button .bar::before {
  top: -15px;
}

.menu-button .bar::after {
  top: 15px;
}

/* Animation to X */
.menu-button.active .bar {
  background: transparent;
}

.menu-button.active .bar::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-button.active .bar::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Overlay Background */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 115, 181, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

/* Menu Popup */
.menu-popup ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu-popup ul li {
  opacity: 0;
  transform: translateY(20px);
  animation: popupItem 0.6s ease forwards;
}

.menu-overlay.open .menu-popup ul li:nth-child(1) {
  animation-delay: 0.2s;
}

.menu-overlay.open .menu-popup ul li:nth-child(2) {
  animation-delay: 0.3s;
}

.menu-overlay.open .menu-popup ul li:nth-child(3) {
  animation-delay: 0.4s;
}

.menu-overlay.open .menu-popup ul li:nth-child(4) {
  animation-delay: 0.5s;
}

.menu-overlay.open .menu-popup ul li:nth-child(5) {
  animation-delay: 0.6s;
}

@keyframes popupItem {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.menu-popup ul li a {
  color: #fff;
  font-size: 2rem;
  text-decoration: none;
  display: inline-block;
  padding: 35px 0;
}

.menu-popup ul li a:hover {
  color: #d8d8d8;
}