@media (max-width: 700px) {
    .card {
        width: 98vw;
        max-width: 100vw;
        padding: 18px 2px;
    }

    .search input {
        margin-right: 8px;
        font-size: 15px;
    }

    .weather h1 {
        font-size: 48px;
    }

    .weather h2 {
        font-size: 28px;
    }

    .details-grid {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 0;
    }

    .col-group {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 0px;
    }

    .col {
        min-width: 90px;
        max-width: 90px;
        min-height: 48px;
        max-height: 48px;
        padding: 6px 0;
        font-size: 13px;
        margin: 0 2px;
    }

    .col img {
        width: 22px;
        height: 22px;
        margin-right: 5px;
    }

    .humidity, .Wind, .pressure, .visibility, .sunrise, .sunset, .windDir {
        font-size: 12px;
    }
}

*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body{
    background-color: #222;
}

.card{
    width: 90%;
    max-width: 470px;
    background: linear-gradient(135deg, #3b3c36 , #002147);
    color: #fff;
    margin: 100px auto 0;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
}

.search{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search input{
    border: 0;
    outline: 0;
    background: #ebfffc;
    color: #555;
    padding: 10px 25px;
    height: 60px;
    border-radius: 30px;
    flex: 1;
    margin-right: 16px;
    font-size: 18px;
}

.search button{
    border: 0;
    outline: 0;
    background: #ebfffc;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.search button img{
    width: 16px;
}

.weather-icon{
    width: 170px;
    margin-top: 30px;
}

.weather h1{
    font-size: 80px;
    font-weight: 500;
}

.weather h2{
    font-size: 45px;
    font-weight: 400;
    margin-top: -10px;
}


/* New grid layout for weather details */
.details-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
    padding: 0 10px;
}

.col-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}


/* Updated col box size and icon size */
.col {
    display: flex;
    align-items: center;
    text-align: left;
    background: rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 18px 0;
    min-width: 170px;
    max-width: 170px;
    min-height: 80px;
    max-height: 80px;
    box-sizing: border-box;
    justify-content: center;
    flex: 1 1 0;
}


.col{
    display: flex;
    align-items: center;
    text-align: left;
}

.col img{
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: 14px;
}


.humidity, .Wind, .pressure, .visibility, .sunrise, .sunset, .windDir {
    font-size: 22px;
    margin-top: 2px;
    font-weight: 500;
}



