
@media (min-width: 1124px) {
  ul {
    display: none;
  }
}

@media (max-width: 1124px) {

  .hidden {
    overflow: hidden;
  }

  .wrapper {
    color: #fff;
  }

  nav {
    width: 90%;
    height: 90px;
    padding: 0 5%;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: #ffeb3b;
  }

  a {
    color: #000;
    text-decoration: none;
    display: block;
    text-align: center;
    width: 100%;
  }

  nav ~ ul {
    display: flex;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    left: 1%;
    right: 1%;
    opacity: 0;
    visibility: hidden;
    z-index: 2;
    list-style: none;
    transition: 0s;
    background-color: #ffffff;
    border: 2px solid black;
  }

  nav ~ ul > li {
    color: #000;
    padding: 10px 0;
    cursor: pointer;
    font-size: 30px;
    width: 100%;
    text-align: center;
  }

  nav ~ ul > li:hover {
    filter: brightness(200%);
  }

  nav.open ~ ul {
    transition: 0.75s ease-in-out;
    visibility: visible;
    opacity: 1;
  }

  #drop {
    cursor: pointer;
    position: fixed;
    background-color: #ffeb3b;
    width: 70px;
    height: 70px;
    border-radius: 0 50% 50%;
    transform: rotate(45deg);
    transition: border-radius 0.5s;
  }

  nav.open > #drop{
    transition: 0.5s ease-in-out;
    box-shadow: 0 0 0 1000px #ffeb3b, inset 0 0 0 20px #ffeb3b;
    position: relative;
  }

  #drop.active {
    border-radius: 50%;
    animation: drop 0.3s forwards;
  }

  #drop > div {
    transform: rotate(-45deg);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #drop span {
    display: block;
    background-color: #000;
    width: 40px;
    height: 3px;
    margin: 5px 0;
    transition: 0.5s;
  }

  #drop span.open:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #drop span.open:nth-child(2) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  #drop span.open:nth-child(3) {
    opacity: 0;
  }

  @keyframes drop {
    0% {
      transform: translateY(0) rotate(45deg);
    }
    50% {
      transform: translateY(30px) rotate(45deg);
    }
    100% {
      transform: translateY(10px) rotate(45deg);
    }
  }

}
