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

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

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

.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 perguntas e opções */
.question-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.option-container {
    margin-bottom: 10px;
    text-align: left;
}

canvas {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 500px;
    width: 100%;
}

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

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

/* Estilização do texto explicativo */
.result-text {
    font-size: 18px;
    margin-top: 20px;
    font-weight: bold;
    color: #333;
}

.extra-text {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
    text-align: left;
}
.option-container {
    margin-bottom: 10px;
    position: relative;
}

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

.option-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; /* Adiciona espaço para o botão de rádio customizado */
    position: relative;
}

.option-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;
}

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

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

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

/* Estilos responsivos */
@media (max-width: 768px) {
    body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0px;
    }
    .container {
        width: 90%;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons button {
        margin-bottom: 10px;
    }

    .result-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #result-text {
        margin-top: 20px;
        margin-left: 0;
        max-width: 90%;
    }
}

/* Estilo do container do termômetro */
.thermometer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 20px auto;
    position: relative;
}

/* Estilo do preenchimento do termômetro */
#thermometer-fill {
    width: 100%;
    height: 0%; /* Inicialmente vazio */
    background-color: green; /* Cor inicial */
    border-radius: 10px 10px 0 0;
    position: absolute;
    bottom: 0;
}

/* Escala numérica ao lado do termômetro */
#thermometer-scale {
    position: absolute;
    right: -30px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
}

#thermometer-scale span {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

/* Layout para desktops */
@media (min-width: 768px) {
    .result-container {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    #result-text {
        margin-left: 40px;
        text-align: left;
        max-width: 300px;
    }

    .thermometer-container {
        flex-direction: row;
        justify-content: flex-start;
    }
}
/* Forçar o layout de desktop na cópia invisível */
.pdf-mode {
    width: 1024px; /* Definir largura como se fosse desktop */
    margin: 0 auto; /* Centralizar o conteúdo */
}

.pdf-mode #thermometer-container {
    width: 80%; /* Largura do termômetro durante a geração do PDF */
    margin: 0 auto;
}

.pdf-mode canvas {
    max-width: 100%;
    height: auto;
}
/* Estilo para ocultar o botão imprimir no mobile */
@media (max-width: 768px) {
    #printButton {
        display: none; /* Oculta o botão no mobile */
    }
}
