* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  height: 100vh;
  background: linear-gradient(135deg,#4facfe,#00f2fe);
  color: white;
  transition: 0.5s;
  overflow: hidden;
}

body.dark {
  background: linear-gradient(135deg,#0f2027,#203a43,#2c5364);
}

.container {
  width: 90%;
  max-width: 800px;
  margin: auto;
  margin-top: 60px;
}

.top-bar {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  border: none;
}

button {
  padding: 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
}

.main {
  margin-top: 30px;
  text-align: center;
  animation: fade 0.6s ease;
}

.city {
  font-size: 22px;
  opacity: 0.8;
}

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

.desc {
  font-size: 20px;
  margin-bottom: 10px;
}

.details {
  opacity: 0.8;
}

.forecast {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  overflow-x: auto;
}

.day {
  min-width: 100px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255,255,255,0.2);
  text-align: center;
}

.hidden {
  display: none;
}

/* Rain */
.raindrop {
  position: absolute;
  width: 2px;
  height: 20px;
  background: white;
  animation: fall linear infinite;
}

@keyframes fall {
  to { transform: translateY(100vh); }
}

/* fade */
@keyframes fade {
  from {opacity:0; transform: translateY(10px);}
  to {opacity:1;}
}
