
#olympia{
    z-index: 1;
    contain: layout;
    &>canvas{
        position: absolute;
        width: 100%;
        height: 100%;
    }
    &>input{
        display: inline-block;
        contain: paint;
        background-color: rgb(255,255,255,0.4);
        margin: 0.3em;
        &:hover{
            background-color: rgb(255,255,255,0.6);
        }
        padding: 0.4em;
    }
    &>input[type=number]{
        width: 4em;
    }
    &>input[type=checkbox]{
        width: 1.5em;
        height: 1.5em;
    }
    &>.library{
        &:hover{
            height: 20em;
            width: inherit;
            background-color: rgb(255,255,255,0.8);
        }
        display: inline-block;
        contain: paint;
        padding: 1em;
        font-size: 1.2em;
        background-color: rgb(255,255,255,0.2);
        overflow: scroll;
        height: 2em;
        width: 2em;
        font-family: monospace;
    }
    &>p{
        contain: paint;
        background-color: rgb(255,0,0,0.5);
        color: white;
        display: flex;
        width: fit-content;
    }
    &>.areacontainer{
        display: flex;
        contain: paint;
        width: 100%;
        min-height: 50%;
        margin: 1%;
        justify-content: start;
        flex-wrap: wrap;
        &>textarea{
            display: flex;
            font-size: 0.9em;
            word-spacing: 0em;
            letter-spacing: 0em;
            padding: 0em;
            border: none;
            margin: 1%;
            height: 100%;;
            font-weight: bolder;
            text-size-adjust: none;
            font-size-adjust: none;
            line-height: 2.18em;
            font-family: monospace !important;
            background: local linear-gradient(
                rgb(255,255,255,0.0) 0%,
                rgb(255,255,255,0.0) 50%,
                rgb(255,155,155,0.25) 50%,
                rgb(255,155,155,0.25)
            ),
            linear-gradient(
                90deg,
                rgb(255,255,255,0.0) 0%,
                rgb(255,255,255,0.0) 50%,
                rgb(155,155,255,0.25) 50%,
                rgb(155,155,255,0.25)
            );
            overflow: scroll;
            text-wrap: nowrap;
            padding: 0;
            background-repeat: repeat;
            background-size: 4.36em 4.36em;
            background-color: rgb(255, 255, 255,0.3);
            &:last-child{
                background-color: rgb(200,255,200,0.3);
            }
        }
    }
    &>.olympia-messages{
        font-family: Arial, Helvetica, sans-serif;
        font-size: 1.2em;
        display: flex;
        flex-direction: column;
        position: absolute;
        height: 100%;
        justify-content: start;
        align-items: start;
        margin-top: 0.5em;
        >*{
            font-size: 1.2em;
            color: black;
            padding: 0.2em;
            padding-left: 1em;
            padding-right: 6em;
            --color: white;
            border-left: 0.5em solid var(--color);
            background: linear-gradient(90deg, white, rgba(255, 255, 255, 0));

            &[slot=unlock]{
                &::before{ content: "⭐"; }
                --color:gold;
                font-size: 2em;
            }

            &[slot=death]{
                &::before{ content: "☠️"; }
                --color: red;
            }

            &[slot=pv]{
                &::before{ content: "🩷"; }
                --color: pink;
            }

            &[slot=pause]{
                &::before{ content: "⏸️"; }
                font-size: 3em;
            }

            &[slot=hint]{
                &::before{ content: "❓"; }
                --color: blue;
                font-size: 1.5em;
            }
        }
    }

    >.olympia-inventory{
        &.hidden{
            display: none;
        }
        position: absolute;
        top: 4em;
        right: 1em;
        bottom: inherit;
        border-right: white solid 0.6em;
        max-width: 50em;
        padding: 1em;
        background:linear-gradient(
            -90deg,
            rgb(255,255,255,0.7),
            rgb(255,255,255,0)
        );
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        font-family: Arial, Helvetica, sans-serif;
        >div{
            display: flex;
            flex-direction: row;
            padding-bottom: 1em;
            >div{
                display: flex;
                flex-flow: column;
                place-items: center center;
                background-color: rgb(255,255,255,0.2);
                &:hover{
                    background-color: rgb(255,255,255,0.4);
                    cursor: pointer;
                }
                &.selected{
                    background-color: rgb(255,255,255,0.8);
                }
                padding: 0.2em;
                margin: 0.2em;
                width: 5em;
                height: 5em;
                >h3{
                    margin: 0;
                }
                >span{
                    margin: 0;
                    font-size: 2.5em;
                }
            }
        }
    }

    >sam-template-list{
        position: relative;
        background-color: rgb(255,255,255,0.2);
        .itemgroup:not(.template){
            display: flex;
            flex-direction: row;
            width: 100%;
        }
        .itemname{
            width: 2em;
            font-weight: bold;
        }
        .itemdef{
            background-color: rgb(255,255,255,0.4);
            font-weight: bold;
            width: 100%;
        }
        
    }

    >.lifebars{
        display: flex;
        flex-direction: column;
        position: absolute;
        align-items: center;
        padding: .2em;
        left: 0;
        right: 0;
        >div{
            display: flex;
            flex-direction: row;
            width: 50em;
            >.count{
                background-color: rgb(255,255,255,0.5);
                text-align: center;
                font-family: Arial, Helvetica, sans-serif;
                font-weight: bold;
                border-top-left-radius: .4em;
                border-bottom-left-radius: .4em;
                font-size: 1.5em;
                width: 10em;
            }
            >.name{
                display: flex;
                background-color: rgb(255,255,255,0.5);
                text-align: center;
                align-items: center;
                justify-content: center;
                font-variant-caps: all-petite-caps;
                font-family: Arial, Helvetica, sans-serif;
                width: 30em;
                margin-left:.1em;
                padding: .2em;
                text-wrap: nowrap;
                text-overflow: ellipsis;
                overflow: hidden;
            }
            >.bar{
                padding: .2em;
                display: flex;
                background-color: rgb(255,255,255,0.3);
                border-top-right-radius: .4em;
                border-bottom-right-radius: .4em;
                margin: .1em;
                width: 80em;
                >.barfill{
                    background-color: red;
                    transition: width 0.5s;
                }
            }
        }
    }

    sam-gamemenu{
        background-image: url("../../images/titre.png");
        background-size: contain;
        background-color: black;
        background-repeat: no-repeat;
        background-position: center;
        .shop{
            display: none;
        }
    }
}