#oefening {
    width:100%;
    max-width:100%;
    overflow:hidden;
}

/* =========================================================
   SPEL
========================================================= */

.game-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.game-title {
    margin: 0 0 10px;
    text-align: center;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
}

/* =========================================================
   FOTO'S
========================================================= */

.game-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-bottom: 25px;
}

.game-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;

    padding: 5px;

    background: #333;
    border: 2px solid #333;
    border-radius: 10px;

    cursor: grab;
    touch-action: none;
    user-select: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.game-card.ui-draggable-dragging {
    z-index: 9999;
    cursor: grabbing;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.game-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    pointer-events: none;
}


/* =========================================================
   GELUIDSKNOP
========================================================= */

.sound-button {
    position: absolute;
    right: 7px;
    bottom: 7px;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 3px solid #fff;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);
    color: #fff;

    font-size: 20px;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.sound-button:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.85);
}

.answer-sound.verberg {
    display: none;
}
    
/* =========================================================
   NAMEN / DROPZONES
========================================================= */

.game-answers {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.game-answer {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    width:100%;
    aspect-ratio:1 / 1;

    padding:8px;
    box-sizing:border-box;

    background:#f5f7ff;

    border:3px dashed #777;
    border-radius:10px;

    font-weight: 700;
    text-align: center;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.game-answer.hovered {
    background: #dbeafe;
    border-color: #2563eb;
    transform: scale(1.03);
}

.game-answer.correct-slot {
    background: #e9f9ee;
    border-color: #28a745;
    border-style: solid;
}

.answer-sound{
    position:static;
    margin-top:8px;
}

.answer-word {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: center;
    line-height: 1.15;
    font-size: 16px;
    font-weight: 700;
}

/* =========================================================
   JUISTE KAART
========================================================= */

.game-card.correct {
    border-color: #28a745;
    background: #28a745;
}


/* =========================================================
   OPNIEUW SPELEN
========================================================= */

.restart-button {
    display: block;
    margin: 25px auto 0;
}


/* =========================================================
   SUCCESVENSTER
========================================================= */

.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.65);
}

.success-message {
    width: 100%;
    max-width: 450px;

    padding: 35px 25px;

    text-align: center;

    background: #fff;
    border-radius: 20px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.35);

    animation: successPop 0.35s ease-out;
}

.success-icon {
    font-size: 55px;
    margin-bottom: 10px;
}

.success-message h2 {
    margin-bottom: 10px;
}

.success-message p {
    margin-bottom: 25px;
    font-size: 17px;
}

@keyframes successPop {

    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .game-container {
        padding: 15px;
    }

    .game-cards,
    .game-answers {
        gap: 8px;
    }

}


/* =========================================================
   SMARTPHONE
========================================================= */

@media (max-width: 600px) {

    .game-container {
        padding: 12px;
        border-radius: 10px;
    }

    .game-cards,
    .game-answers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .answer-word {
        font-size: 12px;
    }

    .sound-button {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

}

.weetjes-info {
    font-family: "Be Vietnam Pro", sans-serif;
    line-height: 1.6;
}

.weetjes-info h2 {
    color: #8b4513;
    font-size: 28px;
    margin-bottom: 20px;
}

.weetjes-info h3 {
    margin-top: 35px;
    color: #333;
}


/* Wist-je-dat blok */

.wist-je-dat {
    display: flex;
    align-items: center;
    gap: 15px;

    background: #fff8dc;
    border-left: 6px solid #ffcd00;
    border-radius: 12px;

    padding: 15px;
    margin: 30px 0;

    box-shadow: 3px 3px 8px rgba(0,0,0,0.15);

    /* animatie bij scrollen */
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}


.wist-je-dat.zichtbaar {
    opacity: 1;
    transform: translateY(0);
}


.wist-je-dat .material-symbols-outlined {
    font-size: 38px;
    color: #e6a700;
}


.wist-je-dat strong {
    color: #8b4513;
    font-size: 19px;
}


.wist-je-dat p {
    margin: 5px 0 0;
}

.wist-je-dat .lamp {
    font-size: 38px;
    color: #e6a700;
    flex-shrink: 0;
}


.wist-tekst {
    flex: 1;
}


.wist-afbeelding {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffcd00;
    flex-shrink: 0;
}
    
@media (max-width: 576px) {

    .wist-je-dat {
        flex-wrap: wrap;
    }

    .wist-afbeelding {
        width: 60px;
        height: 60px;
        margin-left: auto;
    }

}