.menu-popup {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background-color: #bfbfbf;
  z-index: 12;
  display: flex;
  justify-content: end;
  align-items: center;

  /* hidden by default */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* When visible */
.menu-popup.visible {
  pointer-events: auto;
  opacity: 1;
}

.menu-popup .screen {
  background-color: #f1f1f1;
  height: 100vh;
  width: 70%;

  /* Slide effect */
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

/* Slide-in when .visible is added */
.menu-popup.visible .screen {
  transform: translateX(0);
}

.menu-popup .close-heading {
  display: flex;
  justify-content: end;
  align-items: center;
  padding-right: 1rem;
  padding-top: 1rem;
}

.menu-popup .close-heading button {
  border: none;
  background-color: transparent;
}

.menu-popup .close-heading button img {
  width: 42px;
}

.nav-links {
  margin-top: 3.5rem;
  margin-left: 1rem;
}

.nav-links ul {
  list-style: none;
}

.nav-links ul li {
  width: 100%;
}

.nav-links ul li a {
  text-decoration: none;
  margin-block: 0.8rem;
  padding-block: 0.4rem;
  display: block;
}

@media (max-width: 767px) {
  .menu-popup .screen {
    width: 100vw;
  }
}
