/*
 Main Navigation
 -------------------------------------------------*/
nav {
    padding: 2em 1em 0 1em;
    background: white;
    position: fixed;
    width: 240px;
    height: 100vh;
}

nav .navbar-toggle {
    display: none;
}

nav ul, nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul {
    display: block;
    margin-left: 1em;
}

nav li {
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
}

nav li li {
    font-size: 12px;
    line-height: 18px;
}

nav li.nav-divider {
    padding: 1em;
}

nav li form {
    padding: 0;
}

nav .navbar-brand,
nav li a,
nav li button[type=submit] {
    background-color: transparent;
    color: #414660;
    display: inline-block;
    font-weight: inherit;
    padding: .5em 1em;
}

nav li.nav-divider.decreased-size ~ li a {
    color: rgba(65, 70, 96, 0.75);
    font-size: .8725rem;
    padding: .25em 1em;
}

nav .navbar-brand {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

nav .navbar-brand:hover {
    text-decoration: none;
}

nav li a {
    position: relative;
    margin: .25em 0;
}

nav li a[href]:hover {
    text-decoration: none;
}

nav li:not(.active) a:hover {
    color: #0091ff;
}

nav li.active > a[href] {
    color: #0091ff;
    /*cursor: default;*/
    font-weight: bold;
}

nav li:not(.active) li:not(.active) {
    display: none;
}

nav .navbar-nav > li.active > a:before {
    content: "";
    display: block;
    background: #f0f5fa;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px .125em rgba(0, 0, 0, .2);
    position: absolute;
    left: -2em; top: 0;
    right: 0;
    min-width: 200px;
    bottom: 0;
    z-index: -1;
}

/**
 Mobile nav
 */

@media screen and (max-width: 720px) {
    nav {
        padding: 0;
        background: transparent;
        position: absolute;
        left: 1em;
        top: .75em;
        width: 64px;
        height: 64px;
        z-index: 2;
        overflow: hidden;
    }

    nav:hover {
        box-shadow: 0 1px 1em rgba(0, 0, 0, .1);
        width: auto;
        height: auto;
    }

    nav .container {
        border-radius: 6px;
        box-shadow: 0 1px 1em rgba(0, 0, 0, .1);
        padding: 1em;
        transition: background-color .2s;
    }

    nav:hover .container {
        background: linear-gradient(white, #fafafa);
    }

    nav .navbar-header {
        align-items: center;
        justify-content: flex-start;
        display: flex;
        margin: -.25em 0 0 -.25em;
    }

    nav .navbar-brand {
        display: none;
        line-height: 1;
        padding-left: 0;
        padding-right: .5rem;
        margin-top: -1rem;
        white-space: nowrap;
    }

    nav:hover .navbar-brand {
        display: inline-block;
    }

    nav .navbar-toggle {
        background: transparent;
        color: black;
        display: block;
        line-height: 1;
        min-width: 4rem;
        min-height: 4rem;
        padding: 1rem;
        margin-top: -1rem;
        margin-left: -1rem;
    }

    nav .navbar-toggle:before {
        content: "menu";
        display: inline-block;
        font-family: "Material Icons", sans-serif;
        font-size: 24px;
        font-weight: normal;
    }

    nav .navbar-brand {
        font-size: 24px;
    }

    .wrap nav + .container {
        margin-left: 0;
        padding: 1em 1em 2em 1em;
    }
}