:root {
    --cor1: #4c0f0f;
    --cor2: #99001a;
    --cor3: #e2001b;
    --cor4: #ff6e86;
    --cor5: #f7bcbc;
}

* {
    box-sizing: border-box;
    padding: 0px;
    margin: 0px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat';
    /* background-image: url('../imgs/fundo.png'); */
    background-image: linear-gradient(to bottom right, var(--cor1), var(--cor2));
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; 
    background-position: center center;
    color: #333;
}

.header {
    background-color: whitesmoke;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    gap: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    color: #2e2d2c;
    padding: 15px;
}

.vez-selector {
    gap: 10px;
    display: flex;
    text-align: flex-end;
    margin: 20px 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.tipo-btn {
    padding: 15px;
    text-align: center;
    background-color: #e0e0e0;
    border: 2px solid var(--cor3);
    color: #333;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tipo-btn:hover,
.tipo-btn.active {
    background-color: var(--cor2);
    color: white;
    border-color: var(--cor2);
}

.logo {
    height: 60px;
}

h1 {
    font-size: 2em;
}

.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px auto;
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    width: 80%;
}

.filter-item {
    margin: 5px auto;
    gap: 5px;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.filter-container select {
    padding: 5px 10px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid var(--cor3);
    outline: none;
}

.tabelaRanking {
    user-select: none;
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: rgba(255,255,255,0.9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

th, td {
    padding: 12px 15px;
    text-align: center;
}

th {
    background-color: var(--cor3);
    color: #fff;
}

tr:nth-child(even) {
    background-color: var(--cor5);
}

.pergunta-card {
    display: flex;
    margin-bottom: 20px;
    flex-direction: column;
    align-items: center;
}

.pergunta-card h2 {
    color: white;
}

.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid var(--cor3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: auto;
}

.progress-circle {
    --size: 90px;
    --border: 5px;
    --percent: 0;

    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background:
        radial-gradient(closest-side, white 79%, transparent 80% 100%),
        conic-gradient(var(--cor3) calc(var(--percent) * 1%), #eee 0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1em;
    margin: auto;
    position: relative;
}

.progress-circle .inner {
    position: absolute;
    text-align: center;
}


.filtro-area{
    margin: 20px auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

}

.zerar-btn{
    margin-left: 0 auto;
    padding: 10px 20px;
    text-align: center;
    border: none;
    border-radius: 5px;
    background-color: var(--cor3);
    color: white;
    cursor: pointer;
    font-weight: bold;
    max-width: 200px;
}
/* Responsividade para tabelas */
@media screen and (max-width: 600px) {
    .circle {
        width: 40px;
        height: 40px;
    }

    .filter-container {
        width: 95%;
        padding: 10px 5px;
        font-size: 0.8em;
    }

    .tabelaRanking {
        font-size: 11pt;
        width: 100%;
        overflow-x: auto;
    }

    th, td {
        padding: 8px;
        font-size: 0.6em;
        white-space: nowrap;
    } 
}
