.dropdown-div {
  position: relative;
  display: flex;
  text-align: left;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 0 3px 0.5px rgba(0, 0, 0, 0.15);
  transition: all 200ms linear;

  &:has([type="checkbox"]:checked) {
    border-radius: 1rem 1rem 0 0;
  }
}

.dropdown-div [type="checkbox"] {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.dropdown+label {
  position: relative;
  font-size: 15px;
  line-height: 2;
  height: 50px;
  transition: all 200ms linear;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  border: none;
  cursor: pointer;
  width: 100%;
  padding-left: 2rem;
}

.dropdown:checked+label {
  border-radius: 1rem 1rem 0 0;
}

.dropdown:not(:checked)+label {
  border-radius: 1rem;

  &:hover {
    box-shadow: 1.95px 1.95px 2.6px rgba(0, 0, 0, 0.15);
  }
}

.dropdown+label:before {
  position: fixed;
  top: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  z-index: -1;
  cursor: auto;
  pointer-events: none;
}

.dropdown:checked+label:before {
  pointer-events: auto;
}

.dropdown-icon {
  font-size: 20px;
  margin-left: 10px;
  transition: all 200ms linear;
}

.dropdown:not(:checked)+label .dropdown-icon {
  opacity: 80%;
}

.dropdown:checked+label .dropdown-icon {
  opacity: 0%;
  transform: translateY(35px);
}

.section-dropdown {
  position: absolute;
  padding: 5px;
  background-color: rgba(var(--bg-color), 1);
  top: 50px;
  left: 0;
  width: 100%;
  border-radius: 0 0 1rem 1rem;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-15px);
  transition: all 200ms linear;
  box-sizing: border-box;
  box-shadow: 0 2px 3px 0.5px rgba(0, 0, 0, 0.15);
}

.dropdown:checked~.section-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.section-dropdown a {
  position: relative;
  color: rgba(var(--txt-color));
  transition: all 200ms linear;
  border-radius: 2px;
  padding: 1rem 0;
  padding-left: 20px;
  padding-right: 15px;
  margin: 2px 0;
  text-align: left;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1.2rem;
}

.section-dropdown a:hover {
  background-color: rgba(var(--txt-color), 0.15);
  color: rgba(var(--bg-color), 1);
}

.section-dropdown a:last-child {
  border-radius: 0 0 1rem 1rem;
}
