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

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;

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

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

#mnav #toggleMenu, #mnav #hideMenu {
	display: none;
	margin: 0px !important;
}

/* The main navigation bar */
#mnav {
	position: relative;
	display: block;
	height: 44px;
	width: 100%; /* The menu will take the width of its container */
	background: #db499c;
}

#mnav>li {
	display: block;
	float: left;
	position: relative;
}

/* The main navigation links */
#mnav>li>a {
	/* Layout */
	display: block;
	padding: 13px 22px;
	border-color: #aaa;

	/* Typography */
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 18px;
	font-weight: normal;
	color: #fff;
	text-transform: none;
	text-decoration: none;
	
	/* Transitions */
	-webkit-transition: color .2s ease-in, border-top-color .2s ease-in;
	-ms-transition: color .2s ease-in, border-top-color .2s ease-in;
	-moz-transition: color .2s ease-in, border-top-color .2s ease-in;
	-o-transition: color .2s ease-in, border-top-color .2s ease-in;
	transition: color .2s ease-in, border-top-color .2s ease-in;
}

/* The hover state of the links */
#mnav>li:hover>a {
	color: #fff;
	border-top-color: #fff;
}

#mnav>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 */
#mnav #toggleMenu, #mnav #hideMenu {
	display: none;
	margin: 0px !important;
}
#mnav ul {
	display: block;
	position: absolute;
	top: 43px;
	left: -9999px;
	opacity: 0;
	background: #272727;
	cursor: pointer;
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
	-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;
}

#mnav 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;
}

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

#mnav li:hover>ul>li {
	position: relative;
	height: 31px;
}

/* The submenu links */
#mnav ul li a {
	/* Layout */
	display: block;
	padding: 7px 12px 7px 22px;
	width: 130px;

	/* Typography */
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	text-decoration: none;
	color: #fff;
	font-weight: 400;
	
	/* Background & effects */
	background: #272727;
	-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 */
#mnav ul>li:last-child>a {
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
}

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

.mnav ul ul {
	display: none;
}

/* Styling for mobile devices */
@media screen and (max-width: 768px) {
	#mnav {
		width: 95%;
		max-width: 768px;
		margin: auto;
		height: auto;
-webkit-border-bottom-right-radius: 18px;
-webkit-border-bottom-left-radius: 18px;
-moz-border-radius-bottomright: 18px;
-moz-border-radius-bottomleft: 18px;
border-bottom-right-radius: 18px;
border-bottom-left-radius: 18px;
	}

	#mnav li {
		float: none;
		padding: 0px;
		display: none;
		margin: 0px !important;
	}
	#mnav li:last-child {
		padding: 0px 0px 12px 0px !important;
	}

	#mnav>li>a {
		padding: 8px 10px 8px 60px;
		margin: 8px 0px 8px 0px;
		font-size: 18px;
	}

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

	#mnav ul {
		position: relative;
		top: 0px;
		left: 0px;
		right: auto;
		opacity: 1;
		clear: both;
	}

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

	#mnav ul li a {
		padding: 5px 10px;
		width: auto;
	}

	#mnav #toggleMenu {
		display: block;
	}

	#mnav #toggleMenu a, #mnav #hideMenu a {
		padding: 13px 18px;
		margin: 0px !important;
	}

	#mnav:target li {
		display: block;
	}

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

	#mnav:target #hideMenu {
		display: block;
		background: rgba(0, 0, 0, .3);
		border-top-left-radius: 3px;
		border-top-right-radius: 3px;
	}

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

	#toggleMenu::after, #hideMenu::after {
		position: absolute;
		content: "";
		right: 20px;
		top: 16px;
		height: 3px;
		width: 20px;
		border-top: 2px solid #fff;
		border-bottom: 2px solid #fff;
	}

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

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

}