* {
	font-size: 100%;
	font-family: inherit;
	font-weight: inherit;
	font-style: inherit;
	line-height: inherit;
	vertical-align: baseline;
	border: 0;
	padding: 0;
	margin: 0;
}


#nav
{
	display: block;
	width: 100%;
	font-size: 60%;
	font-weight: 400;
	position: fixed;
	top: 0;
	left: 0px;
	z-index: 10;
	padding: 20px 80px;
}

#nav > a
{
	display: none;
}

#nav ul {
	padding-left: 0px;
	margin: 0 0 0 0;
}
#nav ul, ol {
	list-style: none;
}
#nav ul li {
	padding-left: 0px;
	width: 150px;
	text-align: center;
}

#nav li
{
	position: relative;
}
#nav li a
{
	color: #fff;
	display: block;
}
#nav li a:active
{
	background-color: #581d1d !important;
}

#nav span:after
{
	width: 0;
	height: 0;
	content: '';
	vertical-align: middle;
	display: inline-block;
	position: relative;
	right: -0.313em; /* 5 */
}

/* first level */

#nav > ul
{
	height: 60px;
	
	-webkit-box-shadow: 0px 3px 10px 2px rgba(0,0,0,0.5);
	-moz-box-shadow:	0px 3px 10px 2px rgba(0,0,0,0.5);
	box-shadow: 		0px 3px 10px 2px rgba(0,0,0,0.5);
}

#nav ul li .img-container {
	height: 100%;
}

#nav ul li .img-container img {
	width: 100%;
	max-height: 50px;
	max-width: 50px;
	padding: 5px;
	vertical-align: middle;
}

#nav > ul > li
{
	width: 13.57%;
	height: 100%;
	float: left;
	border: 0;
	background: #c33437;
	background: -moz-radial-gradient(center, ellipse cover, #c33437 0%, #7a2d2e 100%);
	background: -webkit-radial-gradient(center, ellipse cover, #c33437 0%,#7a2d2e 100%);
	background: radial-gradient(ellipse at center, #c33437 0%,#7a2d2e 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c33437', endColorstr='#7a2d2e',GradientType=1 );
}
#nav > ul > li > a
{
	height: 100%;
	font-size: 1.5em; /* 24 */
	line-height: 60px;
	text-align: center;
	outline: 0;
	border: 0;
}
#nav > ul > li:not( :last-child ) > a
{
	/*border-right: 1px solid #fff;*/
}

#nav > ul > li:not( :last-child ) > a:after {
	content : "";
	position: absolute;
	right: 0;
	z-index: 100;
	top: 25%;
	width: 1px;
	height: 50%;
	background: #fff;
}

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


/* second level */

#nav li ul
{
	background-color: #e6e7e9;
	display: none;
	position: absolute;
	top: 100%;
	
	-webkit-box-shadow: 0px 3px 10px 2px rgba(0,0,0,0.3);
	-moz-box-shadow:	0px 3px 10px 2px rgba(0,0,0,0.3);
	box-shadow: 		0px 3px 10px 2px rgba(0,0,0,0.3);
}
#nav li ul li:not( :last-child )
{
	/*border-right: 1px solid #727376;*/
}

#nav li ul li:not( :last-child ):after {
	content : "";
	position: absolute;
	right: 0;
	z-index: 100;
	top: 20%;
	width: 1px;
	height: 60%;
	background: #727376;
}

#nav li:hover ul
{
	display: inline-flex;
	/*left: 0;
	right: 0;*/
}
#nav li:not( :first-child ):hover ul
{
	left: 0px;
}
#nav li ul a
{
	font-size: 1.25em; /* 20 */
	padding: 0.75em; /* 15 (20) */
	color: #727376;
	
	outline: 0;
	border: 0;
}
#nav li ul li a:hover,
#nav li ul:not( :hover ) li.active a
{
	background-color: #cccccc;
}

#nav li ul a .img-container {
	height: 50px;
}

#nav li ul a .img-container img {
	height: 100%;
	padding: 5px;
}

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

@media only screen and ( max-width: 1014px ) {
	#nav
	{
		padding: 0px;
		font-size: 50%;
	}
	
	#nav ul li {
		
	}
	#nav ul li ul li {
		width: 100px;
	}
	
	#nav li ul a .img-container {
		height: 40px;
	}
}

@media only screen and ( max-width: 700px ) {
	html
	{
		/*font-size: 75%;*/
	}
	#nav > ul > li:not( :last-child ) > a:after {
		width: 0px;
	}
	
	#nav-logo {
		display: none;
	}

	#nav
	{
		position: fixed;
		top: 10px;
		left: 10px;
	}
		#nav > a
		{
			width: 30px;
			height: 30px;
			border-radius: 5px;
			text-align: left;
			
			background-color: #581d1d;
			position: relative;
			
			outline: 0;
			border: 0;
		}
			#nav > a:before,
			#nav > a:after
			{
				position: absolute;
				top: 35%;
				left: 25%;
				right: 25%;
				content: '';
			}
			#nav > a:after
			{
				top: 60%;
			}
			
			#nav > a img {
				width: 100%;
				padding: 7px;
			}

		#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: 20px;
	}
		#nav:target > ul
		{
			display: block;
		}
		#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: none;
				}


		/* second level */

		#nav li ul
		{
			position: inherit;
			padding: 0px;
			width: 100%;
			overflow-x: auto;
			
			display: inline-flex;
			
			-webkit-overflow-scrolling: touch;
		}
}
