/* Navigation */

#nav {
    display: block;
    width: 681px;
    height: 63px;
    float: right;
    margin-right: -1.77em;
    margin-top: 1.6em;
}
#nav > a {
    display: none;
}
#nav li {
    position: relative;
}
#nav li a {
    padding: 20px 25px 20px 25px;
    color: #FFF;
    font-size: 1.1em !important;
    text-decoration: none;
    font-weight: bold;
    display:block;
}
#nav li a:hover {
    background-image:url(images/hover.png);
    background-repeat: repeat-x;
}
#nav span:after {
    width: 0;
    height: 0;
    border: 0.313em solid transparent; /* 5 */
    border-bottom: none;
    border-top-color: #F81302;
    content: '';
    vertical-align: middle;
    display: inline-block;
    position: relative;
    right: -0.313em; /* 5 */
}

#nav.showNav > ul {
    display: inline-block;
    margin-top: 25px;
    height: calc(100vh - 25px);
    background: #FFF;
    overflow-y: scroll;
    max-width: 100vw;
}
/* first level */

#nav > ul > li {
    float: left;
    z-index:1000;
    overflow:visible;
}
#nav > ul > li > a {
    height: 100%;
    font-size: 1.1em; /* 24 */
}
 #nav > ul > li:hover > a,  #nav > ul:not( :hover ) > li.active > a {
 background-image:url(images/hover.png);
 background-repeat: repeat-x;
}
/* second level */

#nav li ul {
    display: none;
    position: absolute; 
    top: 100%;
    width:170px;
}
#nav li:hover ul {
    display: block;
    left: 0;
    right: 0;
}
 #nav li:not( :first-child ):hover ul {
 left: -1px;
}
#nav li ul a {
        border-right: medium none;
    border-bottom: 1px dashed #e20b11;
    font-family: Helvetica, Arial, sans-serif;
    line-height: 0;
    font-size: 180% !important;
    color: #898A78;
    text-decoration: none;
    font-family: 'Roboto Condensed', sans-serif !important;
    font-weight: normal;
    text-align: left;
    padding-left: 40px;
}
 #nav li ul li a:hover,  #nav li ul:not( :hover ) li.active a {
 background-image:url(images/drop-nav-bg.png);
 background-repeat: repeat-x;
}
 
 @media only screen and ( max-width: 800px ) {
 html {
 font-size: 75%; /* 12 */
}
#nav {
    width: 100%;
    position: fixed;
    margin: 0px 0px 0px 0px;
    top: 0px;
    right: 0;
    height: 100px;
    background-size: contain;
}
      
#nav > a {
    width: 40px;
    height: 40px;
    text-align: left;
    text-indent: -9999px;
    background: url("../images/21_burger_icn.png") repeat scroll center center;
    float: right;
    margin-top: 15px;
    margin-right: 23px;
    background-size: cover;
}
 #nav > a:before,  #nav > a:after {
 margin-right:40px;
 margin-top:10px;
 content: '';
}
 #nav > a:after {
 margin-top:10px;
}
 #nav:not( :target ) > a:first-of-type,  #nav:target > a:last-of-type {
 display:block;
 
 
}
 #nav > ul > li:hover > a,  #nav > ul:not( :hover ) > li.active > a {
 background-image:none;
}

/* first level */

#nav > ul {
    height: auto;
    display: none;
    left: 0;
    right: 0;
    height:auto;
    min-height: 3.75em;
    width: 100%;
    float:right;
    margin-top: 75px;

}
 #nav:target > ul {
 display: block;
}
 #nav > ul > li {
     background-color: rgba(255,255,255, 0.9);
     width: 100%;
     float: right;
}

 #nav > ul > li > a {
 height: auto;
 text-align: left;
 padding: 0 0.833em; /* 20 (24) */
 font-size: 1.1em; /* 24 */
 line-height: 2.5em; /* 60 (24) */
}
 #nav > ul > li > a:hover {
 background-image:url(images/drop-nav-bg.png);
 background-repeat: repeat-x;
}
 #nav > ul > li > a {
 border-right: none;
}
#nav > ul > li > a {
    border-right: medium none;
    border-bottom: 1px dashed #e20b11;
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-size: 200% !important;
    color: #898A78;
    text-decoration: none;
    font-family: 'Roboto Condensed', sans-serif !important;
    font-weight: normal;
}

/* second level */

#nav li ul {
 padding-top: 0;
 width: 100%;
 position: static; 
}
}