/* Reset default spacing and set a simple font */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Page background and center layout */
body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #48cae4, #90be6d);
  color: #1f2933;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Main app card */
.weather-app {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(31, 41, 51, 0.18);
  padding: 28px;
}

/* Heading section */
.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2rem;
  color: #0077b6;
  margin-bottom: 8px;
}

.hero p {
  color: #52606d;
  line-height: 1.5;
}

/* Search input and button layout */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

/* City input */
.search-box input {
  flex: 1;
  border: 2px solid #d9e2ec;
  border-radius: 6px;
  padding: 12px;
  font-size: 1rem;
  outline: none;
}

.search-box input:focus {
  border-color: #00b4d8;
}

/* Search button */
.search-box button {
  border: none;
  border-radius: 6px;
  background: #f97316;
  color: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  padding: 12px 18px;
}

.search-box button:hover {
  background: #ea580c;
}

/* Weather result box */
.weather-result {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 18px;
  min-height: 120px;
}

/* Weather city title */
.weather-result h2 {
  color: #0369a1;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* Weather detail text */
.weather-result p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Starting hint text */
.hint {
  color: #64748b;
  text-align: center;
}

/* Error message style */
.error {
  color: #dc2626;
  font-weight: bold;
  text-align: center;
}

/* Make the app comfortable on small mobile screens */
@media (max-width: 480px) {
  .weather-app {
    padding: 22px;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box button {
    width: 100%;
  }
}
