* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(-45deg, #74ebd5, #ACB6E5, #4b6cb7, #182848);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
}

/* Moving Gradient Animation */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.weather-app {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  width: 350px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: fadeScale 1s ease forwards;
}

@keyframes fadeScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.weather-app h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.search-box {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.search-box input {
  width: 70%;
  padding: 10px;
  border: none;
  border-radius: 10px 0 0 10px;
  outline: none;
  font-size: 1rem;
}

.search-box button {
  padding: 10px 15px;
  border: none;
  background: #4b6cb7;
  color: #fff;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  transition: 0.3s;
}

.search-box button:hover {
  background: #182848;
}

/* Weather result fade-in animation */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.fade-in.show {
  opacity: 1;
}

.weather-result {
  font-size: 1.2rem;
  margin-top: 10px;
}

.weather-result .temp {
  font-size: 2rem;
  font-weight: bold;
}
