@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap');

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

body{
    background-color: #222;
    padding: 5px;
}

.card{
    max-width: 470px;
    width: 90%;
    margin: 100px auto 0;
    padding: 40px 35px;
    border-radius: 20px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #0066fe, #5b548a);
}

.search{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search input{
    border: none;
    outline: none;
    background: #ebfffc;
    width: 100%;
    color: #555;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 18px;
}

.search input:hover{
    scale: 1.02;
}

.search input::placeholder{
    color: #555;
}

.search button{
    
    border: none;
    outline: none;
    border-radius: 50%;
    font-size: 20px;
    padding:13px;
    margin-left: 7px;
    color: #555;
    background: #ebfffc;
    cursor: pointer;
}

.search button:hover{
    scale: 1.07;
}

.weather{
    display: none;
}

.weather-icon{
    margin-top: 30px;
    width: 170px;
}

.weather h1{
    font-size: 80px;
    font-weight: 500;
}
.weather h2{
    font-size: 45px;
    font-weight: 400;
    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: 40px;
    margin-right: 10px;
}

.humidity, .wind{
    font-size: 28px;
    margin-top: -6px;
}

.error{
    margin-top: 40px;
    font-size: 17px;
    display: none;
}
@media (max-width:480px){
    .card{
        margin-top: 60px;
    }
    .details{
        margin-top: 70px;
    }
    .weather-icon{
        margin-top: 30px;
        width: 140px;
    }
    
    .weather h1{
        font-size: 50px;
        font-weight: 500;
    }
    .weather h2{
        font-size: 30px;
        font-weight: 400;
        margin-top: -10px;
    }
    .humidity, .wind{
        font-size: 20px;
        margin-top: 6px;
        text-align: center;

    }
    .col{
        display: block;
        text-align: center;
    }
    .col img{
        width: 35px;
        margin-right: 0px;
    }

    .search input{
        padding: 8px 0px 8px 15px;
        border-radius: 30px;
        font-size: 15px;
    }

    .search button{
        border-radius: 50%;
        font-size: 16px;
        padding:12px;
        margin-left: 5px;
        color: #555;
        background: #ebfffc;
    }
}

@media (max-width: 350px){
    .search{
        flex-direction: column;
    }

    .search button{
        margin-top: 10px;
    }


    .weather-icon{
        margin-top: 20px;
        width: 120px;
    }
    
    .weather h1{
        font-size: 40px;
    }
    .weather h2{
        font-size: 25px;
    }

    .details{
        flex-direction: column;
        margin-top: 20px;
    }

    .col{

        margin-bottom: 20px;
    }
}