body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(to top, #2c3e50, #4ca1af);
  color: white;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  width: 320px;
  max-width: 90%;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

input {
  width: 90%;
  padding: 10px;
  border-radius: 20px;
  border: none;
  text-align: center;
}

button {
  padding: 8px 12px;
  margin: 5px;
  border-radius: 20px;
  border: none;
  background: rgba(255,255,255,0.3);
  color: white;
}

.temp {
  font-size: 40px;
  font-weight: bold;
}

#forecast {
  display: flex;
  overflow-x: auto;
  margin-top: 10px;
}

.card {
  background: rgba(255,255,255,0.2);
  margin: 5px;
  padding: 8px;
  border-radius: 10px;
  min-width: 90px;
  font-size: 12px;
}

canvas {
  margin-top: 15px;
}

/* 🌍 map */
#map {
  height: 250px;
  margin-top: 15px;
  border-radius: 10px;
}

/* 🌧 rain */
.rain {
  position: fixed;
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.6);
  top: -20px;
  animation: rainFall linear infinite;
}
@keyframes rainFall {
  to { transform: translateY(100vh); }
}

/* animation container */
#animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ⚡ lightning */
.lightning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  pointer-events: none;
}

.flash {
  animation: lightningFlash 0.3s ease;
}

@keyframes lightningFlash {
  0% { opacity: 0; }
  20% { opacity: 0.8; }
  40% { opacity: 0.2; }
  60% { opacity: 0.9; }
  100% { opacity: 0; }
}