/* ---------------------------------------------- */
/*   Hide mobile only stuff from desktop version  */
/* ---------------------------------------------- */

#menu__toggle,
.menu__header,
.menu__footer {
  display: none;
}

@media only screen and (max-width: 480px) {
  /* --------------------- */
  /*   menu toggle button  */
  /* --------------------- */

  #menu__toggle {
    opacity: 0;
    position: fixed;
  }

  #menu__toggle:checked + .menu__btn > span {
    transform: rotate(45deg);
  }
  #menu__toggle:checked + .menu__btn > span::before {
    top: 0;
    transform: rotate(0deg);
  }
  #menu__toggle:checked + .menu__btn > span::after {
    top: 0;
    transform: rotate(90deg);
  }
  #menu__toggle:checked ~ .menu__box {
    right: 0 !important;
  }

  .menu__btn {
    position: fixed;
    top: 20px;
    right: 0px;
    width: 56px;
    height: 56px;
    transform: translateY(-8px);

    border-radius: 50%;

    background-color: hsl(0, 0%, 100%);
    /* border: 1px solid rgb(225, 225, 225); */
    box-shadow: rgba(115, 115, 115, 0.322) 0px 2px 8px 0px;

    /* -webkit-backdrop-filter: blur(5px); */
    /* backdrop-filter: blur(12px); */
    cursor: pointer;
    z-index: 100;
  }

  .menu__btn > span,
  .menu__btn > span::before,
  .menu__btn > span::after {
    display: block;
    position: absolute;

    width: 100%;
    height: 2px;
    background-color: #616161;
    transition-duration: 0.25s;
  }

  .menu__btn > span {
    width: 32px;
    top: 28px;
    left: 12px;
    /* background-color: red; */
  }

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

  /* ---------------------- */
  /* 	Mobile menu box 	*/
  /* ---------------------- */

  .menu {
    background-color: hsla(0, 0%, 0%, 0);
    flex-direction: column;
    padding: 0;
    border-top: 0;
    border-bottom: 0;
    position: fixed;
    top: 0px;
    z-index: 5;
    transition: all 200ms;
  }

  .menu__box {
    display: block;
    position: fixed;
    z-index: 10;

    top: 0;
    right: -100%;
    width: 90%;
    height: 100%;
    margin: 0;
    padding: 80px 0;
    list-style: none;
    background-color: #ffffff;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    transition-duration: 0.25s;
  }

  .menu ul {
    flex-direction: column;
    padding: 0;
    padding-top: 48px;
  }

  .menu li {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 12px 24px;
    transition-duration: 0.25s;
    border-bottom: 1px solid hsl(0, 0%, 90%);
  }

  .menu li:hover {
    background-color: #d7d7d7;
  }

  .menu li a {
    font-size: var(--fontSize);
    text-decoration: none;
    border-bottom: 0;
  }

  .menu li a:hover {
    border-bottom: 0;
  }

  .menu .selected {
    border-bottom: 0;
    background-color: hsl(0, 0%, 93%);
    pointer-events: none;
  }

  /* ---------------------- */
  /* 	mobile menu extras 	*/
  /* ---------------------- */

  .menu__header {
    display: flex;
    justify-content: center;
    text-align: center;

    font-size: calc(var(--fontSize) * 1.75);
    padding: 24px;
    padding-bottom: 48px;
  }

  .menu__footer {
    display: flex;
    justify-content: center;
    text-align: center;

    font-family: SuisseIntl-Medium;
    font-size: calc(var(--fontSize) * 0.75);
    padding: 24px;

    position: sticky;
    margin-top: auto;
    bottom: 0;
    height: auto;
    /* background-color: hsl(0, 0%, 97%); */
  }
}
