/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body, html {
  height: 100%;
  width: 100%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  overflow-x: hidden;
  transition: background 0.8s ease;
}

/* FULL-SCREEN BACKGROUND */
.dashboard {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 30px 20px 20px 20px;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* will change dynamically with JS */
}

/* HEADER: CITY + ADD BUTTON */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-top: -2%;
}
#prevCity, #nextCity {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  margin: 0 5px;
  transition: 0.3s;
}

#prevCity:hover, #nextCity:hover {
  background: rgba(255,255,255,0.35);
}

#addCityBtn {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;   
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

#addCityBtn:hover {
  background: rgba(255,255,255,0.35);
}

/* MAIN TEMPERATURE SECTION */
.main-temp {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -1%;
}

.main-temp img {
  width: 120px;
  height: 120px;
}

.main-temp h2 {
  font-size: 100px;
  font-weight: 700;
margin-top: 0%;
}

.main-temp p {
  font-size: 24px;
  text-transform: capitalize;
  margin-top: 5px;
}

/* EXTRA INFO INLINE */
.extra-info {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-top: 200px;
  font-size: 18px;
}

.extra-info div {
  text-align: center;
}

.extra-info h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.extra-info p {
  font-size: 20px;
  font-weight: 600;
}

/* FORECAST STRIP */
.forecast {
 position: fixed;
 top: 50%;
  width: 100%;
  margin-top: 50px;
  overflow-x: auto;
}

.forecast-container {
       justify-content: center;
  display: flex;
  gap: 15px;
  padding-bottom: 10px;
  
}

.forecast-card {
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  text-align: center;

}

.forecast-card img {
  width: 50px;
  height: 50px;
}

/* SCROLLBAR STYLING */
.forecast-container::-webkit-scrollbar {
  display: none;
}

.forecast-container::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}
h1{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin-top: 4%;
    font-size: 20px;
    
}
#cityName {
    margin-left: 3%;
}
a {
    color: white;
}
#rainContainer, #cloudContainer, #snowContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Raindrops */
.raindrop {
  position: absolute;
  width: 2px;
  height: 15px;
  background: rgba(255,255,255,0.6);
  animation: fall linear infinite;
}

@keyframes fall {
  0% { transform: translateY(-20px); }
  100% { transform: translateY(100vh); }
}

/* Clouds */
.cloud {
  position: absolute;
  width: 120px;
  height: 60px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: cloudMove linear infinite;
}

@keyframes cloudMove {
  0% { transform: translateX(-150px); }
  100% { transform: translateX(110%); }
}

/* Snow */
.snowflake {
  position: absolute;
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: snowFall linear infinite;
}

@keyframes snowFall {
  0% { transform: translateY(-10px); }
  100% { transform: translateY(100vh); }
}
#developer {
    margin-top: -20%;
}
#rainChance {
    font-size: 16px;
}
h3 {
    margin-top: 3%;

}
/* RESPONSIVE FOR SMALLER SCREENS */
@media(max-width: 400px){
  .main-temp h2 {
    font-size: 70px;
  }
  .main-temp img {
    width: 100px;
    height: 100px;
  }
  .extra-info p {
    font-size: 16px;
  }
  .forecast-card img {
    width: 40px;
    height: 40px;
  }
  .forecast-card{
    font-size: 15px;
    gap: 0px;
    padding: 0px;
  }
  .forecast-container {
   gap: 0px
   ;
  }
  .forecast {
    top: 45%;
  }
  h1 {
    margin-top: 20%;
    font-size: 16px;
  }
  #cityName {
    margin-top: 9%;
  
}
a {
    color: white;
}
#developer {
    display: inline-block;
    margin-top: -10%;
}
h3 {
    margin-top: 15%;
    font-size: 16px;
  text-align: center;
}
#addCityBtn {
    position: fixed;
    top: 10px;
   left: 45%;
}
#prevCity {
      position: fixed;
    top: 10px;
   left: 30%;
}
#nextCity {
      position: fixed;
    top: 10px;
   left: 57%;
}
}
