*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
a{
    text-decoration: none;
    color: #fff;
}
:root{
    --primary-color: #005A8D;
    --cold-weather: #91BCB2;
    --normal-weather: #D9C300;
    --hot-weather: #FC4309;
    --details: #708090;
}
body{
    background-color: #1E1E1E;
    height: 100vh;
    display: grid;
}
header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: var(--primary-color);
    height: 64px;
    align-items: center;
    color: #fff;
    font-size: 1rem;
    padding: 0px 73px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.logo{
    font-family: 'Francois One', sans-serif
}
.nav{
    display: flex;
    gap: 20px;
}
.nav a:hover{
    color: #CCCCCC;
    transition: .5s;
}
.container{
    display: grid;
    grid-template-columns: repeat(auto-fit , minmax(250px, 1fr));
    margin: 50px;
    gap: 100px;
    min-height: 65vh;
    max-height: fit-content;
}
.cidades__add{
    display: grid;
    width: 100px;
    height: 100px;
    background-color: var(--details);
    border-radius: 50%;
    place-items: center;
    place-self: center;
    border: 1px solid #005A8D;
}
.cidades__add p{
    font-size: 4rem;
    color: #343C44;
}
footer{
    display: flex;
    flex-direction: row;
    color: #fff;
    background-color: var(--primary-color);
    place-self: flex-end;
    height: 64px;
    align-items: center;
    font-size: .625rem;
    width: 100% ;
    justify-content: space-between;
}
footer div{
    display: flex;
    gap: 40px;
    font-size: 1.25rem;
    padding: 0px 73px;
}
footer div i:hover{
    color: #CCCCCC;
    transition: .5s;
    cursor: pointer;
}
.buscar-cidades{
    color: #fff;
    justify-content: center;
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: column;
    gap: 74px;
}
.buscar-cidades div{
    display: flex;
    flex-direction: column;
    gap: 74px;
}
.buscar-cidades h3{
    font-size: 40px;
    text-align: center;
}
.buscar-cidades input{
    width: 40vw;
    height: 3.7vh;
    background-color: var(--details);
    border-radius: 20px;
    border: 0px;
    padding: 10px;
    color: #fff;
}
input:focus{
    outline: 0px;
}
::-webkit-input-placeholder{
    color: #fff;
}
#info-cidade{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
    color: #fff;
}
.principais{
    display: flex;
    flex-direction: column;
    gap: 11px;
}
#temp-cidade{
    font-size: 6rem;
    font-weight: 900;
}
#nome-cidade{
    font-size: 2.4rem;
    font-weight: 900;
}
#desc-cidade{
    font-size: 2rem;
    font-weight: 600;
}
.detalhes{
    display: flex;
    flex-direction: row;
    gap: 80px;
}
.detalhes div{
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 250px;
}
.detalhes div p{
    font-size: 1.25rem;
    font-weight: 600
}
.detalhes div h3{
    font-size: 2rem;
    font-weight: 900;
}
#favorito{
    cursor: pointer;
}
#add-favorito{
    cursor: pointer;
    filter: invert(100%);
}
#desc-cidade, #umidade{
    color: var(--details);
}

.visible{
    display: block;
}
.invisible{
    display: none;
}
.fa-bars{
    display: none;
}
.nav-bars{
    display: none;
}
@media(max-width: 820px){
    .buscar-cidades div input{
        width: 500px;
    }
    .detalhes{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    #info-cidade{
        margin: 30px;
    }
}
@media(max-width: 500px){
    .buscar-cidades div input{
        width: 300px;
    }
    .fa-bars{
        display: block;
    }
    header{
        padding: 0px 15px;
    }
    .nav{
        display: none;
    }
    .nav-bars{
        display: none;
        flex-direction: column;
        position: absolute;
        left: 70vw;
        top: 6vh;
        font-size: 1rem;
        background-color: dodgerblue;
        padding: 2px;
    }
    .nav-bars a{
        font-size: 0.9rem;
    }
    footer{
        justify-content: center;
    }
    footer div{
        padding: 20px;
    }
    footer div{
        display: none;
    }
    .container{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 20px 0px;
    }
}