

body {
  font-family: Arial;
  background: #eef3ff;
  margin: 0;
  padding: 20px;
  transition: 0.3s;
}
h1{
    color: #3b82f6;
    text-decoration: dashed underline;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}


body.dark {
  background: #0f172a;
  color: white;
}


h1 {
  text-align: center;
  margin-bottom: 15px;
}


.top-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.top-bar input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 220px;
}


button {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #2563eb;
}


.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.controls input,
.controls select {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
}


.weather-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  width: 280px;
  margin: 10px auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

body.dark .weather-card {
  background: #1e293b;
}


.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}


.place-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  transition: 0.2s;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}


.place-card:hover {
  transform: translateY(-4px);
}


body.dark .place-card {
  background: #1e293b;
}


.place-name {
  font-weight: bold;
  margin-bottom: 5px;
}


.loader {
  text-align: center;
}

.spinner {
  border: 4px solid #ddd;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    align-items: center;
  }

  .controls {
    flex-direction: column;
    align-items: center;
  }
}