﻿/* #region ---------------------- INNHOLDSFORTEGNELSE --------------------------------------------------------------------- */
/* Blazor ------------------------------------ */
/* WCAG -------------------------------------- */
/* Typography -------------------------------- */
/* HTML -------------------------------------- */
/* PAPER - Layout ---------------------------- */
/* LEFT -------------------------------------- */
/* RIGHT ------------------------------------- */
/* BUTTONS ----------------------------------- */
/* INPUT - Text, Email and Number ------------ */
/* INPUT - Audio ----------------------------- */
/* INPUT - Radio ----------------------------- */
/* INPUT - Checkbox -------------------------- */
/* SELECT ------------------------------------ */
/* FORM - Log in ----------------------------- */
/* DIALOGS ----------------------------------- */
/* COMPONENT - ErrorMessage ------------------ */
/* COMPONENT - LoadingSpinner ---------------- */
/* COMPONENT - Results ----------------------- */
/* COMPONENT - Progresstracker --------------- */
/* COMPONENT - Audio ------------------------- */
/* SCROLLBAR --------------------------------- */
/* PAGE - kladd ------------------------------ */
/* PAGE - global ----------------------------- */
/* PAGE - antonyms --------------------------- */
/* PAGE - borrowedwords ---------------------- */
/* PAGE - fastreading ------------------------ */
/* PAGE - readingunderstanding --------------- */
/* PAGE - scanning --------------------------- */
/* PAGE - synonyms --------------------------- */
/* PAGE - dailylife -------------------------- */
/* PAGE - equations -------------------------- */
/* PAGE - fractions -------------------------- */
/* PAGE - wordimages ------------------------- */
/* PAGE - geomerty --------------------------- */
/* PAGE - statistics ------------------------- */
/* PAGE - numbersystems ---------------------- */
/* PAGE - home ------------------------------- */
/* VISIBILITY -------------------------------- */
/* SVG --------------------------------------- */
/* @media ------------------------------------ */
/* #endregion ------------------ INNHOLDSFORTEGNELSE ------------------------------------------------------------------ end */

/* #region ---------------------- Blazor -------------------------------------------------------------- */
h1:focus, h2:focus {
    outline: none;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* #endregion ---------------------- Blazor ------------------------------------------------------- end */

/* #region ---------------------- WCAG ---------------------------------------------------------------- */
/*@media screen and (prefers-reduced-motion: reduce) {
    * {*/
/* Minimal duration for users who prefer reduced motion */
/*animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}*/
/* #endregion ------------------- WCAG ------------------------------------------------------------ end */

/* #region ---------------------- Typography ---------------------------------------------------------- */
.heading_l {
    font: var(--heading-large);
    margin: 0;
}

.heading_m {
    font: var(--heading-medium);
    margin: 0;
}

.heading_s {
    font: var(--heading-small);
    margin: 0;
}

.heading_xs {
    font: var(--heading-xsmall);
    margin: 0;
}

p.xlarge, .h_xlarge {
    font: var(--paragraph-xlarge);
    margin: 0;
}

p.large, .h_large {
    font: var(--paragraph-large);
    margin: 0;
}

p.medium, .h_medium {
    font: var(--paragraph-medium);
    margin: 0;
}

p.small, .h_small {
    font: var(--paragraph-small);
    margin: 0;
}

p.xsmall, .h_xsmall {
    font: var(--paragraph-xsmall);
    margin: 0;
}
/* #endregion ------------------- Typography ------------------------------------------------------ end */

/* #region ---------------------- HTML ---------------------------------------------------------------- */
p {
    margin: 0;
}

input[type="radio" i] {
    margin: auto .2rem;
}

a {
    color: var(--primary-600);
}

    a:hover {
        text-decoration: none;
        color: var(--primary-500);
    }

    a:focus {
        outline: none;
    }

    a:focus-visible {
        outline: 3px solid var(--primary-600);
        outline-offset: 3px;
        border-radius: 0.2rem;
    }


/* #endregion ------------------- HTML ------------------------------------------------------------ end */

/* #region ---------------------- PAPER - Layout ------------------------------------------------------ */
.test.paper {
    flex: 4;
    min-height: 85vh;
    width: 100%;
    max-width: 60rem;
    padding: 1.5rem 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: var(--light);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

    .test.paper > .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: .5rem;
        margin: .5rem 0;
        min-height: 50px; /* to avoid bc audiobtns are 50px  */
    }

        .test.paper > .header h2 {
            flex: 1;
            text-wrap: balance;
        }

    .test.paper .header h2:focus-visible {
        color: var(--primary-800);
        outline: none;
    }

    .test.paper .content {
        flex: 1;
        font: var(--paragraph-medium);
        width: min(100% - 1rem, 45rem);
        margin-inline: auto;
    }

    .test.paper .footer {
        text-align: end;
        container-name: footerContainer;
        container-type: inline-size;
    }

@container footerContainer (max-width: 20rem) {
    .btn {
        width: 100%;
    }
}
/* #endregion ------------------- PAPER - Layout -------------------------------------------------- end */

/* #region ---------------------- LEFT ---------------------------------------------------------------- */
.left {
    flex: 1;
    min-width: 9rem;
    container-name: logo;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.logo.container {
    max-width: 18rem;
}

    .logo.container a {
        display: block;
        text-align: center;
        text-decoration: none;
    }

        .logo.container a:focus-visible {
            border-radius: .2rem;
            outline: 3px solid var(--primary-600);
            outline-offset: 3px;
        }

.logo.large, .logo.small {
    height: auto;
    width: 100%;
    margin: auto;
}

    .logo.large path,
    .logo.small path {
        transition: .3s ease;
    }

.logo.container:hover .logo.large,
.logo.container:hover .logo.small {
    filter: brightness(.85);
}

.logo.container:has(a:focus-visible) .logo.large *,
.logo.container:has(a:focus-visible) .logo.small * {
    fill: var(--primary-600);
}

@container logo (min-width: 10rem) {
    .logo.container {
        margin: 0 auto;
    }

    .logo.large {
        display: block;
    }

    .logo.small {
        display: none;
    }
}

@container logo (max-width: 9.99rem) {
    .logo.large {
        display: none;
    }

    .logo.small {
        display: block;
        min-width: 2rem;
        max-width: 3rem;
    }
}

.adminmode {
    font: var(--paragraph-small);
    color: var(--primary-600);
    font-style: italic;
    text-decoration: none;
    padding-top: .5rem;
}

.left .btn {
    max-width: 18rem;
    margin: 0 auto;
}


/* #endregion ------------------- LEFT ------------------------------------------------------------ end */

/* #region ---------------------- RIGHT --------------------------------------------------------------- */
.right {
    flex: 1;
    display: flex;
}


/* #endregion ------------------- RIGHT ----------------------------------------------------------- end */

/* #region ---------------------- BUTTONS ------------------------------------------------------------- */

.btns {
    container-name: btns;
    container-type: inline-size;
    display: flex;
    gap: .2rem 1rem;
    flex-wrap: wrap;
}

@container btns (max-width: 25rem) {
    .btn {
        flex: 1;
    }
}

.btns.end {
    justify-content: flex-end;
}

.btns.center {
    justify-content: center;
}

.btn {
    cursor: pointer;
    font: var( --paragraph-medium);
    min-height: 44px;
    border: none;
    border-radius: .2rem;
    transition: background ease .2s, border ease .2s, color ease .2s;
}
    /* #region ~~~~~~~~~~ btn sizes ~~~~~~~~~~~~~~~~ */
    .btn.min {
        padding: .2rem .4rem;
        min-width: 44px;
    }

    .btn.mid {
        padding: .4rem 1rem;
        min-width: 140px;
    }

    .btn.max {
        padding: .6rem 1rem;
        min-width: 140px;
        width: 100%;
    }

    .btn.tile {
        padding: .4rem .8rem;
        min-width: 140px;
        min-height: 120px;
    }

    .btn.full {
        width: 100%;
    }

    .btn.icon {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        padding: .4rem 1rem;
    }

        .btn.icon svg {
            min-width: 1.5rem;
            height: auto;
        }
    /* #endregion ~~~~~~~ btn sizes ~~~~~~~~~~~~~~~~ */

    /* #region ~~~~~~~~~~ btn colors ~~~~~~~~~~~~~~~ */
    .btn.primary {
        background: var(--primary-500);
        border: 2px solid var(--primary-500);
        color: var(--light);
    }

        .btn.primary:hover {
            background: var(--primary-600);
            border: 2px solid var(--primary-600);
        }

        .btn.primary[disabled] {
            opacity: .6;
            filter: grayscale(.5);
            cursor: default;
            pointer-events: none;
        }

    .btn.secondary {
        background: var(--primary-200);
        border: 2px solid var(--primary-200);
        color: var(--primary-700);
    }

        .btn.secondary:hover {
            background: var(--primary-100);
            border: 2px solid var(--primary-100);
        }

        .btn.secondary[disabled] {
            background: var(--grey-200);
            border: 2px solid var(--grey-200);
            color: var(--grey-600);
        }

            .btn.secondary[disabled] path {
                fill: var(--grey-500);
            }

    .btn.text {
        background: transparent;
        border: 2px solid transparent;
    }

        .btn.text.light {
            color: var(--primary-600);
        }

            .btn.text.light:hover {
                background: var(--primary-50);
            }

        .btn.text.dark {
            color: var(--primary-600);
        }

            .btn.text.dark:hover {
                background: var(--primary-100);
            }

        .btn.text.accent {
            color: var(--accent);
        }

            .btn.text.accent:hover {
                background: var(--accent-100);
                color: var(--accent-900);
            }

        .btn.text.black {
            color: var(--grey-900);
        }

            .btn.text.black:hover {
                background: var(--grey-200);
            }

        .btn.text.yellow {
            color: var(--dark);
        }

            .btn.text.yellow:hover {
                background: var(--postit-hover);
            }

            .btn.text.yellow:focus-visible,
            .btn.text.yellow:focus-within
            .btn.text.yellow:target {
                outline-color: #c3bd49;
                outline-offset: .3rem;
            }

            .btn.text.yellow img {
                height: 14px;
            }

        .btn.text[disabled] {
            color: var(--grey-400);
        }

            .btn.text[disabled] path {
                fill: var(--grey-400);
            }

    .btn.outlined {
        background: var(--light);
        border: 2px solid var(--primary-500);
        color: var(--primary-600);
    }

        .btn.outlined:hover {
            background: var(--primary-50);
        }

        .btn.outlined[disabled] {
            background: var(--grey-200);
            border: 2px solid var(--grey-300);
            color: var(--grey-600);
        }

    .btn.close {
        height: fit-content;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        background: transparent;
        color: var(--primary-500);
    }

        .btn.close path {
            fill: var(--grey-500);
            transition: ease .2s;
        }

        .btn.close:hover {
            background: var(--primary-100);
        }

            .btn.close:hover path {
                fill: var(--primary-500);
            }

        .btn.close[disabled] {
            background: transparent;
            border: 2px solid transparent;
        }

            .btn.close[disabled] path {
                fill: var(--grey-300);
            }

        .btn.close:focus-visible {
            outline: none;
            background: var(--primary-100);
        }

            .btn.close:focus-visible path {
                fill: var(--primary-500);
            }

    /* #endregion ~~~~~~~ btn colors ~~~~~~~~~~~~~~~ */
    /* #region ~~~~~~~~~~ btn all ~~~~~~~~~~~~~~~~~~ */
    .btn:focus {
        outline: none;
    }

    .btn:focus-visible {
        outline: 3px solid var(--primary-600);
        outline-offset: 3px;
    }

    .btn:active:not([disabled]) {
        filter: brightness(.9);
    }

    .btn[disabled] {
        cursor: default;
        pointer-events: none;
    }

    .btn[hidden] {
        display: none;
    }
/* #endregion ~~~~~~~ btn all ~~~~~~~~~~~~~~~~~~ */
/* #endregion ------------------- BUTTONS --------------------------------------------------------- end */

/* #region ---------------------- INPUT - Text, Email and Number -------------------------------------- */
input::placeholder {
    text-overflow: ellipsis;
    color: var(--grey-500);
}

.label.blue {
    color: var(--primary-600);
}

.label.vertical {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.label.horizontal {
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .label.horizontal input {
        flex: 1;
    }

    .label.horizontal.wrap {
        flex-wrap: wrap;
    }


    .label.horizontal.one {
        margin: 1rem 0;
    }



.input.top.label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"] {
    text-overflow: ellipsis;
    width: 100%;
    max-width: 30rem;
    min-width: 4rem;
    background: var(--light);
    border: 1px solid var(--grey-400);
    color: var(--primary-600);
    font: var( --paragraph-medium);
    padding: .4rem .6rem;
    border-radius: .2rem;
    transition: ease .2s;
}

    input[type="text"].min,
    input[type="email"].min,
    input[type="number"].min,
    input[type="tel"].min {
        max-width: 8rem;
    }

    input[type="text"]:hover,
    input[type="email"]:hover,
    input[type="number"]:hover,
    input[type="tel"]:hover {
        border: 1px solid var(--primary-500);
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="number"]:focus,
    input[type="tel"]:focus {
        outline: none;
    }

    input[type="text"]:focus-visible,
    input[type="email"]:focus-visible,
    input[type="number"]:focus-visible,
    input[type="tel"]:focus-visible {
        border: 1px solid var(--primary-500);
        outline: 1px solid var(--primary-500);
    }

    input[type="text"]:focus-visible,
    input[type="email"]:focus-visible,
    input[type="number"]:focus-visible,
    input[type="tel"]:focus-visible {
        border: 1px solid var(--primary-500);
        outline: 1px solid var(--primary-500);
    }

    input[type="text"]:disabled,
    input[type="email"]:disabled,
    input[type="number"]:disabled,
    input[type="tel"]:disabled {
        opacity: .6;
        background-color: var(--grey-100);
        filter: grayscale(.5);
        cursor: default;
        pointer-events: none;
    }

/* #endregion ------------------- INPUT - Text, Email and Number ---------------------------------- end */

/* #region ---------------------- INPUT - Audio ------------------------------------------------------- */
.audioInputComponent {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin: 1rem 0;
}

.audioInput {
    font-size: var(--paragraph-medium);
    color: var(--primary-600);
    display: flex;
    max-width: max-content;
}

    .audioInput input {
        max-width: 20rem;
        min-width: 5rem;
        min-height: 44px;
        background: var(--light);
        border: 1px solid var(--grey-400);
        border-radius: 0 0.2rem .2rem 0;
        color: var(--primary-600);
        font: var( --paragraph-medium);
        padding: .4rem .6rem;
        transition: border ease .2s;
        cursor: pointer;
    }

        .audioInput input:hover {
            border-color: var(--primary-500);
        }

        .audioInput input:focus {
            outline: none;
        }

    .audioInput:focus-within input:not(:disabled) {
        border-color: var(--primary-700);
    }

    .audioInput input:focus-visible {
        border-color: var(--primary-700);
        outline: 2px solid var(--primary-700);
        outline-offset: -2px;
    }

    .audioInput .btn {
        padding: 0.2rem 0.6rem;
        min-width: 55px;
        border-radius: 0.2rem 0 0 .2rem;
        outline-offset: -2px;
    }

    .audioInput:focus-within .btn:not(:disabled) {
        outline: 2px solid var(--primary-700);
        background: var(--primary-700);
    }


    .audioInput .btn:focus-visible {
        outline: 2px solid var(--primary-700);
        background: var(--primary-200);
    }

        .audioInput .btn:focus-visible svg path {
            fill: var(--primary-700);
        }

.audioError {
    color: var(--validation-wrong-default)
}

    .audioError .audioInput input:disabled {
        color: var(--validation-wrong-default);
        border-color: var(--validation-wrong-default);
        background-color: var(--validation-wrong-light);
    }

    .audioError .audioInput input::placeholder {
        opacity: .8;
        color: var(--validation-wrong-default);
    }

    .audioError .audioInput .btn:disabled {
        color: var(--validation-wrong-default);
        border-color: var(--validation-wrong-default);
        background-color: var(--validation-wrong-default);
    }

    .audioError .audioErrorMessage {
    }

#dummyAudio {
    display: none;
}
/* #endregion ------------------- INPUT - Audio --------------------------------------------------- end */
/* #region ---------------------- INPUT - Radio ------------------------------------------------------- */
.ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.li {
    list-style: none;
}

.radio:hover {
    border: 1px solid var(--primary-500);
    background: var(--primary-50);
}

.radio {
    min-height: 44px;
    background: var(--light);
    border: 1px solid var(--grey-400);
    border-radius: .4rem;
    transition: ease .2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    color: var(--primary-600);
    font: var( --paragraph-medium);
    padding: .4rem .6rem;
    cursor: pointer;
}

    .radio.thick {
        padding: 1rem .6rem;
    }

    .radio.idk {
        text-transform: lowercase;
    }

    .radio input:focus {
        outline: none;
    }

    .radio:focus-within {
        border: 1px solid var(--primary-500);
        outline: 1px solid var(--primary-500);
    }

    .radio:has(input[type="radio"]:checked) {
        background: var(--primary-50);
        border: 1px solid var(--primary-500);
    }
/* #endregion ------------------- INPUT - Radio --------------------------------------------------- end */

/* #region ---------------------- INPUT - Checkbox ---------------------------------------------------- */
.checkbox:hover {
    border: 1px solid var(--primary-500);
    background: var(--primary-50);
}

.checkbox {
    min-height: 44px;
    background: var(--light);
    border: 1px solid var(--grey-400);
    border-radius: .4rem;
    transition: ease .2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    color: var(--primary-600);
    font: var( --paragraph-medium);
    padding: .4rem .6rem;
    cursor: pointer;
}

    .checkbox input:focus {
        outline: none;
    }

    .checkbox:focus-within {
        border: 1px solid var(--primary-500);
        outline: 1px solid var(--primary-500);
    }

    .checkbox:has(input[type="checkbox"]:checked) {
        background: var(--primary-50);
        border: 1px solid var(--primary-500);
    }

    .checkbox:has(input[type="checkbox"]:disabled) {
        opacity: .6;
        filter: grayscale(1);
        cursor: default;
        pointer-events: none;
    }
/* #endregion ------------------- INPUT - Checkbox ------------------------------------------------ end */

/* #region ---------------------- SELECT -------------------------------------------------------------- */
.select {
    min-width: 7rem;
    background: var(--light);
    border: 1px solid var(--grey-400);
    color: var(--primary-600);
    font: var( --paragraph-medium);
    padding: .4rem .6rem;
    border-radius: .2rem;
    transition: ease .2s;
    cursor: pointer;
}

    .select.min {
        min-height: 45px;
    }

    .select.thin {
        padding: .1rem .2rem;
    }

    .select option:not(:disabled) {
        color: var(--primary-600);
    }

    .select:has(option:checked[value=""]) {
        color: var(--grey-700);
    }

    .select:hover {
        border: 1px solid var(--primary-500);
    }

    .select:focus {
        outline: none;
    }

    .select:focus-visible {
        border: 1px solid var(--primary-500);
        outline: 1px solid var(--primary-500);
    }

    .select label.blue {
        color: var(--primary-600);
    }
/* #endregion ------------------- SELECT ---------------------------------------------------------- end */

/* #region ---------------------- FORM - log in ------------------------------------------------------- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

    .form-group label {
        font: var(--paragraph-small);
        color: var(--primary-600);
    }
/* #endregion ------------------- FORM - log in --------------------------------------------------- end */

/* #region ---------------------- DIALOGS ------------------------------------------------------------- */
dialog::backdrop {
    background: #0000007a;
    backdrop-filter: blur(1px);
}

:modal {
    border-radius: .2rem;
    width: 85%;
    max-width: 38rem;
    min-height: 15rem;
    display: flex;
    flex-direction: column;
    padding: 0;
    color: var(--grey-800);
    background: var(--light);
    border: 1px solid var(--grey-100);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

dialog header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 1.5rem 2rem 1rem;
}

dialog .header {
    font: var(--heading-small);
    font-weight: 400;
    margin: 0;
}

dialog hr {
    background: var(--grey-300);
    color: var(--grey-400);
    border: none;
    height: 1px;
    margin: 0;
}

dialog p {
    font: var(--paragraph-medium);
    margin: 1rem 0;
    text-wrap: pretty;
}

dialog .main {
    margin: auto 2rem;
}

dialog .footer {
    margin: 1rem 2rem;
    text-align: end;
}


/* #region ~~~~~~~~~~ Instructions ~~~~~~~~~~~~~ */
dialog[open].instructions {
    opacity: 1;
    transform: scaleX(1);
}

dialog.instructions {
    opacity: 0;
    transform: scaleY(0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, overlay 0.3s ease-out allow-discrete, display 0.3s ease-out allow-discrete;
}

@starting-style {
    dialog[open].instructions {
        opacity: 0;
        transform: scaleY(0);
    }
}

dialog.instructions.paper {
    position: relative;
    padding: 0;
    margin: 0;
    max-width: 500px;
    min-width: 300px;
    max-height: 800px;
    overflow: hidden;
    background: var(--postit);
    border: none;
    outline: none;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

dialog.instructions .content {
    padding: 2rem;
}

dialog.instructions p {
    margin: 1rem;
    white-space: pre-line;
}

dialog.instructions .header {
    margin-bottom: 1rem;
}

dialog.instructions .btns {
    max-width: 20rem;
    display: flex;
    gap: 1.5rem;
}

.instructions .btns > button {
    min-width: 8rem;
}

.audioBtns {
    display: flex;
    min-width: 15rem;
    min-height: 50px;
}

    .audioBtns .btn {
        flex: 1;
        text-wrap: nowrap;
    }

        .audioBtns .btn.bold {
            font: var(--heading-small);
        }

        .audioBtns .btn.left {
            justify-content: flex-start;
        }

/* btn that toggles visibility of instructions */
.instructionsdialog.btn {
    min-height: 50px; /* to match height of audioBtns, avoids movement when going from intro to test bc button is smaller */
}
/* #endregion ~~~~~~~ Instructions ~~~~~~~~~~~~~ */
/* #region ~~~~~~~~~~ Loading ~~~~~~~~~~~~~~~~~~ */
dialog.loading {
    min-height: 14rem;
    min-width: 15rem;
    width: 40%;
    padding: 1rem 2rem;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

    dialog.loading h2 {
        margin: 0;
    }

.loading_progressbar {
    height: 1.5rem;
    width: 100%;
    min-height: fit-content;
    background: var(--primary-100);
    border-radius: 2rem;
    overflow: hidden;
}

.loading_progress_animation {
    height: 100%;
    background: var(--primary-500);
    border-radius: 2rem;
    animation: indeterminate_progress 3s linear infinite;
}

@keyframes indeterminate_progress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}
/* #endregion ~~~~~~~ Loading ~~~~~~~~~~~~~~~~~~ */
/* #region ~~~~~~~~~~ FullScreenImg ~~~~~~~~~~~~ */

dialog.fullscreenimg {
    width: 70%;
    max-width: 70rem;
    min-width: 15rem;
    min-height: 20rem;
    padding: 1rem 2rem;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

    dialog.fullscreenimg img {
        image-rendering: pixelated;
        flex: 1;
        width: 100%;
        padding: 1rem 1rem 0;
        max-height: 40rem;
        object-fit: contain;
    }

    dialog.fullscreenimg .btn {
        margin-left: auto;
    }

/* fullscreen - class of button that triggers fullscreenimg dialog*/
button.fullscreen {
    cursor: zoom-in;
    border: none;
    background: none;
    min-width: 45px;
    width: fit-content;
    min-height: 45px;
    padding: 0;
    transition: filter ease .2s;
}

    button.fullscreen:hover {
        filter: opacity(.5);
    }

    button.fullscreen:focus-visible {
        outline: 3px solid var(--primary-600);
        outline-offset: 3px;
        border-radius: .2rem;
    }

    button.fullscreen img {
        max-width: 30rem;
        width: 100%;
        object-fit: contain;
    }
/* #endregion ~~~~~~~ FullScreenImg ~~~~~~~~~~~~ */
/* #endregion ------------------- DIALOGS --------------------------------------------------------- end */

/* #region ---------------------- COMPONENT - ErrorMessage -------------------------------------------- */
.errorMessage {
    position: relative;
    min-height: 20rem;
    display: flex;
    justify-content: center;
    height: 100%;
    margin: auto;
}

    .errorMessage svg {
        position: absolute;
        width: -webkit-fill-available;
        height: -webkit-fill-available;
        max-height: 25rem;
        opacity: .05;
    }

.errorText {
    max-width: 30rem;
    text-align: center;
    margin: 15vh auto;
}

    .errorText h3 {
        margin: .3rem 0;
    }

    .errorText p {
        color: var(--grey-700);
    }
/* #endregion ------------------- COMPONENT - ErrorMessage ---------------------------------------- end */

/* #region ---------------------- COMPONENT - LoadingSpinner ------------------------------------------ */
.loadingSpinner {
    will-change: transform;
    margin: auto;
    border: .8rem solid var(--grey-200);
    border-top: .8rem solid var(--primary-500);
    border-radius: 50%;
    width: 7rem;
    height: 7rem;
    animation: loadingspin 1.4s linear infinite, loadingfade 0.5s ease-in-out .3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes loadingspin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loadingfade {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}
/* #endregion ------------------- COMPONENT - LoadingSpinner -------------------------------------- end */

/* #region ---------------------- COMPONENT - AdminScore ---------------------------------------------- */
.adminscore.visible {
    min-width: fit-content;
    width: 300px;
    transition: 0.5s ease;
    transform: translateX(0);
}

.adminscore.hidden {
    width: 0;
    overflow: hidden;
    transition: 2s ease;
    transform: translateX(100vw);
}

.adminscore .paper {
    position: relative;
    padding: 2rem;
    margin-left: 0;
    overflow: hidden;
    background: var(--light);
    border: none;
    outline: none;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.adminscore .pink {
    padding: 1rem;
    background: var(--accent-100);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.adminscore hr {
    margin: 1rem 0 1.5rem;
    height: 1px;
    border: none;
    background: var(--grey-300);
}

.adminscore .vertical:last-of-type {
    display: none
}

.adminscore ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.adminscore li {
    margin: .5rem .5rem .5rem 0;
    font: var(--paragraph-small);
    display: flex;
    justify-content: space-between;
}

.adminscore .title {
    font: var(--paragraph-xlarge);
    margin: .5rem 0;
}

.adminscore .header {
    font: var(--paragraph-medium);
    margin: .5rem 0;
}

.adminscore .subheader {
    font: var(--paragraph-small);
    margin: 0;
    min-width: 10rem;
}

.adminscore .score {
    white-space: nowrap;
}
/* #endregion ------------------- COMPONENT - AdminScore ------------------------------------------ end */

/* #region ---------------------- COMPONENT - ProgressTracker ----------------------------------------- */
.progressContainer {
    container-name: progressContainer;
    container-type: inline-size;
}

@container progressContainer (max-width: 30rem) {
    .progress.bigScreen {
        display: none;
    }

    .progress.smallScreen {
        display: flex;
    }
}

@container progressContainer (min-width: 30rem) {
    .progress.bigScreen {
        display: flex;
    }

    .progress.smallScreen {
        display: none;
    }
}

.progress {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.badge {
    text-overflow: ellipsis;
    font: var(--paragraph-xsmall);
    line-height: 1.8;
    white-space: nowrap;
    cursor: pointer;
    color: transparent;
    border-radius: .1rem;
    padding: 0 .3rem;
    flex: 1;
    width: 0;
    overflow: hidden;
}

.loading .badge {
    opacity: .4;
    filter: grayscale(.5);
    cursor: default;
}

.badge[disabled] {
    cursor: default;
    pointer-events: none;
}

.badge.past, .badge.previous {
    background-color: var(--primary-50);
    border: 1px solid var(--primary-100);
}

.badge.current {
    min-width: fit-content;
    width: 150px;
    max-width: 250px;
    padding: 0 .6rem;
    overflow: visible;
    background-color: var(--primary-500);
    border: 1px solid var(--primary-500);
    color: var(--light);
}

.badge.future {
    background-color: var(--grey-200);
    border: 1px solid var(--grey-300);
}

.badge.current:hover {
    background: var(--primary-600);
    border: 1px solid var(--primary-600);
}

.badge.past:hover:not(:focus-visible), .badge.previous:hover:not(:focus-visible) {
    color: var(--primary-600);
}

.badge.future:hover:not(:focus-visible) {
    color: var(--grey-500);
}

.badge:focus-visible {
    outline: none;
    max-width: 300px;
    min-width: fit-content;
    overflow: visible;
    background-color: var(--primary-500);
    border: 1px solid var(--primary-500);
    color: var(--light);
    outline: 3px solid var(--primary-600);
    outline-offset: 3px;
    z-index: 1;
}

.badge.navigation {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: 0 .6rem;
    margin: 0;
    min-width: fit-content;
    width: 3rem;
    background-color: var(--primary-500);
    border: 1px solid var(--primary-500);
    color: var(--light);
}

    .badge.navigation[disabled] {
        cursor: default;
        pointer-events: none;
        opacity: .4;
        filter: grayscale(.5);
    }


    .badge.navigation:hover {
        background: var(--primary-600);
        border: 1px solid var(--primary-600);
    }

    .badge.navigation svg {
        height: 1rem;
    }

.navigationBtns.smallScreen {
    flex: 1 0 100%;
    display: flex;
    gap: 0.2rem;
}
/* #endregion ------------------- COMPONENT - ProgressTracker ------------------------------------- end */

/* #region ---------------------- COMPONENT - QuestionTimer ------------------------------------------- */
.questionTimer {
    text-align: center;
    padding: 2rem;
}

    .questionTimer .timeWarning svg {
        width: 100%;
        height: 4rem;
        animation: pulsingWarningIcon 1s ease-in-out 2;
    }

    .questionTimer .timeLeft {
        color: var(--accent);
        animation: fadeOut 8s forwards .2s;
    }

.questionTimerWarning {
    animation: pulsingWarning 1s ease-in-out 2;
}

    .questionTimerWarning hr {
        animation: pulsingWarningHr 1s ease-in-out 2;
    }

@keyframes pulsingWarningIcon {
    0% {
    }

    50% {
        scale: 1.1;
    }

    100% {
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        color: var(--accent);
    }

    95% {
        opacity: 1;
        color: var(--accent);
    }

    100% {
        opacity: 0;
        color: transparent;
    }
}

@keyframes pulsingWarning {
    0% {
    }

    50% {
        background-color: var(--accent-50);
        border-color: var(--accent-100);
        box-shadow: var(--accent-100) 0px 0px 0px 2px;
    }

    100% {
    }
}

@keyframes pulsingWarningHr {
    0% {
    }

    50% {
        background-color: var(--accent-100);
    }

    100% {
    }
}

/* #endregion ------------------- COMPONENT - QuestionTimer --------------------------------------- end */

/* #region ---------------------- COMPONENT - Audio --------------------------------------------------- */
.audioplayer {
    display: none;
}
/* #endregion ------------------- COMPONENT - Audio ----------------------------------------------- end */

/* #region ---------------------- SCROLLBAR ----------------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--grey-200);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-500);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-300);
    }

    ::-webkit-scrollbar-thumb:active {
        background: var(--primary-600);
    }


/* #endregion ------------------- SCROLLBAR ------------------------------------------------------- end */

/* #region ---------------------- PAGE - kladd -------------------------------------------------------- */
.kladd {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.kladd_sub {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kladd_btns {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
/* #endregion ------------------- PAGE - kladd ---------------------------------------------------- end */

/* #region ---------------------- PAGE - global ------------------------------------------------------- */
.intro.text {
    white-space: pre-line;
}

.blue.box {
    padding: 1.5rem;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: .2rem;
    text-wrap: pretty;
}

    .blue.box.two {
        margin-bottom: 2rem;
    }

label.five {
    min-width: 5rem;
}

label.six {
    min-width: 6rem;
}

label.ten {
    min-width: 10rem;
}
/* #endregion ------------------- PAGE - global --------------------------------------------------- end */

/* #region ---------------------- PAGE - antonyms ----------------------------------------------------- */
.antonyms .label.horizontal {
    flex-wrap: wrap;
}

    .antonyms .label.horizontal .word {
        min-width: 5rem;
    }

.antonyms input {
    flex: 1;
    max-width: 20rem;
    min-width: 6rem;
}
/* #endregion ------------------- PAGE - antonyms ------------------------------------------------- end */

/* #region ---------------------- PAGE - borrowedWords ------------------------------------------------ */
.borrowedwords .container {
    container-name: borrowedwordsContainer;
    container-type: inline-size;
}



.borrowedwords .assignment {
    display: flex;
    gap: 2rem 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.borrowedwords .paragraph {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: .1rem .2rem;
}

.borrowedwords .alternatives {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.borrowedwords .line {
    display: flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
    min-height: 44px;
    line-height: 2;
}

.borrowedwords .p {
    border-bottom: 2px solid transparent;
}

.borrowedwords .btn.slots {
    display: flex;
    align-items: center;
    padding: 0;
    min-width: 6rem;
    background: transparent;
    border: none;
    line-height: 2;
}

    .borrowedwords .btn.slots div {
        flex: 1;
        background: transparent;
        color: var(--primary-700);
        border: none;
        border-bottom: 2px solid var(--primary-300);
        border-radius: 0;
        padding: 0 .5rem;
    }

    .borrowedwords .btn.slots .empty {
        transition: background ease .2s, border ease .2s;
    }

.borrowedwords .btn.empty:hover {
    background: var(--primary-200);
}

.borrowedwords .btn.slots .empty:hover {
    background: var(--primary-200);
}

.borrowedwords .btn.slots .selected {
    background: var(--primary-100);
    color: var(--primary-700);
    border: none;
    border-bottom: 2px solid var(--primary-700);
    border-radius: 0;
    transition: background ease .2s, border ease .2s;
}

.borrowedwords .btn.slots .match {
    font-style: italic;
    background: var(--green-100);
    color: var(--green-900);
    border-color: var(--green-600);
    animation: fadeOutBg 3s forwards;
}

.borrowedwords .btn.slots .mismatch {
    background-image: url(/SVG/close.svg);
    background-size: 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--accent-900);
    border: none;
    border-bottom: 2px solid var(--accent);
    border-radius: 0;
    animation: shake 0.15s ease-in-out 0s 3;
}

    .borrowedwords .btn.slots .mismatch::after,
    .borrowedwords .btn.slots .selected::after,
    .borrowedwords .btn.slots .empty::after {
        content: "";
        display: inline-block;
    }


.borrowedwords .btn.alternative {
    background: var(--primary-100);
    color: var(--primary-700);
    border: 1px solid var(--primary-300);
}

    .borrowedwords .btn.alternative.selected {
        background: var(--primary-200);
        color: var(--primary-700);
        border: 1px solid var(--primary-300);
    }

    .borrowedwords .btn.alternative.match {
        background: var(--green-100);
        color: var(--green-900);
        border-color: var(--green-600);
        transition: background ease .2s, border ease .2s, color ease .2s;
    }

@keyframes fadeOutBg {
    0% {
        background-color: var(--green-100);
    }

    60% {
        background-color: var(--green-100);
    }

    100% {
        background-color: rgba(0, 0, 0, 0);
    }
}

.borrowedwords .btn.alternative.mismatch {
    background: var(--accent-100);
    color: var(--accent-900);
    border: 1px solid var(--accent);
    animation: shake 0.15s ease-in-out 0s 3;
}

@keyframes shake {
    0% {
        margin-left: 0rem;
    }

    25% {
        margin-left: 0.4rem;
        margin-right: -0.4rem;
    }

    75% {
        margin-left: -0.4rem;
        margin-right: 0.4rem;
    }

    100% {
        margin-left: 0rem;
    }
}

@container borrowedwordsContainer (max-width: 20rem) {
    .borrowedwords .container .assignment {
        flex-direction: column;
    }

    .borrowedwords .line {
        flex-wrap: wrap;
    }

    .borrowedwords .p {
        white-space: normal;
    }
}
/* #endregion ------------------- PAGE - borrowedWords -------------------------------------------- end */

/* #region ---------------------- PAGE - fastreading -------------------------------------------------- */
.fastreading .blue.box {
    line-height: 1.8;
}
/* #endregion ------------------- PAGE - fastreading ---------------------------------------------- end */

/* #region ---------------------- PAGE - readingUnderStanding ----------------------------------------- */
.readingunderstanding .container {
    border-radius: .2rem;
    background: var(--grey-200);
    border: 1px solid var(--grey-300);
    color: var(--grey-600);
    height: fit-content;
    text-align: center;
}

.readingunderstanding .ul {
    gap: 0;
}

.readingunderstanding .li {
    padding: .4rem;
}

    .readingunderstanding .li.focus {
        background: var(--primary-100);
        color: var(--primary-700);
        font-weight: 500;
    }

    .readingunderstanding .li.faded {
        color: var(--grey-400);
        font-weight: 300;
    }

    .readingunderstanding .li.empty {
    }

.navigation {
    text-align: center;
    margin: 1rem auto;
}

.readingunderstanding .navigation .btn.icon {
    padding: .2rem 1rem
}

    .readingunderstanding .navigation .btn.icon img {
        height: 2.5rem;
    }
/* #endregion ------------------- PAGE - readingUnderStanding ------------------------------------- end */

/* #region ---------------------- PAGE - scanning ----------------------------------------------------- */
.scanning .assignment {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

    .scanning .assignment .word {
        font: var(--heading-small);
        color: var(--primary-600);
    }

.nonSearchableWord::before {
    content: attr(data-value);
    white-space: pre;
}

/* #endregion ------------------- PAGE - scanning ------------------------------------------------- end */
/* #region ---------------------- PAGE - synonyms ----------------------------------------------------- */
.connections {
    hyphens: auto;
    display: flex;
    align-items: center;
    font: var(--paragraph-medium);
    min-height: 44px;
    padding: .5rem 1rem;
    margin: .5rem 0;
    border: 1px solid transparent;
    border-radius: .2rem;
    background: transparent;
    transition: background ease .2s, border ease .2s, color ease .2s;
    cursor: pointer;
}

    .connections:hover {
        background: var(--primary-100);
    }

    .connections input:focus {
        outline: none;
    }

    .connections input {
        margin: 0;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    .connections:has(:hover) input {
        margin: 0;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    .connections:has(input:focus-visible) {
        outline: 3px solid var(--primary-500);
    }

    .connections.selected {
        background: var(--primary-200);
        border: 1px solid var(--primary-300);
    }

    .connections:has(input[type="checkbox"]:disabled) {
        background: var(--green-100);
        color: var(--green-900);
        border-color: var(--green-600);
        opacity: .5;
    }

    .connections.matched:has(input[type="checkbox"]:disabled) {
        background: var(--green-100);
        color: var(--green-900);
        border-color: var(--green-600);
        text-decoration: none;
        opacity: 1;
    }

    .connections.mismatch {
        background: var(--accent-100);
        color: var(--accent-900);
        border: 1px solid var(--accent);
        animation: mismatchshake 0.15s ease-in-out 0s 3;
    }

@keyframes mismatchshake {
    0% {
        margin-left: 0rem;
    }

    25% {
        margin-left: 0.4rem;
        margin-right: -0.4rem;
    }

    75% {
        margin-left: -0.4rem;
        margin-right: 0.4rem;
    }

    100% {
        margin-left: 0rem;
    }
}

.status {
    font: var(--heading-small);
    display: flex;
}

.feedback {
    margin-top: 10px;
    color: red;
}

.matchpoints {
    color: darkgreen;
    font: var(--heading-small);
}

.errorpoints {
    color: darkred;
    font: var(--heading-small);
}

.synonyms .container {
    container-name: synonymsContainer;
    container-type: inline-size;
}

    .synonyms .container .wrapper {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .synonyms .container hr {
        margin: 0;
        width: 1px;
        border: none;
        background: var(--primary-100);
    }

    .synonyms .container .alternatives {
        flex: 1 1 auto;
    }

@container synonymsContainer (max-width: 20rem) {
    .synonyms .container .wrapper {
        flex-direction: column;
    }

    .synonyms .container hr {
        height: 1px;
        width: 100%;
    }
}

.synonyms ul {
    flex: 1;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
/* #endregion ------------------- PAGE - synonyms ------------------------------------------------- end */

/* #region ---------------------- PAGE - dailylife ---------------------------------------------------- */
.dailylife .subtask {
    margin: 2rem 0;
}

    .dailylife .subtask > p,
    .dailylife .subtask > div {
        margin: .3rem 0;
    }

.dailylife .stack {
    margin: 3rem 0;
}

    .dailylife .stack:first-child {
        margin: 0 0 3rem;
    }

    .dailylife .stack .blue.box {
        margin-bottom: .5rem;
    }

.dailylife .assigment.text {
    font: var(--paragraph-medium);
}
/* #endregion ------------------- PAGE - dailylife ------------------------------------------------ end */

/* #region ---------------------- PAGE - equations ---------------------------------------------------- */
.equations .gap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
}

.equations .subtask {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .2rem 2rem;
}

    .equations .subtask .q {
        text-wrap: nowrap;
        min-width: 10rem;
    }

    .equations .subtask .a {
        flex: 1;
        display: flex;
        align-items: center;
        gap: .5rem;
    }

        .equations .subtask .a label {
            text-wrap: nowrap;
        }

.equations .fraction {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

    .equations .fraction .numerator {
        display: block;
        border-bottom: 1px solid;
    }

    .equations .fraction .denominator {
        display: block;
    }


/* #endregion ------------------- PAGE - equations ------------------------------------------------ end */

/* #region ---------------------- PAGE - fractionpercent ---------------------------------------------- */

.fractionpercent input[type="number"] {
    width: 100%;
    max-width: 5rem;
    text-align: center;
}

.fractionpercent input[type="text"] {
    width: 100%;
    min-width: 5rem;
}

.fractionpercent .subtask {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

    .fractionpercent .subtask.twoliner {
        display: flex;
        gap: .2rem;
        margin: 2rem 0;
        flex-direction: column;
        align-items: start;
    }

    .fractionpercent .subtask .question {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .fractionpercent .subtask .answer {
        flex: 1;
    }

    .fractionpercent .subtask .fractionAnswer {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

        .fractionpercent .subtask .fractionAnswer input[type="number"],
        .fractionpercent .subtask .fractionAnswer input[type="text"] {
            padding: .2rem .6rem;
            text-align: center;
        }

.fractionpercent .fractionQuestion {
    min-width: 2.5rem;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

    .fractionpercent .fractionQuestion .numerator {
        display: block;
        border-bottom: 1px solid;
    }

    .fractionpercent .fractionQuestion .denominator {
        display: block;
    }

.fractionpercent .fractionbar {
    max-width: 5rem;
    margin: .2rem 0;
    height: 1px;
    background: var(--dark);
}

.fractionpercent .questionInputLargeImg {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 1rem;
}

    .fractionpercent .questionInputLargeImg .image {
        flex: 1;
        text-align: center;
    }

    .fractionpercent .questionInputLargeImg .answers {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: .5rem;
    }

    .fractionpercent .questionInputLargeImg .fullscreen {
        min-width: 8rem;
        max-width: 13rem;
    }

.fractionpercent .fractionInputVariable .num {
    min-width: 2.5rem;
}

fractionpercent .fractionsircle {
}
/* #endregion ------------------- PAGE - fractionpercent ------------------------------------------ end */

/* #region ---------------------- PAGE - wordimages --------------------------------------------------- */
.wordimages .blue.box {
    min-height: 5.2rem;
    text-align: center;
}

.wordimages .guide {
    text-align: center;
}

    .wordimages .guide svg {
        width: 100%;
        height: 100%;
        max-height: 4rem;
        transform: rotate(180deg);
        transition: 0.3s ease;
    }

    .wordimages .guide.rotate svg {
        transform: rotate(360deg);
    }

.wordimages .assignment {
    font: var(--heading-small);
    margin: 0;
}
/* #endregion ------------------- PAGE - wordimages ----------------------------------------------- end */

/* #region ---------------------- PAGE - geometry ----------------------------------------------------- */
.geometry button.fullscreen img {
    max-height: 10rem;
}

.geometry .gap {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

    .geometry .gap:first-child {
        margin: 0 0 4rem;
    }

.geometry .task img {
    max-height: 10rem;
    aspect-ratio: 3/2;
    object-fit: contain;
}

.geometryGrid.gap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    flex-direction: unset;
}

.geometryGrid .subtask {
    flex: 1 1 auto;
}

.geometryGrid .label.horizontal {
    margin: .5rem 0;
}

.geometryGrid label.start {
    min-width: 2.6rem;
    text-align: end;
}

.geometryGrid .fullscreen img {
    max-height: 3rem;
}

.questionInputLargeImgWideText .fullscreen img {
    max-width: 100%;
    height: auto;
    max-height: 20rem;
}

.questionInputImgCombo .fullscreen img {
    max-width: 3rem;
    height: auto;
    max-height: 3rem;
}

.questionInputImgCombo .label.horizontal {
    gap: .5rem 3rem;
}

.imageMultipleInput {
    margin: 2rem 0;
}
/* #endregion ------------------- PAGE - geometry ------------------------------------------------- end */

/* #region ---------------------- PAGE - statistics --------------------------------------------------- */
.statistics .subtask {
    margin: 2rem 0;
}

    .statistics .subtask > * {
        margin: .5rem 0;
    }

/*.statistics .assignment {
    margin: .5rem 0;
}*/
/* #endregion ------------------- PAGE - statistics ----------------------------------------------- end */

/* #region ---------------------- PAGE - numbersystems ------------------------------------------------ */
.numbersystems .horizontal.two {
    margin: 2rem 0;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

    .numbersystems .horizontal.two.wrap {
        flex-wrap: wrap;
    }

    .numbersystems .horizontal.two .pattern {
        display: flex;
        flex-wrap: wrap;
        gap: .4rem;
        align-items: center;
    }

        .numbersystems .horizontal.two .pattern input {
            max-width: 5rem;
            text-align: center;
        }

.numbersystems .subtask {
    margin: 2rem 0;
}

    .numbersystems .subtask > p,
    .numbersystems .subtask > div {
        margin: .3rem 0;
    }

.numbersystems .stack {
    margin: 3rem 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

    .numbersystems .stack:first-child {
        margin: 0 0 3rem;
    }

    .numbersystems .stack .blue.box {
        margin-bottom: .5rem;
        flex: 1 0 100%;
    }

    .numbersystems .stack .number {
        flex: 1 0 100%;
        margin: 0;
        letter-spacing: .5rem;
        font-weight: 500;
    }

.numbersystems .underscore {
    text-align: center;
    font: var(--paragraph-large);
}

.numbersystems .navigation .btn.icon {
    gap: 1rem
}

.numbersystems .multibtns {
    flex: 1;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.numbersystems .radio.selectnumber {
    justify-content: center;
    gap: 0;
    flex: 1 1 5rem;
}

    .numbersystems .radio.selectnumber input[type="radio"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        -ms-appearance: none;
        -o-appearance: none;
        appearance: none;
    }

    .numbersystems .radio.selectnumber input[type="radio" i] {
        margin: 0;
    }

.numbersystems .radio:has(input[type="radio"]:checked).selectnumber {
    background: var(--primary-500);
    color: var(--light);
}
/* #endregion ------------------- PAGE - numbersystems -------------------------------------------- end */

/* #region ---------------------- PAGE - home --------------------------------------------------------- */
.version {
    text-align: center;
    color: var(--grey-300);
    user-select: none;
    display: block;
    font: var(--paragraph-xsmall);
}
/* #endregion ------------------- PAGE - home ----------------------------------------------------- end */

/* #region ---------------------- PAGE - loginpage ---------------------------------------------------- */
.PIN {
    margin: 4rem auto;
    width: 100%;
    max-width: 25rem;
    text-wrap: pretty;
}

    .PIN fieldset {
        border: none;
        padding: 0;
        margin: 2rem 0 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .PIN .form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

.userdetails {
    line-height: 1;
    min-height: 1rem;
    color: var(--grey-700);
    font-style: italic;
    text-align: end;
}

/* #endregion ------------------- PAGE - loginpage ------------------------------------------------ end */

/* #region ---------------------- PAGE - sessionExpired ----------------------------------------------- */
.sessionExpired .container {
    flex: 1;
    font: var(--paragraph-medium);
    width: min(100% - 1rem, 45rem);
    margin: 4rem auto 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sessionExpired section p {
    margin: .2rem 0 1rem;
}

.sessionExpired .tips {
    padding: 1rem 1.5rem;
    color: var(--grey-700);
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
}

    .sessionExpired .tips h2 {
        font: var(--heading-xsmall);
        font-style: italic;
        margin: .5rem 0;
    }

    .sessionExpired .tips p {
        font: var(--paragraph-small);
        font-style: italic;
    }

/* #endregion ------------------- PAGE - sessionExpired-------------------------------------------- end */

/* #region ---------------------- PAGETYPE - highlightLines and findWord ------------------------------ */
.crossoutContainer {
    overflow-x: auto;
    padding-bottom: 1rem;
}

.crossout {
    min-width: fit-content;
    width: 25rem;
    margin: auto;
    padding: 1.5rem;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: .2rem;
}

    .crossout li {
        list-style: none;
    }

    .crossout .underline {
        padding: .4rem .6rem;
        display: block;
        color: var(--primary-600);
        font: var(--paragraph-medium);
        border-bottom: 2px solid transparent;
        cursor: pointer;
        transition: background ease .2s, border ease .2s, color ease .2s;
    }

        .crossout .underline input:focus {
            outline: none;
        }

        .crossout .underline input {
            margin: 0;
            opacity: 0;
            cursor: pointer;
            height: 0;
            width: 0;
        }

        .crossout .underline span {
            white-space: nowrap;
        }

    .crossout li:has(.underline input:focus-visible) {
        outline: 3px solid var(--primary-500);
    }

    .crossout .underline:has(input[type="checkbox"]:checked) {
        background: var(--primary-100);
        border-bottom: 2px solid;
        color: var(--primary-700);
        font-weight: 500;
    }

    .crossout .underline:hover {
        background: var(--primary-100);
    }
/* #endregion ------------------- PAGETYPE - highlightLines and findWord--------------------------- end */

/* #region ---------------------- SCREENREADER ONLY --------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* #endregion ------------------- SCREENREADER ONLY ----------------------------------------------- end */

/* #region ---------------------- SVG ----------------------------------------------------------------- */

.svg.primary path {
    fill: var(--primary-500);
}

.svg.primary_600 path {
    fill: var(--primary-600);
}

.svg.primary_700 path {
    fill: var(--primary-700);
}

.svg.primary_800 path {
    fill: var(--primary-800);
}

.svg.primary_900 path {
    fill: var(--primary-900);
}

.svg.accent path {
    fill: var(--accent);
}

.svg.black path {
    fill: var(--dark);
}

.svg.white path {
    fill: var(--light);
}

.svg.grey path {
    fill: var(--grey-500);
}

/* #endregion ------------------- SVG ------------------------------------------------------------- end */

/* #region ---------------------- @media -------------------------------------------------------------- */
/*iPad*/
@media only screen and (max-width:1024px) {
    /* #region ~~~~~~~~~~ Layout ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
    .test.paper {
        min-height: 75vh;
    }

    .left {
        flex: unset;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

        .logo.container,
        .left .btn {
            margin: 0;
        }

    .right {
        flex: 1;
    }

    /* #endregion ~~~~~~~ Layout ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

    /* #region ~~~~~~~~~~ Result ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
    .results.visible {
        min-height: fit-content;
        height: 950px;
        max-height: fit-content;
        transition: 2s ease;
        transform: translateY(0);
    }

    .results.hidden {
        min-width: fit-content;
        height: 0;
        overflow: hidden;
        transition: 2s ease, height 3s ease 1s;
        transform: translateY(-150vh);
    }

    .results .container {
        display: flex;
        flex-wrap: wrap;
    }

    .results .sub {
        flex: 1;
        margin: .5rem;
        padding: .5rem;
        border-right: 1px solid var(--grey-300);
    }

    .results hr.vertical {
        height: auto;
        width: 1px;
        margin: 0;
    }

        .results hr.vertical:last-of-type {
            display: block;
        }
    /* #endregion ~~~~~~~ Result ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

    /* #region ~~~~~~~~~~ Login page ~~~~~~~~~~~~~~~~~~~~~~~~~~ */
    .PIN {
        margin: 0 auto;
        max-width: 30rem;
    }
    /* #endregion ~~~~~~~ Login page ~~~~~~~~~~~~~~~~~~~~~~~~~~ */

    /* #region ~~~~~~~~~~ highlightLines and findWord ~~~~~~~~~ */
    .crossout {
        margin: auto;
        padding: 1.5rem 1rem;
        min-width: max-content;
        width: auto;
        max-width: 25rem;
    }
    /* #endregion ~~~~~~~ highlightLines and findWord ~~~~~~~~~ */
}
/* #endregion ------------------- @media ---------------------------------------------------------- end */

/* #region ---------------------- Searchable dropdown for SWE login ----------------------------------- */

.dropdown-container {
    position: relative;
    width: 300px;
}

.dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
}

.dropdown-arrow {
    margin-left: 10px;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    max-height: 800px;
    color: var(--primary-600);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-selected {
    color: var(--primary-600);
}

.dropdown-search {
    width: calc(100% - 40px);
    margin: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.dropdown-option {
    padding: 10px;
    cursor: pointer;
}

    .dropdown-option:hover {
        background-color: #f0f0f0;
    }

.dropdown-no-results {
    padding: 10px;
    color: #888;
    font-style: italic;
}

input[type="sweText"] {
    max-width: 30rem;
    min-width: 4rem;
    background: var(--light);
    border: 1px solid var(--grey-400);
    color: var(--primary-600);
    font: var( --paragraph-medium);
    padding: .4rem .6rem;
    border-radius: .2rem;
    transition: ease .2s;
}
/* #endregion ------------------- Searchable dropdown for SWE login -------------------------------- end*/

/* #region ---------------------- NotificationToast --------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    width: 100%;
    padding: 0 0.2rem 0.2rem;
}

.toast-item {
    display: flex;
    gap: 0.5rem;
    border: 1px solid;
    border-radius: .2rem;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}

    .toast-item .btn {
        margin-left: auto;
    }

.toast-info {
    --toast-border: var(--primary-200);
    --toast-bg: var(--primary-50);
    --toast-color: var(--primary-700);
}

.toast-success {
    --toast-border: var(--validation-correct-default);
    --toast-bg: var(--validation-correct-light);
    --toast-color: var(--validation-correct-dark);
}

.toast-warning {
    --toast-border: var(--validation-warning-default);
    --toast-bg: var(--validation-warning-light);
    --toast-color: var(--validation-warning-dark);
}

.toast-error {
    --toast-border: var(--validation-wring-default);
    --toast-bg: var(--validation-wrong-light);
    --toast-color: var(--validation-wrong-dark);
}

.toast-default {
    --toast-border: var(--grey-400);
    --toast-bg: var(--grey-200);
    --toast-color: var(--grey-900);
}

.toast-info,
.toast-success,
.toast-warning,
.toast-error,
.toast-default {
    border-color: var(--toast-border);
    background-color: var(--toast-bg);
    color: var(--toast-color);
}

    .toast-info > svg,
    .toast-success > svg,
    .toast-warning > svg,
    .toast-error > svg,
    .toast-default > svg {
        margin-left: 1rem;
    }

        .toast-info > svg path,
        .toast-success > svg path,
        .toast-warning > svg path,
        .toast-error > svg path,
        .toast-default > svg path {
            fill: var(--toast-color);
        }

    .toast-info .btn.close:hover,
    .toast-success .btn.close:hover,
    .toast-warning .btn.close:hover,
    .toast-error .btn.close:hover,
    .toast-default .btn.close:hover {
        background-color: var(--toast-bg);
        filter: brightness(0.9);
    }

        .toast-info .btn.close:hover path,
        .toast-success .btn.close:hover path,
        .toast-warning .btn.close:hover path,
        .toast-error .btn.close:hover path,
        .toast-default .btn.close:hover path {
            fill: var(--toast-color);
        }
/* #endregion ------------------- NotificationToast ----------------------------------------------- end */

/* #region ---------------------- FRACTION ------------------------------------------------------------ */
.singleInputFraction,
.dualInputFraction {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

    .singleInputFraction input[type="number"],
    .singleInputFraction input[type="text"],
    .dualInputFraction input[type="number"],
    .dualInputFraction input[type="text"] {
        padding: .2rem .6rem;
        text-align: center;
        width: 5em;
        flex: 1 1 auto;
    }

    .singleInputFraction .operator,
    .dualInputFraction .operator {
        margin: .2rem 0;
        height: 1px;
        background: var(--dark);
        flex: 1 1 auto;
        width: 100%;
    }

.readOnlyFraction {
    min-width: 2.5em;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

    .readOnlyFraction .numerator {
        display: block;
        border-bottom: 1px solid;
    }

    .readOnlyFraction .denominator {
        display: block;
    }

/* #endregion ------------------- FRACTION -------------------------------------------------------- end */

/* #region ---------------------- Fieldset ------------------------------------------------------------ */
.test fieldset {
    border: none;
    outline: none;
    padding: 0;
}

legend.blue {
    margin: 1em 0 2em;
    padding: 1.5rem;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: .2rem;
    width: 100%;
}

/* #endregion ------------------- Fieldset -------------------------------------------------------- end */

/* #region ---------------------- Taskgroup ----------------------------------------------------------- */
.taskgroup.stack {
    display: flex;
    gap: 1em;
}

.taskgroup.stack {
    flex-direction: column;
}

.taskgroup.row {
    flex-direction: row;
}

.taskgroup.stack.gapS {
    gap: .5em;
}

.taskgroup.stack.gapM {
    gap: 2em;
}

.taskgroup.stack.gapL {
    gap: 3em;
}

.taskItem {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5em 1em;
}
/* #endregion ------------------- Taskgroup ------------------------------------------------------- end */

/* #region ---------------------- PAGETYPE - sumSingle ------------------------------------------------ */
.sumSingle input {
    flex: 1;
    max-width: 8em;
}

.sumSingle label {
    min-width: 9em;
}
/* #endregion ------------------- PAGETYPE - sumSingle -------------------------------------------- end */

/* #region ---------------------- PAGETYPE - sumFractions --------------------------------------------- */
.sumFractions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin: 1rem 0;
}

    .sumFractions > p {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
/* #endregion ------------------- PAGETYPE - sumFractions ----------------------------------------- end */

/* #region ---------------------- PAGETYPE - sumComplex ----------------------------------------------- */
.sumComplex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

    .sumComplex > label {
        display: flex;
        align-items: center;
        gap: 1rem;
        min-width: 6em;
    }

    .sumComplex input {
        flex: 1;
        max-width: 4em;
    }
/* #endregion ------------------- PAGETYPE - sumComplex ------------------------------------------- end */

/* #region ---------------------- PAGETYPE - questionInputMultiple ------------------------------------ */
.questionInputMultiple {
    margin: 2rem 0 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1em .5em;
    align-items: baseline;
}

    .questionInputMultiple > p {
        width: 100%;
        padding: 1.5rem;
        background: var(--primary-50);
        border: 1px solid var(--primary-100);
        border-radius: 0.2rem;
    }

    .questionInputMultiple input {
        flex: 1;
        max-width: 8em;
    }
/* #endregion ------------------- PAGETYPE - questionInputMultiple -------------------------------- end */

/* #region ---------------------- PAGETYPE - mathImage ------------------------------------------------ */
.mathImage {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

    .mathImage legend {
        margin: 1em 0 .5em;
    }

    .mathImage .taskItem input {
        max-width: 8em;
        flex: 1 1 0%;
    }
/* ~~~~~~~~~~ singleInputFraction ~~~~~~~~~~~~~~~~~ */
.singleInputFraction {
    display: flex;
    align-items: center;
}

/* #endregion ------------------- PAGETYPE - mathImage -------------------------------------------- end */

/* #region ---------------------- PAGETYPE - questionInputMultipleButtons | selectOddNumbers ---------- */

.numberChoice {
}

.radioOption {
    min-height: 44px;
    background: var(--light);
    border: 1px solid var(--grey-400);
    border-radius: .4rem;
    /*    display: inline-flex;
    align-items: center;
    gap: 0.4rem;*/
    width: 100%;
    color: var(--primary-600);
    font: var(--paragraph-medium);
    padding: .4rem .6rem;
    cursor: pointer;
    transition: ease .2s;
}

    .radioOption input[type="radio"] {
        /*-webkit-appearance: none;
        -moz-appearance: none;
        -ms-appearance: none;
        -o-appearance: none;
        appearance: none;*/
    }

    .radioOption input[type="radio" i] {
        margin: 0;
    }
/* #endregion ------------------- PAGETYPE - questionInputMultipleButtons | selectOddNumbers ------ end */
