@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

body {
    background-image: url(images/Desktop\ -\ 1.svg);
    background-size: cover;
    width: 100%;
    overflow: hidden;
    height: 100vh;
}

.card {
    width: 90%;
    max-width: 470px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(1, 1, 1, 0.2) 107.33%);
    color: #fff;
    margin: 60px auto 0;
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;

}

.search {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search input {
    border: 0;
    outline: 0;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.2);
    color: #ebfffc;
    padding: 10px 25px;
    height: 60px;
    border-radius: 30px;
    flex: 1;
    margin-right: 16px;
    font-size: 18px;
}

.search button {
    border: 0;
    outline: 0;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;

}

.search button img {
    width: 16px;
    padding-top: 4px;
}

.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: 10px;
}

.humidity,
.wind {
    font-size: 28px;
}

.weather {
    display: none;
}

.error {
    text-align: left;
    margin-left: 10px;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}


/* Media Query for Mobile Devices */
@media only screen and (max-width: 600px) {
    body {
        background-image: url(images/Mobile.svg);
        background-size: cover;
    }

    .card {
        margin-top: 50px;
        padding: 30px 25px;
    }

    .search {
        display: flex;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .search input {
        margin-bottom: 0;
        flex: 1;
        font-size: 16px;
        height: 36px;
    }

    .search button {
        width: 36px;
        height: 36px;
        padding: 6px 10px;
    }

    .search button img {
        padding: 4px 2px 0 0 ;
    }

    .weather h1 {
        font-size: 60px;
    }

    .weather h2 {
        font-size: 35px;
    }

    .details {
        flex-direction: row;
        padding: 0 10px 0 10px;
    }

    .col {
        margin-bottom: 10px;
    }

    .col img {
        width: 24px;
    }

    .humidity,
    .wind {
        font-size: 18px;
    }
}

@media only screen and (max-width: 400px) {
    body {
        background-image: url(images/Mobile.svg);
        background-size: cover;
    }

    .card {
        margin-top: 90px;
        padding: 20px;

    }

    .search {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .search input {
        font-size: 14px;
        height: 30px;
        width: 200px;

    }

    .search button {
        width: 30px;
        height: 30px;
        padding: 4px 8px;
    }

    .search button img {
        padding: 4px 2px 0 0 ;
    }

    .weather h1 {
        font-size: 50px;
    }

    .weather h2 {
        font-size: 30px;
    }

    .details {
        padding: 0px 0px;


        .col img {
            width: 20px;
        }

        .humidity,
        .wind {
            font-size: 16px;
        }
    }
}