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

body {
    background-color: #272727;
}

.card {
    background: linear-gradient(135deg, #4ca1af, #2c3e50);
    width: min(470px, 90%);
    margin: 50px auto 0;
    color: #fff;
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
    transition: 0.3s ease;
}

.search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.search input {
    border: 0;
    outline: 0;
    background-color: #ebfffc;
    color: #555;
    padding: 10px 25px;
    height: 60px;
    border-radius: 30px;
    flex: 1;
    font-size: 18px;
}

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

.search button:hover {
    transform: scale(1.06);
}

.search button img {
    width: 30px;
}

.weather-icon {
    width: 50%;
    max-width: 170px;
    margin-top: 30px;
}

.weather h1 {
    font-size: 4rem;
    font-weight: 500;
}

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

.details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 50px;
    gap: 10px;
    flex-wrap: wrap;
}

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

.col img {
    width: 40px;
    margin-right: 10px;
}

.humidity,
.wind {
    font-size: 1.5rem;
    margin-top: -6px;
}

@media (max-width: 768px) {
    .search input{
        width: 80%;
    }

    .weather h1 {
        font-size: 2rem;
    }

    .weather h2 {
        margin-top: -5px;
        font-size: 1.5rem;
    }

    .details {
        align-items: center;
    }

    .col {
        justify-content: center;
    }

    .humidity,
    .wind {
        font-size: 1.4em;
    }
}
