body:has(#dropdown-toggle:checked) { overflow: hidden; }

#dropdown-toggle:checked ~ .dropdown-btn > span {
  transform: rotate(45deg);
  top: 2.5rem;
}

#dropdown-toggle:checked ~ .dropdown-btn > span::after {
  top: 0;
  transform: rotate(90deg);
}

#dropdown-toggle:checked ~ .dropdown-menu {
  transition-duration: .25s;
  visibility: visible;
  top: 0;
}

.dropdown-btn > span,
.dropdown-btn > span::after {
  display: block;
  position: absolute;
  width: 1.5rem;
  top: 2.25rem;
  height: 0.125rem;
  background-color: #616161;
  transition-duration: .25s;
}

.dropdown-btn > span::after {
  content: '';
  top: 0.375rem;
}

.dropdown-menu {
  visibility: hidden;
  top: -100%;
  left: 0;
  list-style: none;
  transition-duration: .25s;
  z-index: 20;
}
