.menu{
  position: absolute;
  right: 2rem;
  top: 2rem;
  z-index: 10;

  transition: .3s ease-in-out;
} 

.menu--active{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--black);
  width: fit-content;
  height: fit-content;
  border-radius: 20px;

  padding: .5rem;

  transition: .3s ease-in-out;

} 

.menu__button{
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu__button--active{
  position: absolute;
  right: 1rem;
  top: -.3rem;

  width: 3rem;
  height: 3rem;
  margin-top: 1.5rem;
/*   margin-right: 2vw;
  margin-left: 2vw; */
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1;
  
  transition: .6s ease-in-out;
}

.menu__nav{
  display: none;
  text-align: center;
  font-size: 2rem;
  color: var(--gray1);
  line-height: 2rem;
  margin-top: 4.5rem;
  font-weight: 500;
}

.menu__nav--active{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#menu__checkbox{
  position: absolute;
  opacity: 0;
}

label{
  cursor: pointer;
  position: relative;
  display: block;
  height: 100%;
  width: 3rem;
  z-index: 15;
}

label span{
  position: absolute;
  display: block;
  height: 0.5rem;
  width: 100%;
  border-radius: 30px;
  background: var(--gray1);
  transition: 0.25s ease-in-out;
}

label span:nth-child(1){
  top: 0;
}

label span:nth-child(2){
  top: 1rem;
}

label span:nth-child(3){
  top: 2rem;
}

#menu__checkbox:checked + label span:nth-child(1){
  transform: rotate(-45deg);
  top: 1.5rem;
  background: var(--yellow);
}

#menu__checkbox:checked + label span:nth-child(2){
  opacity: 0;
}

#menu__checkbox:checked + label span:nth-child(3){
  transform: rotate(45deg);
  top:1.5rem;
  background: var(--yellow);
}

@media screen and (max-width: 1024px){

.menu--active{
  right: .6vw;
  width: 16vw;
  z-index: 12;
}

.menu__button--active{
  position: absolute;
  right: 4vw;
  top: -.3rem;
}

.menu__nav{
  font-size: 1.2rem;
}

}