:root {
    --primary: #FFF;
    --secondary: #444444;
    --tertiary: #666666;
    --accent: #1A7F7F;
    --background: #222222;
    --footer: #000000;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.3;

    position: relative;

    overflow-x: hidden;

    color: #FFF;
    color: var(--primary);
    background-color: #222222;
    background-color: var(--background);

    /*background: linear-gradient(#222222, #000);
    background: linear-gradient(var(--background), #000);*/
}

    .body-wrapper {
        width: 100%;

        transition-duration: 1s;
    }

    .body-container {
        min-height: calc(95vh - 32px);
    }

header {
    width: 100%;
    height: auto;
    min-height: 64px;

    padding: 16px;
    padding-left: 64px;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;

    text-align: center;

    box-shadow: 0 0 8px 0 black;

    background-color: #444444;
    background-color: var(--secondary);
}

    header img {
        height: 48px;

        margin-right: 8px;
    }

    .header-advanced {
        padding-left: 4px;
        padding-right: 4px;

        text-align: center;

        border-bottom: 2px solid #1A7F7F;
        border-bottom: 2px solid var(--accent);
    }

    /*header h1 {
        text-align: center;
        border-bottom: 2px solid #1A7F7F;
        border-bottom: 2px solid var(--accent);
    }*/

.nav-container {
    width: 100%;
    height: auto;
}

    .nav-overlay {
        min-width: 100vw;
        min-height: 100vh;

        position: fixed;
        top: 0;
        left: 0;

        opacity: 0;
        visibility: hidden;

        background-color: rgba(0, 0, 0, 0.75);

        transition-duration: 1s;

        z-index: 89;
    }

    .nav-toggle {
        width: 48px;
        height: 48px;

        /*padding: 16px;*/

        position: fixed;
        top: 8px;
        left: 8px;

        border-radius: 16px;

        mix-blend-mode: difference;
        /*background-color: rgba(0, 0, 0, 0.75);*/

        transition-duration: 0.5s;

        z-index: 100;
    }

        /*

            Weird screen jitter on Firefox when mix-blend-mode is turned on?
            Targeting to remove.

        */

        @-moz-document url-prefix() {
            .nav-toggle {
                mix-blend-mode: inherit !important;
            }
        }

        .nav-toggle:hover {
            transform: scale(1.2);
        }

        .nav-toggle svg {
            width: 32px;
            height: 32px;

            /*border-radius: 8px;*/

            position: absolute;
            top: 8px;
            left: 8px;
            /*transform: translate(-50%, -50%);*/

            /*stroke: #000;
            stroke-width: 12px;*/

            cursor: pointer;
        }

        @keyframes nav-popin {
            0% {
                opacity: 0;
                transform: rotate(0deg);
            }
            25% {
                opacity: 0;
            }
            50% {
                opacity: 1;
            }
            66% {
                opacity: 1;
            }
            75% {
                opacity: 1;
            }
            100% {
                transform: rotate(180deg);
                opacity: 1;
            }
        }

        @keyframes nav-popout {
            0% {
                opacity: 1;
                transform: rotate(0deg);
            }
            25% {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
            66% {
                opacity: 0;
            }
            75% {
                opacity: 0;
            }
            100% {
                transform: rotate(180deg);
                opacity: 0;
            }
        }

        .nav-open, .nav-close {
            display: flex;

            /*position: absolute;
            top: 0;
            left: 0;*/

            /*visibility: visible;*/
            opacity: 1;

            animation-duration: 1s;
            animation-play-state: paused;
            animation-fill-mode: forwards;

            transition-duration: 1s;
        }

            .nav-open {
                animation-name: nav-popout;

                opacity: 1;
            }

            .nav-close {
                animation-name: nav-popin;

                opacity: 0;
            }

    .nav-sidebar-container {
        width: auto;
        min-width: 50%;
        min-height: 100vh;

        /*padding-top: 64px;
        padding-bottom: 64px;*/

        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);

        /*border-right: 2px solid ;*/
        background-color: #444444;
        background-color: var(--secondary);

        transition-duration: 1s;
        transition-property: transform;

        z-index: 90;
    }

        .nav-sidebar {
            width: 100%;
            height: 100%;

            /*padding: 8px;*/
            padding-top: 64px;
            padding-bottom: 64px;

            position: absolute;
            top: 0;
            left: 0;

            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;

            box-shadow: 0 0 12px 0 black;

            /*overflow-y: scroll;*/

            z-index: 100;
        }

            .nav-current {
                background-color: #1A7F7F !important;
                background-color: var(--accent) !important;
            }

            .nav-sidebar a {
                width: 100%;
                height: auto;

                /*padding-top: 16px;
                padding-bottom: 16px;*/
                padding: 16px;

                color: #FFF;
                color: var(--primary);

                font-weight: bold;
                text-align: center;
                text-decoration: none;

                /*background-color: #666666;
                background-color: var(--tertiary);*/

                transition-duration: 0.5s;
            }
                /*.nav-sidebar a:first-child {
                    border-top: 4px solid #1A7F7F;
                    border-top: 4px solid var(--accent);
                }
                .nav-sidebar a:last-child {
                    border-bottom: 4px solid #1A7F7F;
                    border-bottom: 4px solid var(--accent);
                }*/
                .nav-sidebar a:hover {
                    background-color: #1A7F7F;
                    background-color: var(--accent);
                }

                .nav-sidebar a + a {
                    border-top: 2px solid #FFF;
                    border-top: 2px solid var(--primary);
                }

        .nav-sidebar-progress {
            width: 4px;
            height: 100vh;

            position: absolute;
            top: 0;
            right: 0;
            transform: translateX(100%);

            /*background-color: ;*/
            background-color: transparent;

            z-index: 110;
        }

            .nav-sidebar-progress-fill {
                width: 100%;
                height: 0;

                background-color: #1A7F7F;
                background-color: var(--accent);

                z-index: 120;
            }

.content-container {
    width: 100%;
    height: auto;

    position: relative;
}

    .content {
        width: 100%;
        height: auto;

        padding: 16px;
        /*padding-left: 64px;*/
        margin: auto;
    }

footer {
    width: 100%;
    min-height: 5vh;

    padding: 16px;
    margin: auto;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: flex-start;

    text-align: right;

    /*border-top: 1px solid ;*/

    box-shadow: 0 0 8px 0 black;

    background-color: #000000;
    background-color: var(--footer);
}

    /*footer img {
        max-height: 5vh;

        object-fit: contain;
    }*/

.background {
    width: 100vw;
    height: 100vh;

    position: fixed;
    top: 0;
    left: 0;

    z-index: -1; 
}

    .background svg {
        min-width: 100%;
        min-height: 100%;

        object-fit: cover;

        z-index: -100;
    }

    .background .background-overlay {
        width: 100%;
        height: 100%;

        position: absolute;
        top: 0;
        left: 0;

        /*z-index: -99;*/

        background-color: #000000;
        opacity: 0.75;
    }

@media screen and (min-width: 800px) {
    .content {
        width: 90%;
    }
}

@media screen and (max-width: 800px) {

}