#nav > a {
    display: none;
}

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

#nav li a {
    font-family: Roboto-Light;
    color: #b1afaf;
    display: block;
}

#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: #efa585;
    content: '';
    vertical-align: middle;
    display: inline-block;
    position: relative;
    right: -0.313em; /* 5 */
}

/* first level */

#nav > ul {
    padding: 0px;
    margin: 0px;
    background-color: #fff;
}

#nav > ul > li {
    width: 100%;
    list-style: none;
}

#nav > ul > li > a {
    padding: 10px;
}

#nav > ul > li:hover > a,
#nav > ul:not( :hover ) > li.active > a {
    background: url('../images/bg-menu.png');
    color: #EFAF37;
    font-weight: bold;
}

/* second level */

#nav li ul {
    background-color: #fff;
    display: none;
    position: absolute;
    top: 100%;
    padding: 0;
    margin: 0;
}

#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: 1.25em; /* 20 */
    border-top: 1px solid #e15a1f;
    padding: 0.75em; /* 15 (20) */
}

@media only screen and ( max-width: 62.5em ) /* 1000 */ {
    #nav {
        width: 100%;
        position: static;
        margin: 0;
    }
}

@media only screen and ( max-width: 768px ) /* 640 */ {
    html {
        font-size: 75%; /* 12 */
    }

    #nav {
        position: relative;
        top: auto;
        left: auto;
    }

    #nav > a {
        width: 100%; /* 50 */
        height: auto; /* 50 */
        text-align: left;
        position: relative;
    }

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

    /* first level */
    #nav > ul {
        height: auto;
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        z-index: 999999;
    }

    #nav:target > ul {
        display: block;
        margin-top: 20px;
        width: 260px;
    }

    #nav > ul > li {
        width: 100%;
        float: none;
    }

    #nav > ul > li > a {
        height: auto;
        text-align: left;
        padding: 10px; /* 20 (24) */
    }

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

    /* second level */
    #nav li ul {
        position: static;
        padding: 1.25em; /* 20 */
        padding-top: 0;

    }

}