html, body {
    margin: 0;
    padding: 0;
  }
  
  #map {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
  }
  
  #selectContainer {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    text-align: center;
    padding: 11px 0;
  }
  
  #countrySelect {
    width: 200px;
    margin: 0 auto;
  }

  .visually-hidden {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

  /* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: grey;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center; 
  z-index: 9999;
}

#preloader h1 {
  font-size: 24px;
  color: lightgray; 
  margin-bottom: 20px;
  text-align: center;
}

.loader {
  display: flex;
  gap: 10px;
}

.loader div {
  width: 15px;
  height: 15px;
  background-color: lightgrey;
  border-radius: 50%;
  animation: bounce 1.5s infinite ease-in-out;
}

.loader div:nth-child(2) {
  animation-delay: 0.3s;
}

.loader div:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes bounce {
  0%, 80%, 100% {
      transform: scale(0);
  }
  40% {
      transform: scale(1);
  }
}


/* Modal Content Background */
.modal-content {
  background-color: #1e293b; /* Deep blue background */
  color: #ffffff; /* White text for contrast */
  border-radius: 10px; /* Rounded corners for a clean design */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25); /* Soft shadow for depth */
}

/* Modal Header */
.modal-header {
  background-color: #334155 !important;
  color: #f8fafc !important;
  background-image: none !important; /* Prevent any gradient overrides */
}



.modal-title {
  font-size: 1.25rem; /* Adjust font size for a balanced design */
  font-weight: bold;
}

/* Close Button */
.btn-close {
  background: #64748b; /* Muted gray-blue for the close button */
  opacity: 0.8;
}
.btn-close:hover {
  background: #94a3b8; /* Lighter gray-blue on hover */
  opacity: 1;
}

/* Modal Body Text */
.modal-body {
  font-size: 1rem; /* Readable text size */
  line-height: 1.5;
  color: #f1f5f9; /* Light gray text for better readability */
}

/* Weather Section */
#currentConditions {
  color: #facc15; /* Bright yellow for weather description */
  font-size: 1.25rem;
}

#forecastGrid .col {
  background-color: #334155; /* Medium blue-gray for forecast cards */
  color: #ffffff;
  border-radius: 5px;
  margin: 5px; /* Space between forecast items */
}

/* Weather Icons */
img.img-fluid {
  background-color: #94a3b8; /* Light gray background for icons */
  border-radius: 50%; /* Circular icons for better presentation */
  padding: 5px; /* Padding inside the background */
}

/* Footer Section */
.modal-footer {
  background-color: #0f172a; /* Same as header */
  color: #94a3b8; /* Muted gray-blue for footer text */
  font-size: 0.875rem;
  border-top: 1px solid #475569; /* Subtle border for separation */
}

/* Hover Effects */
.modal-footer a:hover {
  color: #facc15; /* Highlight links on hover */
  text-decoration: underline;
}




/* Style for the flag image */
.countryFlag {
  width: 50px;
  height: auto;
  margin-left: 20px;
}

