* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'popins', 'sans-serif';
}

body {
    background-color: #222;
}

.card {
    width: 90%;
    max-width: 450px;
    background: linear-gradient(135deg, #00feba, #5b548a);
    color: #fff;
    margin: 50px auto 0;
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
}

.search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search input {
    border: 0;
    outline: 0;
    background-color: #ebfffc;
    color: #555;
    padding: 10px 25px;
    height: 50px;
    border-radius: 30px;
    flex: 1;
    margin-right: 15px;
    font-size: 20px;

}

.search button {
    border: 0;
    outline: 0;
    background-color: #ebfffc;
    width: 45px;
    height: 45px;
    border-radius: 50%; /* This makes it a perfect circle */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search button img{
    width: 15px;
}


.weather-icon{
    width: 150px;
    margin-top: 30px;
}

.weather h1{
    font-size: 80px;
    font-weight: 400px;
}
.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: 50px;
    margin-right: 10px;
}


.humidity,.wind{
    font-size: 20px;
    margin-top: -6px;
    margin-left: 5px;
}
/* 
.weather{
    display: none;
} */




/* For tablets and medium devices */
@media (max-width: 768px) {
    .card {
        padding: 30px 25px;
        max-width: 90%;
    }

    .weather h1 {
        font-size: 60px;
    }

    .weather h2 {
        font-size: 35px;
    }

    .search input {
        font-size: 16px;
        padding: 8px 20px;
    }

    .search button {
        width: 50px;
        height: 50px;
    }

    .details {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 320px) {
    .card {
        width: 98%;
        padding: 15px 10px;
        margin: 15px auto;
        border-radius: 15px;
    }

    .search {
        flex-direction: column;
        gap: 8px;
    }

    .search input {
        width: 100%;
        font-size: 14px;
        padding: 8px 12px;
        height: 40px;
        border-radius: 20px;
        margin-right: 0;
    }

    .search button {
        width: 40px;
        height: 40px;
    }

    .search button img {
        width: 12px;
    }

    .weather-icon {
        width: 80px;
        margin-top: 15px;
    }

    .weather h1 {
        font-size: 38px;
    }

    .weather h2 {
        font-size: 22px;
    }

    .details {
        flex-direction: column;
        gap: 15px;
        padding: 0;
        margin-top: 25px;
    }

    .col img {
        width: 30px;
    }

    .humidity, .wind {
        font-size: 14px;
    }
}

