/* General Styling */
.btn-group {
  position: relative;
}

.lang-btn {
  color: #000;
  font-weight: bold;
  width: 40px; /* Increase width to fit text */
  height: 40px;
   border: 2px solid black;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
  display: inline-block;
  text-align: center;
  line-height: 40px;
  padding: 5px 10px;
  opacity: 0.7;
  filter: grayscale(50%);
  background-color: transparent; /* No background image */
    margin: 0;
  padding: 0;
 
  height: 100%;
}

/* Active language button styles */
.active-lang {

  border: 3px solid #0a58ca;
  box-shadow: 0 0 10px #0a58ca;
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1.05);
  background-color: #0a58ca; /* Highlight color */
  color: #fff; /* Change text color */
}

/* Language button hover effect */
.lang-btn:hover {
  opacity: 0.85;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
  .lang-btn {
    width: 40px; /* Smaller width on mobile */
    height: 40px;
    line-height: 30px;
    padding: 2px 4px;
    border: 2px solid black;
  }

  .active-lang {
    width: 40px;
    height: 40px;
    border: 2px solid #0d6efd !important;
    box-shadow: 0 0 6px #0d6efd;
    transform: scale(1.05);
    opacity: 1 !important;
    filter: none !important;
  }
}

/* Icon for mobile menu (hidden by default) */
#mm {
  display: none;
}

/* Flag styles (removed for text buttons) */

/*
#thBox {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/a/a9/Flag_of_Thailand.svg/1024px-Flag_of_Thailand.svg.png');
}

#enBox {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/a/a4/Flag_of_the_United_States.svg');
}
*/

/* Optional: These styles are not needed as the flag images are removed */


#thailandBox {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/8/8e/Idioma_tailand%C3%A9s.png');
  background-size: cover;
  background-position: center;
}

#abroadBox {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/a/ad/Map_of_the_Afghan_Diaspora_in_the_World.svg');
  background-size: cover;
  background-position: center;
}
