.nav-wrap { 
	width: 100%;
	height: auto;
	float: left; 
}

/* Some stylesheet reset */
#nav, #nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#nav #toggleMenu, #nav #hideMenu {
	display: none;
}

/* The main navigation bar */
#nav {
	position: relative;
	display: block;
	height: auto;
	width: 120px; 
	float: left;
	margin-left: 70px;
}

#nav>li {
	display: block;
	position: relative;
}

/* The main navigation links */
#nav>li>a {
	/* Layout */
	display: block;
	padding: 12px 8px;
	margin: 0 0 10px 0;
	border: 1px solid transparent;

	/* Typography */
	font-family: 'Raleway', sans-serif;
	font-size: 11px;
	letter-spacing: 2px;
	font-weight: 600;
	color: #312829;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	background: url(../images/nav-border-bottom.png) no-repeat center bottom; 
	
	/* Transitions */
	-webkit-transition: color .2s ease-in;
	-ms-transition: color .2s ease-in;
	-moz-transition: color .2s ease-in;
	-o-transition: color .2s ease-in;
	transition: color .2s ease-in;
}



/* The hover state of the links */
#nav>li:hover>a {
	color: #736768;
	text-decoration: underline;
}
#nav li .active {
	color: #736768;
}

#nav>li:hover>a strong {
	color: #736768;
}
	

#nav>li.dropdown>a {
	padding-right: 18px;
}

/* The arrow indicating a dropdown menu */
.dropdown>a::after {
	position: absolute;
	display: block;
	content: "";
	height: 0;
	width: 0;
	border: 4px solid transparent;
	border-top-color: inherit;
	right: 26px;
	top: 17px;
}

/*  The submenus */
#nav ul {
	display: block;
	position: absolute;
	top: 37px;
	left: -9999px;
	opacity: 0;
	background: rgba(255, 223, 116, .90);
	cursor: pointer;
	-webkit-transition: opacity .22s ease-in;
	-ms-transition: opacity .22s ease-in;
	-moz-transition: opacity .22s ease-in;
	-o-transition: opacity .22s ease-in;
	transition: opacity .22s ease-in;
	padding-bottom: 20px;
	border: 1px solid #ffff80;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px; /* future proofing */
	-khtml-border-radius: 5px; /* for old Konqueror browsers */
}

#nav ul li {
	display: block;
	position: absolute;
	height: 0px;
	-webkit-transition: height .15s ease-in;
	-ms-transition: height .15s ease-in;
	-moz-transition: height .15s ease-in;
	-o-transition: height .15s ease-in;
	transition: height .15s ease-in;
}

.nav-wrap ul li { z-index: 2000; }

/* The submenu appears when its parent is hovered */
#nav>li:hover>ul {
	left: 0px;
	opacity: 1;
}

#nav li:hover>ul>li {
	position: relative;
	height: 20px;
}

/* The submenu links */
#nav ul li a {
	/* Layout */
	display: block;
	padding: 12px 10px 20px 22px;
	width: 200px;

	/* Typography */
	font-family: 'Source Sans Pro', Arial, sans-serif;
	font-size: 13px;
	text-decoration: none;
	color: #00b3e6;
	font-weight: 600;
	text-transform: uppercase;
	text-align: left;
	
	/* Background & effects */
	-webkit-transition: color .2s ease-in, border-left-color .2s ease-in;
	-ms-transition: color .2s ease-in, border-left-color .2s ease-in;
	-moz-transition: color .2s ease-in, border-left-color .2s ease-in;
	-o-transition: color .2s ease-in, border-left-color .2s ease-in;
	transition: color .2s ease-in, border-left-color .2s ease-in;
}

/* Rounded corners for the last submenu link */
#nav ul>li:last-child>a {
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
}

#nav ul>li:first-child>a {
	margin-top: 10px;
}

/* Changing the link color on hover */
#nav ul li:hover>a {
	color: #007698;
}

.nav ul ul {
	display: none;
}


@media only screen and (min-width: 765px) and (max-width: 767px) {
		
	#nav>li>a { padding: 9px 16px; margin: 0 2px; }
	.dropdown>a::after { right: 10px; }
		
	}


/* Styling for mobile devices */
@media screen and (max-width: 765px) {
	
	.nav-wrap {
		width: 100%;
		margin: 10px auto;
		float: left;
	}

	#nav {
		width: 100%;
		max-width: 768px;
		margin-top: 0;
		height: auto;
		background-color: #312829;
		border-top-left-radius: 0px;
		border-top-right-radius: 0px;
		color: #fff;
		float: left;
		margin-bottom: 10px;
	}

	#nav li {
		float: none;
		padding: 0 10px;
		display: none;
		margin-bottom: 0;
	}

	/* The main navigation links */
	#nav>li>a {
		padding: 5px 10px;
		margin: 0;
		border: none;
		font-size: 12px;
		color: #bbbbbb;
		font-weight: 500;
		text-align: left;
		background: none;
	}
	
	#nav>li:hover>a {
		color: #fff;
		border: none;
		-moz-border-radius: 0px;
		-webkit-border-radius: 0px;
		border-radius: 0px; /* future proofing */
		-khtml-border-radius: 0px; /* for old Konqueror browsers */
	}
	
	#nav li .active {
	border: none;
	-moz-border-radius: 0px;
	-webkit-border-radius: 0px;
	border-radius: 0px; /* future proofing */
	-khtml-border-radius: 0px; /* for old Konqueror browsers */
	
	}
	
	#nav>li:last-child {
	padding-bottom: 20px;
}

	.dropdown>a::after {
		display: none;
	}

	#nav ul {
		position: relative;
		top: 0px;
		left: 0px;
		right: auto;
		opacity: 1;
		clear: both;
		background: none;
		padding-bottom: 0px;
		border: none;
	}

	#nav ul li, #nav>li:hover>ul>li {
		height: auto;
		position: relative;
	}

	#nav ul li a {
		padding: 5px 10px;
		width: auto;
		border: none;
		text-align: left;
	}
	#nav ul li a:hover {
		color: #fff; 
	}

	#nav #toggleMenu {
		display: block;
	}

	#nav #toggleMenu>a, #nav #hideMenu>a {
		padding: 6px 10px;
		z-index: 999;
	}

	#nav:target li {
		display: block;
	}

	#nav:target #toggleMenu {
		display: none;
	}

	#nav:target #hideMenu {
		display: block;
		background: rgba(77, 65, 65, .79);
		border-top-left-radius: 3px;
		border-top-right-radius: 3px;
	}

	#nav #hideMenu>a {
		color: #fff;
	}

	#toggleMenu>a::after, #hideMenu>a::after {
		position: absolute;
		content: "";
		right: 20px;
		top: 9px;
		height: 3px;
		width: 20px;
		border-top: 2px solid #bbbbbb;
		border-bottom: 2px solid #bbbbbb;
		z-index: 1;
	}

	#toggleMenu>a::before, #hideMenu>a::before {
		position: absolute;
		content: "";
		right: 20px;
		top: 16px;
		height: 3px;
		width: 20px;
		border-bottom: 2px solid #bbbbbb;
		z-index: 1;
	}

	#hideMenu>a::after, #hideMenu>a::before {
		border-color: #fff;
	}

}