*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
body{
    background-color: #222;
    display: flex;
    justify-content: center;  /* horizontal centering */
    align-items: center;      /* vertical centering */
    min-height: 75vh;
}

.card{
    width: 90%;
    max-width: 470px;
    background: linear-gradient(135deg, #00feba, #5b548a);
    color: #fff;
    margin: 100px auto 0;
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
}
.title{
    margin: 20px 0;
    padding-bottom: 10px;
    font-size: 70px;
    font-style: italic;
    color: #4e2612ec;
    text-decoration: underline ;
    text-decoration-color: #bd7f04;
}

.search{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.search input{
    width: 80%;
    padding: 10px;
    border: none;
    border-radius: 20px;
    outline: none;
    background-color: #fff;
    flex: 1;
    margin-right: 20px;
    font-size: 20px;
    text-align: center;
}
.search button{
    border: none;
    outline: none;
    border-radius: 20px;
    padding: 10px;
    width: 60px;
    height: 50px;
    cursor: pointer;
    transition: all 0.75s ease-in-out;
}
.search button img{
    width: 25px;
}

.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;
}

.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: 30px; /*dist between chotu: img&text*/
}
.humidity, .wind{
    font-size: 28px;
    margin-top: -6px;
}

.weather{ /*shuru me ille*/
    display: none;
}

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

@media(max-width: 700px){    
    .card {
        margin: 50px auto 0;
        padding: 30px 20px;
    }

    .title {
        font-size: 40px;
    }

    .search {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search input {
        width: 100%;
        margin: 0;
        font-size: 16px;
        padding: 8px;
        text-align: center;
    }

    .search button {
        width: 100%;
        height: 45px;
    }

    .weather-icon {
        width: 120px;
        margin-top: 20px;
    }

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

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

    .details {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
        padding: 0;
    }

    .col {
        justify-content: center;
        text-align: center;
    }

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