

body {
    font-family: 'Open Sans', Arial, sans-serif;
}

 /* Estilo do botão flutuante */
 #botaoFlutuante {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 130px;
    height: auto;
    cursor: pointer;
    z-index: 9999; /* Garante que o botão fique acima de todos os elementos */
}

/* Estilo da imagem dentro do botão */
#botaoFlutuante img {
    width: 100%;
    height: auto;
    border-radius: 5px; /* Opção para bordas arredondadas */
}
/* Tooltip Styling */
/* General Layout */
.section {
    margin: 20px;
    font-family: 'Open Sans', Arial, sans-serif;
    margin-left: 20%;
    margin-right: 20%;
}
.h1 {
    text-align: center;
    font-size: 3rem;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight:700;
}

.h2{
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight:500;
}

.logo{
    width:250px; 
    text-align:center; 
    margin: 0; 
    line-height: 0; 
    padding-top: 32px;
    height: auto;
}

#titulo-estado {
    font-size: 1.1rem;
    padding-top: 30px;
    display: none;
    opacity: 0;
}

.detalhe-condado{
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Open Sans', Arial, sans-serif;
padding-top: 30px;
padding-bottom: 15px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

thead {
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.05em;
}
th, td {
    padding: 12px 15px;
    text-align: center;
}
td {
    font-size: 1em;
    color: #555;
    transition: background-color 0.3s;
}
tr:hover td {
    background-color: #f7f7f7;
}
img {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    vertical-align: middle;
}
td:first-child {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    padding-left: 20px;
    font-weight: 600;
}
td:nth-child(2) {
    font-weight: bold;
    color: #333;
}
td:nth-child(3) {
    color: #666;
}

/* Mapa Styling */
#mapa-estado {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    position: relative; /* Permite posicionar elementos dentro do container */
height: auto;
}

#mapa-estado svg {
    width: 100%;
    height: auto;
    transform-origin: center center;
    min-height: 300px; /* Define uma altura mínima para o SVG */
}

#mapa-estado svg path {
    fill: #d0d0d0;
    stroke: #333;
    transition: fill 0.3s ease;

}

/* Container de resumo dos candidatos */

/* Limitar a largura da tabela a 900px e centralizá-la */
.candidate-summary-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    padding: 0 4px;
    text-align: center;
}

.candidate-summary {
    display: flex;
    flex-direction: column;
}

.candidate-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 2px solid #ddd;
    font-size: 0.9rem;
}

/* Cada item do cabeçalho alinhado centralmente */
.header-item {
    flex: 1;
    text-align: center;
}

.candidate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
    border-bottom: 1px solid #ddd;
}

.candidate-info {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.candidate-info img {
    width: 40px;
    height: 40px;
}

/* Nome do candidato */
.candidate-name .name {
    font-weight: bold;
    font-size: 1em;
    text-align: center;
}

/* Ajuste para estilizar a linha de "Outros" */
.candidate-row .candidate-info .candidate-name .name {
    font-weight: 700;
}

.vote-percentage, .vote-total {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.tabela-apuracao {
    width: 100%;
    max-width: 900px;
    border-collapse: collapse;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 0px;
    overflow: hidden;
    font-size: 0.8rem;
}

.tabela-apuracao thead th {
    background-color: #ffffff;
    color: #232323;
    font-weight: 700;
    text-align: center;
    padding: 4px;
}

.tabela-apuracao thead th[rowspan="2"] {
    vertical-align:baseline;
}

.tabela-apuracao tbody td {
    color: #232323;
    font-weight: 300;
    text-align: center;
    padding: 4px;
    border-bottom: 1px dashed #d0d0d0; /* Linha tracejada cinza */
}

.tabela-apuracao tbody tr:last-child td {
    border-bottom: none; /* Remove a borda da última linha */
}

/* Alinhamento da primeira e sexta coluna ao rodapé */
.tabela-apuracao th:first-child,
.tabela-apuracao td:first-child,
.tabela-apuracao th:last-child,
.tabela-apuracao td:last-child {
    vertical-align: bottom;
}

/* Cor de fundo suave para as colunas de Kamala Harris e Donald Trump */
.tabela-apuracao th.kamala, .tabela-apuracao td.kamala {
    background-color: rgba(0, 113, 188, 1); /* Azul claro para Kamala */
    color: #fff;
}

.tabela-apuracao th.trump, .tabela-apuracao td.trump {
    background-color: rgba(196, 23, 12, 1); /* Vermelho claro para Trump */
    color: #fff;
}

/* Ajuste para alinhar "Candidato" à esquerda */
.left-align {
    text-align: left;
    padding-left: 10px;
}

/* Map Styling */
#mapa-estado {
    font-family: 'Open Sans', Arial, sans-serif;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#mapa-estado svg {
    width: 100%;
    height: auto;
}

/* Tooltip Styling */
/* Tooltip Styling */
.tooltip {
    position: absolute;
    background-color: #fff;
    color: #333;
    padding: 15px;
    width: 300px;
    border-radius: 8px;
    display: none;
    pointer-events: none;
    font-family: 'Open Sans', Arial, sans-serif;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    background-size: cover;
    background-position: center;
}

.tooltip.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tooltip h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.tooltip h3 {
    font-size: 1rem;
    color: #555;
    margin-top: 5px;
}

.tooltip .candidate-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.tooltip .candidate-info div {
    width: 45%;
    text-align: center;
}

.tooltip .candidate-info img {
    width: 100%;
    height: auto;
}

.tooltip .candidate-info .percentage {
    font-weight: 900;
    font-size: 1.2rem;
}

.tooltip .candidate-info .votes-label {
    font-weight: 400;
    font-size: 0.8rem;
}

.tooltip .candidate-info .total-votes {
    font-size: 0.8rem;
    color: #333;
}

.tooltip .apuracao-info {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
}

tabela-apuracao thead th[rowspan="2"] {
    vertical-align: bottom;
}

th {
    vertical-align: bottom;
}

.zoom-button {
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    background-color: #232323;
    color: #ffffff;
    border-radius: 50px;
    margin-bottom: 5px;
}


#zoom-in {
    top: 10px;
    right: 20px;
}
#zoom-out {
    top: 50px;
    right: 20px;
}
#reset-zoom {
    top: 90px;
    right: 20px;
}

.zoom-controls {
    position: relative;
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: flex-end; */
    /* margin-top: -120px; */
    z-index: 1001;
    text-align: center;
    padding-left: 20%;
    padding-right: 20%;
    padding-bottom: 30px;
}




.mapa-container {
    width: 100%;
    height: 100vh; /* Define a altura máxima */
    overflow: hidden; /* Oculta partes do mapa fora do contêiner */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Para posicionamento dos elementos dentro do contêiner */
}

#mapa-estado {
    width: 100%;
    height: auto;
    transform-origin: center center;
    transition: transform 0.3s ease; /* Transição suave para o zoom */
}


.zoom-button:hover {
    background-color: #555; /* Cor ao passar o mouse */
}

.zoom-button:active {
    transform: scale(0.95); /* Efeito de clique */
}
.h1 {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 700;
    color: #7f7f7f;
    padding-left: 20%;
    padding-right: 20%;
}

@media (max-width: 768px) {
    .h1 {
        text-align: center;
        font-size: 1.5rem;
        font-family: 'Open Sans', Arial, sans-serif;
        font-weight: 700;
        color: #7f7f7f;
        padding-left: 10%;
        padding-right: 10%;
    }

    .h1 img {
        width: 150px; /* ajuste o tamanho conforme necessário */
        padding-top: 32px;
      }

      .h2 {
        text-align: center;
        font-size: 1.1rem;
        font-family: 'Open Sans', Arial, sans-serif;
        font-weight: 600;
    }

      .candidate-img img {
        height: 50px;
    }
    #titulo-estado {
        font-size: 1.1rem;
        padding-top: 30px;
        display: none;
        opacity: 0;
    }

    .section {
        margin: 16px;
        font-family: 'Open Sans', Arial, sans-serif;
        max-width: 600px;
        margin-left: 0; 
        margin-right: 0;
    }

    .candidate-header {
        display: flex;
        justify-content: space-between;
        font-weight: bold;
        padding: 4px 0;
        border-bottom: 1px solid #ddd;
        font-size: 0.85rem;
    }
    .candidate-info {
        display: flex;
        align-items: center;
        flex: 1;
        gap: 2px;
    }
    .mapa-container {
        width: 100%;
        height: 50vh;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .detalhe-condado {
        font-size: 1.1rem;
        font-weight: 600;
        text-align: center;
        font-family: 'Open Sans', Arial, sans-serif;
        padding-top: 30px;
        padding-bottom: 15px;
    }
    .tabela-apuracao {
        width: 100%;
        max-width: 700px;
        border-collapse: collapse;
        margin: 0px auto;
        background-color: #ffffff;
        border-radius: 0px;
        overflow: hidden;
        font-size: 0.78rem;
    }
    .tabela-apuracao thead th {
        background-color: #ffffff;
        color: #232323;
        font-weight: 400;
        text-align: center;
        padding: 4px;
    }
    /* Estilos da tooltip */
#tooltip-element {
    position: fixed; /* Apenas para mobile */
    z-index: 1000;   /* Garante que a tooltip apareça acima dos outros elementos */
    display: none;   /* Inicialmente oculta */
    /* Outros estilos da tooltip */
}

        /* Estilo do botão flutuante */
        #botaoFlutuante {
            position: fixed;
            bottom: 10px;
            right: 10px;
            width: 100px;
            height: auto;
            cursor: pointer;
            z-index: 9999; /* Garante que o botão fique acima de todos os elementos */
        }

        /* Estilo da imagem dentro do botão */
        #botaoFlutuante img {
            width: 100%;
            height: auto;
            border-radius: 5px; /* Opção para bordas arredondadas */
        }
}

.icon{
    width: 28px;
    height: 28px;
}

       