/* Quiz specifieke styling */
/* Verwijder algemene reset om conflicten met hoofdsite te voorkomen */

/* Quiz body aanpassingen */
body {
    background-color: #f1faee;
}

/* Quiz Container */
.quiz-container {
    max-width: 900px;
    margin: 20px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Headers */
h1 {
    color: #1d3557;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
}

h2 {
    color: #1d3557;
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* Voortgangsindicator */
.voortgang {
    background-color: #a8dadc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.voortgangsbalk {
    width: 100%;
    height: 20px;
    background-color: #f1faee;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}

.voortgangsbalk-vulling {
    height: 100%;
    background-color: #457b9d;
    transition: width 0.3s ease;
}

/* Vraag styling */
.vraag-container {
    margin-bottom: 30px;
}

.vraag-tekst {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #1d3557;
}

/* Antwoordopties */
.antwoord-optie {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin: 10px 0;
    background-color: #f1faee;
    border: 2px solid #a8dadc;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.antwoord-optie:hover:not(:disabled) {
    background-color: #a8dadc;
    border-color: #457b9d;
}

.antwoord-optie:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.antwoord-optie.geselecteerd {
    background-color: #457b9d;
    color: white;
    border-color: #457b9d;
}

/* Radio buttons (verborgen) */
input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* Feedback */
.feedback {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    font-size: 1em;
}

.feedback.goed {
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.feedback.fout {
    background-color: #f8d7da;
    border: 2px solid #e63946;
    color: #721c24;
}

/* Knoppen */
.knop {
    background-color: #e63946;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px 5px;
}

.knop:hover {
    background-color: #d62828;
}

.knop:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.knop-secundair {
    background-color: #457b9d;
}

.knop-secundair:hover {
    background-color: #1d3557;
}

/* Eindscherm */
.eindscherm {
    text-align: center;
}

.score-groot {
    font-size: 3em;
    color: #e63946;
    margin: 20px 0;
}

.analyse-sectie {
    background-color: #f1faee;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.onderwerp-score {
    padding: 10px 0;
    border-bottom: 1px solid #a8dadc;
}

.onderwerp-score:last-child {
    border-bottom: none;
}

.tips {
    background-color: #a8dadc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: left;
}

.tips ul {
    list-style-position: inside;
    margin-left: 20px;
}

.tips li {
    margin: 10px 0;
}

/* Print styling */
@media print {
    body {
        background-color: white;
    }
    .container {
        box-shadow: none;
    }
    .knop {
        display: none;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 1.5em;
    }
    .score-groot {
        font-size: 2em;
    }
}

/* Verberg niet-actieve secties */
.verborgen {
    display: none;
}

/* Start scherm vernieuwde styling */
.start-sectie {
    text-align: center;
    padding: 20px;
}

/* Hero sectie met animatie */
.hero-section {
    position: relative;
    margin: 40px auto;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.medical-icon {
    background: linear-gradient(135deg, #e63946, #d62828);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
    animation: float 3s ease-in-out infinite;
}

.pulse-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid #e63946;
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Welkom tekst */
.welkom-tekst {
    margin: 30px 0;
    animation: fadeInUp 0.8s ease-out;
}

.welkom-titel {
    font-size: 2.2em;
    color: #1d3557;
    margin-bottom: 10px;
    font-weight: 700;
}

.welkom-subtitel {
    font-size: 1.2em;
    color: #457b9d;
    margin: 0;
}

/* Quiz info kaarten */
.quiz-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.info-card {
    background: white;
    border: 2px solid #a8dadc;
    border-radius: 12px;
    padding: 20px;
    width: 200px;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out backwards;
}

.info-card:nth-child(1) { animation-delay: 0.2s; }
.info-card:nth-child(2) { animation-delay: 0.4s; }
.info-card:nth-child(3) { animation-delay: 0.6s; }

.info-card:hover {
    transform: translateY(-5px);
    border-color: #457b9d;
    box-shadow: 0 10px 20px rgba(69, 123, 157, 0.2);
}

.info-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.info-content h3 {
    color: #1d3557;
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.info-content p {
    color: #457b9d;
    margin: 0;
    font-size: 0.9em;
}

/* Onderwerpen sectie */
.onderwerpen-sectie {
    background: #f1faee;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    animation: fadeIn 1.2s ease-out backwards;
}

.onderwerpen-sectie h3 {
    color: #1d3557;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.onderwerpen-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.onderwerp-item {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid #a8dadc;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: default;
    animation: slideIn 0.5s ease-out backwards;
}

.onderwerp-item[data-onderwerp="urinewegen"] { animation-delay: 0.1s; }
.onderwerp-item[data-onderwerp="hart"] { animation-delay: 0.2s; }
.onderwerp-item[data-onderwerp="bloedvaten"] { animation-delay: 0.3s; }
.onderwerp-item[data-onderwerp="bloed"] { animation-delay: 0.4s; }
.onderwerp-item[data-onderwerp="luchtwegen"] { animation-delay: 0.5s; }

.onderwerp-item:hover {
    transform: translateY(-3px);
    border-color: #457b9d;
    background: linear-gradient(135deg, #f1faee, white);
}

.onderwerp-icon {
    font-size: 1.5em;
}

/* Start button vernieuwing */
.start-button-container {
    margin-top: 40px;
    animation: fadeInUp 1.4s ease-out backwards;
}

.knop-start {
    background: linear-gradient(135deg, #e63946, #d62828);
    padding: 18px 40px;
    font-size: 1.3em;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.knop-start:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.knop-start:hover:before {
    left: 100%;
}

.knop-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.button-arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.knop-start:hover .button-arrow {
    transform: translateX(5px);
}

.motivatie-tekst {
    color: #457b9d;
    font-size: 1.1em;
    margin-top: 15px;
    font-style: italic;
    animation: fadeIn 1.6s ease-out backwards;
}

/* Animaties */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .quiz-info {
        flex-direction: column;
        align-items: center;
    }

    .info-card {
        width: 100%;
        max-width: 300px;
    }

    .onderwerpen-grid {
        flex-direction: column;
        align-items: center;
    }

    .onderwerp-item {
        width: 100%;
        max-width: 300px;
    }
}

/* Fix voor de voortgangsbalk vulling */
.voortgangsbalk-vulling {
    width: 0%;
}

/* Orgaanstelsel label styling */
.orgaanstelsel-label {
    background: linear-gradient(135deg, #457b9d, #1d3557);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(69, 123, 157, 0.3);
    animation: slideInDown 0.5s ease-out;
}

.orgaanstelsel-label.urineweg {
    background: linear-gradient(135deg, #2e8b57, #228b22);
}

.orgaanstelsel-label.hart-vaat {
    background: linear-gradient(135deg, #dc143c, #b22222);
}

.orgaanstelsel-label.ademhaling {
    background: linear-gradient(135deg, #4682b4, #1e90ff);
}

.orgaanstelsel-label.mondgezondheid {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Knop container voor quiz navigatie */
.knop-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.knop-container .knop {
    flex: 0 1 auto;
    min-width: 150px;
}

/* Wanneer alleen een knop zichtbaar is, centreren */
.knop-container .knop:only-child {
    margin: 0 auto;
}

/* Eindscherm knoppen */
.eindscherm-knoppen {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.knop-download {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.knop-download:hover {
    background: linear-gradient(135deg, #218838, #1ea080);
    transform: translateY(-2px);
}

/* Responsive knoppen */
@media (max-width: 600px) {
    .knop-container {
        flex-direction: column;
        align-items: center;
    }

    .knop-container .knop {
        width: 100%;
        max-width: 300px;
    }

    .eindscherm-knoppen {
        flex-direction: column;
        align-items: center;
    }

    .eindscherm-knoppen .knop {
        width: 100%;
        max-width: 300px;
    }
}

/* Herstel melding styling */
.herstel-melding {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.herstel-inhoud {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    margin: 20px;
    animation: slideInUp 0.4s ease-out;
}

.herstel-inhoud h3 {
    color: #1d3557;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.herstel-inhoud p {
    color: #457b9d;
    margin-bottom: 20px;
    line-height: 1.5;
}

.herstel-knoppen {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.herstel-knoppen .knop {
    flex: 1;
    min-width: 120px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .herstel-knoppen {
        flex-direction: column;
    }

    .herstel-knoppen .knop {
        width: 100%;
    }
}
/* Footer Styling */
.quiz-footer {
    margin-top: 60px;
    padding: 40px 0;
    background: white;
    border-top: 2px solid #a8dadc;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.footer-text {
    color: #1d3557;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-image {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.student-work-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.student-work-img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .student-work-img {
        max-width: 100%;
    }

    .footer-text {
        font-size: 14px;
    }
}
