.weather-app {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #e0f7fa, #ffffff);
  color: #010101;
  padding: 24px;
  border-radius: 16px;
  max-width: 420px;
  margin: 40px auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transition: background 0.8s ease;
}

.search-form {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
}

.search-button {
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background-color: #006064;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.search-button:hover {
  background-color: #004d52;
  transform: scale(1.05);
}

main {
  padding: 30px 0 10px;
}

.weather-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.weather-active .weather-info {
  opacity: 1;
  transform: translateY(0);
}

h1 {
  font-size: 38px;
  line-height: 48px;
  margin: 0;
}

.forecast {
  margin-top: 12px;
  font-size: 15px;
  opacity: 0.8;
}

.degrees {
  display: flex;
  align-items: center;
}

.icon {
  width: 64px;
  height: 64px;
  animation: float 3s ease-in-out infinite;
}

.temperature {
  font-size: 88px;
  font-weight: bold;
  margin-left: 8px;
}

.unit {
  font-size: 24px;
  margin-top: 10px;
}

.forecast-strip {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.forecast-card {
  min-width: 72px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 12px 8px;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: popIn 0.6s ease forwards;
}

.forecast-card:hover {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 14px 24px rgba(0,0,0,0.18);
}

.forecast-day {
  font-size: 14px;
  font-weight: bold;
}

.forecast-icon {
  font-size: 32px;
  margin: 6px 0;
  animation: bounce 2.5s infinite;
}

.forecast-temp {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
}

.forecast-temp .max {
  font-weight: bold;
}

.forecast-temp .min {
  opacity: 0.6;
}

.weather-app.cold {
  background: linear-gradient(135deg, #74b9ff, #dfe6e9);
}

.weather-app.calm {
  background: linear-gradient(135deg, #81ecec, #ffffff);
}

.weather-app.happy {
  background: linear-gradient(135deg, #ffeaa7, #ffffff);
}

.weather-app.hot {
  background: linear-gradient(135deg, #fab1a0, #ff7675);
}

footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  opacity: 0.7;
}

footer a {
  color: #006064;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #004d52;
  text-decoration: underline;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
