/* Colors */
:root /* comments : light theme */
{
    --primary-color: #1c3254; /* #ffffff */
    --on-primary-color: #eeeeee; /* #000000 */
    --menu-background-color:#09244e;
    --menu-hover-shadow: rgba(255, 255, 255, 0.5); /* rgba(0, 0, 0, 0.5) */
    --menu-active-shadow: rgba(255, 255, 255, 0.3); /* rgba(0, 0, 0, 0.3) */
    --scrollbar-color: #0356a4;
}

@media (prefers-color-scheme: dark)
{
    :root
    {
        --primary-color: #111111;
        --on-primary-color: #eeeeee;
        --menu-background-color: #000000;
        --menu-hover-shadow: rgba(255, 255, 255, 0.5);
        --menu-active-shadow: rgba(255, 255, 255, 0.3);
        --scrollbar-color: #888888;
    }
}

*, *::before, *::after
{
    box-sizing: border-box;
}

*
{
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-color) transparent;
}

html, body
{
    height: 100%;
    margin: 0;
    background: var(--primary-color);
    color: var(--on-primary-color);
}

html
{
    max-width: 100vw;
    max-height: 100vh;
    body
    {
        font-size: 15px; /* global font size */
        font-family: "Segoe UI", Arial, Helvetica, sans-serif;
        display: flex;
        flex-direction: column;
    }
}

.top-menu, .bottom-menu
{
    --menu-shadow-size: 5px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    overflow-x: auto;
    padding-bottom:var(--menu-shadow-size);
    .menu-item
    {
        flex:1;
        padding:0.75em 1em;
        text-decoration: none;
        color: inherit;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        gap: 0.4em;
        transition: box-shadow 0.05s ease;
        background-color: var(--menu-background-color);
        z-index: 0;
        &:hover
        {
            box-shadow: 0 0 var(--menu-shadow-size) var(--menu-hover-shadow);
            z-index: 1;
        }
        &:active
        {
            box-shadow: inset 0 0 10px var(--menu-active-shadow);
            z-index: 1;
            cursor: default;
        }
    }
}

.bottom-menu{
    padding-bottom:0px;
    padding-top: 10px;
}

.main-content
{
    flex:1;
    min-height: 0;
    padding:1em 2.5em;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow-y: auto;
    .title
    {
        font-size: 2em;
        font-weight: 600;
        margin: 0px;
    }
    &:has(+ .bottom-menu) /* remove bottom padding if bottom menu */
    {
        padding-bottom: 0;
    }
}