
* {
  transition: all 0.3s ease;  /* This will apply smooth transition to everything */

}

body {
    display: grid;
    place-items: center;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    place-content: center;
    
}
#total{
    display: flex;
    place-content: center;
    border-radius: 10px;
    position: relative;
    top: 30px;
}

#bg{
    
    border-radius: 10px;
    height: 600px;
    width: 400px; 
   
}
#searchbar{
    display: flex;
    place-content: center;
    position: relative;
    top: 20px;
}
.inp{
    color: white;
    background: none;
    border-color: white;
    border-radius: 20px;
    height: 30px;
    width: 200px;
    padding-left: 15px;
}
.btn{
    position: relative;
    top: 17px;
    left: 10px;
    height: 35px;
    width: 35px;
    background: none;
    border-color: white;
    border-radius: 50%;
}
.search{
    position: relative;
    right: 8px;
    bottom: 3px;
    width: 35px;
    height: 35px;
}
.dateandtime{
    display: flex;
    place-content: center;
}
#dateandtime {
    position: relative;
    top: 30px;
    font-size: 15px;
    color: rgb(255, 255, 255);
    font-weight: bold;
}
#temperature{
    place-items: center;
    position: relative;
    top: 30px;
}
.temp{
    display: flex;
    place-content: center;
    position: relative;
    color: white;
    font-size: 80px;
}
.city1{
    display: flex;
    place-content: center;
    position: relative;
    bottom: 10px;
    
    color: white;
    font-size: 25px;
}
#weth{
    display: flex;
    place-content: center;
    color: white;
    position: relative;
    bottom: 10px;
}
#down {
    color: white;
    font-size: smaller;
    display: flex;
    flex-direction: row;  
    align-items: flex-start; 
    justify-content: space-evenly;             
}
.wind{
    
    position: relative;
    top: 10px;
    background-color: rgb(0, 0, 0);
    opacity: 0.6;
    border-radius: 15px;
    height: 90px;
    width: 100px;
}
.air{
    
    position: relative;
    top: 10px;
    background-color: rgb(0, 0, 0);
    opacity: 0.6;
    border-radius: 15px;
    height: 90px;
    width: 100px;
}
.hum{
   
    position: relative;
    top: 10px;
    background-color: rgb(0, 0, 0);
    opacity: 0.6;
    border-radius: 15px;
    height: 90px;
    width: 100px;
}
.windy,.airy,.humy
{
    font-weight: 1px;
    margin: 10px;
    position: relative;
    bottom: 20px;
}
.ad{
    margin: 10px;
    position: relative;
    top: -25px;
}
.ad1{
    margin: 10px;
    position: relative;
   top: -30px; 
}
.text{
    color: green;
    font-size: 10px;
    width: 400px;
    position: relative;
    top: 20px;
    left: 40px;
}
.weathericon {
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
}
#windspeed .wind,
#airquality .air,
#humidity .hum {
  transition: transform 0.3s ease;  /* smooth zoom effect */
}

#windspeed .wind:hover,
#airquality .air:hover,
#humidity .hum:hover {
  transform: scale(1.03);  /* zoom in 10% */
}

.input-box .inp,
.input-box .btn {
  transition: transform 0.3s ease;
}

.input-box .inp:hover,
.input-box .btn:hover {
  transform: scale(1.03);  /* subtle 3% zoom */
}

/* media query */

@media screen and (max-width: 768px) {
      *{
    margin: 0%;
  }
  
    #total{
        margin: 0%;
        display: flex;
        place-content: center;
        position: relative;
        left: -20px;
        top: 50px;
    }
    #bg {
       height: 80vh;
       width: 70vw;
       position: relative;
       place-content: center;
    }
    
    .inp{
        width: 170px;
    }
    
    .temp {
        display: flex;
        place-content: center;
        font-size: 70px;
    }
    
    #dateandtime {
        
        font-size: 14px;
    }
    
    .city1 {
        font-size: 22px;
    }
    
    .wind, .air, .hum {
        width: 85px;
        height: 80px;
        font-size: 11px;
    }
    
    .text {
        place-content: center;
        width: 90%;
        position: relative;
        left: 120px;
        font-size: 9px;
    }
}

/* Mobile phones - portrait */
@media screen and (max-width: 550px) {
  *{
    margin: 0%;
  }
  .body{
   
  }
    #total{
       display: flex;
       place-content: center;
       position: relative;
       left: 1px;        
       height: 90vh;
       width: 90vw;
    }
    #searchbar {
        top: -50px;
    }
    .inp {
        width: 150px;
        height: 28px;
        font-size: 14px;
    }
    
    .btn {
        height: 32px;
        width: 32px;
        top: 15px;
    }
    
    .search {
        width: 30px;
        height: 30px;
    }
    
    #dateandtime {
        position: relative;
        top: -30px;
        font-size: 13px;
    }
    
    #temperature {
        top: 25px;
    }
    
    .temp {
        display: flex;
        place-content: center;
        font-size: 60px;
       
        top: -10px;
    }
    
    .city1 {
        font-size: 20px;
        bottom: 10px;
    }
    
    #down {
        justify-content: space-around;
        padding: 0 10px;
    }
    
    .wind, .air, .hum {
        width: 75px;
        height: 70px;
    }
    
    .windy, .airy, .humy {
        font-size: 12px;
        margin: 8px;
        bottom: 15px;
    }
    .ad, .ad1 {
        font-size: 11px;
        margin: 8px;
    }
    
    .ad {
        top: -20px;
    }
    
    .ad1 {
        top: -25px;
    }
    .image{
        position: relative;
        top: -20px;
    }
    .text {
        width: 300px;
        position: relative;
        left: 5px;
        font-size: 9px;
    }
}


