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

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: 46px;


	/* Background & typography */
	/* background: #000; */
	font-family: 'Oranienbaum', 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: 51px;
	}
        
        /* The links */
		.flexnav li a {
			/* Layout */
			position: relative;
			display: block;
			z-index: 2;
			padding: 18px 20px;
			overflow: hidden;

			
			
			/* Typography */
			font-weight: 300;
			font-size: 14px;
			color: #000;
			text-decoration: none;

			/* Background & effects */
			/* background: #000; */
			-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: 160px;
			font-weight: 300;
			font-size: 14px;
			padding: 13px 25px;
		}

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

		/* 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: #ffffff;
			
		} 

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

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

		.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: rgba(255, 255, 255, .05); */
		/* background: #000; */
		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: 4px solid transparent;
			border-top-color: #fff;
			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: #000;
        }

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

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

		.flexnav.lg-screen ul li .touch-button::after {
			border-left-color: #FFF;
			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: #000; */
	color: #000;
	cursor: pointer;
	font-family: 'Oranienbaum', serif;
	line-height: 1; 
	font-weight: 300;
	font-size: 14px;
	letter-spacing: 3px;
	box-sizing: initial;
}
	.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: #000; 
	}

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

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

/* Styling for the mobile view */
@media all and (max-width: 800px) {

		.flexnav li a {

			color: #000;

		}
				.flexnav li a:hover, .flexnav li.active>a {
			color: #000;
		}
				.flexnav li ul li a {
			
			color: #000;
		} 

		.flexnav ul li ul li a {
			
			color: #000;
		}

		.flexnav ul li ul li ul li a {
			
			color: #000;
		}
				.flexnav .touch-button::after {
			height: 0;
			width: 0;
			content: "";
			border: 4px solid transparent;
			border-top-color: #000;
			display: block;
			position: absolute;
			top: 22px;
			left: 17px;
		}

.flexnav {
	overflow: hidden;
	max-height: 0px;
	height: auto;
}

.flexnav.show {
	border-top: 1px solid #000;
	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: 37px;
	}

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

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

	.menu-button {
		display: block;
	}

	.flexnav li ul li a {
    background: none;
    }

    .flexnav ul li ul li a {
    background: none;
    }

    .flexnav ul li ul li ul li a {
    