#menu {
  position: relative;
  font-size: 1.6rem;
}

.menu__container {
  position: fixed;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: 37.5rem;
  height: 100vh;
  z-index: 100;
  background-color: var(--color-bg);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-100%);
  transition: all 0.3s ease-in-out;

  ul {
    padding-top: 10.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    font-size: 1.2rem;
  }

  li {
    background-color: #ffffff;
    width: 30rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem 1rem 2rem;
    cursor: pointer;
    border-radius: 3rem;
    border: 1px solid #8e9092;

    img {
      width: 2.5rem;
      filter: brightness(0) saturate(100%) invert(40%) sepia(0%) saturate(0%)
        hue-rotate(0deg) brightness(70%) contrast(100%);
    }
  }

  li:last-child {
    margin-bottom: 0;
  }
}

.menu__container--visible {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  overflow-y: auto;
  padding-bottom: 2rem;
}

.menu__button--container {
  position: relative;
  width: 100%;
  max-width: 37.5rem;
  margin: 0 auto;
}

#menu__button {
  position: fixed;
  top: 1.2rem;
  right: calc(50% - 18.75rem + 1.2rem);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  background-color: #414549;
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease-in-out;
}

.menu__button--text {
  width: 6rem;
}

.menu__button--content {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) rotate(0deg);
  transition: all 0.3s ease-in-out;
  position: absolute;
}

.menu__button--visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) rotate(360deg);
}

.menu__img--close {
  width: 2.5rem;
}
