#language-select {
  border-radius: 5px;
  width: 7rem;
  height: 2rem;
  position: relative;
  display: flex;
  justify-content: space-around;
  gap: 0.25rem;
  align-items: center;
  background-color: transparent;
  color: white;
  border: 1px solid white;
  cursor: pointer;
}
#language-select:hover,
#language-select:focus-visible {
  border: 1px solid #fbb03a;
  background-color: transparent;
  color: #fbb03a;
  cursor: pointer;
}
#language-select option {
  color: white;
  background-color: #3a393a;
}
.language-button {
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: white;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.language-button::before {
  content: url("../../img/language.svg");
  margin-right: 0.5rem;
}
.language-button-mobile {
  background-color: transparent;
  color: white;
  border: none;
  cursor: pointer;
  display: none;
}
#language {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  margin: 0 0.5rem;
}
.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-selected-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.language-dropdown-options {
  position: absolute;
  top: -150%; /* Adjust as needed */
  left: 0;
  background: white;
  border: 1px solid #ccc;
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
}

.language-dropdown-options li {
  display: flex;
  align-items: center;
  padding: 5px;
  cursor: pointer;
}

.language-dropdown-options li:hover {
  background-color: #f0f0f0;
}
.language-dropdown-list {
  padding: 0;
  position: absolute;
  z-index: 1000;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  top: -5.3rem; /* Adjust this value to control the dropdown position */
}
.language-dropdown-list li {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  border-top: 1px solid #ccc;
}
.language-dropdown-list > li:hover {
  color: #fbb03a;
}
.language-name {
  font-size: 0.8rem;
  margin: 0;
  white-space: nowrap;
}

@media screen and (max-width: 37.5em) {
  #language-select {
    display: none;
  }
  .language-button-mobile {
    display: inline-block;
  }
}
