/* What is Bij de buren's own (taaltaal-exercise-neighbour.js); the card, the tabs and the buttons are taaltaal-scene.css.
   Plain on purpose: the two at the door, the chat between them, and what Alex says. The chat has a fixed height and
   scrolls inside, so on a laptop the whole card stays in view while playing */
taaltaal-exercise-neighbour .tbn-door { display: grid; grid-template-columns: 78px 1fr 78px; align-items: center; gap: 14px; }
taaltaal-exercise-neighbour .tbn-who { margin: 0; text-align: center; }
taaltaal-exercise-neighbour .tbn-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-neighbour .tbn-who figcaption { margin-top: 3px; font-size: 13px; font-weight: bold; color: #5b4a30; }
taaltaal-exercise-neighbour .tbn-who figcaption small { font-weight: normal; color: #8a7a5a; }
taaltaal-exercise-neighbour .tbn-where { margin: 0; font-size: 14.5px; color: #5b4a30; text-align: center; }
/* Ans is behind her door until the bell rings */
taaltaal-exercise-neighbour .tbn-on-talk .tbn-ans svg { transition: opacity .6s ease, filter .6s ease; }
taaltaal-exercise-neighbour .tbn-on-talk .tbn-door:not(.open) .tbn-ans svg { opacity: .45; filter: grayscale(1); }
/* who talks: the head nods a little, the mouth opens with the sound (a blink until the sound is measured) */
taaltaal-exercise-neighbour .tbn-who .head { transform-box: view-box; transform-origin: 50px 70px; }
taaltaal-exercise-neighbour .tbn-who.talking .head { animation: tbn-nod .9s ease-in-out infinite alternate; }
@keyframes tbn-nod { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
taaltaal-exercise-neighbour .tbn-who .mouth-open { opacity: 0; transform-box: fill-box; transform-origin: 50% 25%; }
taaltaal-exercise-neighbour .tbn-who.talking:not(.lips) .mouth-open { animation: tbn-talk .32s steps(1) infinite; }
@keyframes tbn-talk { 0% { opacity: 1; } 50% { opacity: 0; } }

/* the chat: Ans on the left with her magenta, Alex on the right in blue; an odd try pale and crossed through */
/* the chat takes the height the turn leaves it (.tbn-area is measured in the script; .tbn-room is the chat's smallest) */
taaltaal-exercise-neighbour .tbn-area { display: flex; flex-direction: column; margin-top: 12px; }
taaltaal-exercise-neighbour .tbn-room { height: 200px; }
taaltaal-exercise-neighbour .tbn-log { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 7px; overflow-y: auto; margin: 0; list-style: none; }
taaltaal-exercise-neighbour .tbn-end { width: 100%; }
taaltaal-exercise-neighbour .tbn-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: tbn-in .25s ease-out; }
@keyframes tbn-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
taaltaal-exercise-neighbour .tbn-log li b { display: block; font-size: 11.5px; color: #8a7a5a; }
taaltaal-exercise-neighbour .tbn-log li span { font-size: 16px; color: #2b2b2b; }
taaltaal-exercise-neighbour .tbn-log li small { display: block; font-size: 12px; color: #8a8a8a; font-style: italic; }
taaltaal-exercise-neighbour .tbn-log .tbn-ans { border-left: 4px solid #c70765; }
taaltaal-exercise-neighbour .tbn-log .tbn-alex { align-self: flex-end; border-radius: 12px 12px 3px 12px; background: linear-gradient(#eef3fc, #e1e9f8); }
taaltaal-exercise-neighbour .tbn-log .tbn-alex b { color: #2b3f93; }
taaltaal-exercise-neighbour .tbn-log .tbn-alex.oops { opacity: .65; }
taaltaal-exercise-neighbour .tbn-log .tbn-alex.oops span { text-decoration: line-through; text-decoration-color: #c70765; }

/* what Alex has to do and the ways to say it; the ring button before it starts. A rude try gets a pink note, not a yellow */
taaltaal-exercise-neighbour .tbn-choose { flex: none; }
taaltaal-exercise-neighbour .tts-play.tbn-ring { align-self: flex-start; margin: 18px 0 12px; }     /* the start, as every play button: the white arrow */
taaltaal-exercise-neighbour .tbn-on-talk .tbn-choose:has(.tbn-ring) { display: flex; justify-content: center; }
taaltaal-exercise-neighbour .tbn-task { margin: 10px 0 7px; font-size: 15px; color: #2b3f93; }
taaltaal-exercise-neighbour .tbn-task b { color: #c70765; }
taaltaal-exercise-neighbour .tbn-choose .tts-why { margin: 10px 0 0; }
taaltaal-exercise-neighbour .tbn-choose .tts-why.tbn-bad { background: #fde3ee; color: #8a1450; }
taaltaal-exercise-neighbour .tts-answers button { padding: 8px 14px; }
taaltaal-exercise-neighbour .tts-answers button small { display: block; font-size: 12.5px; color: #888; font-style: italic; }

/* Handige zinnen: the six situations as pills, then why, the sentences (who says them, heard when clicked), and the one to
   leave alone on a yellow note */
taaltaal-exercise-neighbour .tbn-groups { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
taaltaal-exercise-neighbour .tbn-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-neighbour .tbn-groups button .ico { width: 18px; height: 18px; }
taaltaal-exercise-neighbour .tbn-groups button:hover { background: #f3f6fb; }
taaltaal-exercise-neighbour .tbn-groups button[aria-pressed="true"] { background: linear-gradient(#ee3399, #cd1269); border-color: #cd1269; color: #fff; }
taaltaal-exercise-neighbour .tbn-board { margin-top: 14px; }
taaltaal-exercise-neighbour .tbn-why { margin: 0 0 10px; font-size: 15px; color: #5b4a30; }
taaltaal-exercise-neighbour .tbn-phrases { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
taaltaal-exercise-neighbour .tbn-phrases li { max-width: 88%; }
taaltaal-exercise-neighbour .tbn-phrases li.tbn-alex { align-self: flex-end; }
taaltaal-exercise-neighbour .tbn-phrases button { display: block; width: 100%; padding: 7px 13px 8px; border: 1px solid #dcd6c8; border-radius: 10px; background: #fff;
        font: inherit; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(60, 45, 20, .1); }
taaltaal-exercise-neighbour .tbn-phrases .tbn-ans button { border-left: 4px solid #c70765; }
taaltaal-exercise-neighbour .tbn-phrases .tbn-alex button { background: linear-gradient(#eef3fc, #e1e9f8); }
taaltaal-exercise-neighbour .tbn-phrases button:hover { box-shadow: 0 3px 6px rgba(60, 45, 20, .16); }
taaltaal-exercise-neighbour .tbn-phrases button.on { border-color: #2b3f93; }
/* the sentence that is being said, as the ring round who says it in the conversation */
taaltaal-exercise-neighbour .tbn-phrases li.talking button { border-color: #c70765; box-shadow: 0 0 0 3px rgba(199, 7, 101, .25); }
taaltaal-exercise-neighbour .tbn-phrases b { display: block; font-size: 11.5px; color: #8a7a5a; }
taaltaal-exercise-neighbour .tbn-phrases span { font-size: 16.5px; font-weight: bold; color: #2b3f93; }
taaltaal-exercise-neighbour .tbn-phrases small { display: block; font-size: 12px; color: #8a8a8a; font-style: italic; }
taaltaal-exercise-neighbour .tbn-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-neighbour .tbn-not s { font-weight: bold; color: #a0054f; text-decoration-thickness: 2px; }

@media (max-width: 560px)
{
    taaltaal-exercise-neighbour .tbn-door { grid-template-columns: 62px 1fr 62px; gap: 10px; }
    taaltaal-exercise-neighbour .tbn-who svg { width: 56px; height: 56px; }
    taaltaal-exercise-neighbour .tbn-where { font-size: 13px; }
    taaltaal-exercise-neighbour .tbn-room { height: 180px; }
    taaltaal-exercise-neighbour .tbn-log li, taaltaal-exercise-neighbour .tbn-phrases li { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce)
{
    taaltaal-exercise-neighbour .tbn-who.talking .head, taaltaal-exercise-neighbour .tbn-who.talking .mouth-open,
    taaltaal-exercise-neighbour .tbn-log li { animation: none; }
}
