@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;350;400;500;600;700;800;900&display=swap");



* {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
}

h1 {
    margin-top: 10px;
    text-align: center;
    text-transform: uppercase;
    font-size: 23px;
    font-weight: 700;
    color: #514f4f;
}

h2 {
    margin-top: 10px;
    text-align: center;
    font-size: 15.2px;
    font-weight: 300;
    color: #818181;
}

g circle {
    cursor: pointer;
}

div#controls {
    display: none;
}

div#controls-years {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 37px;
}

div#controls-years div {
    background-color: #d5e2ee;
    padding: 8px 30px;
    border-radius: 20px;
    font-size: 19px;
    cursor: pointer;
    color: #286299;
    font-weight: 500;
}

div#controls-years div.active {
    background-color: #418acf;
    color: #ffffff;
}

div#controls-years div:hover {
    background-color: #418acf;
    color: #ffffff;

}

/* div#controls-years #btn-2020 {
    background-color: #916d6d;
} */

.info-partido {
    /* background-color: antiquewhite; */
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 30%;
    margin: 0 auto;
    position: relative;
    bottom: 80px;
    height: 75px;
}

p.nome-part {
    font-size: 40px;
    font-weight: 700;
}

p.nome-part.nome-grande {

    font-size: 21px;
}

.evolucao-eleitos {
    margin-top: 3px;
    font-size: 15px;
    color: #898989;
}

p.cadeiras {
    font-size: 19px;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
}

.tabela-partidos {
    border-collapse: collapse;
    /* Para colapsar bordas */
    width: 100%;
    /* Largura total da tabela */
    margin-top: -38px;
    /* Espaçamento superior */
}

.tabela-partidos th,
.tabela-partidos td {
    border-left: 3px solid rgb(255, 255, 255);
    /* Borda esquerda */
    padding: 8px;
    /* Espaçamento interno */
    text-align: left;
    /* Texto do cabeçalho alinhado à esquerda */
}

.tabela-partidos th {
    background-color: #f2f2f2;
    /* Cor de fundo do cabeçalho */
    font-weight: 600;
}

/* Centraliza os textos das colunas 2, 3 e 4 no cabeçalho */
.tabela-partidos th:nth-child(n+2) {
    text-align: center;
}

/* Centraliza os textos das colunas 2, 3 e 4 nas linhas */
.tabela-partidos td:nth-child(n+2) {
    text-align: center;
    /* Centraliza o texto das colunas, exceto a primeira */
}

/* Cor de fundo cinza claro para linhas pares */
.tabela-partidos tr:nth-child(even) {
    background-color: #f9f9f9;
    /* Cor de fundo cinza claro para linhas pares */
}

/* Estilo para o círculo */
.circle-part {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    /* Altera para 50% para que fique perfeito */
    display: inline-block;
    /* Faz com que o círculo se comporte como um bloco em linha */
    margin-right: 5px;
    /* Espaçamento à direita do círculo */
}

span.circle-part {
    width: 18px !important;
    height: 18px !important;
    border-radius: 10px;
}


.evolucao-positivo {
    color: green;
    /* Verde para evolução positiva */
    font-weight: bold;
}

.evolucao-negativo {
    color: red;
    /* Vermelho para evolução negativa */
    font-weight: bold;
}

.evolucao-neutro {
    color: black;
    /* Preto para evolução neutra (igual a 0) */
    font-weight: bold;
}



@media (max-width: 580px) {

    .info-partido {
        bottom: 45px;
        height: 75px;
        /* flex-direction: row; */
        width: 250px;
    }

    p.nome-part {
        font-size: 25px;
    }

    p.cadeiras {
        font-size: 16px;
    }

    .evolucao-eleitos {
        font-size: 12px;

    }

    .tabela-partidos {
        border-collapse: collapse;
        width: 100%;
        margin-top: -37px;
    }

    .evolucao-eleitos {
        margin-top: 3px;
        font-size: 14px;
        color: #898989;
    }

    .tabela-partidos th {
        font-size: 14px;
    }

    .tabela-partidos td {
        font-size: 14px;
        padding: 11px 8px;
    }


    div#controls-years div {
        padding: 7px 42px;
        border-radius: 20px;
        font-size: 16px;
    }

    div#controls-years {
        margin-bottom: 20px;
    }

    h1 {

        font-size: 20px;
        margin: 10px 30px;
    }

    h2 {
        font-size: 14.8px;
        margin: 10px 20px;

    }

    .circle-part {
        width: 15px;
        height: 15px;
        border-radius: 50%;
        display: inline-block;
        margin-right: 3px;
    }

}