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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: linear-gradient(to right, #000000, #702408);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 500px;
  text-align: center;
}

h1 {
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

#weather-form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

#city-input {
  padding: 0.65rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 70%;
}

#weather-form button {
  padding: 0.65rem 1.2rem;
  font-size: 1rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#weather-form button:hover {
  background: #0056b3;
}

.error {
  color: #e74c3c;
  min-height: 1.2rem;
  margin-top: 0.5rem;
}

.weather-result {
  margin-top: 1.5rem;
  text-align: left;
  padding: 0 1rem;
}

.weather-result h2 {
  color: #2c3e50;
  margin-bottom: 0.8rem;
}

.weather-result p {
  margin: 0.4rem 0;
  font-size: 1.05rem;
  color: #444;
}