@charset "UTF-8";

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    border-color: var(--cor-azulPrimaria);
}

:root {
    --cor-azulPrimaria: #1c274c;
    --cor-azulSecundaria: #1c274cce;
    --cor-azulTerciaria: #c0cad6;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/*Header------------------------------------------*/
header {
    display: flex;
    justify-content: space-around;
    align-items: center;

    background-image: linear-gradient(to right, #ffffff91, var(--cor-azulPrimaria));
    color: var(--cor-azulPrimaria);
    height: 90px;
}

/*Header Logo--------------------------------------*/
.logo {
    display: flex;
    align-items: center;
}

.logo img {height: 90px;}

header > div > h2 {
    font-style: italic;
    text-decoration: underline;
}

/*Header Menu-------------------------------------*/

.menu input {
    margin-left: 5px;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid white;
    color: white;
    cursor: pointer;
    background-color: var(--cor-azulSecundaria);
}

.menu input:hover {
    border: 2px solid;
    color: var(--cor-azulPrimaria);
    background-color: white;
    transition-duration: .5s;
}

.queryMenu img {
    display: none;
    transition-duration: .5s;
}

/*Main------------------------------------------*/
main {
    display: flex;
    flex: 1 0 470px;
    color: var(--cor-azulPrimaria);
}

/*Main map---------------------------------------*/
.map {
    width: 60%;
    transition: width 2s ease;
}

.mapReduce {
    width: 0%;
    transition: width 2s ease;
}

iframe {
    width: 100%; 
    height: 100%;
}

/*Main states-----------------------------------*/
.states {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border-radius: 5px;
    width: 40%;
    border-left: 1px solid;
    border-bottom: 1px solid;
}

/*Main states input-------------------------------------*/
.inputSearch {
    display: flex;
    border: 1px solid;
    margin-bottom: 40px;
    box-shadow: 1px 1px 1px #00000080;
    overflow: hidden;
    border-radius: 5px;
    width: 265px;
    height: 37px;
}

.inputSearch input {
    height: 35px;
    border: 0;
    outline: 0;
} 

input#search{
    width: 180px;
    margin-left: 3px;
    font-size: medium;
}

input#btnSearch {
    width: 80px;
    float: right;
    cursor: pointer;
    background-color: var(--cor-azulTerciaria);
}

/*Main states table--------------------------------*/
#table {
    border: 1px solid;
    height: 350px;
    width: 270px;
    overflow-y: auto;
}

table.forecast {
    width: 250px;
    text-align: center;
    border-collapse: collapse; 
}

table.forecast td {
    border: 1px solid;
    width: 150px;
    height: 50px;
}

table.forecast td.width {width: 200px;}
table.forecast td img {width: 40px;}
#forecast {text-transform: capitalize;}

/*Footer--------------------------------------------*/
footer {
    display: flex;
    justify-content: flex-end;
    column-gap: 20px;

    background-image: linear-gradient(to right, #ffffff91, var(--cor-azulPrimaria));
    height: 60px;
    padding: 0px 10px;
}

footer > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border: 2px solid white;
    border-radius: 10px;
    width: 120px;
    color: white;
}

footer > div p {padding: 3px;}

@media screen and (max-width: 768px) {
    main {
        min-height: 100vh;
        overflow: scroll;
        flex-wrap: wrap;
    }

    .map {
        width: 100%;
        height: 100%;
    }

    .states {
        margin: auto; 
        border: 0px;
    }

    #table{height: auto;}

    input#automatic, div.searchAutomatic {display: none;}
}

@media screen and (max-width: 600px) {
    .menu {display: none;}

    .queryMenu img {
        display: inline;
        height: 35px;
        background-color: #ffffff80;
        border-radius: 10px;
    }

    .menu input {width: 120px;}

    .actionQueryMenu {
        transform: rotate(-90deg);
        transition-duration: .5s;
    }

    .actionMenu {
        display: flex;
        flex-direction: column;

        margin-left: -100px;
        width: 128px;
        border-radius: 5px;
        position: absolute; 
    }
}