/*
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}
*/
.containerquiz {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #0056b3;
    margin-bottom: 10px;
}

.description {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #555;
}

#quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.current-score, .timer {
    font-size: 1.1em;
    font-weight: bold;
    color: #444;
}

.timer #quiz-timer {
    color: #007bff;
}

/* --- ZDE JE KLÍČOVÁ OPRAVA: DEFINICE TŘÍDY HIDDEN --- */
.hidden {
    display: none !important; /* Důležité: !important pro zajištění priority */
}
/* --------------------------------------------------- */

.question-container {
    margin-bottom: 20px;
    transition: opacity 0.5s ease;
}

.question-container.active {
    display: block; /* Může být i flex, grid, podle potřeby layoutu */
    opacity: 1;
}

.question-number {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

h2 {
    color: #0056b3;
    margin-bottom: 25px;
    font-size: 1.5em;
}

.options {
    text-align: left;
    margin-bottom: 25px;
}

.option-label {
    display: block;
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.option-label:hover:not(.selected):not(.correct-answer):not(.wrong-answer):not(.disabled) {
    background-color: #d1d8df;
}

.option-label input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Styly pro vybranou odpověď */
.option-label.selected {
    background-color: #cce5ff;
    border-color: #007bff;
}

/* Styly pro správnou odpověď */
.option-label.correct-answer {
    background-color: #d4edda;
    border-color: #28a745;
    font-weight: bold;
    color: #155724;
}

/* Styly pro špatnou vybranou odpověď */
.option-label.wrong-answer {
    background-color: #f8d7da;
    border-color: #dc3545;
    font-weight: bold;
    color: #721c24;
}

/* Zneaktivnění stylů pro zakázané možnosti */
.option-label.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Tlačítko Další otázka */
.next-question-button, .reset-button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.next-question-button:hover, .reset-button:hover {
    background-color: #0056b3;
}

.feedback-message {
    margin-top: 15px;
    min-height: 25px;
    font-size: 1.1em;
}

.correct-feedback {
    color: #28a745;
    font-weight: bold;
}

.wrong-feedback {
    color: #dc3545;
    font-weight: bold;
}

.explanation {
    background-color: #f0f8ff;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
    border-radius: 0 5px 5px 0;
    font-size: 0.95em;
    color: #333;
}

.explanation h3 {
    margin-top: 0;
    color: #0056b3;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.results {
    margin-top: 20px;
}

.results h2 {
    color: #007bff;
}

.results p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Responzivní design */
@media (max-width: 600px) {
    .containerquiz {
        padding: 20px;
       /* margin: 10px;*/
    }
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.3em;
    }
    .next-question-button, .reset-button {
        width: 100%;
        padding: 10px;
    }
    .option-label {
        padding: 10px;
    }
    #quiz-header {
        flex-direction: column;
        gap: 10px;
    }
}