body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 40px 20px;
  transition: background 1s ease; /* smooth background change */
}

.container {
  background: #ffffffcc;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

h1 {
  margin-bottom: 20px;
  color: #333;
}

input#cityInput {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-right: 10px;
  font-size: 14px;
}

button {
  padding: 10px 18px;
  background: #0078d7;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #005a9e;
  transform: translateY(-2px);
}

/* Forecast cards */
.forecast-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
  padding: 10px;
}

.forecast-card {
  background: linear-gradient(180deg, #f9fbfd 0%, #ffffff 100%);
  border-radius: 10px;
  padding: 15px;
  width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0; /* start hidden for fade-in */
}

.forecast-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.forecast-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #333;
}

.forecast-card img {
  width: 70px;
  height: 70px;
  margin: 8px 0;
}

.forecast-card p {
  margin: 4px 0;
  font-size: 13px;
  color: #555;
}

/* Fade-in animation */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
  transform: translateY(10px);
}