* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /*
    max-height: calc(100vh - 44px);
    height: calc(100vh - 44px);
    height0: calc(100vh - 36px);
    height: calc(100vh - 4px);
    height: 100%;
    position: relative;
    height: 100%;
    */
    height: calc(100vh - 4px);
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: calc(100vh - 4px);
    font-family0: "Montserrat";
    background-image0: url("https://source.unsplash.com/1200x900/?bright,wallpaper,rainbow");
    background-size: cover;
    overflow0: hidden;
    overflow: auto;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width0: thin;
    scrollbar-width: none; /* Firefox */
    &::after {
        content0: "";
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.35);
    }

    z-index: 1;
}
/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

@mixin flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    //color: rgba(255, 255, 255, 0.3);
    color: rgba(5, 127, 156, 0.5);
    color1: #024A84;
    font-size: 6rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 3;
}

/*  Menu */
nav {
    --transition-time: 500ms;
    position0: relative;
    position: absolute;
    top: 0;
    width: 0px;
    max-width: calc(100vw - 1px);
    max-width1: 100vw;
    height0: 100%;
    display: flex;
    align-items: center;
    background0: rgba(0, 0, 0, 0.45);
    background: rgba(232, 174, 30, 0.8);
    backdrop-filter1: blur(20px);
    transform: translateX(-100%);
    transition: all 400ms cubic-bezier(0.8, 0, 0.33, 1);
    z-index: 4;
    border-radius: 0px 8px 8px 0px;
    padding0: 12px 0px 12px 0px;
    padding: 36px 0px 36px 0px;

    a {
        /* 
        font-size: 1.2rem;
		*/
        font-size: 1.0rem;
        text-transform: uppercase;
        font-weight: 900;
        letter-spacing: 3px;
        text-decoration: none;
        user-select: none;
        color: #fff;
    }

    .nav-links {
        --link-height: 44px;
        /* 
		--link-height: 60px;
        --link-height: 52px;
		*/
        position: relative;
        width: 100%;
        margin-left0: 8px;
        padding-left0: 8px;

        li {
            @include
            flex-center();
            position: relative;
            width: 100%;
            height: var(--link-height);
            list-style: none;
            opacity: 0;
            transform: translateX(-50%);
            transition: all var(--transition-time) cubic-bezier(0.8, 0, 0.33, 0.9);
            transition-delay: calc(30ms + var(--delay));
            cursor: pointer;
            z-index: 8;
            padding-left: 8px;
            padding-top: 8px;

            &:hover {
                color: rgba(255, 255, 255, 0.85);
            }

            a {
                pointer-events: none;
            }

            ol {
                display: none;
            }
        }

        .hover-el {
            position: absolute;
            width: 100%;
            height: var(--link-height);
            top: var(--y);
            left: var(--x);
            opacity: 0;
            background: radial-gradient( circle at var(--mousex) var(--mousey), rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100% );
            transition: all 200ms cubic-bezier(0.215, 0.61, 0.355, 1);
            pointer-events: none;
            z-index: 5;
        }
    }

    .sub-menu {
        --link-height: 42px;
        /* 
		--link-height: 60px;
		*/
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        transform: translateY(-50%);

        ol {
            list-style: none;

            li {
                @include
                flex-center();
                height: var(--link-height);
                transition: all var(--transition-time) ease;
                transition-delay: calc(30ms + var(--delay));
                cursor: pointer;

                &:hover {
                    background: rgba(0, 0, 0, 0.25);
                }

                &.off-menu {
                    opacity: 0;
                    transform: translateY(30%);
                }

                &.on-menu {
                    opacity: 1;
                    transform: translateY(0%);
                }

                a {
                    font-size: 1.2rem;
                    font-weight: normal;
                }
            }
        }
    }
    /* Buttons */
    .sub-menu-btn {
        --icon-width: 40px;
        position: absolute;
        top: 6%;
        left: 10%;
        width: var(--icon-width);
        height: var(--icon-width);
        background: rgba(0, 0, 0, 0.25);
        border-radius: 5px;
        opacity: 0;
        transform: translateX(-100%);
        transition: all var(--transition-time) cubic-bezier(0.8, 0, 0.33, 1.25);
        cursor: pointer;
        z-index: 8;
        pointer-events: none;

        .line {
            width: calc(var(--icon-width) - 28px);
            height: 2px;
            background: #fff;
            display: flex;
            flex-direction: column;
            margin: 12px 10px;

            &__1 {
                transform-origin: left;
                transform: rotate(-35deg) translate(-1px, 8px);
            }

            &__2 {
                transform-origin: left;
                transform: rotate(35deg) translate(-1px, -8px);
            }
        }
    }

    .menu-btn {
        @include
        flex-center();
        --icon-width1: 25px;
        --icon-width: 20px;
        position: absolute;
        top0: 3%;
        top: 2px;
        right1: 72px;
        right0: -40px;
        right: -52px;
        width: calc(var(--icon-width) + 25px);
        height: calc(var(--icon-width) + 25px);
        flex-direction: column;
        transition: all calc(100ms + var(--transition-time)) cubic-bezier(0.8, 0, 0.33, 1.25);
        cursor: pointer;
        z-index: 10;

        &.close {
            .line {
                &__1 {
                    transform: rotate(45deg) translate(2px, -3px);
                }

                &__2 {
                    transform: rotate(-45deg);
                }

                &__3 {
                    transform: rotate(45deg) translate(-2px, 3px);
                }
            }
        }

        .line {
            width: var(--icon-width);
            background: #fff;
            height: 2px;
            margin: 3px 0;
            transition: all calc(var(--transition-time) + 100ms) cubic-bezier(0.9, 0, 0.33, 1);

            &__1 {
                width: var(--icon-width);
                transform-origin: left;
                background-color0: #024A84;
                background-color: black;
            }

            &__2 {
                width: var(--icon-width);
                transform-origin: center;
                background-color0: #024A84;
                background-color: black;
            }

            &__3 {
                width: var(--icon-width);
                transform-origin: right;
                background-color0: #024A84;
                background-color: black;
            }
        }
    }

    &.nav-open {
        transform: translateX(0%);
        width: 400px;

        .menu-btn {
            right0: 2%;
            right: 0px;
            margin-top: 2px;
        }

        .nav-links {
            li {
                transform: translateX(0);
                opacity: 1;
            }
        }
    }

    &.sub-menu-open {
        .sub-menu-btn {
            opacity: 1;
            transform: translateX(0);
            pointer-events: all;
        }

        .nav-links {
            li {
                pointer-events: none;
                opacity: 0;
                transform: translateY(-10%);
            }

            .hover-el {
                opacity: 0;
            }
        }
    }
}