#nav {
    display:none;
    width: 60em;  /* 1000 */
    position: relative;
	clear: both;
	width: 100%;
    font-size:1em;
    z-index:1000;
    position:fixed;

}

#nav > a {
    display: none;
	font-weight:100;
}

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

}
#nav li a {
    color: #CCCCCC;
    display: block;
    text-decoration:none;
}
#nav li a:active {
    background-color: #2ec7d6 !important;
}

#nav span:after {
    width: 0;
    height: 0;
    border: 0.313em solid transparent; /* 5 */
    border-bottom: none;
    border-top-color: #cccccc;
    content: '';
    vertical-align: middle;
    display: inline-block;
    position: relative;
    right: -0.313em;  /* 5 */
}
    /* first level */
    #nav > ul {
        top:0%;
        height: 2.5em; /* 60 */
        background-color:#333232;
        list-style-type:none;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);


    }
        #nav > ul > li {
            width: 12%;
            height: 100%;
            text-align: center;
			float: left;
        }
        #nav > ul > li > a {
            height: 100%;
            font-size: 1.5em;
            line-height: 2.5em;
            text-align: center;
        }

        #nav > ul > li:not( :last-child ) > a {
            border-right: 1px solid #444444;
        }
        #nav > ul > li:hover > a,
        #nav > ul:not( :hover ) > li.active > a {
            background-color: #555555;
        }




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



@media only screen and (max-width: 767px) {
    #nav {
        display:block;
        /*position: absolute;
        top: auto;
        left: auto;*/
    }
    #nav > a {
        width: 3.125em; /* 50 */
        height: 3em; /* 50 */
        text-align: left;
        text-indent: -9999px;
        background-color: #888888;
        position: relative;
    }

    #nav > a:before,
    #nav > a:after {
        position: absolute;
        border: 2px solid #CCCCCC;
        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;
            }

        #nav:target > ul {
            display: block;
            }

        #nav > ul > li  {
            /*height:2em*/
            width: 100%;
            float: none;
            }

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

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

}
