/* Menu */

body > nav > ul:nth-child(2) li p.normal,
body > nav > ul:nth-child(3) li p.normal {
    height: 6rem;
    line-height: 6rem;
}

body > nav > ul.list li {
    padding-left: 0.5rem;
}

body > nav.color.dark > ul a {
    color: white;
}

body > nav > ul.list li > p:nth-last-of-type(2) + p {
    color: gray;
}

@media screen and (min-width: 1025px) {
    body > nav > ul.list li:after {
        content: "";
        display: block;
        position: absolute;
        right: -1px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        background-color: var(--movim-background);
        opacity: 0.9;
        border-radius: 0.5rem 0 0 0.5rem;
        transition: height .2s linear, width .2s linear;
    }
    body > nav > ul.list li:hover:after {
        height: 2rem;
        width: 0.5rem;
    }

    @keyframes navactive {
        from { height: 2rem; }
        to   { height: 95%; }
    }

    body > nav > ul.list li.active:after {
        animation: navactive .2s;
        width: 0.5rem;
        height: 95%;
    }

    body > nav > ul.list.active li > span.primary > i {
        transition: opacity .2s linear;
    }

    /* Disable the colored background */
    body > nav > ul.list.active li:hover:not(.subheader),
    body:not(.nightmode) > nav.color.dark > ul.list.active li:hover:not(.subheader),
    body > nav > ul.list.active li.active:not(.subheader),
    body:not(.nightmode) > nav.color.dark > ul.list.active li.active:not(.subheader) {
        background-color: transparent;
    }
}

ul.oppose {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

@media screen and (max-height: 500px) {
    ul.oppose {
        bottom: initial;
    }
}

/* Navigation */

ul.navigation {
    display:flex;
    justify-content:center;
}

body > nav > ul.list.active li:not(.active):not(:hover) span.primary > i,
ul.navigation li:not(.active) > span.primary > i {
    opacity: 0.5;
}

ul.navigation li {
    text-align: center;
    flex: 1;
    padding: 0.75rem;
    position: relative;
}

ul.navigation li:hover {
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

ul.navigation li.active > span.primary,
ul.navigation li:hover > span.primary {
    opacity: 1;
}

ul.navigation li > span.primary {
    line-height: 3.5rem;
}

ul.navigation li > p {
    display: block;
    list-style-type: none;
    font-size: 1.5rem;
}
