body {
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.quiz-container {
    max-width: 940px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: black;
    text-align: center;
}

.quiz-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.quiz-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.quiz-btn:hover {
    opacity: 0.9;
}

.quiz-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.quiz-controls {
    display: flex;
    justify-content: center; /* Centraliza os botões */
    align-items: center;
    gap: 30px; /* Espaçamento entre os botões */
    margin-top: 15px;
    flex-wrap: wrap; /* Evita quebra feia em telas pequenas */
}

.quiz-mute, .quiz-play {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}
/* Estilo base para todos os botões */
.quiz-controls button {
    font-size: 16px; /* Tamanho de texto adequado */
    padding: 10px 15px; /* Espaçamento interno */
    border: none;
    border-radius: 8px; /* Cantos arredondados */
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    white-space: nowrap; /* Evita que o texto quebre em telas pequenas */
}
/* Ajusta o botão de mute */
#quiz-mute-btn {
    background-color: #ff4d4d; /* Vermelho */
    color: white;
}
#quiz-mute-btn:hover {
    background-color: #e63939;
}
.quiz-play {
    background: #4CAF50;
}
#quiz-play-btn:hover {
    background-color: #0056b3;
}
.quiz-mute:hover, .quiz-play:hover {
    opacity: 0.8;
}
/* Ajusta o botão de ativação de áudio */
#start-quiz-btn {
    background-color: #28a745; /* Verde */
    color: white;
    font-size: 14px; /* Evita que o texto fique grande demais */
    padding: 8px 12px; /* Tamanho menor para apps */
}

#start-quiz-btn:hover {
    background-color: #218838;
}
.quiz-answer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quiz-answer-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}
@media screen and (max-width: 768px) {
    .quiz-controls {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .quiz-controls button {
        font-size: 14px; /* Reduz tamanho do texto em telas pequenas */
        padding: 8px 10px;
    }
}

@media screen and (max-width: 480px) {
    .quiz-controls {
        flex-direction: column; /* Empilha botões em telas muito pequenas */
        gap: 6px;
    }

    .quiz-controls button {
        font-size: 13px;
        padding: 7px 9px;
        width: 80%; /* Garante que os botões não fiquem muito largos */
    }
}
.quiz-answer-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.quiz-answer-label {
    font-weight: bold;
    margin-top: 5px;
}

.progress-container {
    width: 100%;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
    height: 25px;
    margin: 20px 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff8c00, #ff4500);
    transition: width 0.4s ease-in-out;
    text-align: center;
    color: white;
    font-weight: bold;
    line-height: 25px;
    position: absolute;
    left: 0;
    top: 0;
}

.quiz-answers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 10px;
}

.quiz-answer-card,
.quiz-btn {
    flex: 1 1 200px;
    max-width: 200px;
    min-width: 150px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.quiz-answer-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.quiz-answer-card:hover,
.quiz-btn:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}
