/* 🌤️ Weather App Styling */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  height: 100%;
  background: linear-gradient(135deg, #74ebd5, #ACB6E5);
  transition: background 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main Container */
.container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 30px 25px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 20px;
  width: 580px;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

/* Search Box */
.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box input {
  width: 70%;
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 15px;
}

.search-box button {
  background-color: #fff;
  color: #4b6cb7;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

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

/* Weather Info Section */
.weather-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.city-name h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.temp h3 {
  font-size: 40px;
  margin-bottom: 8px;
}

.desc p {
  font-size: 25px;
  text-transform: capitalize;
  margin-bottom: 10px;
}

.time{
    font-size: 20px;
    margin-bottom: 6px;
}

.extra p {
  font-size: 20px;
  margin: 6px 0;
}

/* Weather Icon */
.icon img {
  width: 110px;
  height: 100px;
  margin-top: 15px;
}


/* Error Message */
.error {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 10px;
}

.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    width: 90%;
    padding: 20px;
  }

  .temp h3 {
    font-size: 34px;
  }
}

/* 📅 5-Day Forecast */
.forecast {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  color: #fff;
}

.forecast h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.forecast-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.forecast-day {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px;
  width: 17%;
  text-align: center;
  color: #fff;
  transition: transform 0.3s;
}

.forecast-day:hover {
  transform: translateY(-5px);
}

.forecast-day img {
  width: 50px;
  height: 50px;
}

.forecast-day p {
  margin: 4px 0;
  font-size: 14px;
}

