@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;
    list-style: none;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}

html{
    overflow: hidden;
}

body{
    width: 100vw;
    height: 100vh;
    display: grid;
    place-content: center;
    background: black url(img/background-weather_2.jpg) fixed center top /cover;
    overflow: hidden;
}

section{
    width: 500px;
    font-size: 10px;
    background-color: #000000;
    opacity: 0.9;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    border-radius: 20px;
    font: normal 1em "Poppins",sans-serif;
    -webkit-box-shadow:0px 0px 105px 45px #210124;
    -moz-box-shadow: 0px 0px 105px 45px #210124;
    box-shadow: 0px 0px 105px 45px #210124;
}

.localDiv{
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
}

.localDiv input{
    width: 85%;
    height: 100%;
    border-radius: 20px 0 0 20px;
    padding: 10px;
    font-size: 1.2em;
}

.localDiv button{
    width: 15%;
    height: 100%;
    padding: 10px;
    background-color: #210124;
    display: grid;
    place-content: center;
    border-radius: 0 20px 20px 0;
}

.localDiv img{
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
}

section>button{
    width: 100%;
    background-color: #210124;
    padding: 10px;
    font: normal 1em "Poppins",sans-serif;
    color: #fff;
    border-radius: 20px;
}

section h2{
    font-size: 2em;
}

section h2::first-letter{
    text-transform: uppercase;
}

section p{
    font-size: 1.2em;
    display: flex;
}

.temp{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

span{
    display: block;
}

span#weatherDesc::first-letter{
    text-transform: uppercase;
}

p>span{
    margin-left: 5px;
}

footer{
    position: absolute;
    bottom: 0;
    width: 100vw;
    background-color: black;
    padding: 5px;
}

footer p{
    color: white;
    font: bold 10px "Poppins",sans-serif;
    text-align: center;
}

@media(max-width:480px){
    body{
        display: block;
        width: 100vw;
        height: 100vh;
        background: black url(img/background-weather_2.jpg) fixed center top /cover;
        overflow: hidden;
    }
    
    section{
        width: 90vw;
        margin: 90px auto;
    }


    .localDiv input{
        width: 80%;
        height: 100%;
        border-radius: 20px 0 0 20px;
        padding: 10px;
        font-size: 1.2em;
    }
    
    .localDiv button{
        width: 20%;
    }
    
    .localDiv img{
        width: 90%;
        aspect-ratio: 1/1;
        object-fit: contain;
    }

    footer{
        bottom: 0;
    }
}