body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #63a4ff 0%, #83eaf1 100%);
  font-family: 'Montserrat', sans-serif;
  transition: background 1.2s cubic-bezier(.45,.77,.36,1.02);
}

.container {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 32px rgba(31,38,135,0.15);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 2.2rem 2rem 1.5rem 2rem;
  max-width: 370px;
  width: 100%;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.6s;
}

.app-title {
  font-size: 2rem;
  font-weight: 700;
  color: #275082;
  letter-spacing: 2px;
  margin-bottom: 0.9rem;
  text-shadow: 0 2px 12px rgba(128,179,255,0.13);
}

.search-bar {
  display: flex;
  width: 100%;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
#city-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.8);
  font-size: 1rem;
  outline: none;
  box-shadow: 0 4px 20px rgba(50, 130, 255, 0.08);
  transition: border 0.17s;
}
#city-input:focus {
  border: 2px solid #2b85ff;
}
.search-bar button {
  border: none;
  background: #1976d2;
  color: #fff;
  border-radius: 8px;
  padding: 0 1.2rem;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(25,118,210,0.19);
  transition: background 0.18s;
}
.search-bar button:hover, .search-bar button:focus {
  background: #115293;
}

/* --- Animation --- */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.weather-card {
  background: rgba(255, 255, 255, 0.60);
  border-radius: 20px;
  padding: 1.7rem 1.2rem;
  width: 100%;
  min-height: 170px;
  box-shadow: 0 4px 24px rgba(0,50,100,.07);
  text-align: center;
  margin-bottom: 0.7rem;

  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s, transform 0.5s;
}
.weather-card.show {
  animation: fadeInSlide 0.74s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.weather-card h2 {
  font-size: 1.6rem;
  margin: 0 0 0.45rem 0;
  letter-spacing: 1px;
  color: #275082;
}

.weather-card img {
  width: 78px;
  height: 78px;
  margin: 9px auto 10px auto;
  display: block;
  filter: drop-shadow(0 3px 13px rgba(100,150,255,0.18));
  background: rgba(200,220,250,0.1);
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(100,150,255,0.07);
}

.weather-card strong {
  font-size: 2.15rem;
  font-weight: 700;
  color: #ff9800;
}
.weather-card div {
  margin-bottom: 0;
  font-size: 1.14rem;
  color: #444;
  letter-spacing: 0.021em;
}

.error {
  color: #e44242;
  font-size: 1rem;
  min-height: 1em;
  margin-top: 8px;
  text-shadow: 0 1px 8px #fff8;
}

@media (max-width: 500px) {
  .container {
    max-width: 95vw;
    padding: 1rem 0.5rem 0.8rem 0.5rem;
    min-height: 360px;
  }
  .app-title {
    font-size: 1.29rem;
  }
}
