/* Estilo geral */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 20px;
}

.separator {
    height: 4px; /* Altura da linha */
    background: linear-gradient(to right, #a8a8a8, #ffffff); /* Gradiente de cor */
    border-radius: 2px; /* Arredondar as bordas */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Sombra para dar profundidade */
    margin: 30px 0; /* Espaçamento acima e abaixo da linha */
}

.titulo-perguntas {

}
.container-index {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1, h2 {
    color: #444;
    text-align: center;
    font-size: 22px; /* Ajustar o tamanho conforme necessário */
    margin-bottom: 20px; /* Espaçamento entre o título e o restante do conteúdo */
}

p {
    font-size: 16px;
    line-height: 1.5;
}

/* Botões */
.buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

button {
    padding: 10px 20px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* Estilização das opções de questões (radio buttons) */
.question-container {
    margin-bottom: 20px;
    text-align: left;
}

.option-container {
    margin-bottom: 10px;
    position: relative;
}

.question-container input[type="radio"] {
    display: none; /* Ocultar o botão de rádio padrão */
}

.question-container input[type="radio"] + label {
    display: block;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding-left: 50px;
    position: relative;
}

.question-container input[type="radio"] + label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.question-container input[type="radio"]:checked + label::before {
    background-color: #4caf50;
    border-color: #4caf50;
}

.question-container input[type="radio"]:checked + label {
    background-color: #d1e7dd;
    border-color: #4caf50;
}

.question-container label:hover {
    background-color: #eee;
}

/* Centralizar e ajustar os gráficos */
canvas {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
}

#grafico-pizza {
    width: 300px !important; /* Definir uma largura fixa */
    height: 300px !important; /* Definir uma altura fixa para garantir que seja quadrado */
    max-width: 100%; /* Para garantir que ele se ajuste corretamente em telas menores */
}




.canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* Estilos do Accordion */
.accordion-container {
    width: 100%;
    margin: 20px 0;
}

.accordion-item {
    margin-bottom: 10px;
}

.accordion-button {
    width: 100%;
    padding: 15px;
    text-align: left;
    background-color: #76c7c0;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.accordion-button:hover {
    background-color: #5aa8a3;
}

.accordion-content {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-top: 5px;
    display: none;
    font-size: 14px;
    line-height: 1.5;
}






#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo transparente escuro */
    z-index: 9999; /* Ficar acima de todos os outros elementos */
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #76c7c0;
    animation: spin 1s ease infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}







/* Estilos Específicos para Desktop */
@media (min-width: 769px) {
    .container-index {
        max-width: 800px;
    }

    .container {
        max-width: 1200px;
    }

    .row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    
    .column {
        flex: 1;
        padding: 0 10px;
        align-content: center;
    }

    .column canvas {
        max-width: 350px;
    }

    h1 {
        color: #444;
        text-align: center;
        margin-bottom: 80px;
    }
    h2 {
        color: #444;
        text-align: center;
        margin-bottom: 20px;
    }

    p {
        font-size: 16px;
        line-height: 1.5;
    }

    #progress-bar {
        width: 100%;
        background-color: #ddd;
        border-radius: 5px;
        overflow: hidden;
        margin-bottom: 20px;
    }

    #progress {
        height: 20px;
        background-color: #4caf50;
        width: 0%;
    }

    button {
        padding: 10px 20px;
        background-color: #76c7c0;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        margin-top: 20px;
        transition: background-color 0.3s, box-shadow 0.3s;
    }

    button:hover {
        background-color: #5aa8a3;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    }

    .buttons {
        margin-top: 30px;
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .buttons button {
        width: 150px;
    }

    #resultado {
        font-size: 18px;
        background-color: #f9f9f9;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    .logo-container {
        text-align: center;
        margin-bottom: 30px;
    }

    .logo {
        width: 250px;
        height: auto;
    }
}

/* Estilos para Mobile */
@media (max-width: 768px) {
    body {
        font-family: Arial, sans-serif;
        background-color: #f4f4f4;
        color: #333;
        margin: 0;
        padding: 5px;
    }

    .container {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        min-height: 100vh;
    }
    .container-index {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        min-height: 100vh;
    }

    .row {
        display: block;
        margin-bottom: 20px;
    }

    .column {
        margin-bottom: 20px;
        text-align: center;
    }

    h1 {
        font-size: 1.5em;
        text-align: center;
        margin-bottom: 15px;
    }

    p {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    button {
        width: 100%;
        padding: 12px;
        margin-top: 15px;
        font-size: 16px;
        background-color: #76c7c0;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s, box-shadow 0.3s;
    }

    button:hover {
        background-color: #5aa8a3;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
    }

    #progress-bar {
        margin-bottom: 15px;
    }

    #resultado {
        font-size: 16px;
        padding: 15px;
        margin-bottom: 15px;
        background-color: #f9f9f9;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .logo-container {
        text-align: center;
        margin-bottom: 30px;
    }

    .logo {
        width: 200px;
        height: auto;
    }

    .accordion-button {
        font-size: 14px;
        padding: 12px;
    }

    .accordion-content {
        font-size: 14px;
    }
    #grafico-pizza {
    width: 300px !important; /* Definir uma largura fixa */
    height: 300px !important; /* Definir uma altura fixa para garantir que seja quadrado */
    max-width: 100%; /* Para garantir que ele se ajuste corretamente em telas menores */
    }

}
/* Estilo para ocultar o botão imprimir no mobile */
@media (max-width: 768px) {
    #printButton {
        display: none; /* Oculta o botão no mobile */
    }
}