#nav
{
	max-width: 1130px; /* 1000 */
	width: 100%;
	font-family: 'impact', sans-serif;
	text-decoration: none;
	position: absolute;
	top: 144px;
	left: 0;
	right: 0;
	margin: auto;
}
#nav > a
{
	display: none;
	margin: 20px 0px;
}
#nav li
{
	position: relative;
}
#nav li a
{
	color: black;
	display: block;
}
#nav li a:active
{
	background-color: #2e2e2e !important;
}
#nav span:after
{
	width: 0;
	height: 0;
	border: 0.313em solid transparent; /* 5 */
	border-bottom: none;
	border-top-color: #2e2e2e;
	content: '';
	vertical-align: middle;
	display: inline-block;
	position: relative;
	right: -0.313em; /* 5 */
}
/* first level */
#nav > ul
{
	z-index: 201;
	list-style: none;
	height: 40px; /* 60 */
	background-color: grey;
}
#nav > ul > li
{
	z-index: 201;
	width: 150px;
	height: 100%;
	float: left;
}
#nav > ul > li > a
{
	text-decoration: none;
	height: 100%;
	font-size: 16px; /* 24 */
	line-height: 40px;
	text-align: center;
	transition: all 0.5s;
}
#nav > ul > li:not( :last-child ) > a
{
	border-right: 1px solid #d5d5d5;
}
#nav > ul > li:hover > a,
#nav > ul:not( :hover ) > li.active > a
{
	background-color: #d5d5d5;
}
/* second level */
#nav li ul
{
	z-index: 201;
	list-style: none;
	text-align: left;
	background-color: #d5d5d5;
	display: none;
	position: absolute;
	top: 100%;
}
#nav li:hover ul
{
	display: block;
	left: 0;
	right: 0;
}
#nav li:not( :first-child ):hover ul
{
	left: -1px;
}
#nav li ul a
{
	z-index: 201;
	text-decoration: none;
	font-size: 16px; /* 20 */
	border-top: 1px solid #2e2e2e;
	padding: 10px; /* 15 (20) */
        transition: all 0.5s;
}
	#nav li ul li a:hover,
	#nav li ul:not( :hover ) li.active a
{
	background-color: grey;
}
@media only screen and ( max-width: 1130px ) /* 1000 */
{
	#nav
	{
		width: 90%;
		position: static;
		margin: 20px auto;
	}
	html
	{
		font-size: 75%; /* 12 */
	}
	#nav
	{
		position: relative;
		top: auto;
		left: auto;
		height: 70px;
	}
	#nav > a
	{
		width: 100%; /* 50 */
		height: 40px; /* 50 */
		text-align: left;
		text-indent: -9999px;
		background-color: grey;
		position: relative;
		top: 15px;
		transition: background-color 0.5s;
	}
	#nav > a:hover {
                background-color: #d5d5d5;
	}
		#nav > a:before,
		#nav > a:after
	{
		position: absolute;
                border-top: 2px solid black;
		top: 30%;
		left: 25%;
		right: 25%;
		content: '';
	}
	#nav > a:after
	{
		top: 50%;
		bottom: 25%;
		border-bottom: 2px solid black;
	}
	#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;
		top: 58px;
		left: 0;
		right: 0;
	}
	#nav:target > ul
	{
		display: block;
		padding-bottom:40px;
	}
	#nav > ul > li
	{
		width: 100%;
		float: none;
	}
	#nav > ul > li > a
	{
		height: auto;
		text-align: left;
		padding: 0 0.833em; /* 20 (24) */
	}
	#nav > ul > li:not( :last-child ) > a
	{
		border-right: none;
		border-bottom: 1px solid #d5d5d5;
	}
	/* second level */
	#nav li ul
	{
		position: static;
		padding-left: 1.25em;
                padding-bottom: 1.25em; /* 20 */
		padding-top: 0em;
		background: #d5d5d5;
	}
}
