/* header.css */

/* General Styles */
nav.nav-bar {
  background-color: rgba(255, 255, 255, 0.0);

  z-index: 100 !important;
  width: 100% !important;
  position: fixed;
  top: 0;
  left: 0;
  transition: background-color 0.3s, box-shadow 0.3s;
  height: 100px; /* Default height */
}

nav.nav-bar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  height: 90px; /* Reduced height on scroll */
}

nav.nav-bar .wrapper {
  z-index: 100;
  position: relative;
  width: 85%;
  height: 100px;
  line-height: 70px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.3s;
}

nav.nav-bar.scrolled .wrapper {
  height: 80px;
}

@media screen and (max-width: 768px) {
  nav.nav-bar .wrapper {
    height: 50px;
  }
  nav.nav-bar .logo img {
    top: 0px !important;
  }
  
}


nav.nav-bar .logo img {
  width: 130px;
  position: absolute;
  top: 2.5vh;
  transition: width 0.3s, top 0.3s;
}

nav.nav-bar.scrolled .logo img {
  width: 110px;
  top: 2.5vh;
}

/* Adjust nav-icons */
.nav-icons {
  display: flex;
  align-items: center;
}

.nav-icon {
  color: #fff;
  text-decoration: none;
  font-size: 2rem; /* Default size for larger screens */
  font-weight: bold;
  padding: 9px 15px;
  border-radius: 15px;
  transition: all 0.3s ease;
  margin-left: 10px;
}
nav.nav-bar.scrolled .nav-icon {
  color: #101010;
}
.nav-icon:hover {
  background: #ffffff;
  color: #1e90ff;
}

.nav-icon i {
  vertical-align: middle;
}

/* Modal Styling */
.modal .list-group-item a {
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
}

.modal .list-group-item a:hover {
  color: #1e90ff;
}

.modal .modal-title {
  font-size: 1.5rem;
}

.modal .btn-close {
  background: none;
  border: none;
}


@media screen and (max-width: 768px) {
  /* Reduce nav-bar height */
  nav.nav-bar {
    height: 60px;
  }

  nav.nav-bar.scrolled {
    height: 50px;
  }

  /* Adjust logo size and position */
  nav.nav-bar .logo img {
      width: 100px;
      top: 10px;
      position: relative;
    }

  nav.nav-bar.scrolled .logo img {
      width: 70px;
      top: 5px;
    }

  /* Adjust navigation icon sizes */
  .nav-icon {
      font-size: 25px;
      margin-left: 10px;
      padding: 5px;
    }

  /* Align navigation icons to the end */
  .nav-icons {
      flex: 1;
      justify-content: flex-end;
      align-items: center;
      width: 100%;
    }

  .nav-icon {
      flex: none;
      text-align: center;
    }

  /* Adjust wrapper */
  .wrapper {
    flex-direction: row;
    align-items: center;
    height: 60px;
    transition: height 0.3s;
  }

  nav.nav-bar.scrolled .wrapper {
    height: 50px;
  }

  /* Hide nav-links if not used */
  .nav-links {
    display: none;
  }
}

/* Fix scrolling issue */
body {
  top: 0px !important;
  margin-top: 100px; /* Adjust this value to match the height of your nav-bar */
  overflow-x: hidden;
  overflow-y: auto;
}

@media screen and (max-width: 768px) {
  body {
    margin-top: 60px; /* Adjusted to match the reduced nav-bar height */
  }
}

/* Hide Google Translate toolbar */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

.goog-tooltip, .goog-tooltip:hover, .goog-text-highlight {
  display: none !important;
}

.goog-te-spinner-pos, .goog-te-gadget-icon {
  display: none !important;
}

.goog-te-combo {
  display: none !important;
}

/* Remove Google Translate hover effects */
body * {
  user-select: text !important;
}

/* Google Translate Customization */
.goog-te-gadget {
  font-family: Roboto, 'Open Sans', sans-serif !important;
}

.VIpgJd-ZVi9od-xl07Ob-lTBxed > *:not(:nth-child(1)) {
  display: none !important;
}

.VIpgJd-ZVi9od-xl07Ob-lTBxed:hover {
  background: none !important;
}

.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
}

#google_translate_element .goog-te-gadget-simple {
  color: #101010 !important;
  font-size: 18px !important;
  font-weight: bold !important;
  padding: 0px !important;
  border-right: none !important;
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-radius: 15px !important;
  margin-left: 10px !important;
  background-color: transparent !important;
  display: inline-block !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

#google_translate_element .goog-te-gadget-simple:hover {
  background-color: none !important;
}

.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none;
}

.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc {
  display: none;
}

#google_translate_element .goog-te-gadget-icon {
  display: none !important;
}

.goog-te-menu2 {
  max-width: 100%;
}

.goog-te-menu-value {
  color: rgb(0, 0, 0) !important;
}

.goog-te-menu-value:before {
  font-family: 'Material Icons';
  content: "\E927";
  margin-right: 16px;
  font-size: 1.6rem;
  vertical-align: -5px;
  display: default;
}

.goog-te-menu-value span:nth-child(5) {
  display: none;
}

.goog-te-menu-value span:nth-child(3) {
  border: none !important;
  font-family: 'Material Icons';
}

.goog-te-menu-value span:nth-child(3):after {
  font-family: 'Material Icons';
  content: "\E5C5";
  font-size: 1.5rem;
  vertical-align: -6px;
}

.goog-te-gadget-icon {
  background-image: url(https://placehold.it/32) !important;
  background-position: 0px 0px;
  height: 32px !important;
  width: 32px !important;
  margin-right: 8px !important;
  display: none !important;
}

.VIpgJd-ZVi9od-xl07Ob-lTBxed {
  padding: 0 !important;
}

@media (max-width: 667px) {
  #google_translate_element {
      bottom: calc(100% - 50% - 53px);
      left: 16px !important;
      width: 100% !important;
  }
  #google_translate_element goog-te-gadget {
      width: 100% !important;
  }
  #google_translate_element .skiptranslate {
      width: 100% !important;
  }
  #google_translate_element .goog-te-gadget-simple {
      width: calc(100% - 32px) !important;
      text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .goog-te-menu-value {
      color: #000000 !important;
  }
  .goog-te-gadget-simple {
      background-color: rgba(255, 255, 255, 0.0) !important;
      border: 1px solid rgba(0, 0, 0, 0.4) !important;
      padding: 8px 4px 8px 16px !important;
      border-radius: 4px !important;
      font-size: 1rem !important;
      line-height: 2rem !important;
      display: inline-block;
      cursor: pointer;
  }
}
