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

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

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

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

/* The main container (the navigation bar) */
#nav {
	display: block;
	position: relative;
	width: 100%;
	height: 50px;
	font-family: 'futura_md_btmedium', Arial, Helvetica, sans-serif;
	font-size: 12px;
}

/* The main links containers */
#nav>li {
	float: left;
	display: block;
	padding: 0;
	position: relative;
}

/* Hiding the links used for toggling the menu in mobile mode */
#nav #toggleMenu, #nav #hideMenu {
	display: none;
}

/* The links which contain submenus need more space to the right for the arrow which indicates the submenus */
#nav>li.dropdown>a {
	padding-right: 48px;
}

/* The main navigation links */
#nav>li>a {
	padding: 5px 11px;
	display: block;

	text-decoration: none;
	font-size: 16px;
	color: #fff;
	
	-webkit-transition: color .2s ease-in;
	-moz-transition: color .2s ease-in;
	-ms-transition: color .2s ease-in;
	-o-transition: color .2s ease-in;
	transition: color .2s ease-in;
}

/* Changing the color of the links on hover */
#nav li:hover>a {
	color: #3480C4;
}

/* General styling for the :after & :before pseudo-elements */
#nav li:after, #nav li:before, #nav a:after, #nav a:before {
	position: absolute;
	display: block;
	content: "";
}

/* The circle of the indicator */
#nav>li.dropdown::after {
	height: 14px;
	width: 14px;
	border: 2px solid #e1e1e1;
	top: 5px;
	right: 14px;
	border-radius: 12px;
	display:none;
	-webkit-transition: all .2s ease-in;
	-moz-transition: all .2s ease-in;
	-ms-transition: all .2s ease-in;
	-o-transition: all .2s ease-in;
	transition: all .2s ease-in;
}

/* The arrow of the indicator */
#nav>li.dropdown::before {
	height: 7px;
	width: 7px;
	border: 2px solid #e1e1e1;
	border-top: none;
	border-left: none;
	top: 7px;
	right: 15px;

	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);

	-webkit-transition: all .2s;
	-moz-transition: all .2s;
	-ms-transition: all .2s;
	-o-transition: all .2s;
	transition: all .2s;
}

/* The hover state of the indicator */
#nav>li.dropdown:hover::after, #nav>li.dropdown:hover::before {
	-webkit-transform: scale(0.85) rotate(45deg);
	-ms-transform: scale(0.85) rotate(45deg);
	-moz-transform: scale(0.85) rotate(45deg);
	-o-transform: scale(0.85) rotate(45deg);
	transform: scale(0.85) rotate(45deg);
	border-color: #fff;
} 

/* The pseudo-element used for the wave animation */
#nav>li.dropdown>a::after {
	height: 18px;
	width: 18px;
	top: 5px;
	right: 10px;
	border-radius: 12px;
}

/* When the link is hovered, the wave animation starts */
#nav>li.dropdown:hover>a::after {
	-webkit-animation: waveAnimation 1.3s ease-out 75ms;
	-moz-animation: waveAnimation 1.3s ease-out 75ms;
	animation: waveAnimation 1.3s ease-out 75ms;
}

/* The wave animation */
@-webkit-keyframes waveAnimation {
	0% {
		opacity: 0.3;
		box-shadow: 0 0 0 1px rgba(255,255,255,0.0);
	}
	40% {
		opacity: 0.5;
		box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
	}
	100% {
		box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
		-webkit-transform: scale(2);
		opacity: 0;
	}
}

@-moz-keyframes waveAnimation {
	0% {
		opacity: 0.3;
		box-shadow: 0 0 0 1px rgba(255,255,255,0.0);
	}
	40% {
		opacity: 0.5;
		box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
	}
	100% {
		box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
		-moz-transform: scale(2);
		opacity: 0;
	}
}

@keyframes waveAnimation {
	0% {
		opacity: 0.3;
		box-shadow: 0 0 0 1px rgba(255,255,255,0.0);
	}
	40% {
		opacity: 0.5;
		box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
	}
	100% {
		box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
		transform: scale(2);
		opacity: 0;
	}
}

/* The submenus */
#nav ul {
	display: block;
	position: absolute;
	left: -9999px;
	background: rgba(6, 56, 86, .9);
	padding-top: 7px;
	opacity: 0;
	-webkit-transition: opacity .32s ease-in;
	-moz-transition: opacity .32s ease-in;
	-ms-transition: opacity .32s ease-in;
	-o-transition: opacity .32s ease-in;
	transition: opacity .32s ease-in;
}

/* Showing the submenus when the parent is hovered */
#nav>li:hover>ul {
	left: 0;
	opacity: 1;
}

#nav ul li {
	display: block;
	padding: 0;
}

/* The submenu links */
#nav ul li a {
	color: #e1e1e1;
	text-decoration: none;
	display: block;
	padding: 10px 22px;
	width: 200px;
	font-size: 13px;
	border-top: 1px solid rgba(180, 180, 180, .4);
	-webkit-transition: color .2s ease-in;
	-moz-transition: color .2s ease-in;
	-ms-transition: color .2s ease-in;
	-o-transition: color .2s ease-in;
	transition: color .2s ease-in;
}

/* Hiding the level 2+ submenus */
#nav ul ul {
	display: none;
}
/* Styles for the mobile devices */
@media screen and (max-width: 768px) {
	#nav {
		max-width: 768px;
		height: auto;
		z-index: 99;
	}

	#nav>li {
		float: none;
		border-top: 1px solid rgba(180, 180, 180, .1);
		background: rgba(6, 56, 86, .8);
		padding-top: 10px;
		padding-bottom: 10px;
	}

	#nav li {
		display: none;
	}

	#nav ul {
		position: relative;
		left: auto;
		opacity: 1;
		background: rgba(0, 0, 0, .05);
		background: rgba(0, 0, 0, .0);
		border-top: 1px solid rgba(180, 180, 180, .1);
	}

	#nav ul li a {
		border-top: none;
		padding-left: 35px;
		width: 100%;
		background: rgba(6, 56, 86, .8);
	}

	#nav>#toggleMenu {
		display: block;
		z-index: 999;
		background: rgba(6, 56, 86, .9);
	}

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

	#nav:target>#hideMenu {
		display: block;
		z-index: 999;
	}

	#nav #hideMenu>a {
		color: #fff;
		z-index: 999;
		height: 30px;
		text-align:center;
		padding-top: 10px;
	}

	#nav #toggleMenu>a {
		z-index: 999;
		padding-top: 10px;
		text-align:center;
		height: 30px;
	}

	#nav:target li {
		display: block;
	}

	#nav>li.dropdown::after {
		right: 22px;
		border-color: #fff;
	}

	#nav>li.dropdown::before {
		right: 28px;	
		border-color: #fff;	
	}

	#nav>li.dropdown>a::after {
		right: 22px;
	}

	#toggleMenu::after, #hideMenu::after {
		height: 20px;
		width: 20px;
		top: 13px;
		right: 22px;
		border-radius: 16px;
		-webkit-transition: all .2s ease-in;
		-moz-transition: all .2s ease-in;
		-ms-transition: all .2s ease-in;
		-o-transition: all .2s ease-in;
		transition: all .2s ease-in;
		z-index: -1;
	}

	#toggleMenu::before, #hideMenu::before {
		height: 2px;
		width: 15px;
		border-top: 2px solid #e1e1e1;
		top: 20px;
		right: 29px;
		z-index: -1;
	}

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

	#toggleMenu>a::after, #hideMenu>a::after {
		height: 2px;
		width: 15px;
		background: #e1e1e1;
		top: 28px;
		right: 29px;
		z-index: -1;
	}

	#hideMenu>a::after {
		background: #fff;
	}
}

