/*
 * Copyright (c) 2023 Serhat Holding BV
 *
 * The look of <taaltaal-lela>, the de/het game (js/game/taaltaal-lela.js, on /game). Its own animations are at the end:
 * the game needs no other stylesheet than the frame of the site.
 */

taaltaal-lela
{
    display: block;
    position: relative;
    height: 100%;
    /*
        background: radial-gradient(circle, rgb(210, 225, 245) 0%, rgb(120, 130, 140) 130%);
        background: url(/images/wallpapers/wood.jpg);
        background-size: cover;
        background-attachment: fixed;
    */

    background: url(/images/game/doodle.png);
    background-size: 250px;
    background-attachment: fixed;
    overflow: hidden;
}

    taaltaal-lela div.overlay
    {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        z-index: 1000;
    }

    taaltaal-lela div.overlay .left
    {
        position: absolute;
        background: repeating-linear-gradient(to right, red, darkred 20px);
        width: 50%;
        top: 0;
        left: 0;
        bottom: 0;
        transform-origin: top right;
        transform: translateX(-100%) rotate(15deg);
        transition: transform 0.3s;
    }

    taaltaal-lela div.overlay .left.closed
    {
        transform: none;
        transition: transform 0.3s;
    }

    taaltaal-lela div.overlay .right
    {
        position: absolute;
        background: repeating-linear-gradient(to right, red, darkred 20px);
        width: 50%;
        top: 0;
        right: 0;
        bottom: 0;
        transform-origin: top left;
        transform: translateX(100%) rotate(-15deg);
        transition: transform 0.3s;
    }

    taaltaal-lela div.overlay .right.closed
    {
        transform: none;
        transition: transform 0.3s;
    }

    taaltaal-lela .panel
    {
        position: relative;
        height: 100%;
    }

        taaltaal-lela .panel h1
        {
            width: 100%;
            text-align: center;
            color: navy;
            margin-bottom: 5px;
            font-size: 1.3em;
            font-style: italic;
            z-index: 100;
        }

        taaltaal-lela .panel .big-title
        {
            color: white;
            font-size: 40px;
            text-shadow: 1px 1px 1px #999,
            1px 1px 1px #999,
            1px 2px 1px #999,
            1px 3px 1px rgba(16,16,16,0.3),
            1px 4px 2px rgba(16,16,16,0.3),
            1px 5px 10px rgba(16,16,16,0.4);
        }

    taaltaal-lela .panel.intro
    {
        display: flex;
        flex-direction: column;
        padding: 15px 15px 0 15px;
    }

        taaltaal-lela .panel.intro .info
        {
            display: flex;
            position: relative;
            right: -15px;
            /* margin-right: -15px; */
        }

        taaltaal-lela .panel.intro .info .foto
        {
            position: relative;
            left: -5px;
            top: -25px;
            width: 114px;
            height: 28px;
            padding-top: 85px;
            padding-left: 38px;
            font-size: 12px;
            font-weight: bold;
            color: #038;
            transform: rotate(-5deg);
            z-index: 100;
        }

        taaltaal-lela .panel.intro .language-explainer
        {
            position: absolute;
            right: 0;
            left: 20px;
            margin-bottom: 25px;
            text-align: center;
            /* the banner of the language's course pages: taaltaal-lela.js sets the picture, this color shows until it is
               there */
            background: #4466aa center / cover no-repeat;
            border-radius: 8px 0 0 8px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
        }

            taaltaal-lela .panel.intro .language-explainer div.articles
            {
                display: flex;
                align-items: center;
                justify-content: space-evenly;
                justify-content: center;
                margin-left: 130px;
                padding: 7px 10px 7px 20px;
                padding: 0;
                min-height: 60px;
            }

            /* on a computer the banner may show more of its picture */
            @media (min-width: 700px)
            {
                taaltaal-lela .panel.intro .language-explainer div.articles
                {
                    min-height: 92px;
                }
            }

            taaltaal-lela .panel.intro .language-explainer div.articles > *
            {
                display: inline-block;
                font-weight: bold;
                font-size: 40px;
                /* readable on a bright banner without darkening it */
                text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.35), 1px 3px 1px rgba(16, 16, 16, 0.25);
                /*
                font-size: 5em !important;
                margin-top: -40px;
                */
            }

            taaltaal-lela .panel.intro .language-explainer div.articles > * + *
            {
                margin-left: 15px;
            }

            taaltaal-lela .panel.intro .language-explainer div.articles.de > *
            {
                font-size: 30px;
                margin-left: 8px;
            }

        taaltaal-lela .panel.intro .test
        {
            /*
                background: url(/images/tmp/pinboard.png);
                background-size: cover;
            */
            /*
                padding: 10px 7px 15px 7px;
                margin-left: auto;
                margin-right: auto;
                box-shadow: 1px 1px 3px rgba(0,0,0,0.4) inset;
                border-radius: 40px;
                background: rgba(255,255,255,0.3);
                background: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.2));
            */
        }

        taaltaal-lela .panel.intro p
        {
            margin-top: -5px;
            margin-bottom: 25px;
            text-align: center;
            color: #038;

            /*
            background: rgba(255,255,255,0.9);
            background: beige;
            color: navy;
            color: brown;
            border-radius: 15px;
            padding: 8px 10px;
            box-shadow: 0 0 5px rgba(16,16,16,0.3);
            width: 80%;
            margin-left: auto;
            margin-right: auto;
            box-shadow: 1px 1px 5px rgba(0,0,0,0.4) inset;
            background: rgba(255,255,255,0.8);
            border: 1px solid #aaa;
            */
        }

        taaltaal-lela .panel.intro p a
        {
            text-decoration: underline;
            color: blue;
        }

        taaltaal-lela .panel.intro .language-selector
        {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 15px;
        }

        taaltaal-lela .panel.intro .language-selector .language-option
        {
            width: max-content;
            font-size: 16px;
            background: linear-gradient(#fff, #f3f6f9 10px, #f0f3f6 10px, #d0d3d6);
            padding: 6px 6px 6px 6px;
            margin: 3px;
            border-radius: 8px;
            border: 1px solid #999;
            box-shadow: 0 0 5px #99c;
            font-weight: bold;
            cursor: pointer;
            user-select: none;
            color: #038;
            box-sizing: border-box;
        }

        taaltaal-lela .panel.intro .language-selector .language-option:hover,
        taaltaal-lela .panel.intro .language-selector .language-option.active
        {
            background: linear-gradient(#336699, #223366);
            background: linear-gradient(#ff66aa, #e03377, #991144 150%) !important;
            border: 2px solid navy;
            margin: 2px;
            color: white;
        }

        taaltaal-lela .panel.intro div.difficulty-buttons
        {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            margin-left: auto;
            margin-right: auto;
        }

            taaltaal-lela .panel.intro div.difficulty-buttons > div
            {
                font-size: 1em;
                padding: 7px 15px 7px 15px;
                box-shadow: 0 0 5px rgba(100,100,100,0.3);
                border: 1px solid #999;
                color: #333;
                font-weight: bold;
                color: white;
                /* text-shadow: 0 0 4px rgba(0,0,0,0.6); */
                user-select: none;
                cursor: pointer;
                width: max-content;
                /* margin-right: 5px; */
                user-select: none;
            }

            taaltaal-lela .panel.intro div.difficulty-buttons > div.selected
            {
                border: 2px solid navy !important;
                color: white !important;
                background: #e03377 !important;
                background: linear-gradient(#ff66aa, #e03377, #991144 150%) !important;
            }

            taaltaal-lela .panel.intro div.difficulty-buttons div[name=easy]
            {
                border-radius: 8px 0 0 8px;
                background: linear-gradient(#5cb85c, #239e23);
                background: linear-gradient(#5bc0de, #1e7eb6);
                background: linear-gradient(#fff, #f3f6f9 10px, #f0f3f6 10px, #d0d3d6);
                color: #e0ffe0;
                color: white;
                color: #038;
            }

            taaltaal-lela .panel.intro div.difficulty-buttons div[name=medium]
            {
                border-radius: 0;
                border-left: 0;
                background: linear-gradient(#5bc0de, #1e7eb6);
                background: linear-gradient(#fff, #f3f6f9 10px, #f0f3f6 10px, #d0d3d6);
                color: #e0e0ff;
                color: white;
                color: #038;
            }

            taaltaal-lela .panel.intro div.difficulty-buttons div[name=hard]
            {
                border-radius: 0 8px 8px 0;
                border-left: 0;
                background: linear-gradient(#d9534f, #a6202d);
                background: linear-gradient(#5bc0de, #1e7eb6);
                background: linear-gradient(#fff, #f3f6f9 10px, #f0f3f6 10px, #d0d3d6);
                color: #ffe0e0;
                color: white;
                color: #038;
            }

        taaltaal-lela .panel.intro div.mode-buttons
        {
            display: flex;
            justify-content: center;
            align-items: center;
            /* width: min-content; */
            margin-left: auto;
            margin-right: auto;
            height: 100%;
        }

        taaltaal-lela .panel.intro div.mode-buttons > div
        {
            font-size: 2.5em;
            border-radius: 15px;
            padding: 7px 15px 7px 15px;
            box-shadow: 0 0 5px rgba(100,100,100,0.3);
            border: 1px solid #999;
            color: white;
            font-weight: bold;
            text-shadow: 0 0 4px rgba(0,0,0,0.6);
            user-select: none;
            cursor: pointer;
        }

        taaltaal-lela .panel.intro div[name=train]
        {
            background: linear-gradient(#336699, #223366);
            margin-right: 15px;
        }

        taaltaal-lela .panel.intro div[name=train]:hover
        {
            background: navy;
            box-shadow: 0 0 8px rgba(50,50,50,0.6);
        }

        taaltaal-lela .panel.intro div[name=play]
        {
            background: linear-gradient(#3c3, #060);
        }

        taaltaal-lela .panel.intro div[name=play]:hover
        {
            background: darkgreen;
            box-shadow: 0 0 8px rgba(50,50,50,0.6);
        }

    taaltaal-lela .panel.play
    {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

        taaltaal-lela .panel.play.train .topbar .score
        {
            text-align: left;
            padding-left: 10px;
            width: max-content;
            width: 150px;
            min-width: max-content;
        }

        taaltaal-lela .panel.play .topfun
        {
            position: relative;
            margin-bottom: 5px;
        }

        taaltaal-lela .panel.play .topbar
        {
            position: relative;
            display: flex;
            align-items: center;
            flex-direction: row;
            background: linear-gradient(#fff, #f3f6f9 10px, #f0f3f6 10px, #d0d3d6);
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            border-top: 1px solid #ccc;
            border-bottom: 1px solid #999;
            padding: 8px 0 8px 0;
            width: 100%;
            min-height: 38px;
            z-index: 100;
        }

        taaltaal-lela .panel.play .topbar .score
        {
            width: max-content;
            margin-left: 10px;
            font-size: 1.6em;
            font-weight: bold;
            text-align: right;
            padding: 3px 8px 3px 8px;
            color: navy;
            width: 10em;
            flex-basis: 6ch;
            margin-right: 10px;
            background: white;
            border: 1px solid #999;
            box-shadow: 1px 1px 3px rgba(0,0,0,0.4) inset;
            border-radius: 15px;
        }

        taaltaal-lela .panel.play .topbar .timer
        {
            margin-top: 0px;
            margin-bottom: 0px;
            width: 100%;
            margin-right: 15px;
            /*
            margin-left: auto;
            margin-right: auto;
            */
            height: 25px;
            /* border: 1px solid red; */
            overflow: hidden;
        }

        taaltaal-lela .panel.play .topbar .timer .bar
        {
            position: relative;
            box-sizing: border-box;
            background: linear-gradient(to top, #00b300, #006600, #004d00 200%);
            border-radius: 3px 25px 25px 3px;
            height: 100%;
            box-shadow: 0 1px 3px rgba(0,0,0,0.3);
        }

        taaltaal-lela .panel.play .topbar .timer .bar::before
        {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                rgba(255, 255, 255, 0.6),
                rgba(255, 255, 255, 0) 50%,
                rgba(255, 255, 255, 0)
            );
            border-radius: 3px 25px 25px 3px;
        }

        taaltaal-lela .panel.play .topbar .timer .bar.shrink
        {
            animation-duration: 5s;
            animation-name: lela-kf-slideout;
            animation-fill-mode: forwards;
            animation-timing-function: linear;
        }

        taaltaal-lela .panel .notification
        {
            position: absolute;
            width: 80%;
            left: 50%;
            transform: translate(-50%, -10%);
            bottom: 0;
            background: white;
            padding: 10px 15px 10px 15px;
            border-radius: 0 0 15px 15px;
            box-shadow: 0 0 5px rgba(0,0,0,0.6);
            background: rgba(255,255,180,0.6);
            background: linear-gradient(gold, yellow);
            background: white;
            background: linear-gradient(#fff, #eee);
            font-size: 1.1em;
            color: navy;
            transition: transform 0.5s;
        }

        taaltaal-lela .panel .notification.show
        {
            transform: translate(-50%, 100%);
        }

        taaltaal-lela .panel.play .mistakes
        {
            display: flex;
            flex-wrap: wrap;
            flex-shrink: 0;
            min-height: 50px;
        }

        taaltaal-lela .panel.play .mistakes .entry
        {
            padding: 4px 8px 4px 8px;
            border: 1px solid #999;
            background: linear-gradient(#f0f0f0, #fff);
            background: white;
            font-size: 1.5em;
            color: navy;
            height: max-content;
            margin: 2px 3px 2px 3px;
            border-radius: 8px;
            border: 1px solid #999;
            box-shadow: 0 0 3px rgba(0,0,0,0.6);
            transition: background 1s;
        }

        taaltaal-lela .panel.play .mistakes .entry.fresh
        {
            background: red;
        }

        taaltaal-lela .panel.play .arena
        {
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: 100%;
            align-items: center;
        }

        taaltaal-lela .panel.play .arena .final-score
        {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            /* margin-top: -200px; */
            font-weight: bold;
            text-align: center;
            height: 100%;
        }

            taaltaal-lela .panel.play .arena .final-score p.over
            {
                margin: 0 0 20px 0;
                color: black;
                font-size: 2em;
            }

            taaltaal-lela .panel.play .arena .final-score p.score
            {
                margin: 0;
                margin-top: 8px;
                color: navy;
                font-size: 4em;
            }

            taaltaal-lela .panel.play .arena .final-score .stats
            {
                display: grid;
                grid-template-columns: auto auto;
                grid-template-rows: auto;
                grid-gap: 3px 0px;
                box-sizing: border-box;
                width: max-content;
                margin: 0;
            }

            taaltaal-lela .panel.play .arena .final-score .stats .label
            {
                text-align: left;
                background: linear-gradient(#fff, #f3f6f9 10px, #f0f3f6 10px, #d0d3d6);
                padding: 5px 10px 5px 5px;
                border: 1px solid #999;
                border-right: none;
                border-radius: 8px 0 0 8px;
            }

                taaltaal-lela .panel.play .arena .final-score .stats .label .symbol
                {
                    margin-right: 5px;
                    filter: drop-shadow(0px 0px 1px rgba(0,0,0,0.6));
                }

            taaltaal-lela .panel.play .arena .final-score .stats .result
            {
                text-align: right;
                padding: 5px 10px;
                color: navy;
                background: white;
                border: 1px solid #999;
                border-left: 1px solid #ccc;
                border-radius: 0 8px 8px 0;
                min-width: 2ch;
            }

            taaltaal-lela .panel.play .arena .final-score div.buttons
            {
                margin-top: 45px;
            }

                taaltaal-lela .panel.play .arena .final-score div.buttons div
                {
                    display: inline-block;
                    font-size: 2em;
                    border-radius: 10px;
                    padding: 7px 15px 7px 15px;
                    border: 1px solid #999;
                    background: linear-gradient(#fff, #f3f6f9 10px, #f0f3f6 10px, #d0d3d6);
                    box-shadow: 0 0 3px rgba(0,0,0,0.6);
                    user-select: none;
                    border-radius: 15px;
                    cursor: pointer;
                }

                taaltaal-lela .panel.play .arena .final-score div.buttons div[name=home]
                {
                    margin-right: 10px;
                }

                taaltaal-lela .panel.play .arena .final-score div.buttons div[name=retry]
                {
                    box-shadow: 0 0 5px rgba(100,100,100,0.3);
                    background: linear-gradient(#3c3, #060);
                    border: 1px solid #999;
                    color: #333;
                    font-weight: bold;
                    color: white;
                    text-shadow: 0 0 4px rgba(0,0,0,0.6);
                }

                taaltaal-lela .panel.play .arena .final-score div.buttons div[name=home]:hover
                {
                    background: linear-gradient(#336699, #223366);
                    border: 1px solid navy;
                    color: white;
                    box-shadow: 0 0 8px rgba(50,50,50,0.6);
                }

                taaltaal-lela .panel.play .arena .final-score div.buttons div[name=retry]:hover
                {
                    background: darkgreen;
                    box-shadow: 0 0 8px rgba(50,50,50,0.6);
                }


        taaltaal-lela div.scratch
        {
            position: absolute;
            top: 0;
            visibility: hidden;
        }

        taaltaal-lela .panel.play .x-button
        {
            margin-left: auto;
            border: 1px solid #999;
            padding: 5px;
            border-radius: 6px;
            margin-right: 10px;
            background: linear-gradient(#fff, #f3f6f9 10px, #f0f3f6 10px, #d0d3d6);
            box-shadow: 0 0 3px rgba(0,0,0,0.2);
            cursor: pointer;
        }

        taaltaal-lela .panel.play .x-button:hover
        {
            background: gold;
        }

        taaltaal-lela .panel.play div.word
        {
            font-size: 4em;
            padding: 10px 20px 10px 20px;
            border-radius: 10px;
            background: gold;
            width: max-content;
            margin-left: auto;
            margin-right: auto;
            border: 1px solid #773;
            box-shadow:
                2px 2px 3px #f0f000 inset,
                -2px -2px 3px #b0b000 inset,
                0 0 8px rgba(0,0,0,0.5);
            transition: font-size 0.1s;
        }

        taaltaal-lela .panel.play div.ref-word
        {
            margin-top: 8px;
            padding: 5px 8px;
            /*
                background: linear-gradient(navy, #d0d3f6 50px);
                color: white;
            */
            background: linear-gradient(#ccc, #f0f0f0 50px);
            border: 1px solid #669;
            border-radius: 8px;
            font-style: italic;
            box-shadow: 0 0 3px rgba(0,0,0,0.6);
            font-size: 1.3em;
        }

        taaltaal-lela .panel.play .button-container
        {
            position: relative;
        }

            taaltaal-lela .panel.play .button-container .notification
            {
                top: 0;
                left: 0;
                transform: translate(-110%, -105%);
                height: max-content;
                width: max-content;
                max-width: 70%;
                min-width: 40%;
                text-align: right;
                border-radius: 0 50px 50px 0;
            }

            taaltaal-lela .panel.play .button-container .notification.show
            {
                /* transform: translate(-5px, -100%) rotate(-4deg); */
                transform: translate(0, -105%);
            }

        taaltaal-lela .panel.play .article-buttons
        {
            margin-top: 30px;
            margin-bottom: 30px;
            width: max-content;
            margin-left: auto;
            margin-right: auto;
            flex-shrink: 0;
        }

        taaltaal-lela .panel.play .article-buttons > *
        {
            display: inline-block;
            font-size: 3em;
            padding: 7px 15px 7px 15px;
            border: 1px solid #999;
            background: linear-gradient(#fff, #f3f6f9 10px, #f0f3f6 10px, #d0d3d6);
            box-shadow: 0 0 3px rgba(0,0,0,0.6);
            user-select: none;
            cursor: pointer;
        }

        taaltaal-lela .panel.play .article-buttons > *:hover
        {
            background: linear-gradient(#336699, #223366);
            border: 1px solid navy;
            color: white;
        }

        taaltaal-lela .panel.play .article-buttons > div:first-child
        {
            border-radius: 10px 0 0 10px;
        }

        taaltaal-lela .panel.play .article-buttons > div:last-child
        {
            border-radius: 0 10px 10px 0;
        }

    taaltaal-lela .panel.about
    {
        background: beige;
    }

    /*
        taaltaal-lela .our-button
        {
            margin: 5px;
            padding: 8px;
            border-radius: 5px;
            background: gold;
            cursor: pointer;
            width: max-content;
        }
    */

    /* The intro on a computer: tighter, the languages as polaroids like on the course pages, and no headings where the
       choice speaks for itself */
    taaltaal-lela .panel.intro .language-polaroids
    {
        display: none;
    }

    @media (min-width: 700px)
    {
        taaltaal-lela .panel.intro p.practise
        {
            margin-bottom: 12px;
        }

        taaltaal-lela .panel.intro .info
        {
            right: 0;
        }

            taaltaal-lela .panel.intro .info .foto,
            taaltaal-lela .panel.intro .test h1,
            taaltaal-lela .panel.intro .language-selector
            {
                display: none;
            }

            taaltaal-lela .panel.intro .language-explainer
            {
                position: static;
                flex: 1;
                margin: 0;
                border-radius: 8px;
            }

            /* the polaroids lie partly on the banner, so the banner is taller and its articles stay in the part above
               them */
            taaltaal-lela .panel.intro .language-explainer div.articles
            {
                margin-left: 0;
                min-height: 80px;
                padding-bottom: 40px;
            }

        taaltaal-lela .panel.intro .language-polaroids
        {
            position: relative;
            z-index: 1;
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: -40px 0 14px;
        }

            taaltaal-lela .panel.intro .language-polaroids .polaroid
            {
                width: 100px;
                text-align: center;
                font-size: 16px;
                white-space: nowrap;
                font-weight: bold;
                color: #038;
                cursor: pointer;
                user-select: none;
                transform: rotate(-3deg);
                transition: transform 0.15s;
            }

            taaltaal-lela .panel.intro .language-polaroids .polaroid:nth-child(even)
            {
                transform: rotate(2.5deg);
            }

            taaltaal-lela .panel.intro .language-polaroids .polaroid .photo
            {
                height: 78px;
                margin-bottom: 3px;
                background: center / contain no-repeat;
                filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
            }

            taaltaal-lela .panel.intro .language-polaroids .polaroid:hover
            {
                transform: translateY(-3px);
            }

            taaltaal-lela .panel.intro .language-polaroids .polaroid.active
            {
                color: #e03377;
                transform: translateY(-5px) scale(1.06);
            }

        /* the two big buttons right under the choices, not halfway down the empty rest */
        taaltaal-lela .panel.intro div.mode-buttons
        {
            height: auto;
            margin-top: 26px;
        }
    }

    /* The title and the banner as one window: the title as its bar (a gradient, round at the top, a little shadow under
       it), the banner right under it, the polaroids on its lower part */
    taaltaal-lela .panel.intro .window
    {
        position: relative;
        margin-bottom: 14px;
        border-radius: 10px 10px 4px 4px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }

        /* the bar: a gradient, round at the top with the window, and a little shadow on the picture under it */
        taaltaal-lela .panel.intro .window h1.big-title
        {
            position: relative;
            z-index: 2;
            margin: 0;
            padding: 7px 0 5px;
            font-size: 25px;
            color: #038;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
            background: linear-gradient(#f7f9fd, #dce4f0);
            border-bottom: 1px solid #c3cde0;
            border-radius: 10px 10px 0 0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

            taaltaal-lela .panel.intro .window h1.big-title .quoted
            {
                color: #e03377;
            }

        taaltaal-lela .panel.intro .window .info
        {
            right: 0;
        }

            /* the picture fills the window under the bar, behind the polaroid of the language */
            taaltaal-lela .panel.intro .window .language-explainer
            {
                left: 0;
                top: 0;
                bottom: 0;
                margin: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 0 0 4px 4px;
                box-shadow: none;
            }

            /* the old banner while it fades out over the new one (taaltaal-lela.js show_banner) */
            taaltaal-lela .panel.intro .window .language-explainer.fading
            {
                position: absolute;
                top: 0;
                right: 0;
                bottom: 0;
                left: 0;
                pointer-events: none;
            }

            /* the articles in the room right of the polaroid, a size smaller on the narrowest phones */
            taaltaal-lela .panel.intro .window .language-explainer div.articles
            {
                flex: 1;
                min-width: 0;
            }

                taaltaal-lela .panel.intro .window .language-explainer div.articles > *
                {
                    font-size: min(40px, 10vw);
                }

                taaltaal-lela .panel.intro .window .language-explainer div.articles.de > *
                {
                    font-size: min(30px, 8vw);
                }

            taaltaal-lela .panel.intro .window .info .foto
            {
                top: -12px;
            }

    taaltaal-lela .panel.intro p.practise
    {
        margin: 0 0 18px;
    }

    @media (min-width: 700px)
    {
        taaltaal-lela .panel.intro .window
        {
            margin-bottom: 0;
            border-radius: 12px 12px 5px 5px;
        }

            taaltaal-lela .panel.intro .window h1.big-title
            {
                padding: 8px 0 6px;
                font-size: 30px;
                border-radius: 12px 12px 0 0;
            }

            taaltaal-lela .panel.intro .window .language-explainer
            {
                display: block;
                border-radius: 0 0 5px 5px;
            }

        /* the polaroids lie on the lower part of the window */
        taaltaal-lela .panel.intro .language-polaroids
        {
            margin-top: -40px;
        }

        taaltaal-lela .panel.intro p.practise
        {
            margin: 4px 0 16px;
        }

        /* three window dots on the left of the bar, where a computer has room for them (on a phone they meet the title) */
        taaltaal-lela .panel.intro .window h1.big-title::before
        {
            content: "";
            position: absolute;
            left: 14px;
            top: 50%;
            width: 10px;
            height: 10px;
            margin-top: -5px;
            border-radius: 50%;
            background: #ff5f57;
            box-shadow: 16px 0 #febc2e, 32px 0 #28c840;
        }
    }

/* The game's own animations: the polaroid of a language spins a little when it is chosen (lela-rotzoom), a mistake slides
   out of its row (lela-slideout), the clock bar of a word shrinks away (lela-kf-slideout on .bar.shrink, above), and the
   whole game shakes its background at a wrong answer (lela-shake-bg). taaltaal-lela.js puts each class on and takes it
   off when its animation ends */
@keyframes lela-kf-rotzoom
{
    0%, 100% { transform: scale(1) rotate(-5deg); }
    50% { transform: scale(1.3) rotate(-2deg); }
}

@keyframes lela-kf-slideout
{
    from
    {
        clip-path: inset(0 0 0 0);
        transform: translateX(0%);
    }
    to
    {
        clip-path: inset(0 0 0 100%);
        transform: translateX(-100%);
    }
}

@keyframes lela-kf-shake-bg
{
    0%, 100% { background-position: 0 0; }
    10% { background-position: -5px 5px; }
    20% { background-position: 5px 0px; }
    30% { background-position: 0px -5px; }
    40% { background-position: 5px -5px; }
    50% { background-position: 0px 5px; }
    60% { background-position: -5px 0px; }
    70% { background-position: 5px 5px; }
    80% { background-position: 5px -5px; }
    90% { background-position: -5px -5px; }
}

    taaltaal-lela .lela-rotzoom
    {
        animation: lela-kf-rotzoom 0.5s;
    }

    taaltaal-lela .lela-slideout
    {
        animation-duration: 0.2s;
        animation-name: lela-kf-slideout;
        animation-fill-mode: forwards;
    }

    taaltaal-lela.lela-shake-bg
    {
        animation: lela-kf-shake-bg 0.2s;
    }
