#nav
{
    position: relative;
    float: right;
    width: 760px;
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;

    top: 0;
    right: 0;

}

#nav > a
{
    display: none;
}

#nav li
{
    position: relative;
    list-style: none;


}
#nav li a
{
    color: #584a45;
    display: block;
    text-decoration: none;
}
#nav li a:active
{
    /* background-color: #c00 !important; */
}

#nav span:after
{
    width: 0;
    height: 0;
    border: 0.313em solid transparent; /* 5 */
    border-bottom: none;
    border-top-color: #9a9a9a;
    content: '';
    vertical-align: middle;
    display: inline-block;
    position: relative;
    right: -0.313em; /* 5 */
}

/* first level */

#nav > ul
{
    height: 80px; 

    padding: 0;
    margin: 0;
}
#nav > ul > li
{
    width: auto;
    height: 100%;
    float: left;

}
#nav > ul > li > a
{
    height: 100%;
    font-size: 14px;
    line-height: 80px;
    text-align: center;
    padding: 0 25px 0 15px;

}
#nav > ul > li:not( :last-child ) > a
{
    border-right: 0px solid #fff;
}
#nav > ul > li:hover > a,
#nav > ul:not( :hover ) > li.active > a
{
    /* background-color: #cc470d; */
    /* color: #000; */
    text-decoration: underline;
}


/* second level */

#nav li ul
{
    background-color: #00155e;
    display: none;
    position: absolute;
    top: 100%;
    padding: 0;
    width: 200px;

}

#nav li:hover ul
{
    display: block;
    left: 0;
    right: 0;
}

#nav li:not( :first-child ):hover ul
{
    left: -1px;
}

#nav li ul a{
    font-size: 11px;
    border-top: 1px solid #1a2d6e;
    padding: 10px 15px; /* 15 (20) */
    color: #fff;

}

#nav li ul li a:hover,
#nav li ul:not( :hover ) li.active a
{
    background-color: #1a2d6e; 
}













@media only screen and ( max-width: 890px )
{


    #nav
    {
        position: relative;
        top: auto;
        right: 20px;

        width: 100%;
        position: static;
        margin: 0;
        top: 0px;

    }
    #nav > a
    {
        width: 80px; /* 50 */
        height:  80px; /* 50 */
        text-align: left;


        position: absolute;
        right: 0px;

    }
    /*
            #nav > a:before,
            #nav > a:after
            {
                    position: absolute;
                    border: 2px solid #fff;
                    top: 35%;
                    left: 25%;
                    right: 25%;
                    content: '';
            }
            #nav > a:after
            {
                    top: 60%;
            }*/

    #nav:not( :target ) > a:first-of-type,
    #nav:target > a:last-of-type{
        display: block;
    }


    /* first level */

    #nav > ul
    {
        height: auto;
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 80px;

    }
    #nav:target > ul
    {
        display: block;
    }
    #nav > ul > li
    {
        width: 100%;
        float: none;
        background-color: #fff;

    }
    #nav > ul > li > a
    {
        height: auto;
        text-align: left;
        line-height: 40px;
        padding: 0 0.833em; /* 20 (24) */
        font-size: 16px;


    }
    #nav > ul > li:not( :last-child ) > a
    {
        border-right: none;
        border-bottom: 1px solid #bdbdbd;
    }


    /* second level */

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

    }
    #nav li ul li a{font-size: 14px;}
}
