/* What is Niet of geen's own (taaltaal-exercise-negation.js); the card, the tabs and the buttons are taaltaal-scene.css.
   Plain on purpose, as Bij de buren: the rule with its examples, a sentence with a gap, and the chat at the table. The chat
   has a fixed height and scrolls inside, so on a laptop the whole card stays in view while playing */

/* Uitleg: the five rules as pills, then why, the examples (niet and geen in colour, heard when clicked), and the mistake to
   leave alone on a yellow note */
taaltaal-exercise-negation .tng-groups { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
taaltaal-exercise-negation .tng-groups button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 1px solid #dcd6c8; border-radius: 16px;
        background: #fff; font: inherit; font-weight: bold; color: #2b3f93; cursor: pointer; box-shadow: 0 1px 2px rgba(60, 45, 20, .1); }
taaltaal-exercise-negation .tng-groups button .ico { width: 18px; height: 18px; }
taaltaal-exercise-negation .tng-groups button:hover { background: #f3f6fb; }
taaltaal-exercise-negation .tng-groups button[aria-pressed="true"] { background: linear-gradient(#ee3399, #cd1269); border-color: #cd1269; color: #fff; }
taaltaal-exercise-negation .tng-board { margin-top: 14px; }
taaltaal-exercise-negation .tng-why { margin: 0 0 10px; font-size: 15px; color: #5b4a30; }
taaltaal-exercise-negation .tng-examples { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
taaltaal-exercise-negation .tng-examples button { display: block; width: 100%; padding: 7px 13px 8px; border: 1px solid #dcd6c8; border-left: 4px solid #c70765;
        border-radius: 10px; background: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(60, 45, 20, .1); }
taaltaal-exercise-negation .tng-examples button:hover { box-shadow: 0 3px 6px rgba(60, 45, 20, .16); }
taaltaal-exercise-negation .tng-examples button.on { border-color: #2b3f93; border-left-color: #c70765; }
taaltaal-exercise-negation .tng-examples span { font-size: 17px; color: #2b3f93; }
taaltaal-exercise-negation .tng-examples span b { color: #c70765; }
taaltaal-exercise-negation .tng-examples small { display: block; font-size: 12px; color: #8a8a8a; font-style: italic; }
taaltaal-exercise-negation .tng-not { margin: 12px 0 0; padding: 8px 12px; border-radius: 6px; background: #fdf6a3; box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
        font-size: 13.5px; color: #6b5a40; }
taaltaal-exercise-negation .tng-not s { font-weight: bold; color: #a0054f; text-decoration-thickness: 2px; }

/* Niet of geen?: the sentence big, with the gap as a little box that gets the word; two big buttons under it */
taaltaal-exercise-negation .tng-ask { min-height: 150px; text-align: center; }
taaltaal-exercise-negation .tng-kind { margin: 4px 0 6px; font-size: 13.5px; color: #8a7a5a; }
taaltaal-exercise-negation .tng-sentence { margin: 0; font-size: 24px; font-weight: bold; color: #2b3f93; line-height: 1.5; }
taaltaal-exercise-negation .tng-gap { display: inline-block; min-width: 3.4em; margin: 0 .2em; padding: 0 .3em; border-bottom: 3px dashed #c9a46e; color: #b0a58c; }
taaltaal-exercise-negation .tng-gap.right { border-bottom: 3px solid #393; color: #1f6b1f; }
taaltaal-exercise-negation .tng-gap.fixed { border-bottom: 3px solid #c70765; color: #c70765; }
taaltaal-exercise-negation .tng-en { margin: 4px 0 0; font-size: 13px; color: #8a8a8a; font-style: italic; }
taaltaal-exercise-negation .tng-two { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
taaltaal-exercise-negation .tng-two button { min-width: 110px; padding: 10px 18px; border: 1px solid #dcd6c8; border-radius: 10px; background: #fff; font: inherit;
        font-size: 20px; font-weight: bold; color: #2b3f93; cursor: pointer; box-shadow: 0 2px 4px rgba(60, 45, 20, .12); }
taaltaal-exercise-negation .tng-two button:hover:not(:disabled) { box-shadow: 0 3px 8px rgba(60, 45, 20, .2); }
taaltaal-exercise-negation .tng-two button:disabled { cursor: default; opacity: .7; }
taaltaal-exercise-negation .tng-two button.right { opacity: 1; border-color: #393; background: #ecf8ea; color: #1f6b1f; }
taaltaal-exercise-negation .tng-two button.wrong { opacity: 1; border-color: #c70765; background: #fdeef4; color: #a0054f; }
taaltaal-exercise-negation .tng-ask .tts-answers { max-width: 420px; margin: 10px auto 0; }
taaltaal-exercise-negation .tng-ask .tts-answers button { font-size: 17px; }
taaltaal-exercise-negation .tng-on-quiz .tts-feedback { max-width: 460px; margin: 0 auto; text-align: center; }
taaltaal-exercise-negation .tng-good b { color: #2f9a2f; }

/* In het restaurant: the two at the table, the chat between them, and what Carlos says; who talks nods a little, the mouth
   opens with the sound (a blink until the sound is measured) */
taaltaal-exercise-negation .tng-table { display: grid; grid-template-columns: 78px 1fr 78px; align-items: center; gap: 14px; }
taaltaal-exercise-negation .tng-who { margin: 0; text-align: center; }
taaltaal-exercise-negation .tng-who svg { display: block; width: 72px; height: 72px; border-radius: 50%; border: 3px solid #fff;
        box-shadow: 0 2px 6px rgba(60, 45, 20, .25); }
taaltaal-exercise-negation .tng-who figcaption { margin-top: 3px; font-size: 13px; font-weight: bold; color: #5b4a30; }
taaltaal-exercise-negation .tng-who figcaption small { font-weight: normal; color: #8a7a5a; }
taaltaal-exercise-negation .tng-where { margin: 0; font-size: 14.5px; color: #5b4a30; text-align: center; }
taaltaal-exercise-negation .tng-who .head { transform-box: view-box; transform-origin: 50px 70px; }
taaltaal-exercise-negation .tng-who.talking .head { animation: tng-nod .9s ease-in-out infinite alternate; }
@keyframes tng-nod { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
taaltaal-exercise-negation .tng-who .mouth-open { opacity: 0; transform-box: fill-box; transform-origin: 50% 25%; }
taaltaal-exercise-negation .tng-who.talking:not(.lips) .mouth-open { animation: tng-talk .32s steps(1) infinite; }
@keyframes tng-talk { 0% { opacity: 1; } 50% { opacity: 0; } }

/* the chat: Alex on the left in his white and black, Carlos on the right in green; an odd try pale and crossed through */
taaltaal-exercise-negation .tng-log { display: flex; flex-direction: column; gap: 7px; height: 210px; overflow-y: auto; margin: 12px 0 0; list-style: none; }
taaltaal-exercise-negation .tng-log li { max-width: 82%; padding: 6px 12px 7px; border-radius: 12px 12px 12px 3px; background: #fff;
        box-shadow: 0 1px 3px rgba(60, 45, 20, .14); animation: tng-in .25s ease-out; }
@keyframes tng-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
taaltaal-exercise-negation .tng-log li b { display: block; font-size: 11.5px; color: #8a7a5a; }
taaltaal-exercise-negation .tng-log li span { font-size: 16px; color: #2b2b2b; }
taaltaal-exercise-negation .tng-log li small { display: block; font-size: 12px; color: #8a8a8a; font-style: italic; }
taaltaal-exercise-negation .tng-log .tng-alex { border-left: 4px solid #2f2a26; }
taaltaal-exercise-negation .tng-log .tng-carlos { align-self: flex-end; border-radius: 12px 12px 3px 12px; background: linear-gradient(#ecf8f1, #dcf0e4); }
taaltaal-exercise-negation .tng-log .tng-carlos b { color: #2c7a55; }
taaltaal-exercise-negation .tng-log .tng-carlos.oops { opacity: .65; }
taaltaal-exercise-negation .tng-log .tng-carlos.oops span { text-decoration: line-through; text-decoration-color: #c70765; }

/* what Carlos has to do and the ways to say it; the button to go in before it starts. An impolite try gets a pink note */
taaltaal-exercise-negation .tng-choose { min-height: 67px; }     /* as tall as the start (Ga naar binnen with its margins), so nothing shrinks when it goes */
taaltaal-exercise-negation .tts-play.tng-in { align-self: flex-start; margin: 18px 0 12px; }     /* the start, as every play button: the white arrow */
taaltaal-exercise-negation .tng-on-talk .tng-choose:has(.tng-in) { display: flex; justify-content: center; }
taaltaal-exercise-negation .tng-task { margin: 10px 0 7px; font-size: 15px; color: #2b3f93; }
taaltaal-exercise-negation .tng-task b { color: #c70765; }
taaltaal-exercise-negation .tng-choose .tts-why { margin: 10px 0 0; }
taaltaal-exercise-negation .tng-choose .tts-why.tng-bad { background: #fde3ee; color: #8a1450; }
taaltaal-exercise-negation .tng-choose .tts-answers button { padding: 8px 14px; }
taaltaal-exercise-negation .tts-answers button small { display: block; font-size: 12.5px; color: #888; font-style: italic; }

@media (max-width: 560px)
{
    taaltaal-exercise-negation .tng-table { grid-template-columns: 62px 1fr 62px; gap: 10px; }
    taaltaal-exercise-negation .tng-who svg { width: 56px; height: 56px; }
    taaltaal-exercise-negation .tng-where { font-size: 13px; }
    taaltaal-exercise-negation .tng-log { height: 190px; }
    taaltaal-exercise-negation .tng-log li { max-width: 92%; }
    taaltaal-exercise-negation .tng-sentence { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce)
{
    taaltaal-exercise-negation .tng-who.talking .head, taaltaal-exercise-negation .tng-who.talking .mouth-open,
    taaltaal-exercise-negation .tng-log li { animation: none; }
}
