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

* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

body {
    background: #222;
}

.card {
    margin: 100px auto;
    padding: 40px 35px;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 470px;
    background: linear-gradient(135deg, #00feba, #5b548a);
    color: #fff;
    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;
    flex: 1;
    border-radius: 40px;
    padding: 10px 25px;
    height: 60px;
    margin-right: 16px;
    font-size: 18px;
}

.search button {
    /* display: flex;
    align-items: center;
    justify-content: center; */
    border: 0;
    outline: 0;
    background-color: #ebfffc;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
}

.search button img {
    width: 16px;
}

.weather-icone {
    width: 170px;
    margin-top: 60px;
}

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

.weather {
    display: none;
}

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

@media (max-width: 480px) {
    body {
        display: flex;
        justify-content: center;
    }

    .card {
        margin: 100px 20px;
        width: 90%;
        padding: 20px 17.5px;
    }

    .search input {
        padding: 5px 12.5px;
        font-size: 16px;
        height: 40px;
    }

    .weather-icone {
        width: 140px;
        margin-top: 40px;
    }

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

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


}