
/* Reset default browser styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Page background and layout */
body {
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  color: #333;
}

/* Form styling */
form {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  margin-bottom: 2rem;
}

form input {
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 25px;
  outline: none;
  width: 250px;
  font-size: 1rem;
}

form button {
  border: none;
  background: #0077ff;
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

form button:hover {
  background: #005ec9;
  transform: scale(1.05);
}

/* Container for weather cards */
#container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 900px;
}

/* Location title */
#container h2 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

/* Individual weather cards */
.weather-day {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-day:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Card content */
.weather-day h3 {
  margin-bottom: 0.5rem;
  color: #0077ff;
  font-size: 1.2rem;
}

.weather-day p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
  color: #444;
}

/* Make text more readable on smaller screens */
@media (max-width: 600px) {
  form {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  form input {
    width: 80%;
  }

  #container {
    grid-template-columns: 1fr;
  }

  #container h2 {
    font-size: 1.5rem;
  }
}
