* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  height: 100vh;
  background: radial-gradient(circle at top, #b3e5ff, #6fa8ff);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}


.app {
  width: 420px;
  min-height: 560px;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(25px);
  border-radius: 35px;
  padding: 25px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  position: relative;
  z-index: 5;
}


.header {
  text-align: center;
  margin-bottom: 20px;
}

.header h1 {
  font-size: 30px;
}

.header p {
  font-size: 14px;
  opacity: 0.7;
}


.search {
  display: flex;
  background: white;
  border-radius: 18px;
  padding: 6px;
  margin-bottom: 15px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.search input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  outline: none;
}

.search button {
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0 20px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
}

.warning {
  display: none;
  background: linear-gradient(135deg, #ff6a6a, #ff4757);
  color: white;
  padding: 12px;
  border-radius: 18px;
  text-align: center;
  font-size: 14px;
  margin-bottom: 15px;
}

.weather {
  display: none;
  text-align: center;
  margin-top: 10px;
}

.city {
  font-size: 22px;
  font-weight: 600;
}


.emoji {
  font-size: 120px;
  margin: 15px 0;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.temp {
  font-size: 52px;
  font-weight: 700;
}

.desc {
  font-size: 16px;
  margin-bottom: 20px;
  text-transform: capitalize;
}

/* DETAILS CARDS */
.details {
  display: flex;
  gap: 12px;
}

.detail-box {
  flex: 1;
  background: rgba(255,255,255,0.75);
  padding: 15px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


#rain {
  position: fixed;
  inset: 0;
  display: none;
  pointer-events: none;
  z-index: 1;
}

.drop {
  position: absolute;
  width: 2px;
  height: 18px;
  background: rgba(255,255,255,0.8);
  animation: fall linear infinite;
}

@keyframes fall {
  from { transform: translateY(-100px); }
  to { transform: translateY(110vh); }
}


#sunrays {
  position: fixed;
  inset: 0;
  display: none;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(255,255,200,0.5), transparent 60%);
  animation: pulse 4s infinite;
  z-index: 0;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 0.9; }
  100% { opacity: 0.4; }
}


#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 14px;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  from { transform: translateY(-20px) rotate(0); opacity: 1; }
  to { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}
.emoji-title {
  font-size: 30px;
  margin-right: 6px;
  animation: bounce 2.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}



