html{
    font-size: 62.5%;
}

body {
  background: #e0f2fe;
  font-family: sans-serif;
}

.container {
  max-width: 450px;
  margin: 4rem auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

form {
  display: flex;
  gap: 1rem;
}

input {
  flex: 1;
  padding: .8rem;
}

#weather {
  margin-top: 2rem;
  font-size: 1.6rem;
}
.loading {
  font-size: 1.4rem;
  opacity: .7;
}

.cold {
  background: linear-gradient(#bae6fd, #7dd3fc);
}

.warm {
  background: linear-gradient(#fed7aa, #fb923c);
}

.normal {
  background: linear-gradient(#e5e7eb, #f4f4f5);
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  font-size: 1.4rem;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #ccc;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

#forecast {
  margin-top: 2rem;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 1rem;
}

.card {
  background: #f4f4f4;
  padding: .8rem;
  border-radius: 10px;
}


