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

:root {
  --azul: rgba(95, 194, 203, 1);
  --rosa: rgba(255, 141, 158, 1);
  --cinza: rgba(101, 101, 101, 1);
  --branco: rgba(255, 255, 255, 1);
  --branco-claro: rgba(255, 255, 255, 0.5);
  --cinza-claro: rgba(227, 227, 227, 1);
  --preto: rgba(2, 2, 2, 1);
  --azul-btn: #2575E8;
}

* {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  font-family: "Lato", "Roboto", sans-serif;
  font-weight: 400;
  display: flex; /* Adicionada a propriedade display com o valor flex */
  /* flex-direction: column; */
  background-color: #ffffff;
  flex-direction: column;
  align-items: center;
}

h1 {
    font-size: 19px;
    color: #404040;
    text-transform: uppercase;
    margin-bottom: 15px;
}

h2.linha-fina {
    max-width: 500px;
    font-size: 14.5px;
    font-weight: 400;
    text-align: center;
    color: #9c9999;
    margin-bottom: 10px;
    line-height: 21px;
}

section.container-placar {
    width: 100vw;
}

section.container-placar .lista {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

section.container-placar .lista .parlamentar {
    width: 114px;
    /* background-color: antiquewhite; */
    height: 215px;
    position: relative; /* Necessário para o position absolute do ::after */
    overflow: hidden;
}

.lista .parlamentar img {
    width: 114px;
    height: 152px;
    display: block;
    filter: grayscale(100%);
    border-radius: 10px;
}

.lista .parlamentar::after {
    content: "";
    position: absolute;
    border-radius: 10px;
    top: 0;
    left: 0;
    width: 100%;
    height: 152px; /* Igual à altura da imagem */
    
    pointer-events: none; /* Garante que cliques passem pelo filtro */
}


.parlamentar[data-voto="sim"]::after {
    background-color: rgba(102, 196, 238, 0.5); 
}


.parlamentar[data-voto="nao"]::after {
    background-color: rgba(239, 164, 164, 0.5); 
}

.parlamentar[data-voto="nao-deu-retorno"]::after {
    background-color: rgba(224, 224, 224, 0.5); 
}

.parlamentar[data-voto="nao-quis-responder"]::after {
    background-color: rgba(255, 202, 117, 0.5); 
}

.parlamentar[data-voto="reducao-da-pena"]::after {
    background-color: rgba(96, 180, 215, 0.5); 
}

.parlamentar[data-voto="anistia-total"]::after {
    background-color: rgba(201, 212, 153, 0.5); 
}

.parlamentar[data-voto="nenhuma-das-opcoes"]::after {
    background-color: rgba(239, 164, 164, 0.5); 
}




.lista .parlamentar p.nome {
    text-align: center;
    font-size: 12.5px;
    text-transform: uppercase;
    margin-top: 13px;
    color: #5e5e5e;
    font-weight: 600;
}

.lista .parlamentar p.partido-uf {
    text-align: center;
    font-size: 11px;
    margin-top: 5px;
    color: #5e5e5e;
    text-transform: uppercase;
}

p.info {
    position: absolute;
    z-index: 100;
    width: 100%;
    top: 133px;
    font-size: 9.5px;
    text-align: center;
    text-transform: uppercase;
    height: 15px;
    padding-top: 5px;
    border-radius: 0px 0px 10px 10px;
}


.parlamentar[data-voto="sim"] p.info {
    background-color: rgba(102, 196, 238); 
}


.parlamentar[data-voto="nao"] p.info {
    background-color: rgba(239, 164, 164); 
}

.parlamentar[data-voto="nao-deu-retorno"] p.info {
    background-color: rgba(224, 224, 224); 
}

.parlamentar[data-voto="nao-quis-responder"] p.info {
    background-color: rgba(255, 202, 117); 
    font-size: 9px;
}


.parlamentar[data-voto="reducao-da-pena"] p.info {
    background-color: rgba(96, 180, 215); 
}

.parlamentar[data-voto="anistia-total"] p.info {
    background-color: rgba(201, 212, 153); 
}

.parlamentar[data-voto="nenhuma-das-opcoes"] p.info {
    background-color: rgba(239, 164, 164); 
    font-size: 8.5px;
}



.menu-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background-color: #f4f4f4; */
    margin-bottom: 20px;
}


.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 15px;
    /* background: #f4f4f4; */
    border-radius: 8px;
    margin-bottom: 20px;

}

.filtros input,
.filtros select {
    padding: 12px 14px;
    border: 0px solid #ececec;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    background-color: #ececec;
    text-transform: uppercase;
}

.filtros input {
    width: 160px;
    max-width: 100%;
    
}

.filtros select {
    appearance: none;        /* para a maioria dos navegadores */
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none;    /* Firefox */
    background-color: #ececec;
    cursor: pointer;
    padding-right: 25px; /* espaço para a seta personalizada */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%23000000' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}


.filtros input:focus,
.filtros select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}


/* Estilos para a paginação */
.paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
}

.btn-paginacao {
    padding: 10px 23px;
    margin: 0 10px;
    background-color: #0093D6;
    border: 0px solid #ddd;
    border-radius: 26px;
    cursor: pointer;
    font-size: 12px;
    color: #ffffff;
    text-transform: uppercase;
}

.btn-paginacao:hover:not(:disabled) {
    background-color: #0674a7;
}

.btn-paginacao:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.info-pagina {
    font-size: 14px;
    margin: 0 15px;
}

/* Estilos para os filtros de ordenação */
.ordenacao-container {
    display: none;
    align-items: center;
    margin-left: 10px;
}

#filtro-ordenacao, #filtro-ordem {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
}

/* Ajustes responsivos para os filtros */
@media (max-width: 500px) {
    h1 {
        margin-top: 10px;
        font-size: 16px;
    }

    .filtros {
        padding: 10px 0px;
    }

    .filtros input {
        width: 100px;
        max-width: 100%;
    }
    
    .lista .parlamentar img {
        width: 90px;
        height: 120px;
        display: block;
        filter: grayscale(100%);
        border-radius: 10px;
    }

    section.container-placar .lista .parlamentar {
        width: 90px;
        height: 188px;
        position: relative;
        overflow: hidden;
    }

    p.info {
        top: 101px;
    
    }

    .lista .parlamentar::after {
        height: 119px;

    }


    .parlamentar[data-voto="nao-deu-retorno"] p.info {
        font-size: 8px;
    }
    
    .parlamentar[data-voto="nao-quis-responder"] p.info {
        font-size: 7.5px;
    }

    .parlamentar[data-voto="nenhuma-das-opcoes"] p.info {
        font-size: 7px;
    }

    .btn-paginacao {
        padding: 9px 18px;
        font-size: 11px;
    }
    .lista .parlamentar p.nome {
        font-size: 11.5px;

    }

    .lista .parlamentar p.partido-uf {
        text-align: center;
        font-size: 10px;
        margin-top: 5px;
        color: #5e5e5e;
        text-transform: uppercase;
    }


    h2.linha-fina {
        max-width: 80%;
        font-size: 13px;
        font-weight: 400;
        text-align: center;
        color: #9c9999;
        margin-bottom: 15px;
        line-height: 17px;
    }
}