
@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Varela+Round&display=swap');

*{
    margin: 0;
    padding: 0;
    font-family: "poppins", Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}
body{
    background: linear-gradient(90deg ,#080f10,#060622) ;
}
.head{
    text-align: center;
    font-size: 40px;
    font: Bold;
    color: white;
    margin-top: 30px;
    font-weight: bold;
}
.card{
    width: 90%;
    max-width: 470px;
    color: #fff;
    margin: 50px auto 0;
    padding: 40px 35px;
    border-radius: 20px;
    background: linear-gradient(135deg ,#00feba,#5b54ba) ;
    text-align: center;
}
.search{
    width: 100%;
    display: flex;
    justify-content:space-between ;
    align-items: center;
}
.search input{
    border: 0;
    outline: 0;
    flex: 1;
    width: 100%;
    margin-right: 16px;
    border-radius: 20px;
    height: 60px;
    padding: 10px 16px;
    background: #ebfffc;
    color: #555;
    font-size: 18px;
}
.search button {
    height: 60px;
    background: #ebfffc;
    width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    color: #555;
    cursor: pointer;
}
.search button img{
    height: 18px;
   
}
.weather-icon{
    width: 170px;
    margin-top: 30px;
}
.weather h1{
    font-size: 80px;
    font-weight: 500px;
}
.weather h2{
    font-size: 45px;
    font-weight: 300px; 
    margin-top: -10px;
}
.details{
    display: flex;
    align-items:center ;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 50px;
}
.col{
    display: flex;
    align-items: center;
    text-align: left;
}
.col img{
    width: 45px;
    margin-right: 10px;
}
.humidity, .wind{
    font-size: 28px;
    margin-top: -6px;
}
.error{
    text-align: left;
    margin-left: 10px;
    margin-top: 10px;
    color: white;
    font-size: 16px;
    display: none;
}
.weather{
    display: none;
}

@media (max-width: 768px) {
    .details{
        display: flex;
        flex-direction: column;
        align-items:center ;
        gap: 20px;
        justify-content: space-between;
        padding: 0 20px;
        margin-top: 25px;
    }
    .card{
        width: 90%;
        max-width: 470px;
        color: #fff;
        margin: 20px auto 10px;
        padding: 40px 35px;
        border-radius: 20px;
        background: linear-gradient(135deg ,#00feba,#5b54ba) ;
        text-align: center;
    }
    .search input{
        border: 0;
        outline: 0;
        flex: 1;
        width: 100%;
        margin-right: 16px;
        border-radius: 20px;
        height: 60px;
        padding: 10px 16px;
        background: #ebfffc;
        color: #555;
        font-size: 14px;
    }
    .head{
        text-align: center;
        font-size: 22px;
        font: Bold;
        color: white;
        margin-top: 20px;
        font-weight: bold;
    }
    .weather h1{
        font-size: 50px;
        font-weight: 500px;
    }
    .weather h2{
        font-size: 25px;
        font-weight: 300px; 
        margin-top: -10px;
    }
    .weather-icon{
        width: 120px;
        margin-top: 30px;
    }
}
.greet{
    text-align: center;
    margin-left: 10px;
    margin-top: 20px;
    color: white;
    font-size: 14px;
    display: none;
}