/* Base background */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, #dcbdf6, #a6dcef);
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: #1f1f1f;
}

/* App container */
.weather-app {
  max-width: 700px;
  margin: 40px auto;
  background: linear-gradient(to bottom right, #e0c3fc, #8ec5fc);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  padding: 20px;
  text-align: center;
}

/* Search input */
@media (max-width: 500px) {
  .search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.search-form-input {
  width: 65%;
  max-width: 400px;
  height: 40px;
  margin-bottom: 10px;
  padding: 8px 15px;
  border: none;
  border-radius: 25px;
  background-color: #c8e7d8;
  font-size: 16px;
  font-family: "Geologica", sans-serif;
  font-style: italic;
  box-sizing: border-box;
}

.search-form-button {
  margin-left: 0;
  padding: 10px 20px;
  background-color: #f48994;
  color: white;
  border: none;
  border-radius: 15px;
  white-space: nowrap;
  box-sizing: border-box;
  height: 40px;
  font-size: 18px;
  display: inline-block;
  cursor: pointer;
  font-family: "Geologica", sans-serif;
}

/* City & Temp */
.weather-app-city {
  font-family: "Tangerine", cursive;
  font-size: 60px;
  margin: 10px 0;
}

.weather-app-temperature-container {
  display: flex;
  align-items: flex-start;
  justify-content: center; /* centers horizontally */
  gap: 6px;               
  margin-top: 10px;
  flex-wrap: nowrap;
}

.temperature-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.weather-app-temperature {
  font-size: 88px;
  font-weight: bold;
  line-height: 1;
  margin: 0;
}

.weather-app-unit {
  font-size: 32px;
  font-weight: 500;
  margin-top: 18px;
  line-height: 1.3;
}

/* Details */
.weather-app-details {
  font-size: 16px;
  color: #444;
  font-style: italic;
}

.humidity-value,
.wind-speed-value {
  color: #f06371;
  font-weight: 500;
}

/* Forecast */
.weather-forecast {
  display: flex;
  justify-content: space-between;
  margin: 30px auto 0;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 10px;
  max-width: 600px;
  box-sizing: border-box;
}

.forecast-day {
  flex: 1 1 100px;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-style: italic;
  margin-bottom: 10px;
  border: 1px solid #eee;
  padding: 10px 0;
}

.forecast-weekday {
  font-size: 18px;
  margin-bottom: 5px;
}

.forecast-icon {
  margin-bottom: 5px;
  object-fit: contain;
  max-width: 80%;
}

.daily-temperatures {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
}

.daily-temperature {
  font-size: 16px;
  color: #f06371;
  background-color: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
}

body.morning {
  background: linear-gradient(to bottom right, #fff1c1, #ffd1dc);
}

body.daytime {
  background: linear-gradient(to bottom right, #a1c4fd, #c2e9fb);
}

body.evening {
  background: linear-gradient(to bottom right, #fbc2eb, #a6c1ee);
}

body.night {
  background: linear-gradient(to bottom right, #141e30, #243b55);
  color: #f0f0f0;
}

/* Footer */
footer {
  border-top: 1px solid #f48994;
  text-align: center;
  margin-top: 30px;
  padding-left: 20px;
  padding-top: 15px;
  font-size: 16px;
  color: #000;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

a {
  color: #5900b3;
  text-decoration: none;
  font-style: italic;
}

a:hover {
  text-decoration: underline;
}
