/* the prepositions with Tijs (taaltaal-exercise-prepositions.js): the room on the paper card of the
   clock, the words and answers under it, the tabs, the pop, the dots and the polaroid as on the clock */
taaltaal-exercise-prepositions { display: block; max-width: 720px; font: 15px/1.45 Arial, Verdana, sans-serif; color: #333; }
taaltaal-exercise-prepositions [hidden] { display: none !important; }

taaltaal-exercise-prepositions .tpp-tabs { display: flex; gap: 4px; margin-left: 0; }     /* the first tab on the card's left edge */
taaltaal-exercise-prepositions .tpp-tabs button { padding: 6px 16px 7px; border: 1px solid #e6cfa8; border-bottom: 0; border-radius: 12px 12px 0 0;
        background: linear-gradient(#faefdc, #f0dcbd); color: #8a6c48; font: inherit; font-weight: bold; cursor: pointer; white-space: nowrap; }
/* the open tab is of the same paper as the card under it, and runs into it: tab and card are one sheet */
taaltaal-exercise-prepositions .tpp-tabs button[aria-selected="true"] { position: relative; z-index: 2; margin-bottom: -1px; padding-bottom: 8px; color: #5a3a17;
        background: #fdf6ec url("/images/kennis/paper.png"); border-color: rgba(120, 95, 60, .18); }

taaltaal-exercise-prepositions .tpp-card { position: relative; padding: 18px 20px 20px; border-radius: 0 10px 10px 10px; background: #fdf6ec url("/images/kennis/paper.png");
        border: 1px solid rgba(120, 95, 60, .18); box-shadow: 0 2px 7px rgba(60, 45, 20, .14); }
taaltaal-exercise-prepositions .tpp-scene { border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(60, 45, 20, .15), 0 2px 6px rgba(60, 45, 20, .15); }
taaltaal-exercise-prepositions .room { display: block; width: 100%; height: auto; touch-action: none; }
taaltaal-exercise-prepositions .room .seam { stroke: #8a5a2e; stroke-width: 1; opacity: .35; }
taaltaal-exercise-prepositions .room .hit { fill: transparent; }
taaltaal-exercise-prepositions .room .tijs { transform-box: view-box; transform-origin: 0 0; transition: transform .45s cubic-bezier(.3, 1.35, .5, 1);
        filter: drop-shadow(0 3px 3px rgba(40, 30, 10, .25)); }
taaltaal-exercise-prepositions .room .tijs.still { transition: none; }
taaltaal-exercise-prepositions .room .tijs.lifted { filter: drop-shadow(0 10px 8px rgba(40, 30, 10, .3)); }
taaltaal-exercise-prepositions .room .balloon-up { display: none; }
taaltaal-exercise-prepositions .room .tijs.up .balloon-up { display: inline; }
taaltaal-exercise-prepositions .tpp-set .room, taaltaal-exercise-prepositions .tpp-listen .room { cursor: pointer; }
taaltaal-exercise-prepositions .tpp-set .room .tijs, taaltaal-exercise-prepositions .tpp-listen .room .tijs { cursor: grab; }

taaltaal-exercise-prepositions .tpp-side { margin-top: 14px; min-height: 120px; }
taaltaal-exercise-prepositions .tpp-sentence { margin: 0 0 10px; font-size: 26px; font-weight: bold; color: #2b3f93; }
taaltaal-exercise-prepositions .tpp-sentence b { color: #c70765; }
taaltaal-exercise-prepositions .tpp-words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
taaltaal-exercise-prepositions .tpp-words button { padding: 6px 14px; 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-prepositions .tpp-words button:hover { background: #f3f6fb; }
taaltaal-exercise-prepositions .tpp-words button[aria-pressed="true"] { background: linear-gradient(#ee3399, #cd1269); border-color: #cd1269; color: #fff; }
taaltaal-exercise-prepositions .tpp-tip { margin: 10px 0 0; font-size: 13.5px; font-weight: bold; color: #c70765; }

taaltaal-exercise-prepositions .tpp-ask { margin: 0 0 10px; font-size: 18px; font-weight: bold; color: #2b3f93; }
taaltaal-exercise-prepositions .tpp-ask b { display: block; margin-top: 4px; font-size: 24px; color: #8a5a2b; }
taaltaal-exercise-prepositions .tpp-ask small { display: block; margin-top: 4px; font-size: 12px; font-weight: normal; color: #888; }
taaltaal-exercise-prepositions .tpp-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
taaltaal-exercise-prepositions .tpp-answers button { padding: 9px 14px; text-align: left; border: 1px solid #dcd6c8; border-radius: 8px; background: #fff;
        font: inherit; color: #333; cursor: pointer; box-shadow: 0 1px 2px rgba(60, 45, 20, .1); }
taaltaal-exercise-prepositions .tpp-answers button:hover:not(:disabled) { box-shadow: 0 3px 6px rgba(60, 45, 20, .16); }
taaltaal-exercise-prepositions .tpp-answers button:disabled { cursor: default; opacity: .7; }
taaltaal-exercise-prepositions .tpp-answers button.right { opacity: 1; border-color: #393; background: #ecf8ea; color: #1f6b1f; font-weight: bold; }
taaltaal-exercise-prepositions .tpp-answers button.wrong { opacity: 1; border-color: #c70765; background: #fdeef4; color: #a0054f; }
taaltaal-exercise-prepositions .tpp-answers .tpp-check { grid-column: 1; justify-self: start; min-width: 120px; padding: 9px 26px; border-radius: 20px;
        text-align: center; font-weight: bold; color: #fff; background: linear-gradient(#4a5fb0, #2b3f93); border-color: #2b3f93; }
taaltaal-exercise-prepositions .tpp-play { display: inline-block; margin: 8px 0 2px; padding: 7px 16px 8px; border: 0; border-radius: 18px; cursor: pointer;
        background: linear-gradient(#ee3399, #cd1269); color: #fff; font: inherit; font-weight: bold; box-shadow: 0 2px 4px rgba(150, 10, 80, .3); }
taaltaal-exercise-prepositions .tpp-play::before { content: ""; display: inline-block; margin-right: 8px; border-left: 9px solid #fff;
        border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

taaltaal-exercise-prepositions .tpp-feedback p { margin: 10px 0 0; }
taaltaal-exercise-prepositions .tpp-bad { color: #a0054f; }
taaltaal-exercise-prepositions .tpp-hint { font-size: 13px; color: #6b5a40; background: #fdf6a3; padding: 7px 10px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
taaltaal-exercise-prepositions .tpp-score { font-size: 16px; }
taaltaal-exercise-prepositions .tpp-next { margin-top: 12px; padding: 8px 18px; border: 0; border-radius: 8px; background: linear-gradient(#4a5fb0, #2b3f93);
        color: #fff; font: inherit; font-weight: bold; cursor: pointer; }
taaltaal-exercise-prepositions button:focus-visible { outline: 2px solid #2b3f93; outline-offset: 2px; }
taaltaal-exercise-prepositions .tpp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }

taaltaal-exercise-prepositions .tpp-pop { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
        pointer-events: none; animation: tpp-pop 1.6s ease-out forwards; }
taaltaal-exercise-prepositions .tpp-pop b { font-size: 58px; color: #2f9a2f; text-shadow: 0 0 2px #fff, 0 0 12px #fff, 0 3px 10px rgba(40, 90, 40, .35); }
taaltaal-exercise-prepositions .tpp-pop span { margin-top: 2px; font-size: 22px; font-weight: bold; color: #2b3f93; text-shadow: 0 0 2px #fff, 0 0 10px #fff; }
@keyframes tpp-pop { 0% { opacity: 0; transform: scale(.5); } 15% { opacity: 1; transform: scale(1.05); } 65% { opacity: 1; transform: scale(1.1); }
                     100% { opacity: 0; transform: scale(1.3); } }

taaltaal-exercise-prepositions .tpp-progress { display: flex; gap: 6px; justify-content: center; margin: 12px 0 0; padding: 0; list-style: none; }
taaltaal-exercise-prepositions .tpp-progress li { width: 10px; height: 10px; border-radius: 50%; background: #e2ddd2; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .15); }
taaltaal-exercise-prepositions .tpp-progress li.right { background: #393; }
taaltaal-exercise-prepositions .tpp-progress li.wrong { background: #c70765; }

taaltaal-exercise-prepositions .tpp-narrator { position: absolute; right: 18px; top: -12px; z-index: 2; width: 86px; margin: 0; padding: 6px 6px 4px; border: 0;
        background: #fff; box-shadow: 0 3px 8px rgba(40, 30, 10, .28); transform: rotate(4deg); font: inherit; cursor: pointer; }
taaltaal-exercise-prepositions .tpp-narrator img { display: block; width: 100%; height: auto; }
taaltaal-exercise-prepositions .tpp-narrator .tpp-name, taaltaal-exercise-prepositions .tpp-narrator figcaption { display: block; margin-top: 3px; text-align: center;
        font: 15px "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; color: #2b3f93; line-height: 1.2; }
taaltaal-exercise-prepositions .tpp-hello { position: absolute; right: 118px; top: 6px; z-index: 3; width: 270px; padding: 14px 16px 12px; border-radius: 14px;
        background: linear-gradient(120deg, #fff 0%, #f4f7fd 60%, #e8eefb 100%); border: 1px solid #d6dff0; box-shadow: 0 8px 22px rgba(43, 63, 147, .22); }
taaltaal-exercise-prepositions .tpp-hello-text { margin: 0 24px 0 0; font-size: 15px; line-height: 1.45; }
taaltaal-exercise-prepositions .tpp-hello-in { margin: 8px 0 0; font-size: 13px; color: #888; font-style: italic; }
taaltaal-exercise-prepositions .tpp-close { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
        cursor: pointer; background: #efe9de; color: #5a4a35; font-size: 18px; font-weight: bold; line-height: 25px; }
/* the room over the full width; the polaroid hangs in its top right
   corner, a photo pinned to the wall, clear of every place Bo can be */
taaltaal-exercise-prepositions .tpp-narrator { top: 6px; right: 26px; }

@media (max-width: 560px)
{
    taaltaal-exercise-prepositions .tpp-card { padding: 12px; }
    taaltaal-exercise-prepositions .tpp-tabs button { padding: 6px 9px 7px; font-size: 13px; }
    taaltaal-exercise-prepositions .tpp-answers { grid-template-columns: 1fr; }
    taaltaal-exercise-prepositions .tpp-narrator { width: 58px; right: 8px; top: 6px; padding: 4px; }
    taaltaal-exercise-prepositions .tpp-hello { left: 8px; right: 8px; width: auto; top: 70px; }
}
@media (prefers-reduced-motion: reduce)
{
    taaltaal-exercise-prepositions .room .tijs { transition: none; }
    taaltaal-exercise-prepositions .tpp-pop { animation: none; }
}
/* the room set into the paper, an inset around it; Ans lower, a photo hanging on the brick wall with a pin; the sentence and its
   Listen button on one line; the words in their two rows */
taaltaal-exercise-prepositions .tpp-scene { position: relative; }
taaltaal-exercise-prepositions .tpp-scene::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
        box-shadow: inset 0 2px 6px rgba(40, 25, 10, .45), inset 0 0 0 1px rgba(40, 25, 10, .25); }
taaltaal-exercise-prepositions .tpp-narrator { top: 44px; right: 40px; transform: rotate(3deg); }
taaltaal-exercise-prepositions .tpp-narrator::before { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px;
        border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a9c, #c70765); box-shadow: 0 2px 2px rgba(0, 0, 0, .35); }
taaltaal-exercise-prepositions .tpp-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
taaltaal-exercise-prepositions .tpp-line .tpp-sentence { margin: 0; }
taaltaal-exercise-prepositions .tpp-line .tpp-play { margin: 0; }
taaltaal-exercise-prepositions .tpp-words { flex-direction: column; gap: 6px; }
taaltaal-exercise-prepositions .tpp-words > div { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 560px) { taaltaal-exercise-prepositions .tpp-narrator { top: 24px; right: 14px; } }
/* the inset clearer at the bottom; Listen at the right end of its line so it does not move with the length of the sentence; the
   two rows of words centred, a little further apart */
taaltaal-exercise-prepositions .tpp-scene::after { box-shadow: inset 0 2px 6px rgba(40, 25, 10, .45), inset 0 -3px 7px rgba(40, 25, 10, .4), inset 0 0 0 1px rgba(40, 25, 10, .25); }
taaltaal-exercise-prepositions .tpp-line { justify-content: space-between; }
taaltaal-exercise-prepositions .tpp-words { gap: 11px; align-items: center; }
taaltaal-exercise-prepositions .tpp-words > div { justify-content: center; }
taaltaal-exercise-prepositions .tpp-tip { text-align: center; }

/* the balloon of Uitleg that points at the first word when Bo or the room is clicked */
taaltaal-exercise-prepositions .tpp-nudge { position: absolute; z-index: 3; max-width: 260px; padding: 8px 14px 9px; border-radius: 12px; background: #fff;
        border: 2px solid #73d2f7; box-shadow: 0 4px 12px rgba(43, 63, 147, .2); animation: tpp-nudge-in .25s ease-out; }
taaltaal-exercise-prepositions .tpp-nudge b { display: block; font-size: 17px; color: #c70765; }
taaltaal-exercise-prepositions .tpp-nudge small { display: block; font-size: 13px; color: #5b6f9a; }
taaltaal-exercise-prepositions .tpp-nudge::after { content: ""; position: absolute; left: 18px; bottom: -11px; width: 16px; height: 16px; background: #fff;
        border: solid #73d2f7; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes tpp-nudge-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
taaltaal-exercise-prepositions .tpp-words button.tpp-point { animation: tpp-point .6s ease-in-out 2; }
@keyframes tpp-point { 0%, 100% { transform: none; } 30% { transform: translateY(-4px) scale(1.08); } 60% { transform: translateY(1px); } }
@media (prefers-reduced-motion: reduce) { taaltaal-exercise-prepositions .tpp-nudge, taaltaal-exercise-prepositions .tpp-words button.tpp-point { animation: none; } }

/* the polaroid is drawn in the room now, so Bo can go in front of it; its button stays for the keyboard, out of sight */
taaltaal-exercise-prepositions .tpp-narrator { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
taaltaal-exercise-prepositions .tpp-narrator::before { display: none; }

/* the light bulb before "Klik op een woordje": the explanation starts here */
taaltaal-exercise-prepositions .tpp-tip { display: flex; align-items: center; justify-content: center; gap: 6px; }
taaltaal-exercise-prepositions .tpp-tip .ico { flex: none; width: 20px; height: 20px; }

/* Ans's hello is a speech balloon: a little point towards her photo, on its right; on a phone the card is under the photo, the
   point goes up */
taaltaal-exercise-prepositions .tpp-hello { right: 134px; }
taaltaal-exercise-prepositions .tpp-hello::after { content: ""; position: absolute; right: -8px; top: 58px; width: 14px; height: 14px;
        background: #e9effb; border: solid #d6dff0; border-width: 1px 1px 0 0; transform: rotate(45deg); }
@media (max-width: 560px)
{
    taaltaal-exercise-prepositions .tpp-hello { right: 8px; top: 86px; }
    taaltaal-exercise-prepositions .tpp-hello::after { right: 30px; top: -8px; background: #eaf0fb; border-width: 1px 0 0 1px; }
}
