.menu__text {
  font-style: normal;
  color: #14331e;
 text-decoration: underline;
 line-height: 72px;
  padding: 4px 8px;
  background-color: #a7beb4;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.menu__text:hover,
.menu__text:focus {
  background-color: #c4d4cd;
}

.menu__text:focus,
.menu__text:active {
  background-color: #b3b0a6;
}

#menu__toggle {
  opacity: 0;
}

#menu__toggle:checked + .menu__btn > .menu__icon {
  transform: rotate(45deg);
}

#menu__toggle:checked + .menu__btn > .menu__icon::before {
  top: 0;
  transform: rotate(0);
}

#menu__toggle:checked + .menu__btn > .menu__icon::after {
  top: 0;
  transform: rotate(90deg);
}

/* Slide in from the top instead of the left */
#menu__toggle:checked ~ .menu__box {
  top: 0 !important;
}

.menu__btn {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 34px;
  cursor: pointer;
  z-index: 998;
  padding-top: 16px;
  margin-left: -32px;
  margin-right: 0;
}

.menu__btn > .menu__icon,
.menu__btn > .menu__icon::after,
.menu__btn > .menu__icon::before {
  display: block;
  position: absolute;
  width: 100%;
  height: 3.5px;
  background-color: #a7beb4;
  transition-duration: 0.25s;
}

.menu__btn > .menu__icon::before {
  content: "";
  top: -8px;
}

.menu__btn > .menu__icon::after {
  content: "";
  top: 8px;
}

/* Active class for JS toggle (optional) */
.menu__box.menu--open {
  top: 0;
}
.menu__box {
  display: block;
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  list-style: none;
  background-image: url("../img/backgrounds/cmc_menu_background.jpg");
  background-size: inherit;
  background-repeat: repeat;
  background-position: center center;
  box-shadow: none;
  transition: top 0.4s ease;
  z-index: 997;
  overflow-y: auto;
  backdrop-filter: brightness(1);
  filter: saturate(0);
}

@media (max-width: 768px) {
  .menu__box {
    background-image: url("../img/backgrounds/cmc_menu_background--mobile.jpg");
    background-size: contain;
    background-position: center 275px;
     filter: saturate(0);

  }
}

.menu__item {
  width: fit-content;
  margin-bottom: 41px;
  margin-left: 10px;
  line-height: 51px;
  font-size: 20px;
  filter: brightness(100%);
  border: none;
   text-decoration: underline !important;
  text-transform: none;
  letter-spacing: 0.025em;
  color: #14331e;
  background-color: #a7beb4;
  padding: 4px 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.menu__item:hover {
  color: #14331e;
  background-color: #c4d4cd;
  text-decoration: none !important;
  padding: 4px 8px;
}

.menu__item:focus,
.menu__item:active {
  color: #14331e;
  text-decoration: none !important;
  background-color: #b3b0a6;
}

@media (min-width: 1920px) {
  .menu__btn {
    right: 191px !important;
  }
}

@media (max-width: 1024px) {
  .menu__btn {
    right: 199px;
  }
}

@media (min-width: 601px) {
  .menu__box {
    padding-left: 41px;
    padding: 41px;
    line-height: normal;
  }
  .menu__item,
  .menu__item:hover,
  .menu__item:focus {
    font-size: 30px !important;
    line-height: 64px !important;
  }
}

@media (max-width: 600px) {
  .menu__box {
    padding-left: 21px;
    padding: 21px;
  }

  .menu__text {
    font-size: 20px;
    line-height: 51px;
  }

  .menupos {
    padding-top: 41px;
  }
}

@media (min-width: 768px) {
  .menu__btn {
    right: 120px !important;
  }

  .menupos {
    padding-top: 56px;
  }
}

@media (min-width: 416px) {
  .menu__item {
    font-size: 20px;
    line-height: 51px;
  }

  .menu__item:hover {
    font-size: 20px;
    line-height: 51px;
  }

  .menu__item:focus {
    font-size: 20px;
    line-height: 51px;
  }

  .menu__btn {
    right: 60px;
  }

  .menu__btn > .menu__icon,
  .menu__btn > .menu__icon::after,
  .menu__btn > .menu__icon::before {
    display: none;
  }
}

@media (max-width: 415px) {
  /* .menu__item,
  .menu__item:hover,
  .menu__item:focus {
   font-size: 24.75px !important;
  } */

  .menu__btn {
    right: 32px;
    z-index: 1000;
  }

  .menu__btn > .menu__text {
    display: none;
  }

  .menu__text {
    font-size: 20px;
    line-height: 51px;
  }

  .menu__item {
    font-size: 20px;
    line-height: 51px;
  }

  .menu__item:hover {
    font-size: 20px;
    line-height: 51px;
  }

  .menu__item:focus {
    font-size: 20px;
    line-height: 51px;
  }
}
