@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&family=Alfa+Slab+One&family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Gabarito:wght@400..900&family=Grechen+Fuemen&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&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&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&family=Alfa+Slab+One&family=Bebas+Neue&family=Big+Shoulders+Stencil:opsz,wght@10..72,100..900&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Gabarito:wght@400..900&family=Grechen+Fuemen&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&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&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&family=Alfa+Slab+One&family=Bebas+Neue&family=Big+Shoulders+Stencil:opsz,wght@10..72,100..900&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Gabarito:wght@400..900&family=Grechen+Fuemen&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&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&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root{
    --font-family-1: "Open Sans", sans-serif;
    --font-family-2: "Big Shoulders Stencil", sans-serif;
    --font-family-3: "Bebas Neue", sans-serif;
}

*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    transition: .3s ease;
}

body{
    min-height: 100vh;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    vertical-align: top;
}

.cloud{
    background: url("./image/cloud_bg.webp") no-repeat center fixed;
    background-size: cover;
}

.clear{
    background: url("./image/clear_bg.webp") no-repeat center fixed;
    background-size: cover;
}

.drizzle{
    background: url("./image/Drizzle_bg.webp") no-repeat center fixed;
    background-size: cover;
}

.mist{
    background: url("./image/mist_bg.webp") no-repeat center fixed;
    background-size: cover;
}

.snow{
    background: url("./image/snow_bg.webp") no-repeat center fixed;
    background-size: cover;
}

.rain{
    background: url("./image/rain_bg.webp") no-repeat center fixed;
    background-size: cover;
}

.haze{
    background: url("./image/haze_bg.webp") no-repeat center fixed;
    background-size: cover;
}

.smoke{
    background: url("./image/smoke_bg.webp") no-repeat center fixed;
    background-size: cover;
}

.all{
    background: url("./image/all_bg.webp") no-repeat center fixed;
    background-size: cover;
}

.header{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 150px 20px 60px;
    font-family: var(--font-family-1);
}

.header > h2{
    font-size: 30px;
    color: #fff;
    -webkit-text-stroke: 1px #000;
}

.header > h2 > sup{
    color: red;
}

.search{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

body > .container{
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#cityname{
    padding: 10px 20px;
    border-radius: 50px;
    outline: none;
    border: none;
    background-color: #eeeeee;
    box-shadow: inset 3px 3px 7px #a7a1a1;
    border: 2px solid #000;
}

.weather{
    width: 50%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    vertical-align: top;
}

.weather_icon{
    width: 80%;
    height: 350px;
    filter: saturate(1.1);
    filter: drop-shadow(2px 5px 10px #000);
}

.temp,
.feelslike,
.city{
    position: absolute;
    font-family: var(--font-family-3);
}

.temp{
    font-size: 120px;
    left: 50%;
    top: 70px;
    font-family: var(--font-family-2);
    color: #fff;
    -webkit-text-stroke: 2px #000;
    text-shadow: 2px 5px 10px #211f1f;
}

.feelslike{
    font-size: 25px;
    left: 50%;
    top: 210px;
    color: #000;
    letter-spacing: 1px;
    text-shadow: 2px 5px 10px #fff;
}

.city{
    font-size: 38px;
    left: 50%;
    top: 240px;
    letter-spacing: 2px;
    color: #fff;
    -webkit-text-stroke: .5px #000;
    text-shadow: 2px 5px 10px #211f1f;
    font-weight: bolder;
}

.details{
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
}

.block{
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, .2);
    border: 2px solid rgba(255, 255, 255, .5);
    backdrop-filter: blur(2px);
}

.block > img{
    width: 70px;
    height: 70px;
}

.block > i{
    font-size: 40px;
}

.block > h3{
    font-size: 40px;
    color: #fff;
    -webkit-text-stroke: .5px #000;
    font-family: var(--font-family-3);
}

.block > h3> span{
    font-size: large;
    font-family: var(--font-family-1);
}

.block > p{
    font-size: larger;
    font-weight: bold;
}

.footer{
    margin-left: auto;
    margin-top: auto;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .header{
        width: 100%;
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    .header > h2{
        font-size: 22px;
        margin-right: auto;
    }

    #cityname{
        width: 220px;
    }

    .container{
        flex-direction: column;
    }

    .weather{
        width: 100%;
        height: 35vh;
        padding: 15px;
    }

    .weather_icon{
        width: 80%;
        height: 100%;
        filter: drop-shadow(2px 4px 7px #000);
        margin-bottom: 30px;
    }

    .temp{
        top: 10px;
        left: 45%;
        font-size: 80px;
        text-shadow: 2px 4px 7px #211f1f;
    }

    .feelslike{
        top: 100px;
        font-size: large;
        left: 45%;
        text-shadow: 2px 4px 7px #fff;
    }

    .city{
        top: 120px;
        left: 45%;
        font-size: 28px;
        text-shadow: 2px 4px 7px #211f1f;
    }

    .details{
        width: 100%;
        padding: 15px;
    }

    .block{
        padding: 15px;
        width: 100%;
    }

    .block > img{
        width: 40px;
        height: 40px;
    }

    .block > h3{
        font-size: 28px;
    }

    .block > p{
        font-size: medium;
    }

    .block > h3> span{
        font-size: small;
    }

    .footer > p{
        font-size: small;
    }

    .footer > h3{
        font-size: medium;
    }
}