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

body {
  background: #111;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.weather-container {
  background: #1e1e1e;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 100, 0.3);
  width: 100%;
  max-width: 620px; /* Increased width for 5-day forecast */
  text-align: center;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

#datetime {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

#search-box {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 20px;
}

#city-input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #2a2a2a;
  color: #fff;
}

#suggestions {
  list-style: none;
  background: #2a2a2a;
  border-radius: 0 0 6px 6px;
  position: absolute;
  top: 42px;
  width: 100%;
  z-index: 10;
  display: none;
  max-height: 150px;
  overflow-y: auto;
}

#suggestions li {
  padding: 10px;
  border-bottom: 1px solid #444;
  cursor: pointer;
}

#suggestions li:hover {
  background: #4fff91;
  color: black;
}

#city-submit {
  margin-top: 10px;
  background: #4fff91;
  color: black;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

#weather-card {
  margin-top: 20px;
}

.hidden {
  display: none;
}

#location {
  font-size: 1.5rem;
  font-weight: bold;
}

#local-time {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 10px;
}

#icon {
  width: 80px;
  height: 80px;
}

#temp {
  font-size: 2.5rem;
  margin: 10px 0;
}

#desc, #humidity {
  font-size: 1rem;
}

.forecast-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.forecast-day {
  background: #2a2a2a;
  padding: 10px;
  border-radius: 8px;
  width: 100px;
  text-align: center;
}

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

.forecast-day h4 {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.forecast-day p {
  font-size: 0.9rem;
  margin: 2px 0;
}