/* What is the café's own (taaltaal-exercise-cafe.js); the rest is the shared look of taaltaal-scene.css. The people talk with
   their mouth, as wide open as the sound is loud (TaalTaalScene.lips; a blink until that is known), the barman frowns at a
   wrong answer, the bitterballen steam, and what has not happened yet (the beer, the wine) is out of sight */
taaltaal-exercise-cafe .place .who { transition: opacity .6s ease; }
taaltaal-exercise-cafe .place .off { opacity: 0; pointer-events: none; transition: opacity .5s ease; }
taaltaal-exercise-cafe .place .bo-beer, taaltaal-exercise-cafe .place .mia-beer, taaltaal-exercise-cafe .place .linda-beer, taaltaal-exercise-cafe .place .wine,
taaltaal-exercise-cafe .place .balls { transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .5s ease; }
taaltaal-exercise-cafe .place .mouth-open { opacity: 0; transform-box: fill-box; transform-origin: 50% 25%; }
taaltaal-exercise-cafe .place .talking:not(.lips) .mouth-open { animation: tcf-talk .32s steps(1) infinite; }
@keyframes tcf-talk { 0% { opacity: 1; } 50% { opacity: 0; } }
taaltaal-exercise-cafe .place .who.talking { animation: tcf-nod .9s ease-in-out infinite alternate; }
@keyframes tcf-nod { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
taaltaal-exercise-cafe .place .brow { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .25s ease; }
taaltaal-exercise-cafe .place .frown .brow { transform: translateY(-2.5px) rotate(-6deg); }
taaltaal-exercise-cafe .place .steam path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: 0; animation: tcf-steam 2.4s ease-in-out infinite; }
taaltaal-exercise-cafe .place .steam path:nth-child(2) { animation-delay: .8s; }
taaltaal-exercise-cafe .place .steam path:nth-child(3) { animation-delay: 1.6s; }
@keyframes tcf-steam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .75; } 100% { opacity: 0; transform: translateY(-8px); } }

/* Uitleg: the five situations as pills, then the board: why, the ways to say it (the little verb in colour, how it sounds as a
   tag), and the one to leave alone, crossed out on a yellow note */
taaltaal-exercise-cafe .tcf-groups { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
taaltaal-exercise-cafe .tcf-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-cafe .tcf-groups button .ico { width: 18px; height: 18px; }
taaltaal-exercise-cafe .tcf-groups button:hover { background: #f3f6fb; }
taaltaal-exercise-cafe .tcf-groups button[aria-pressed="true"] { background: linear-gradient(#ee3399, #cd1269); border-color: #cd1269; color: #fff; }
taaltaal-exercise-cafe .tcf-board { margin-top: 14px; }
taaltaal-exercise-cafe .tcf-why { margin: 0 0 10px; font-size: 15px; color: #5b4a30; }
taaltaal-exercise-cafe .tcf-phrases { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; padding: 0; list-style: none; }
taaltaal-exercise-cafe .tcf-phrases button { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 13px;
        border: 1px solid #dcd6c8; border-radius: 8px; background: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(60, 45, 20, .1); }
taaltaal-exercise-cafe .tcf-phrases button:hover { box-shadow: 0 3px 6px rgba(60, 45, 20, .16); }
taaltaal-exercise-cafe .tcf-phrases button.on { border-color: #2b3f93; background: #f3f6fb; }
taaltaal-exercise-cafe .tcf-say { font-size: 17px; font-weight: bold; color: #2b3f93; }
taaltaal-exercise-cafe .tcf-say b { color: #c70765; }
taaltaal-exercise-cafe .tcf-phrases small { flex: none; font-size: 11.5px; color: #8a7a5a; }
taaltaal-exercise-cafe .tcf-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-cafe .tcf-not s { font-weight: bold; color: #a0054f; text-decoration-thickness: 2px; }

/* Wat zeg je?: the situation big, the three ways under it */
taaltaal-exercise-cafe .tcf-quiz .tts-ask { font-size: 19px; }

/* Aan de bar: the conversation as a chat under the café, each person in a colour of their own; Bo on the right, a wrong try
   pale and crossed through, the right one after it; what Bo has to do, and the three ways to say it */
taaltaal-exercise-cafe .tcf-talk { display: flex; flex-direction: column; gap: 7px; max-height: 300px; overflow-y: auto; margin: 0; list-style: none; }
taaltaal-exercise-cafe .tcf-talk li { max-width: 82%; padding: 7px 12px 8px; border-radius: 12px 12px 12px 3px; background: #fff; box-shadow: 0 1px 3px rgba(60, 45, 20, .14);
        animation: tcf-in .25s ease-out; }
@keyframes tcf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
taaltaal-exercise-cafe .tcf-talk li b { display: block; font-size: 11.5px; color: #8a7a5a; }
taaltaal-exercise-cafe .tcf-talk li span { font-size: 16px; color: #2b2b2b; }
taaltaal-exercise-cafe .tcf-talk li small { display: block; font-size: 12px; color: #8a8a8a; font-style: italic; }
taaltaal-exercise-cafe .tcf-talk .tcf-alex { border-left: 4px solid #2f2a26; }
taaltaal-exercise-cafe .tcf-talk .tcf-mia { border-left: 4px solid #3fa9d8; }
taaltaal-exercise-cafe .tcf-talk .tcf-linda { border-left: 4px solid #4a78c2; }
taaltaal-exercise-cafe .tcf-talk .tcf-carlos { border-left: 4px solid #3f8f6b; }
taaltaal-exercise-cafe .tcf-talk .tcf-ans { border-left: 4px solid #c70765; }
taaltaal-exercise-cafe .tcf-talk .tcf-bo { align-self: flex-end; border-radius: 12px 12px 3px 12px; background: linear-gradient(#fde4f0, #fbd3e6); }
taaltaal-exercise-cafe .tcf-talk .tcf-bo b { color: #c70765; }
taaltaal-exercise-cafe .tcf-talk .tcf-bo.oops { opacity: .65; }
taaltaal-exercise-cafe .tcf-talk .tcf-bo.oops span { text-decoration: line-through; text-decoration-color: #c70765; }
taaltaal-exercise-cafe .tcf-talk .tcf-note { align-self: center; max-width: 100%; padding: 4px 12px; border-radius: 12px; background: #f1e7d4; box-shadow: none;
        font-size: 13px; color: #6b5a40; }
taaltaal-exercise-cafe .tcf-task { margin: 12px 0 8px; font-size: 16px; color: #2b3f93; }
/* on a wide screen the chat stands beside the café (fit() in the js), the café cut to the part where it happens; what Bo has to
   say goes under the café, and the chat is as tall as the two together */
taaltaal-exercise-cafe .tcf-wide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "scene talk" "choose talk";
        column-gap: 16px; align-items: start; }
taaltaal-exercise-cafe .tcf-wide .tts-scene { grid-area: scene; }
taaltaal-exercise-cafe .tcf-wide .tts-side { display: contents; }
taaltaal-exercise-cafe .tcf-wide .tcf-choose { grid-area: choose; min-height: 205px; }
taaltaal-exercise-cafe .tcf-wide .tcf-talk { grid-area: talk; align-self: stretch; height: 0; min-height: calc(100% - 10px); max-height: none; margin-bottom: 10px; }
taaltaal-exercise-cafe .tcf-wide .tcf-talk li { max-width: 92%; }
taaltaal-exercise-cafe .tcf-wide .tcf-task { margin-top: 8px; font-size: 15px; }
taaltaal-exercise-cafe .tcf-task b { color: #c70765; }
/* at the end of the bar: "Nog een keer naar de bar" in the middle */
taaltaal-exercise-cafe .tcf-choose > .tts-next { display: block; margin-left: auto; margin-right: auto; }
/* what someone in the café says, in a balloon over their head, the edge in their colour (Mia light blue) */
taaltaal-exercise-cafe .place .tcf-balloon rect, taaltaal-exercise-cafe .place .tcf-balloon path { fill: #fff; filter: drop-shadow(0 2px 3px rgba(60, 45, 20, .3)); }
taaltaal-exercise-cafe .place .tcf-balloon rect { stroke: #8a7a5a; stroke-width: 2; }
taaltaal-exercise-cafe .place .tcf-balloon-mia rect { stroke: #3fa9d8; }
taaltaal-exercise-cafe .place .tcf-balloon-alex rect { stroke: #2f2a26; }
taaltaal-exercise-cafe .place .tcf-balloon-linda rect { stroke: #4a78c2; }
taaltaal-exercise-cafe .place .tcf-balloon-carlos rect { stroke: #3f8f6b; }
taaltaal-exercise-cafe .place .tcf-balloon text { font: 600 14px system-ui, sans-serif; fill: #2b2b2b; }

@media (max-width: 560px)
{
    taaltaal-exercise-cafe .tcf-phrases { grid-template-columns: 1fr; }
    taaltaal-exercise-cafe .tcf-talk li { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce)
{
    taaltaal-exercise-cafe .place .talking .mouth-open, taaltaal-exercise-cafe .place .who.talking, taaltaal-exercise-cafe .place .steam path,
    taaltaal-exercise-cafe .tcf-talk li { animation: none; }
    taaltaal-exercise-cafe .place .steam path { opacity: .5; }
}
