body {
    background-image: url(img/fundo/fundo.jpg);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: Arial, Helvetica, sans-serif;
}

section {
    display: flex;
    flex-flow: row wrap;
}

/*#####################
 Erro
#######################*/

#erro {
    display: none;
    background: white;
}

#erro>p {
    border: black 2pt solid;
    text-shadow: 0px 1px 0px red;
    text-align: center;
    font-size: 1.5rem;
    line-height: 2.5rem;
    margin: 1rem auto;
}

/*#####################
 Painel principal
#######################*/

#previsaoMomento {
    font-size: 1rem;
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-evenly;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
}

#divMomento-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem;
}

#divMomento-principal>#cidade {
    padding: 0 0.5rem;
    font-size: 2rem;
    text-shadow: 2px 2px 2px black;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    text-decoration: none;
    color: white;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-transition: bbackground-color 200ms ease-in, box-shadow 200ms ease-in;
    -moz-transition: background-color 200ms ease-in, box-shadow 200ms ease-in;
    transition: background-color 200ms ease-in, box-shadow 200ms ease-in;
}

#divMomento-principal>#cidade:hover {
    background-color: rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 1px 1px 5x #000;
    -webkit-box-shadow: 1px 1px 5px #000;
    box-shadow: 1px 1px 5px #000;
}

#divMomento-princ-imagem {
    display: flex;
    flex-direction: row wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    margin-left: 1rem;
}

#divMomento-princ-detalhes {
    min-width: 8rem;
    text-align: center;
    margin-left: 0.7rem;
}

#divMomento-princ-detalhes #temperatureMomento {
    font-size: 4.5rem;
    margin: 0;
    text-shadow: 2px 2px 2px black;
}

#divMomento-princ-detalhes #condition {
    font-size: 1.5rem;
    text-shadow: 2px 2px 2px black;
    word-wrap: break-word;
    margin: 0;
}

/*#####################
 Painel principal - Detalhes
#######################*/

#divMomento-detalhes {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

#divMomento-detalhes #date {
    margin: 0;
}

#divMomento-det-detalhes {
    display: flex;
    flex-direction: row nowrap;
    margin: 0.2rem;
}

#divMomento-det-descricao {
    text-align: right;
}

#divMomento-det-descricao, #divMomento-det-valor {
    margin: 0.2rem;
    min-width: 6rem;
}

#divMomento-det-valor {
    font-weight: bold;
}

/*#####################
 Painel principal - Dia
#######################*/

#divMomentoDia {
    display: flex;
    flex-flow: column;
    align-items: center;
    margin: 1rem 0;
}

#divMomentoDia #divMomentoDiaImagens {
    display: flex;
    flex-flow: row nowrap;
}

#divMomentoDia #divMomentoDiaImagens div {
    text-align: center;
    max-width: 10rem;
}

#divMomentoDia #divMomentoDiaImagens div p, #phrase-reduced {
    margin: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

/*#####################
 Previsão 10 dias
#######################*/

#previsao5Dias {
    margin: 0.5rem auto;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 1rem;
    padding: 0.5rem;
}

#previsao5Dias header {
    border-bottom: white 1pt solid;
    padding: 0.3rem 0 0.2rem 0;
}

#previsao5Dias table {
    border-collapse: collapse;
    vertical-align: middle;
    text-align: center;
}

#previsao5Dias table thead tr {
    font-size: 0.8rem;
    line-height: 0.5rem;
}

/* #previsao5Dias table thead tr:first-child {
    border-bottom: white 1pt dotted;
} */

/* #previsao5Dias table thead tr th:last-child {
    border-bottom: white 1pt solid;
} */

/* #previsao5Dias table thead tr:first-child>th {
    border-bottom: white 1pt dotted;
} */

#previsao5Dias table thead tr:last-child {
    border-bottom: white 1pt solid;
}

#previsao5Dias table tbody tr {
    border-bottom: white 1pt dotted;
    font-size: 0.8rem;
}

#previsao5Dias table thead tr th {
    padding: 0.4rem 0;
}

#previsao5Dias table tbody tr td {
    padding: 0.5rem 1vw 0 1vw;
}

#previsao5Dias table tbody tr td:first-child>p {
    margin: 0.3rem;
}

#previsao5Dias table tbody tr td:nth-child(2) {
    max-width: 20rem;
    /* margin: 0; */
}

#previsao5Dias table tbody tr td:nth-child(2)>p {
    margin: 0.3rem;
}

.icon-day {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*#####################
 Modal Cidade/Estado
#######################*/

.modalDialog {
    position: fixed;
    font-family: Arial, Helvetica, sans-serif;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: transparent 2rem solid;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
    opacity: 0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
}

.modalDialog:target {
    opacity: 1;
    pointer-events: auto;
}

.modalDialog>div {
    text-align: center;
    max-width: 20rem;
    position: relative;
    margin: 10% auto;
    padding: 5px 20px 13px 20px;
    border-radius: 10px;
    background: -moz-linear-gradient(#fff, #999);
    background: -webkit-linear-gradient(#fff, #999);
    background: -o-linear-gradient(#fff, #999);
    background-image: linear-gradient(#fff, #999);
}

.modalDialog>div>h2 {
    margin: 0.5rem;
    font-size: 1.4rem;
}

.modalDialog>div>p {
    margin: 1.2rem 0 0.5rem 0;
    font-size: 1rem;
}

.modalDialog>div>#localidade {
    width: 100%;
    height: 1.6rem;
}

.modalDialog>div>#btnLocalidade {
    margin: 1rem 0 0.5rem 0;
    width: 60%;
    line-height: 1.8rem;
    font-size: 1.1rem;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-transition: background-color 200ms ease-in;
    -moz-transition: background-color 200ms ease-in;
    transition: background-color 200ms ease-in;
}

.modalDialog>div>#btnLocalidade:hover {
    background-color: burlywood;
}

/*#####################
 Modal Cidade/Estado - Botão fechar
#######################*/

.fechar {
    background: #606061;
    color: #FFFFFF;
    line-height: 25px;
    position: absolute;
    right: -12px;
    text-align: center;
    top: -10px;
    width: 24px;
    text-decoration: none;
    font-weight: bold;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    -moz-box-shadow: 1px 1px 5x #000;
    -webkit-box-shadow: 1px 1px 5px #000;
    box-shadow: 1px 1px 5px #000;
    -webkit-transition: background-color 200ms ease-in;
    -moz-transition: background-color 200ms ease-in;
    transition: background-color 200ms ease-in;
}

.fechar:hover {
    background: burlywood;
    color: black;
}