
.navig {
	background: #333333;
}


#nav {
	margin: 0 0 0 10px;
	position: relative;
	letter-spacing: 0.04em;
	position: relative;
	z-index: 20;
}

#nav > a {
	display: none;
}

#nav li {
	position: relative;
}

#nav li a {
	display: block;
	color: #FFFFFF;
/*	-webkit-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out; */
}

#nav li a:active {
	background-color: #333333 !important;
}

#nav li a:hover {
	color: #c9c3db;
}

#nav span:after {
	width: 0;
	height: 0;
	border: 5px solid transparent;
	border-bottom: none;
	border-top-color: #FFFFFF;
	content: '';
	vertical-align: middle;
	display: inline-block;
	position: relative;
	right: -5px;
}


/* first level */

#nav > ul {
	border-left: 2px solid #333333;
	border-right: 2px solid #333333;
}

#nav > ul > li {
	float: left;
}

#nav > ul > li > a {
	padding: 5px 10px 5px 10px;
	height: 100%;
	font-size: 18px;
	line-height: 30px;
}


/* second level */

#nav li ul {
	display: none;
	position: absolute;
	top: 100%;
	z-index: 9;
}

#nav li ul a {
	background-color: #4E4E4E;
}

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


#nav li:not( :first-child ):hover ul {
	left: -1px;
	border-top: 2px solid #333333;
}

#nav li ul a {
	font-size: 18px;
	line-height: 30px;
	border-left: 2px solid #333333;
	border-right: 2px solid #333333;
	border-bottom: 2px solid #333333;
	padding: 2px 10px 0 10px;
	white-space: nowrap;
}

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


/* Tablet Landscape (980-1160) (design for 940)
==================================================================*/
@media only screen and (min-width: 980px) and (max-width: 1160px) {

}


/* Tablet Portrait (788-979) (design for 748)
==================================================================*/
@media only screen and (min-width: 788px) and (max-width: 979px) {

}


/* Mobile Portrait (0-479) (design for 300)
==================================================================*/
@media only screen and (max-width: 787px) {

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

	#nav > a {
		width: 3.125em;
		height: 3.125em; /* 50 */
		text-align: left;
		text-indent: -9999px;
		background-color: #333333;
		position: relative;
	}

	#nav > a:before, #nav > a:after {
		position: absolute;
		border: 2px solid #FFFFFF;
		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 {
		background: #4E4E4E;
		margin-left: -10px;
		height: auto;
		display: none;
		position: absolute;
		left: 0;
		right: 0;
	}

	#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;
		border-top: 2px solid #333333;
		border-left: 0px solid #333333;
		border-right: 0px solid #333333;
		border-bottom: 0px solid #333333;
	}

	#nav > ul > li > a {
		border-right: 0px solid #333333 !important;
	}

	#nav > ul > li:last-child > a {
		border-bottom: 2px solid #333333;
	}

	/* second level */

	#nav li ul {
		background: #4E4E4E;
		padding: 1.25em;
		padding-top: 0;
	}

	#nav li ul li:first-child a {
		border-top: 0px solid #333333;
	}

}


/* Mobile Landscape (480-787) (design for 420)
==================================================================*/
@media only screen and (min-width: 480px) and (max-width: 787px) {


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

	#nav > a {
		width: 3.125em; /* 50 */
		height: 3.125em; /* 50 */
		text-align: left;
		text-indent: -9999px;
		background-color: #333333;
		position: relative;
	}

	#nav > a:before, #nav > a:after {
		position: absolute;
		border: 2px solid #FFFFFF;
		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 {
		background: #4E4E4E;
		margin-left: -10px;
		height: auto;
		display: none;
		position: absolute;
		left: 0;
		right: 0;
	}

	#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;
		border-top: 2px solid #333333;
		border-left: 0px solid #333333;
		border-right: 0px solid #333333;
		border-bottom: 0px solid #333333;
	}

	#nav > ul > li > a {
		border-right: 0px solid #333333 !important;
	}

	#nav > ul > li:last-child > a {
		border-bottom: 2px solid #333333;
	}

	/* second level */

	#nav li ul {
		background: #4E4E4E;
		padding: 1.25em;
		padding-top: 0;
	}

	#nav li ul li:first-child a {
		border-top: 0px solid #333333;
	}

}
