/*! responsive-nav.js 1.0.32 by @viljamis */

.nav-collapse ul
{
    display: block;

    width: 100%;
    margin: 0;
    padding: 0;

    list-style: none;
}

.nav-collapse li
{
    display: block;

    width: 100%;
}

.js .nav-collapse
{
    /*  max-height: 0; */
    position: absolute;

    display: block;
    overflow: hidden;
    clip: rect(0 0 0 0);
    zoom: 1;
}

.nav-collapse.opened
{
    max-height: 9999px;
}

.disable-pointer-events
{
    pointer-events: none !important;
}

.nav-toggle
{
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;

    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;
         -o-user-select: none;
}


/* NAVIGATION */
.logo
{
    margin: -3px 0 0; /* this is to accomodate for the 3px blue border at the top */

    text-align: left;
}
.logo-screen
{
    display: inline;

    height: 5.5em;
    margin: 0;

    vertical-align: bottom;
}
#menuwrap
{
    line-height: 1;

    position: relative;
    z-index: 9999;

    display: block;

    height: 100%;
    margin: 0;
}
header .border
{
    width: 100%;
    margin: 0;

    border-width: 3px 0 0;
    border-style: solid;
    border-color: #0067c6;
    background: rgba(255, 255, 255, .85);
}
.stuck
{
    position: fixed;
}
#nav
{
    font-family: inherit;

    position: relative;

    display: inline-block;
    overflow: visible !important;

    max-width: 70%;
    margin: 0 1em;

    transition-timing-function: cubic-bezier(.85, .0, 1.0, 1.0)!important;
    -webkit-transition-timing-function: cubic-bezier(.85, .0, 1.0, 1.0)!important;
    vertical-align: middle;
}
#nav.home-links
{
    border-bottom-width: 0;
}
#nav ul
{
    display: inline-block;

    width: 100%;
    margin: 0;

    text-align: left;
}
.wrapper #nav li
{
    display: inline-block;

    width: auto;
    margin: 3px;

    text-align: left;
}
.wrapper #nav li li
{
    margin: 3px 0;
}
#nav ul.sub-menu
{
    position: absolute;
    z-index: 200;
    left: -999em;

    width: 100%;
    margin: 0;

    text-align: center;

    background: #e2e2e2;
}
#nav ul.submenu li a
{
    color: #737373;
}
#nav ul.submenu li a:hover
{
    color: #222;
}
#nav li:hover ul.sub-menu
{
    left: 0;

    box-shadow: 0 3px 0 0 #9b9b9b;
    box-shadow: 0 3px 0 0 rgba(0, 0, 0, .3);
}
#nav li:before {
    display:block;
}
.wrapper #nav li.current-menu-item a,
.wrapper #nav li.current-page-ancestor a,
#subpages li.current-menu-item a,
#subpages li.current_page_item a
{
    transition: border 300ms;

    border: 3px solid #0067c6;
}
#nav li a
{
    display: block;

    padding: .5em .5em;

    transition: border 300ms;

    color: #737373;
    border: 3px solid transparent;
}
#nav li.current-menu-item a,
#nav li.current-page-ancestor a
{
    transition: color 300ms;

    color: #222;
}

.wrapper #nav li.current-menu-item li a,
.wrapper #nav li.current-page-ancestor li a,
#subpages li.current-menu-item li a,
#subpages li.current_page_item li a,
.wrapper #nav li li a,
#subpages li li a
{
    transition: border 300ms;

    color: #737373;
    border: 3px solid transparent;
}

#nav li.current-menu-item li:hover a,
#nav li.current-page-ancestor li:hover a,
.wrapper #nav li.current-menu-item li:hover a,
.wrapper #nav li.current-page-ancestor li:hover a,
#subpages li.current-menu-item li:hover a,
#subpages li.current_page_item li:hover a,
.wrapper #nav li li:hover a,
#subpages li li:hover a
{
    transition: border 300ms;

    color: #222;
    border: 3px solid #0067c6;
}
#nav li:hover a
{
    transition: color 300ms;

    color: #222;
}
#nav li:hover > a,
#subpages .links li:hover > a
{
    transition: border 300ms;

    border: 3px solid #0067c6;
}
.logo a
{
    max-width: 80%;

    border: none;
}
#icon-nav
{
    display: inline-block;

    vertical-align: middle;
}
.menu
{
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0;

    list-style: none;
}
.menu .menu-right
{
    position: absolute;
    z-index: 99999;
    top: 24px;
    top: 1.5rem;
    right: 16px;
    right: 1rem;

    text-align: center;
}
.menu-right .icon
{
    display: inline-block;

    margin: auto;

    text-align: center;
}
#toggle
{
    display: none;

    padding-top: 18px;
    padding-bottom: 30px;

    transition-timing-function: cubic-bezier(.85, .0, 1.0, 1.0);
    -webkit-transition-timing-function: cubic-bezier(.85, .0, 1.0, 1.0);
    transition-duration: 500ms;
    transition-property: padding, -webkit-transform;
    transition-property: padding, transform;
    -webkit-transform: rotate3d(1, 0, 0, 0deg);
            transform: rotate3d(1, 0, 0, 0deg);
}
#toggle.active
{
    padding-top: 30px;
    padding-bottom: 18px;

    transition-timing-function: cubic-bezier(.85, .0, 1.0, 1.0);
    -webkit-transition-timing-function: cubic-bezier(.85, .0, 1.0, 1.0);
    transition-duration: 500ms;
    transition-property: padding, -webkit-transform;
    transition-property: padding, transform;
    -webkit-transform: rotate3d(1, 0, 0, 180deg);
            transform: rotate3d(1, 0, 0, 180deg);
}

/* LOG IN */
.login
{
    font-size: 9pt;
    line-height: 1;

    position: fixed;
    z-index: 200;
    top: 16px;
    top: 1rem;
    right: 0;

    width: auto;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.login a
{
    font-weight: bold;
    line-height: 1;

    padding: 1em;

    color: #737373;
    border: 3px solid;
    border-right: 0;
}
.login a:hover
{
    color: #0067c6;
}


/* SUBPAGES */

#subpages
{
    width: 100%;
    margin: 0 auto;
    padding: 0;

    list-style: none;

    background: rgba(255, 255, 255, .75);
}
#subpages ul
{
    z-index: 10;

    float: right;

    margin: 0 auto 0 auto;
    padding: 0;

    list-style-type: none;

    text-align: right;
}
#subpages ul.sublinks
{
    position: relative;

    margin-right: 1.5em;
}
.sublinks li ul.children
{
    display: none;
}
.sublinks li:hover ul.children
{
    display: inherit;
}
#subpages .children
{
    position: absolute;
    right: 0;
    left: 0;

    width: 100%;
    max-width: none;

    background: #e2e2e2;
}
#subpages .links
{
    position: relative;
    z-index: 10;

    display: table-cell;

    height: 100%;
    margin: 0;

    vertical-align: middle;
}
#subpages .links.withthumbnail
{
    width: 100%;
    padding: 0;
}
#subpages .links.withthumbnail ul
{
    float: none;

    margin: 0;

    text-align: center;
}
#subpages .title
{
    position: relative;
    z-index: 10;

    display: table-cell;

    height: 100%;

    vertical-align: middle;
    /*font-size:24pt;
  font-weight:400;*/
}
#subpages .title li
{
    line-height: 1;

    margin: 0;

    text-align: left;
}
#subpages .title ul
{
    display: block;
    float: left;

    margin-left: 1.5em;

    text-align: left;
    vertical-align: middle;
}
#subpages .title ul h1
{
    line-height: 1;

    margin: 0;
}
#subpages li
{
    line-height: 1.5;

    display: inline-block;

    height: 100%;
    margin: .5em 3px;
    padding: 0;

    text-align: center;
}
#subpages li a
{
    font-weight: normal;

    padding: .25em .5em;

    color: #737373;
    border: 0;
}
#subpages li a
{
    transition: border 300ms;

    border: 3px solid transparent;
}
#subpages li:hover a
{
    color: #222;
}
#subpages li.current-menu-item a,
#subpages li.current_page_item a
{
    font-weight: bold;

    color: #222;
}
#subpages .table
{
    display: table;

    width: 100%;
    margin: auto;
    padding: 1rem 0;
}
.limit
{
    float: none;

    margin: auto;
}
/*
*TABLE OF CONTENTS STYLES THIS IS FOR TABLE OF CONTENTS PLUS PLUGIN.
*/
#toc_container.ducttape {
    position: fixed;
    left: 5%;
    top:13em;
    max-height:80%;
    overflow:scroll;
    width: 25%;
    transition:300ms ease-in-out top;
    font-size:0.9em;
}
#toc_container.tighter {
    top:3em;
    transition:300ms ease-in-out top;
}
#toc_container ul {
    margin:0;
    padding:0;
}
.toc_list li {
    list-style-type: none;
}

.toc_list a {
    border: none;
    background: rgba(220, 220, 220, 0.9);
    padding: 0.5em 1.5em;
    padding-right:0;
    width: 100%;
    display: block;
    transition:300ms ease-in-out color;
}

.toc_list li li a {
    padding-left: 2.5em;
    background: rgba(230, 230, 230, 0.9);
    transition:300ms ease-in-out color;
}

.toc_list li li li a {
    padding-left: 3.5em;
}

.toc_list li a:hover {
    background: rgba(240, 240, 240, 0.9);
    transition:300ms ease-in-out color;
}

/* MENUS IN MOBILE AND TABLET */
@media screen and (max-width: 53em)
{
    #subpages .links
    {
        display: block;
        float: none;

        width: auto;
        padding: 0 1em;

        text-align: center;
    }
    #subpages .title
    {
        display: block;
        float: none;

        width: auto;
        padding: 0 3em;

        text-align: center;
    }
    #subpages ul,
    #subpages .title ul
    {
        width: 100%;
        margin: 0;

        text-align: center;
    }
    #subpages ul.sublinks
    {
        margin: 0;
    }
    #subpages .title li
    {
        text-align: center;
    }
    #toggle
    {
        /*Navigation Icon*/
        display: inline-block;
    }
    #toggle a
    {
        border: none;
    }
    .login
    {
        position: relative;
        top: 0;

        display: inline-block;

        width: 100%;
        height: auto;
        padding-top: 8px;
        padding-top: .5rem;
        padding-bottom: 16px;
        padding-bottom: 1rem;

        text-align: center;

        border-radius: 0;
    }
    .login a
    {
        font-size: 1em;
        font-size: 1rem;

        display: inline-block;

        width: 83%;
        height: auto;
        padding: .5em;

        border: 3px solid;
        border-right: 3px solid;
    }
    .menu-right
    {
        right: 10px;
    }
    .wrapper #nav ul li a
    {
        display: block;

        width: auto;
        padding: .5em;
    }
    .wrapper #nav li.current-menu-item a,
    .wrapper #nav li.current-page-ancestor a,
    #subpages li.current-menu-item a,
    #subpages li.current_page_item a
    {
        border: 3px solid #0067c6;
    }
    .menu
    {
        display: inline-block;

        width: 100%;
        margin: auto;
    }
    .menu .avatar
    {
        width: 54px;
        height: 54px;
        margin: 20px 0;
    }
    #nav
    {
        display: block;
        overflow: hidden !important;

        width: 95%;
        margin: auto;
    }
    #nav li:hover ul.sub-menu
    {
        display: none;
        visibility: hidden;
    }
    #nav li:hover a
    {
        transition: color 300ms;

        color: #6cabe7 !important;
    }
    #icon-nav
    {
        border-radius: 0;
    }
    .js .nav-collapse
    {
        position: relative;

        max-height: 0;
    }
    .js .nav-collapse.closed
    {
        max-height: none;
    }
    .nav-toggle
    {
        display: none;
    }
}
