/*===============

File Name: Beth - Mobile-First Responsive Menu;
Version: 1.0;
Author: Tiberiu Alexander;
Author URL: http://codecanyon.net/user/tiberiualexander/portfolio ;
E-mail: tiberiu.alexander@gmail.com ;
Created: 10/02/2013;

=================*/

body.about li.about,
body.lines li.lines,
body.available li.available,
body.gallery li.gallery,
body.spotlight li.spotlight,
body.contact li.contact { color: #F95355;}

/* Some stylesheet reset */
#nav, #nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	z-index: 1000;
}
#nav #toggleMenu, #nav #hideMenu {
	display: none;
}

/* The main navigation bar */
#nav {
	position: relative;
	display: block;
	height: 40px;
	width: 100%; 
	border-radius: 3px;
	line-height: 20px;
}
#nav>li {
	display: block;
	float: left;
	position: relative;	
}

/* The main navigation links */
#nav>li>a {
	/* Layout */
	display: block;
	padding-top: 12px;
	padding-right: 45px;
	padding-left: 25px;
	padding-bottom: 12px;
	/* margin-right: 20px; */
	
	/* Typography */
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: lighter;
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	
	/* Transitions */
	-webkit-transition: background-color .3s ease-in;
	-ms-transition: background-color .3s ease-in;
	-moz-transition: background-color .3s ease-in;
	-o-transition: background-color .3s ease-in;
	transition: background-color .3s ease-in;
}

.lastnav {
	padding-right: 0px !important;
	text-align: right !important;
	margin-right: -45px !important;
} 

/* The hover state of the links */
#nav>li:hover>a {
	color: #FFBF00;
}

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

/* 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: 11px;
	top: 21px;
}

/*  The submenus */
#nav ul {
	display: block;
	position: absolute;
	top: 100px;
	left: -9999px;
	background: #F95355;
	cursor: pointer;
	border-bottom: 1px solid #fff;
}

#nav ul li {
	display: block;
	position: absolute;
	height: 0px;
	-webkit-transition: height .2s ease-in;
	-ms-transition: height .2s ease-in;
	-moz-transition: height .2s ease-in;
	-o-transition: height .2s ease-in;
	transition: height .2s ease-in;
	border-top: 1px solid #fff;
}

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

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

/* The submenu links */
#nav ul li a {
	/* Layout */
	display: block;
	padding: 10px 15px 10px 25px;
	width: 190px;

	/* Typography */
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	text-decoration: none;
	color: #fff;
	font-weight: 600;
	
	/* Background & effects */
	background: #F95355;
	-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;
}

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

/* Changing the link color on hover */
#nav ul li:hover>a {
	color: rgba(0,0,0,0.6);
}

.nav ul ul {
	display: none;
}

/* Styling for mobile devices */

@media screen and (max-width: 768px) {
	body.about li.about,
	body.lines li.lines,
	body.available li.available,
	body.gallery li.gallery,
	body.spotlight li.spotlight,
	body.contact li.contact { background-color: #006DD9;}
	
	#nav {
		width: 100%;
		max-width: 768px;
		height: auto;
		background: #005BB7;
		margin-bottom: 20px;
		margin-top: 20px;
	}

	#nav li {
		float: none;
		display: none;
	}
	
	#nav ul li {
		border-color: #333;
	}

	#nav>li>a {
		padding: 8px 10px;
		height: 20px;
		border-left: 0px;
	}
	
	#nav>li:hover>a {
		background-color: #004993;
		color: #FFF;
}
	
/* .lastnav {
	float: none !important;
	padding-right: 0px !important;
	padding-bottom: 15px !important;
	text-align: left !important; 
	margin-right: 0px;
} */
	
.lastnav {
	padding-right: 0px !important;
	text-align: center !important;
	margin-right: auto !important;
} 	

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

	#nav ul {
		position: relative;
		top: 0px;
		left: 0px;
		right: auto;
		opacity: 1;
		clear: both;
		border-top: 0px solid #008D9C;
		border-bottom: 1px solid #333;
		background: #666;
	}
	
	#nav ul li, #nav>li:hover>ul>li {
		height: auto;
		position: relative;
	}

	#nav ul li a {
		padding: 5px 10px;
		width: auto;
		background-color: #666;
	}

	#nav #toggleMenu {
		display: block;
	}

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

	#nav:target li {
		display: block;
	}

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

	#nav:target #hideMenu {
		display: block;
		background: rgba(0, 0, 0, .13);
		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: 16px;
		height: 3px;
		width: 20px;
		border-top: 2px solid #fff;
		border-bottom: 2px solid #fff;
		z-index: 1;
	}

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

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

}