* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.weather-card {
  width: 90%;
  max-width: 400px;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  text-align: center;
  color: white;
}

.weather-card h1 {
  margin-bottom: 20px;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  outline: none;
}

.search-box button {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: white;
  color: #0077ff;
  font-weight: bold;
  cursor: pointer;
}

.weather-info h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.weather-info p {
  margin: 8px 0;
  font-size: 1.1rem;
}

/* Spinner overlay */
.spinner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media(max-width:500px) {
  .search-box {
    flex-direction: column;
  }
}
