/* general Message/Popup settings */

.overlay{
    position: absolute;
    display: flex;
    background-color: rgba(var(--colBG),0.8);
    width: 100%;
    height: 100%;
    display: flex;
    top: 0px;
    left: 0px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s;
    border: none;
    padding: 1em;
}
    .overlay--desktop{
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        background-color: rgba(var(--colBG),0.6);
    }

    .overlay__BG{
        width: 100%;
        height: 100%;
        position: absolute;
        }

    .overlay__content{
        position: relative;
        display: flex;
        flex-direction: row;
        flex-shrink: 0;
        padding: 1em;
        margin-bottom: 0.5em;
        -webkit-box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.3);
        -moz-box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.3);
        box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.3);
        background: rgb(var(--colUIBack04));
        border-radius: 0.5em;
        border: solid transparent;
        border-color: rgba(var(--boxCorner));
        border-width: 1px 0 0 1px;
        color: rgb(var(--colUIText03));
        /* max-width: 30em; */
        /*display:inline-flex !important;*/
    }

        .overlay__content--element{
            padding-top: 1em;
        }

        .overlay__content--row{
            display: flex;
            flex-shrink: 0;
            align-items: flex-start;
            flex-direction: row;
        }

        .overlay__content--column{
            justify-content: flex-start;
            flex-shrink: 0;
            flex-direction: column;
            /* padding: 0.5em 1.5em 1.5em 1.5em; */
        }

    .overlay__title{
        position: relative;
        display: flex;
        width: 100%;
        flex-shrink: 0;
        flex-direction: row;
        padding-bottom: 0.5em;
        border-bottom: 1px solid rgb(var(--colUIText04));
        margin-bottom: 1em;
        font-size: 0.8em;
    }

        .overlay__title>p{
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .overlay__title--button{
            position: absolute;
            top: -0.5em;
            left: -0.5em;
            height: calc(var(--naviSize) / 2);
            flex-shrink: 0;
            cursor: pointer;
            padding: 0.3em;
            border-radius: 0.3em;
        }

            .overlay__title--button:hover{
                background-color: rgb(var(--colUIBack03));
            }

    .overlay__options{
        width: 100%;
        max-width: 25em;
        display: flex;
        flex-shrink: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 1em;
        padding: 0.3em;
        hyphens: none;
    }




.message{
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    max-width: 30em;
    z-index: 11;
}

    .message__icon{
        margin-right: 0.8em;
        vertical-align: text-bottom;
        width: calc(var(--naviSize) / 2.5);
        height: calc(var(--naviSize) / 2.5);
        flex-shrink: 0;
    }


/* Sachverhalt PopUp */



.message__task{
    max-width: 100%;
    max-height: 100%;
    align-items: center;
}
    .message__task>.message__taskText{
        width: 100%;
        overflow: auto;
        column-gap: 3em;
        column-rule: 1px solid rgb(var(--colUIText04));
        padding: 0.25em 0px 1em 0px;
        border-bottom: 1px solid rgb(var(--colUIText04));
    }

    .message__task>.message__taskText--short{
        column-count: 1;
        column-width: 20em;
        max-width: 25em;
    }

    .message__task>.message__taskText--medium{
        column-count: 2;
        column-width: 20em;
        max-width: 45em;
    }

    .message__task>.message__taskText--long{
        column-count: 3;
        column-width: 20em;
        max-width: 85em;
    }



.message__task>.button{
        max-width: 20em;
    }

    .message__taskButtons{
        max-width: 25em;
        width: 100%;
    }

.message__splash{
    background: var(--welcomeBG_H) top right no-repeat;
    background-size: cover;
    max-height: 100%;
    max-width: 100%;
    padding: 0px;
    margin: 0px;
}

    .message__splash>*{
        z-index: 1;
    }

    .message__splash--layer{
        background: rgba(var(--colBG),0.7);
        width: 100%;
        height: 100%;
        overflow-y: auto;
        z-index: 0;
        padding: 2em 2em 0.5em 2em;
        margin: 0px;
        border-radius: 0.5em;
    }




/* urkaine */

.ukraineStatement{
    max-width: 65em;
    max-height: calc(100% - var(--naviSize));
}

    .ukraineStatement__logo{
        width: 5em;
        position: absolute;
        right: 3em;
        top: -2em;
    }

    .ukraineStatement__text{
        overflow: auto;
    }


    .ukraineStatement__text p{
        margin-bottom: 1em;
    }

    .ukraineStatement__subscription{
        display: flex;
        min-width: 12em;
        flex-wrap: wrap;
    }

    .ukraineStatement__subscription--script{
        margin-right: 3em;
        min-width: 10em;
        max-width: 21em;
        flex-grow: 1;
    }



/* ------------------ Practice Rating Popup --------------------------------------------------------*/

.result{
    display: flex;
    align-items: center;
    min-width: 25em;
    white-space: nowrap;
    max-width: unset;

}

.result__warning{
    color: rgb(var(--colContra01));
    margin: 0.75em 0px;
    white-space: normal;
    text-align: center;
}

.result__line{
    width: 100%;
    height: 1px;
    background-color: rgb(var(--colUIText04));
    margin: 1em 0px;
}

.result__content{
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    padding: 0px 1em;
}


    .result__score{
        display: flex;
        position: relative;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        font-stretch: condensed;
        letter-spacing: normal;
        transition: opacity 0.5s;
        min-width: 8em;
    }

        .result__score--actual{
            font-size: 3em;
            font-weight: bold;
            cursor:default;
            color: rgb(var(--colRatinglevel));
        }

        .result__score--previous,
        .result__score--average{
            font-size: 1.2em;
            font-weight: bold;
            cursor:default;
            color: rgb(var(--colRatinglevel));
        }

        .result__score--1{
            --colRatinglevel: var(--colRatinglevel01);
            animation: ratingGlow 2.5s infinite;
        }
        .result__score--2{
            --colRatinglevel: var(--colRatinglevel02);
            animation: ratingGlow 4s infinite;
        }
        .result__score--3{
            --colRatinglevel: var(--colRatinglevel03);
            animation: ratingGlow 4s infinite;
        }
        .result__score--4{
            --colRatinglevel: var(--colRatinglevel04);
            animation: ratingGlow 2.5s infinite;
        }
        .result__score--5{
            --colRatinglevel: var(--colRatinglevel05);
            animation: ratingGlow 1s infinite;
        }

        @keyframes ratingGlow {
            0%   { text-shadow: 0px 0px 30px rgba(var(--colRatinglevel),0.4) }
            40%   { text-shadow: 0px 0px 30px rgba(var(--colRatinglevel,0)) }
            100%   { text-shadow: 0px 0px 30px rgba(var(--colRatinglevel),0.4) }
        }

            .noTouch .result__score--actual[tooltip]::after{
                font-size: 0.8rem;
                font-weight: 300;
            }

            .noTouch .result__score--previous[tooltip]::after,
            .noTouch .result__score--average[tooltip]::after{
                font-size: 0.5em;
                font-weight: 300;
            }

    .result__details{
        display: flex;
        flex-direction: column;
        position: relative;
        min-width: 15em;
    }


    .result__detailCount{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        line-height: 2em;
        transition: opacity 0.5s;
    }

        .result__detailCount--number{
            font-weight: bold;
        }

        .result__detailCount--oldResults{
            font-size: unset;
            padding: 0px 1em;
            line-height: unset;
        }


    .result__time{
        min-width: 8em;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-evenly;
        line-height: 2em;
        transition: opacity 0.5s;
    }

        .result__time--digits{
            flex-direction: column;
            align-items: center;
            display: flex;
        }

        .result__time--digits>span{
            font-size: 1.2em;
            padding: 0.2em 0.5em;
            margin-top: 0.25em;
            box-shadow: inset 0 0 3px rgba(var(--colUIText01),0.2);
            border-radius: 0.5em;
            box-shadow: inset 0 0 3px rgba(var(--colUIText01),0.2);
        }

    .result>.button{
        max-width: 20em;
    }


    .difficulty{
        display: flex;
        flex-direction: row;
        width: 100%;
        align-items: center;
        justify-content: center;
        transition: opacity 0.5s;
    }

    /* ------------ Sterne erstmal obsolete -------------- */

        .difficultyStars{
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            margin: 0px 0.5em;
        }

        .difficultyStars--icon{
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
        }


    .difficultyStars{
        display: flex;
        flex-shrink: 0;
        flex-direction: row;
        margin-bottom: 0.5em;
        }


    .difficultyStar {
        width: 1.2em;
        height: 1.2em;
        margin: 0px 0.2em;
    }

        .difficultyStar>svg{
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
        }


    .difficultyStar--half{
        fill: rgb(var(--colUIText03));
        stroke: none;
    }

    .difficulty--half>.difficultyStar>.difficultyStar--half{
        display: block !important;
    }

    .difficulty--full>.difficultyStar>.difficultyStar--full{
        fill: rgb(var(--colUIText03));
    }



    .difficultySymbol{
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 1.2em;
        font-weight: 400;
        cursor: default;
    }

        .difficultySymbol>*{
            position: absolute;
        }

        .difficultySymbol>svg{
            width: 1.8em;
            height: 1.8em;
            stroke: rgb(var(--colUIText03));
        }


/* -------------------------- Zeichenlegende ---------------- */

.legend{
    display: flex;
    align-items: center;
    width: 50em;
    min-width: 25em;
    max-width: 100%;
    max-height: 100%;
}

    .legend__content{
        display: flex;
        flex-direction: column;
        padding: 1em;
        width: 100%;
        height: 100%;
        overflow: auto;
    }

    .legend__itemList{
        flex-direction: column;
        width: 100%;
        }

    .legend__item{
        display: flex;
        flex-direction: row;
        padding: 1em 0px;
    }

    .legend__item>*{
        margin-right: 1em;
        align-self: flex-start;
    }

    .legend__details{
        font-size: 1em;
    }

    .legend__itemPic{
        width: 1.5em;
        flex-shrink: 0;
    }

    .legend__itemPic--full{
        fill: rgb(var(--colUIText03));
    }

    .legend__itemPic--outline{
        stroke: rgb(var(--colUIText03));
        stroke-width: 0.6px;
    }

    .legend__details>p{
        hyphens: none;
    }

    /* .legend__details>p:before{
        content: "-";
        margin-right: 1em;
        color: rgb(var(--colUIText03));
    } */

    .legend__details>p:first-of-type{
        border-top: 1px solid rgb(var(--colUIText04));
        padding-top: 0.5em;
    }

    .legend__iconImportant{
        fill: rgb(var(--colAttention01));
        -webkit-filter: drop-shadow(0 0 2px rgba(var(--colAttention01),1));
        filter: drop-shadow( 0 0 0.3em rgba(var(--colAttention01),1));
        stroke: orange;
        stroke-width: 0.5px;
        }


/* Media Queries */


@media (orientation: landscape){

    .result__content{
        flex-direction: row;
        margin-top: 1em
    }

    .result__score,
    .result__time,
    .difficulty{
        flex-direction: column;
        justify-content: space-around;
    }

    .result__details{
        margin: 0px 1em;
    }

    .difficultyStars{
        flex-direction: column-reverse;
        margin: 0.5em 0px;
        min-height: 6em;
        }

    .result__line{
        width: 1px;
        height: 100%;
        margin: 0px 2em;

    }

    .legend__content{
        flex-direction: row;
        padding: 2em;
    }

}

@media (max-device-width: 45em) and (orientation: portrait) and (pointer: coarse),
    (max-device-height: 45em) and (orientation: landscape) and (pointer: coarse)
 {
    .message__task>.message__taskText{
        display: flex;
        flex-direction: column;
    }

    .legend {
        display: flex;
        align-items: center;
        min-width: 100%;
        min-height: 100%;
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
    }

}

@media (min-width: 100em) and (orientation: landscape){

    .message__splash--layer{
        padding: 2em 3em 0.5em 3em;
    }

    .legend {
        max-width: 50em;
        width: 50em;
    }

}

