* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
  position: relative;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to top, #87ceeb, #e0f7fa);
  transition: background 0.6s ease-in-out;
}

body.sunny {
  background: linear-gradient(to top, #fbc2eb, #a6c1ee);
}
body.rainy {
  background: linear-gradient(to top, #5f72bd, #9b23ea);
}
body.snowy {
  background: linear-gradient(to top, #e0eafc, #cfdef3);
}
body.cloudy {
  background: linear-gradient(to top, #d7d2cc, #304352);
}
body.clear {
  background: linear-gradient(to top, #2980b9, #6dd5fa);
}

.container {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 30px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

h1 {
  font-size: 2.2rem;
  color: #00363a;
  margin-bottom: 25px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.search-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 25px;
}

input {
  padding: 14px;
  border-radius: 12px;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  color: #004d40;
  flex: 1 1 65%;
  min-width: 200px;
  transition: 0.3s;
  outline: none;
}

input:focus {
  box-shadow: 0 0 10px #4dd0e1;
}

button {
  background: linear-gradient(135deg, #00c9a7, #00acc1);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 172, 193, 0.4);
}

button:hover {
  background: linear-gradient(135deg, #009688, #007c91);
  transform: scale(1.05);
  box-shadow: 0 0 12px #00bcd4;
}

button:active {
  transform: scale(0.95);
}

.weather-card {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 18px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.7;
  color: #004d40;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.6s ease-out;
}

.weather-card.hidden {
  display: none;
}

.weather-card h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #00695c;
}

.weather-card img {
  width: 60px;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  .search-box {
    flex-direction: column;
  }

  input, button {
    width: 100%;
  }

  .weather-card {
    font-size: 0.95rem;
  }
}