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%;
  padding: 11px 0;
}

#countrySelect {
  width: 200px;
  margin: 0 auto;
}

/* Pre-loader styling */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.267);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  z-index: 1000;
}

.map-container {
  position: relative;
  width: 100%;
  height: 500px;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.562);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#content {
  display: none; /* Hide content until ready */
}

body.dark-mode {
  background-color: #121212;
  color: white;
}
.dark-mode .card,
.dark-mode .table {
  background-color: #1e1e1e;
  color: white;
}
.dark-mode th,
.dark-mode td {
  color: white;
}

/* Hover effect */
.card:hover {
  transform: scale(1.08);
  transition: transform 0.3s ease-in-out;
}

.card {
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

#today-temp {
  font-size: 2rem;
  font-weight: bold;
}

#today-icon {
  width: 100px;
  height: 100px;
}

.bg-primary {
  background: linear-gradient(to right, #007bff, #0056b3);
}

.news-card {
  width: 18rem;
  margin: 1rem;
}

#newsLoader {
  display: none;
}

#flagImage {
  width: 50px;
  height: auto;
}
