html, body 
{
    margin: 0;
    padding: 0;
    background: black;
}

#loading
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 999;
}

.panel 
{
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;

    video
    {
        height: 100%;
        width: 100%;
        object-fit: cover;
        pointer-events: none;
        z-index: 0;
    }

    .card
    {
        position: absolute;
        z-index: 1;
        padding: 2em;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: end;

        h2
        {
            font-family: 'Times New Roman', Times, serif;
            font-weight: normal;
            font-size: 3rem;
            margin: 0;
            border-bottom: 1px solid;
            padding-bottom: 1rem;
            margin-bottom: 1rem;
        }

        .date
        {
            font-family: 'Times New Roman', Times, serif;
            font-size: 1.5rem;
            margin: 0;
            letter-spacing: 0.05em;
        }

        .description
        {
            font-family: 'Times New Roman', Times, serif;
            font-size: 1.125rem;
            margin: 1rem 0;

            display: flex;
            flex-direction: row;
            column-gap: 1.5em;

            p
            {
                margin: 0;
                max-width: 10em;
                text-wrap: balance;
            }
        }

        .distinctions
        {
            list-style: none;
            margin: 1em 0 1em;
            padding: 0;

            font-family: Arial, sans-serif;
            text-transform: uppercase;
            font-size: 0.5rem;
            letter-spacing: 0.25em;

            display: flex;
            flex-direction: row;
            column-gap: 2em;

            li
            {
                margin: 0;
                padding: 0;
                display: flex;
                flex-direction: column;
                row-gap: 1em;
                align-items : center;

                span
                {
                    opacity: 0.5;
                }

                img
                {
                    height: 40px;

                    &.invert
                    {
                        filter: invert();
                    }
                }
            }
        }

        .actions
        {
            list-style: none;
            margin: 0;
            padding: 0;
            margin-top: 1em;
            display: flex;
            flex-direction: row;
            column-gap: 1em;

            li
            {
                display: block;
                padding: 0;

                a.button
                {
                    display: block;
                    padding: 0.75em 1em;
                }
            }
        }
    }

    a
    {
        cursor: pointer;
    }

    a.button
    {
        text-decoration: none;
        color: inherit;
        border: 1px solid;
        text-shadow: none !important;
        font-family: Arial, sans-serif;

        &:hover
        {
            background: black;
            color: white;
            border-color: transparent;
        }
    }

    .details
    {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(25px);
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        visibility: hidden;

        &.visible
        {
            visibility: visible;
        }

        .content
        {
            width: 100%;
            max-height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            overflow-x: hidden;
            overflow-y: auto; 
            padding: 1em;
            
            h2
            {
                font-weight: normal;
                font-size: 2.5rem;
                margin: 1em 0 0.25em;

                &[lang]
                {
                    margin-top: 0.25em;
                    font-size: 1.5rem;
                    font-style: italic;
                }
            }

            h3
            {
                font-weight: normal;
                font-size: 1.5rem;
                text-align: center;
            }

            .bilingual
            {
                display: flex;
                flex-direction: row;
                column-gap: 2em;

                div[lang]
                {
                    max-width: 20em;

                    &:first-child
                    {
                        text-align: right;
                    }

                    &:last-child
                    {
                        text-align: left;
                    }

                    p
                    {
                        line-height: 1.5em;
                        text-wrap: balance;
                    }
                }
            }

            blockquote
            {
                max-width: 30em;

                p
                {
                    font-style: italic;
                    font-size: 1.5rem;
                    line-height: 1.25em;
                    text-wrap: balance;
                }

                footer
                {
                    text-align: right;

                    cite
                    {
                        font-style: normal;
                    }
                }
            }
        }

        a.close
        {
            font-size: 2rem;
            width: 2em;
            height: 2em;
            min-height: 2em;
            margin: 1em;
            border-radius: 50%;
            text-align: center;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            padding: 0;

            &.corner
            {
                position: absolute;
                top: 0.5em;
                right: 1em;
                z-index: 3;
            }
        }
    }
}

#toc
{
    background: black;
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    a.button:hover
    {
        background: white !important;
        color: black !important;
    }

    h1
    {
        font-family: 'Times New Roman', Times, serif;
        font-weight: normal;
        font-size: 3rem;
        margin: 0;
        margin-top: 0.5em;

        &.bio
        {
            position: absolute;
            bottom: 1em;
            right: 1em;
            font-size: 2rem;
        }
    }

    .aligner
    {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;

        .arrow
        {
            font-size: 2rem;
            margin-bottom: 1em;
        }
    }

    ul
    {
        list-style: none;
        margin: 0;
        padding: 0;

        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;

        li
        {
            padding: 0;
            overflow: visible;
            display: box;
            block-size: fit-content;
            margin-top: 0.5em;
            margin-bottom: 1.25em;

            a
            {
                display: box;
                color: white;
                text-decoration: none;
                font-size: 1.5rem;
                padding-bottom: 0.5em;

                &:hover
                {
                    border-bottom: 1px solid;
                }
            }
        }
    }
}

#ete
{
    background: white;

    .card
    {
        bottom: 0;
        left: 0;

        vertical-align: bottom;
        background: radial-gradient(ellipse 100% 100% at bottom left, white 50%, rgba(255, 255, 255, 0));
        min-width: 50%;
        max-width: 100%;
        min-height: 50%;
        max-height: 100%;

        text-shadow: 0 0 2em white, 0 0 1em white;

        h2
        {
            padding-right: 2.5em;
            margin-bottom: 0.5em;
        }
    }

    .details
    {
        background: rgba(255, 255, 255, 0.25);
    }
}

#lumiere
{
    background: black;
    color: white;

    .card
    {
        bottom: 0;
        left: 0;

        h2
        {
            padding-right: 1em;
        }
    }

    a.button:hover
    {
        background: white;
        color: black;
    }

    .details
    {
        background: rgba(0, 0, 0, 0.25);
    }
}

#paintings
{
    .card
    {
        bottom: 0;
        right: 0;
        align-items: flex-end;
        text-align: right;
        color: yellow;
        mix-blend-mode: difference;

        h2
        {
            padding-left: 1em;
        }
    }

    a.button:hover
    {
        background: yellow;
        color: black;
    }
}

#eclore
{
    background: lightgray;
    color: hsl(30, 7%, 22%);

    .card
    {
        bottom: 0;
        right: 0;
        align-items: flex-end;
        text-align: right;
        background: radial-gradient(ellipse 100% 100% at bottom right, hsl(15, 6%, 75%) 25%, rgba(255, 255, 255, 0));
        min-width: 50%;
        max-width: 100%;
        min-height: 50%;
        max-height: 100%;

        h2
        {
            padding-left: 1em;
        }
    }

    a.button:hover
    {
        background: hsl(30, 7%, 22%);
        color: lightgray;
    }
}

.arrow 
{
    border: solid;
    border-width: 0 .125em .125em 0;
    display: inline-block;
    padding: .25em;
    
    &.right {
        transform: rotate(-45deg);
    }

    &.left {
        transform: rotate(135deg);
    }

    &.up {
        transform: rotate(-135deg);
    }

    &.down {
        transform: rotate(45deg);
    }
}