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

body{
    background: #222;
}

/* CARD */
.card {
     width: 90%;
     max-width: 470px;
     background: linear-gradient(135deg, #00feba, #5b548a);
     color: #fff;
     margin: 80px auto 0 ;
     border-radius: 20px;
     padding: 30px 25px;
     text-align: center;
}

/* SEARCH */
.search{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search input{
    border: 0;
    outline: 0;
    background: #ebfffc;
    color: #555;
    padding: 10px 20px;
    height: 50px;
    border-radius: 30px;
    flex: 1;
    margin-right: 10px;
    font-size: 16px;
}

.search button{
    border: 0;
    outline: 0;
    background: #ebfffc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.search button img {
    width: 14px;
}

/* WEATHER ICON */
.weather-icon{
    width: 140px;
    margin-top: 25px;
}

/* TEXT */
.weather h1{
    font-size: 60px;
    font-weight: 500;
}

.weather h2{
    font-size: 35px;
    font-weight: 400;
    margin-top: -8px;
}

/* DETAILS */
.details{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    margin-top: 40px;
}

.col{
    display: flex;
    align-items: center;
    text-align: left;
}

.col img{
    width: 35px;
    margin-right: 8px;
}

.humidity, .wind{
    font-size: 22px;
    margin-top: -5px;
}

/* HIDE */
.weather{
    display: none;
}

.error{
    text-align: left;
    margin-left: 10px;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}


@media (max-width: 480px) {
    .card {
        padding: 20px 15px;
        margin-top: 40px;
    }

    .weather h1 {
        font-size: 45px;
    }

    .weather h2 {
        font-size: 28px;
    }

    .weather-icon {
        width: 100px;
    }

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

    .col {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .weather h1 {
        font-size: 55px;
    }

    .weather h2 {
        font-size: 32px;
    }
}