* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #e6eef6,white);
  transition: background 0.3s, color 0.3s;
}

header {
  text-align: center;
  padding: 40px 20px;background: linear-gradient(135deg, #0379f8, #03c3f8);color: white;
}

header h1 {font-size: 32px;margin-bottom: 10px;}

header p {
  font-size: 14px;
  opacity: 0.9;
}

.controls {text-align: center; margin: 20px;}

input, select, button {
  padding: 10px;margin: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;   outline: none;
}

button {
  background: #007bff;
  color: white;
  border: none;transition: 0.3s;cursor: pointer;
}

button:hover {
  
    background: #0056b3;
  transform: scale(1.05);
}

#loader {
  text-align: center;font-size: 18px;
  margin: 20px;
}


#countriesContainer {
  padding: 20px;  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));  gap: 20px;
}
.card {
  background: white;
  border-radius: 15px;  padding: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px) scale(1.02); box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}


.card img {width: 100px;
  height: 60px;
  object-fit: cover;  margin-bottom: 10px; border-radius: 6px;
}


.card h3 {
  margin-bottom: 8px;color: #333;}

.card p {
  font-size: 14px;margin: 3px 0;
  color: #555;
}

.card button {
  margin-top: 10px;  background: #ff4d4d;
}

.dark {
  background: #121212;
  color: white;
}

.dark header {
  background: linear-gradient(135deg, #1e1e1e, #333);
}

.dark .card {
  background: #1e1e1e;color: white;
}

.dark .card p {color: #ccc;
}

.dark button {background: #444;}

.dark button:hover {
  background: #666;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 24px;
  }
  input {
    width: 90%;
  }
}