*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    color: white;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center   ;
    width: 100%;
    height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
    background: linear-gradient(to right bottom,  rgba(4, 61, 107, 0.858), rgb(0, 251, 255));
}
.main{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.weather-img{
    position: absolute;
    z-index: 50;
    opacity: 0;
    width: 100%;
    height: 100%;
    filter: brightness(70%);
    
}

.main-container{
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px;
    width: 350px;
    z-index: 100;
    height: auto;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 5px;
    flex-direction: column;
    align-items: center;
}

form{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    
}

form input{
    width: 60%;
    height: 100%;
    padding: 0 10px;
    outline: none;
    background-color: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.523);
    color: aliceblue;
    border-radius: 2px;
   
    

}
form input:focus{
    border-bottom:1.5px solid white ;
    transition: 0.2s ;
}

form input::placeholder{
    color: white;
    opacity: 1;
}



form button{
    height: 100%;
    padding: 0 15px;
    cursor: pointer;
    margin: 0 0 0 5px;
    background-color: white;
    border: none;
    border-radius: 5px;
    transition: 0.2s;
} 

form button:active{
    scale: 0.9;
    
}

/* inner container */
.inner-container{
    width: 100%;
    height: 80%;
    margin: 20px 0;
    /* border: 1px solid; */
}

.city-container{
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

.city-name{
    font-size: 30px; 
}
.weather-condaition{
    font-size: 18px;
}

.temp-container{
    width: 100%;
    height: calc(100%-100px);
    
}
.wather-icon{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

}

.temp{
    font-size: 50px;
    text-align: center;
}

.minmax{
    display: flex;
    justify-content: center;
    align-items: center;
}

.min, .max{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    padding: 0 10px;

}
.min{
    border-right:1px solid white ;
}
.max{
    border-left: 1px solid white;
}


/* loading */

.loader{
    display: none;
}
.loading {
    --speed-of-animation: 0.9s;
    --gap: 6px;
    --first-color: #4c86f9;
    --second-color: #49a84c;
    --third-color: #f6bb02;
    --fourth-color: #f6bb02;
    --fifth-color: #2196f3;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    gap: 6px;
    height: 100px;
    position: relative;
    left: 30%;
    top: 50px;
    
   }
   
   .loading span {
    width: 4px;
    height: 50px;
    background: var(--first-color);
    animation: scale var(--speed-of-animation) ease-in-out infinite;
   }
   
   .loading span:nth-child(2) {
    background: var(--second-color);
    animation-delay: -0.8s;
   }
   
   .loading span:nth-child(3) {
    background: var(--third-color);
    animation-delay: -0.7s;
   }
   
   .loading span:nth-child(4) {
    background: var(--fourth-color);
    animation-delay: -0.6s;
   }
   
   .loading span:nth-child(5) {
    background: var(--fifth-color);
    animation-delay: -0.5s;
   }
   
   @keyframes scale {
    0%, 40%, 100% {
     transform: scaleY(0.05);
    }
   
    20% {
     transform: scaleY(1);
    }
}


@media screen and (max-width:375px) {
    .main-container {
        width: 100%;
        
        padding: 5px;
    }

    .city {
        font-size: 19px;
    }
    .main{
        width: 100%;
        height: 100%;
    }
}
