@import url('https://fonts.googleapis.com/css2?family=Karla&family=Moo+Lah+Lah&family=Poppins:wght@200&family=Roboto:wght@100;300;900&display=swap');

*{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
    font-family: 'Karla', sans-serif;
    color: rgb(56, 56, 56);

}
body{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(
        to top right,
        rgb(38, 208, 238),
        rgb(32, 147, 255));
}

.container{
    background-color: white;
    /* width: 30%; */
    border-radius: 5px;
    box-shadow: rgb(8, 62, 112) 2px 2px 23px ;
}

header{
    display: flex;
    padding: 20px;
    border-bottom: 2px solid #dfdfdf;
}

header h1{
    font-size: 23px;
    font-weight: bold;
    color:#00ccf0;
    margin:0px 10px ;
}

header .back{
    display: none;
    margin-right: 10px;
    cursor: pointer;
}

.container.active header .back{
    display:block;
}

.container.active .input-sec{
    display:none;
}

.msg{
    width: 100%;
    display: none;
    text-align: center;
    padding: 12px 0px;
    margin: 10px 0px;
    border-radius: 5px;
    border: 1px solid rgb(32, 147, 255);
}

.msg.error{
    display: block;
    color: rgb(133, 2, 2);
    background-color: rgb(255, 197, 197);
    border: none;
}
.msg.pending{
    display: block;
    color: rgb(17, 133, 2);
    background-color: rgb(207, 255, 197);
    border: none;
}

.input-sec{
    margin: 30px;
    /* display: none; */
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}
.content{
    width: 250px;
}
.saparator{
    height: 1px;
    width: 100%;
    margin: 20px 0px;
    background-color: #dfdfdf;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saparator::before{
    content: "or";
    background-color: white;
    width: 50px;
    text-align: center;
}
.searchLoc, .searchbtn, #input-location{
    width: 100%;
    text-align: center;
    font-size: 15px;
    height: 40px;
    border-radius: 5px;
}

.content:where(input, button){
    border: none;
    outline: none;
}
#input-location{
    border: 1px solid rgb(209, 209, 209);
    margin: 10px 0px;
}
#input-location:is(:focus-visible, :valid){
    border: 2px solid rgb(56, 164, 253);
}

.searchLoc, .searchbtn{
    color: white;
    border: none;
    background: linear-gradient(
        to top right,
        rgb(38, 208, 238),
        rgb(32, 147, 255));
    cursor: pointer;
    font-size: 18px;
}

.weather-page{
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 30px;
}

.container.active .weather-page{
    display:flex;
}
.weather-page>img{
    width: 120px;
    margin-bottom: 20px;
}


.temp{
    width: 100%;
    font-size: 72px;
    font-weight: bold;
    text-align: center;
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly; */

}

.weatherCondition , .location-info{
    font-size: 18px;
}
.location-info{
    display: flex;
    margin: 20px 0px;
    justify-content: center;
}

.location-info img{
    margin: 0px 10px;
}

.more-info{
    width: 100%;
    display: flex;
    align-items: center;
    /* padding-top: 10px; */
    /* justify-content: space-around; */
    border-top: 1px solid #dfdfdf;
}

.details .num, .unit{
    font-size: 18px ;
    font-weight: bold;
}

.feelsLike, .humidity{
    display: flex;
    justify-content: center     ;
    width: 50%;
    padding: 20px 30px 0px;
}

.humidity{
    border-left: 1px solid #dfdfdf;
}

/*Making responsive */
@media (max-width:425px) {
    html{
        background-color: white;
    }
    body{
        display: block;
        background-color: white;
    }
    .container{
        border-radius: 0px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        box-shadow: none;
    }
    header{
        position: absolute;
        width: 100%;
        top: 0%;
    }
    .content{
        margin: auto;
    }
    .weather-page{
        height: 100%;
        margin: 0px;
    }
    .weather-page>img{
        width: 150px;
    }
    .more-info{
        position: fixed;
        bottom: 0px;
    }
    .feelsLike, .humidity{
        padding: 20px 0px;
    }
    
}