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

File Name: Daleth - 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: 17/10/2013;

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

/* The main container */
.flexnav {
	/* Some stylesheet reset */
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1;

	/* Layout */
	display: block;
	overflow: visible;
	width: 100%;
	height: 70px;

	/* Background & typography */
background: #a81313;
	font-family: "Noto Sans", Helvetica, sans-serif;
}

	.flexnav:after {
		content: "";
		display: table;
		clear: both; 
	}

	/* Displaying the main links on the same line */
	.flexnav>li {
		float: left;
	}

	.flexnav li {
		display: block;
		position: relative;
	}

	/* The items which contain submenus have right padding */
	.flexnav>li.item-with-ul>a {
		padding-right: 71px;
	}
        
        /* The links */
		.flexnav li a {
			/* Layout */
			position: relative;
			display: block;
			z-index: 2;
			padding: 35px 70px;
			overflow: hidden;

			
			
			/* Typography */
			font-weight: 700;
			font-size: 18px;
			color: #f7d8d8;
			text-decoration: none;

			/* Background & effects */
			background: #a81313;
			-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;
		}

		/* The submenu links */
		.flexnav ul li a {
			width: 130px;
			font-weight: 400;
			font-size: 13px;
			padding: 13px 25px;
		}

		/* The hover state of the links */
		.flexnav li a:hover, .flexnav li.active>a {
			color: #fff;
			background: #ea2f2f; 
		}

		/* The submenus */
		.flexnav ul {
			position: absolute;
			top: auto;
			left: 0;
			display: block;
			padding: 0;
		}
		
		/* The first level submenus */
		.flexnav>li>ul {
			left: auto;
			right: 0;
		}

		/* Level 2+ submenus */
		.flexnav ul ul {
			margin-left: 100%;
			top: 0; 
		}

		/*  */
		.flexnav li ul li {
			position: relative;
			overflow: hidden; 
		}

		.flexnav li ul.show li {
			overflow: visible; 
		}

		.flexnav li ul li a {
			background: #f53d3d;
		} 

		.flexnav ul li ul li a {
			background: #ef3434; 
		}

		.flexnav ul li ul li ul li a {
			background: #ea2f2f; 
		}

		.flexnav li ul.open {
			display: block;
			opacity: 1;
			visibility: visible;
			z-index: 1; 
		}

			.flexnav li ul.open li {
				overflow: visible;
				max-height: 100px; 
			}

			.flexnav li ul.open ul.open {
				margin-left: 100%;
				top: 0; 
			}

        
	/* The buttons which shows/hides the menu on click/tap */
	.flexnav .touch-button {
		position: absolute;
		z-index: 999;
		top: 0;
		right: 0;
		width: 46px;
		height: 46px;
		display: inline-block;
		background: #f53d3d;
		text-align: center; 
	}

		.flexnav .touch-button:hover {
			cursor: pointer; 
		}

		/* The arrow which indicates a submenu */
		.flexnav .touch-button::after {
			height: 0;
			width: 0;
			content: "";
			border: 6px solid transparent;
			border-top-color: #f7d8d8;
			display: block;
			position: absolute;
			top: 22px;
			left: 17px;
		}

		/* Changing the color of the arrow when the submenu is opened */
		.flexnav>li:hover>.touch-button::after, .sm-screen .submenu-open::after {
			border-top-color: #fff;
        }

		/* The button is smaller when it's contained by a submenu */
		.flexnav ul li .touch-button {
			width: 39px;
			height: 39px;
			background: #ef3434;
			border-top-color: transparent;
		}

		.flexnav ul ul li .touch-button {
			background: #ea2f2f;
		}

		.flexnav ul li .touch-button::after {
			top: 15px;
		}

		.flexnav.lg-screen ul li .touch-button::after {
			border-left-color: #f7d8d8;
			border-top-color: transparent;
			border-width: 5px;
		}

		.flexnav.lg-screen ul li:hover>.touch-button::after {
			border-left-color: #fff;
		}

		.flexnav.sm-screen ul li .touch-button::after {
			border-width: 5px;
			left: 14px;
			top: 17px;
  		}

/* The button which opens the menu on mobile devices */
.menu-button {
	position: relative;
	display: none;
	padding: 16px 25px;
	background: #fa4848;
	color: #f7d8d8;
	cursor: pointer;
	font-family: "Noto Sans", Helvetica, sans-serif;
	line-height: 1; 
	font-weight: 700;
	font-size: 14px;
}
	.menu-button.one-page {
		position: fixed;
		top: 0;
		right: 5%;
		padding-right: 45px; 
	}

	.menu-button .touch-button {
		background: transparent;
		position: absolute;
		z-index: 999;
		top: 0;
		right: 0;
		width: 50px;
		height: 50px;
		display: inline-block;
		text-align: center; 
	}

	.menu-button .touch-button .navicon {
		font-size: 16px;
		position: relative;
		top: 1em;
		color: #666; 
	}

	.menu-button::after {
		position: absolute;
		content: "";
		right: 25px;
		top: 18px;
		height: 3px;
		width: 20px;
		border-top: 2px solid #f7d8d8;
		border-bottom: 2px solid #f7d8d8;
		z-index: 1;
	}

	.menu-button::before {
		position: absolute;
		content: "";
		right: 25px;
		top: 25px;
		height: 3px;
		width: 20px;
		border-bottom: 2px solid #f7d8d8;
		z-index: 1;
	}

/* Styling for the mobile view */
@media all and (max-width: 767px) {
.flexnav {
	overflow: hidden;
	max-height: 0px; 
}

.flexnav.show {
	border-top: 1px solid #f53d3d;
	overflow: visible;
	max-height: 2000px;
}

	.flexnav li {
		float: none;
	}

	.flexnav ul li a {
		width: auto;
	}

	.flexnav ul, .flexnav ul ul {
		position: relative;
		margin-left: 0;
		width: 100%;
	}

	.flexnav ul li a {
		padding-left: 10px;
	}

	.flexnav ul ul li a {
		padding-left: 49px;
	}

	.flexnav ul ul ul li a {
		padding-left: 61px;
	}

	.menu-button {
		display: block;
	}
	
	 /* The links */
		.flexnav li a {
			/* Layout */
			position: relative;
			display: block;
			z-index: 2;
			padding: 15px 30px;
			overflow: hidden;

			
			
			/* Typography */
			font-weight: 700;
			font-size: 18px;
			color: #f7d8d8;
			text-decoration: none;

			/* Background & effects */
			background: #a81313;
			-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;
		}
	
	
	
	
	
	
}


@media (min-width: 768px) and (max-width: 991px) {
	
	
	  /* The links */
		.flexnav li a {
			/* Layout */
			position: relative;
			display: block;
			z-index: 2;
			padding: 35px 30px;
			overflow: hidden;

			
			
			/* Typography */
			font-weight: 700;
			font-size: 18px;
			color: #f7d8d8;
			text-decoration: none;

			/* Background & effects */
			background: #a81313;
			-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;
		}

	
	
}


@media (min-width: 992px) and (max-width: 1199px) {
	
	  /* The links */
		.flexnav li a {
			/* Layout */
			position: relative;
			display: block;
			z-index: 2;
			padding: 35px 50px;
			overflow: hidden;

			
			
			/* Typography */
			font-weight: 700;
			font-size: 18px;
			color: #f7d8d8;
			text-decoration: none;

			/* Background & effects */
			background: #a81313;
			-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;
		}
	
}


