html,
body {
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #000;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================================
   CESIUM
========================================= */

#cesiumContainer {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;
}


/* =========================================
   PESQUISA
========================================= */

#buscaArea {
    position: absolute;

    top: 20px;
    left: 50%;

    transform:
        translateX(-50%);

    z-index: 999999;

    width:
        min(
            650px,
            calc(100% - 40px)
        );
}


#buscaBox {
    display: flex;

    gap: 8px;
}


#campoBusca {
    flex: 1;

    padding:
        14px
        16px;

    border:
        1px solid
        rgba(255, 255, 255, 0.20);

    border-radius: 12px;

    background:
        rgba(10, 18, 30, 0.94);

    color: white;

    outline: none;

    font-size: 15px;

    box-shadow:
        0
        8px
        30px
        rgba(0, 0, 0, 0.40);
}


#campoBusca::placeholder {
    color: #999;
}


#botaoBusca {
    padding:
        14px
        20px;

    border: none;

    border-radius: 12px;

    cursor: pointer;

    background: white;

    color: #111;

    font-weight: bold;
}


/* =========================================
   SUGESTÕES
========================================= */

#sugestoes {
    display: none;

    margin-top: 8px;

    overflow: hidden;

    background:
        rgba(10, 18, 30, 0.97);

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 12px;

    box-shadow:
        0
        12px
        35px
        rgba(0, 0, 0, 0.50);
}


.sugestao-item {
    padding:
        13px
        15px;

    color: white;

    cursor: pointer;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);
}


.sugestao-item:last-child {
    border-bottom: none;
}


.sugestao-item:hover {
    background:
        rgba(255, 255, 255, 0.10);
}


.sugestao-titulo {
    font-size: 14px;

    font-weight: bold;

    margin-bottom: 4px;
}


.sugestao-descricao {
    color: #aaa;

    font-size: 12px;
}


/* =========================================
   BOTÕES
========================================= */

#camadasBox {
    position: absolute;

    top: 20px;
    right: 20px;

    z-index: 999999;

    display: flex;

    gap: 6px;

    padding: 6px;

    background:
        rgba(10, 18, 30, 0.92);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 12px;

    box-shadow:
        0
        8px
        30px
        rgba(0, 0, 0, 0.35);
}


#camadasBox button {
    padding:
        10px
        14px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    background: transparent;

    color: #ccc;

    font-weight: bold;
}


#camadasBox button:hover {
    background:
        rgba(255, 255, 255, 0.08);
}


#camadasBox button.camada-ativa,
#btnTerremotos.terremoto-ativo,
#btnISS.iss-ativo {
    background: white;

    color: #111;
}


/* =========================================
   PAINEL
========================================= */

#painel {
    position: absolute;

    top: 20px;
    left: 20px;

    z-index: 99999;

    width: 370px;

    max-height:
        calc(100vh - 80px);

    overflow-y: auto;

    padding: 20px;

    background:
        rgba(10, 18, 30, 0.94);

    color: white;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 16px;

    box-shadow:
        0
        10px
        35px
        rgba(0, 0, 0, 0.50);
}


#painel::-webkit-scrollbar {
    width: 6px;
}


#painel::-webkit-scrollbar-thumb {
    background:
        rgba(255, 255, 255, 0.25);

    border-radius: 10px;
}


#painel h2 {
    margin:
        0
        0
        12px;
}


#mensagem {
    color: #ccc;

    font-size: 14px;

    line-height: 1.5;
}


#resultado {
    margin-top: 15px;
}


/* =========================================
   DADOS
========================================= */

.linha {
    padding:
        10px
        0;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.10);
}


.rotulo {
    margin-bottom: 4px;

    color: #999;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


.valor {
    color: white;

    font-size: 14px;
}


.secao-titulo,
.clima-titulo {
    margin-top: 18px;

    padding-top: 18px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.15);

    font-size: 17px;

    font-weight: bold;
}


.dados-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 8px;

    margin-top: 10px;
}


.dados-card {
    padding: 12px;

    background:
        rgba(255, 255, 255, 0.06);

    border-radius: 11px;
}


.dados-card-grande {
    grid-column:
        1 / -1;
}


.numero-destaque {
    margin-top: 5px;

    font-size: 21px;

    font-weight: bold;
}


.fonte {
    margin-top: 8px;

    color: #888;

    font-size: 10px;
}


.carregando {
    color: #aaa;

    font-size: 12px;
}


/* =========================================
   HORA
========================================= */

.hora-local-box {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 10px;

    padding: 14px;

    background:
        rgba(255, 255, 255, 0.06);

    border-radius: 12px;
}


.hora-local-icone {
    font-size: 32px;
}


.hora-local {
    font-size: 28px;

    font-weight: bold;
}


.fuso-local {
    color: #aaa;

    font-size: 11px;

    margin-top: 4px;
}


/* =========================================
   PAÍS
========================================= */

.pais-cabecalho {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 10px;
}


.pais-bandeira {
    font-size: 38px;
}


.pais-nome {
    font-size: 18px;

    font-weight: bold;
}


/* =========================================
   CLIMA
========================================= */

.clima-principal {
    display: flex;

    align-items: center;

    gap: 14px;

    margin:
        14px
        0;
}


.clima-icone {
    font-size: 44px;
}


.clima-temperatura {
    font-size: 34px;

    font-weight: bold;
}


.clima-condicao {
    color: #ccc;

    font-size: 13px;
}


.clima-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 8px;
}


.clima-card {
    padding: 10px;

    background:
        rgba(255, 255, 255, 0.06);

    border-radius: 10px;
}


/* =========================================
   PREVISÃO
========================================= */

.previsao-titulo {
    margin:
        20px
        0
        10px;

    font-size: 15px;

    font-weight: bold;
}


.horas-container {
    display: flex;

    gap: 8px;

    overflow-x: auto;

    padding-bottom: 8px;
}


.hora-card {
    min-width: 70px;

    padding:
        10px
        8px;

    text-align: center;

    background:
        rgba(255, 255, 255, 0.06);

    border-radius: 10px;
}


.hora {
    color: #aaa;

    font-size: 12px;
}


.hora-icone {
    margin:
        7px
        0;

    font-size: 24px;
}


.hora-temp {
    font-size: 14px;

    font-weight: bold;
}


.hora-chuva {
    margin-top: 5px;

    color: #8ccfff;

    font-size: 11px;
}


.dia-card {
    display: grid;

    grid-template-columns:
        80px
        40px
        1fr
        55px;

    align-items: center;

    gap: 6px;

    padding:
        11px
        0;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.09);
}


.dia-nome {
    font-size: 13px;

    font-weight: bold;
}


.dia-icone {
    font-size: 22px;

    text-align: center;
}


.dia-temperaturas {
    font-size: 13px;
}


.temp-min {
    color: #aaa;
}


.dia-chuva {
    color: #8ccfff;

    font-size: 11px;

    text-align: right;
}


/* =========================================
   TERREMOTOS
========================================= */

.terremoto-magnitude {
    font-size: 34px;

    font-weight: bold;
}


.terremoto-aviso {
    margin-top: 10px;

    padding: 10px;

    background:
        rgba(255, 255, 255, 0.06);

    border-radius: 10px;

    color: #aaa;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================
   ISS
========================================= */

.iss-destaque {
    font-size: 30px;

    font-weight: bold;
}


.iss-status {
    display: inline-block;

    margin-top: 8px;

    padding:
        5px
        9px;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.08);

    font-size: 11px;
}


.iss-aviso {
    margin-top: 10px;

    padding: 10px;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.06);

    color: #aaa;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================
   MOBILE
========================================= */

@media
(max-width: 800px) {

    #buscaArea {
        top: 10px;

        width:
            calc(100% - 20px);
    }


    #painel {
        top: 75px;

        left: 10px;
        right: 10px;

        width: auto;

        max-height: 58vh;
    }


    #camadasBox {
        top: auto;

        bottom: 20px;
        right: 10px;

        flex-wrap: wrap;

        justify-content:
            flex-end;

        max-width:
            calc(100% - 30px);
    }

}