/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&display=swap");
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #e3e7eb;
  --text-color: #fff;
  --container-color: #052747;
  
  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: 1rem;
}

.dropcontainer {
  display: grid;
  place-items: center;
}

.dropdown   {
  position: absolute;
  width: max-content;

}

.dropdown__button,
.dropdown__item {
  display: flex;
  align-items: center;
  column-gap: .5rem;
}

.dropdown__button   {
  border: none;
  outline: none;
  background-color: var(--container-color);
  padding: 15px;
  border-radius: 23px;
  cursor: pointer;
}

.dropdown__icon,
.dropdown__icons {
  font-size: 1.25rem;
  color: var(--first-color);
}

.dropdown__name {
  font-weight: 500;
  color: white;
}

.dropdown__icons {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.dropdown__arrow,
.dropdown__close {
  position: absolute;
  transition: opacity .1s, transform .4s;
}

.dropdown__close {
  opacity: 0;
}

.dropdown__menu {
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: .75rem;
  display: grid;
  row-gap: 1.5rem;
  position: absolute;
  width: 100%;
  left: 0;
  top: 3.8rem;
  transform: scale(0.1); /* Starts off small */
  opacity: 0;
  pointer-events: none; /* Disable interactions when hidden */
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999; /* Ensure dropdown is on top of other elements */
}

.dropdown__item {
  cursor: pointer;
  transition: color .3s;
}

.dropdown__item:hover {
  color: var(--first-color);
}

/* Show dropdown menu when active */
.show-dropdown .dropdown__menu {
  opacity: 1;
  transform: scale(1); /* Expand to normal size */
  pointer-events: auto; /* Enable pointer events when visible */
}

/* Rotate & hide icon */
.show-dropdown .dropdown__close {
  opacity: 1;
  transform: rotate(-180deg);
}

.show-dropdown .dropdown__arrow {
  opacity: 0;
  transform: rotate(-180deg);
}

/* Mobile-specific styling */
@media (max-width: 768px) {
  #dropdown-content.show-dropdown {
    z-index: 9999; /* Ensure dropdown is on top of all other elements */
  }
}
