#languageToggle {
  position: fixed;
  bottom: 130px;
  left: 10px;
  color: #6366f1;
  font-size: 18px;
  z-index: 1001;
  background-color: rgba(26, 26, 26, 0.8);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 0px 10px rgb(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-languageToggle:hover {
  transform: scale(1.1);
  background-color: rgb(22, 9, 206, 0.2);
}



/* Language toggle styles */
#google_translate_element {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0px;
    width: 100vw;
    background-color: white;
    color: black;
    z-index: 1001;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #ddd;
}

#custom-language-list {
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
    background-color: #6366f1;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0px 20px rgb(252, 252, 252, 0.5);
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    list-style-type: none;
}

#custom-language-list li {
    padding: 0 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: white;
    height: 40px;
    line-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#custom-language-list li:hover {
    background-color: #3a3ef2; /* Lighter purple for hover state */
}

/* Dark mode styles */
body.dark-mode #google_translate_element {
    background-color: #1e1e1e; /* Darker background for dark mode */
}

body.dark-mode #custom-language-list {
    background-color: #1e1e1e;
    border-color: #555;
}

body.dark-mode #custom-language-list li:hover {
    background-color: #333;
}

/* Hide the default Google Translate widget */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Media query for mobile */
@media (max-width: 768px) {
  .footer-language-toggle {
    bottom: 50px;
    left: 10px;
    width: 36px;
    height: 36px;
  }

  .google-translate-element {
    bottom: 50px;
    left: 55px;
  }
}