/* CSS for the flags in the language section */
.country {
  width: 100px; /* Match image width */
  height: 70px; /* Match image height */
  background-size: cover; /* Make background image cover the div */
  background-position: center; /* Center the background image */
  border-radius: 5px; /* Optional: rounded corners */
}

.country .country-text {
  text-align: center;
  color: white;
  font-weight: bold;
  padding-top: 10px;
  font-size: 14px;
}

/* Optional: Styling for the button group panel */
.buttonGroupPanel {
  margin: 20px;
  text-align: center;
}

.btn-group {
  display: inline-block;
  margin: 10px;
}

.button2 {
  background-color: #4CAF50; /* Green */
  color: white;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  text-align: center;
}

.button2:hover {
  background-color: #45a049;
}

h2 {
  font-size: 18px;
  margin-bottom: 10px;
}



.thumbnail-container {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping of thumbnails */
  justify-content: center; /* Center align items */
}

.thumbnail-container a {
  text-decoration: none; /* Remove underline from links */
  margin: 10px; /* Adjust spacing between thumbnails */
}

.country {
  width: 100px;
  height: 100px;
  background-size: cover; /* Adjust background size as needed */
  background-position: center; /* Center the background image */
  position: relative; /* Ensure the container is positioned relative for absolute positioning */
  text-align: center; /* Center text horizontally */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow: hidden; /* Ensure content doesn't overflow when shrinking */
  transition: transform 0.3s ease; /* Smooth transition for transform */
}

.country-text {
  position: absolute; /* Position the text absolutely within the container */
  top: 50%; /* Position the text vertically centered */
  left: 0; /* Align the text to the left edge */
  right: 0; /* Align the text to the right edge */
  transform: translateY(100%); /* Adjust to vertically center the text */
  color: rgb(240, 241, 245); /* Text color */
  font-size: 20px; /* Adjust font size as needed */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Text shadow for contrast */
  letter-spacing: 2px; /* Increased letter spacing */
  font-weight: bold; /* Adjust font weight as needed */
  text-transform: uppercase; /* Convert text to uppercase */
}

.country.shrink {
  transform: scale(0.9); /* Scale down to 90% on click */
}

/* Define individual country classes with background images */
.india {
  background: url('/imgs/flags.png') -200px -0px;
}

.france {
  background: url('/imgs/flags.png') -100px -0px;
}


.portugal {
  background: url('/imgs/flags.png') -300px -0px;
}

.spain {
  background: url('/imgs/flags.png') -400px -0px;
}

.uae {
  background: url('/imgs/flags.png') -400px -100px;
}

.germany {
  background: url('/imgs/flags.png') -0px -100px;
}

.italy {
  background: url('/imgs/flags.png') -100px -300px;
}

.japan {
  background: url('/imgs/flags.png') -200px -100px;
}

.russia {
  background: url('/imgs/flags.png') -300px -100px;
}

.china {
  background: url('/imgs/flags.png') 8px -0px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .country {
    width: 100px;
    height: 100px;
    font-size: 16px;
  }
}
