/* The main container */
#header-menu{
	height: 62px;
	background: #fcf5a2;

}
.flexnav {
	/* Some stylesheet reset */
	padding: 0;
	list-style: none;
	line-height: 1;
	/* Layout */
	display: block;
	overflow: visible;

	height: 46px;
	/* Background & typography */
	font-family: "Open 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;
		z-index: 9999;
		background:url(../images/line.png) right no-repeat;
	}
	
	.flexnav li:last-child {
		background:none;
	}
	
        
        /* The links */
		.flexnav li a {
			/* Layout */
			position: relative;
			display: block;
			z-index: 2;
			padding: 20px 15px;
			overflow: hidden;
			margin: 0 5px;
			
			
			/* Typography */
			font: 1em "Open Sans";
			color: #000000;
			text-decoration: none;
		}
		
		
		.flexnav li a:hover {
			background: #ffef38;
		}
		/* The submenu links */
		.flexnav ul li a {
			width: 200px;
			font-weight: 400;
			font-size: 13px;
			padding: 13px 25px;
		}
		/* The hover state of the links */
		.flexnav li a:hover, .flexnav li.active>a {
			color: #000000;
		}
		/* The submenus */
		.flexnav ul {
			position: absolute;
			top: auto;
			left: 0;
			display: block;
			padding: 0;
		}
		
		/* The first level submenus */
		.flexnav>li>ul {
			margin: 0 auto;
		}
		/* Level 2+ submenus */
		.flexnav ul ul {
			margin-left: 100%;
			top: 0; 
		}
		/*  */
		.flexnav li ul li {
			position: relative;
			overflow: hidden;
			background: none;
		}
		.flexnav li ul.show li {
			overflow: visible; 
		}
		.flexnav li ul li a {
			background: #fcf5a2;
			border-top: 1px solid #f1de00;
		} 
		.flexnav ul li ul li a {
			background: #fcf5a2; 
		}
		.flexnav ul li ul li ul li a {
			background: #fcf5a2; 
		}
		.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; 
			}
 
 
/*Wordpress Current Menu Item */
.current-menu-item a, .current_page_item a {
	background-color: #ffef38;
}       
/* The button which opens the menu on mobile devices */
.menu-button {
	position: relative;
	display: none;
	padding: 16px 25px;
	background: #ffef38;
	font-family: "Open Sans", Helvetica, sans-serif;
	color: #000000;
	cursor: pointer;
	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: 6px;
		width: 20px;
		border-top: 2px solid #000000;
		border-bottom: 2px solid #000000;
		z-index: 1;
	}
	.menu-button::before {
		position: absolute;
		content: "";
		right: 25px;
		top: 25px;
		height: 3px;
		width: 20px;
		border-bottom: 2px solid #000000;
		z-index: 1;
	}
	
/* Footer Navigation */
#footnav {
	float: right;
	margin-top: 5px;
}
#footnav li {
	display: inline-block;
	border-right: 1px solid #fff;
	padding: 0 0.5em;
}
#footnav li:last-child {
	border-right: none;;
}
#footnav .current-menu-item a, #footnav .current_page_item a { background-color:transparent; }
/* Styling for the mobile view */
@media (min-width: 768px) and (max-width: 991px) {

.flexnav li a {
	padding: 20px 5px;
	font-size:0.9em;
}
}

@media all and (max-width: 767px) {
#header-menu{
	height: 46px;
}
.flexnav {
	overflow: hidden;
	max-height: 0px;
	float: none !important;
	margin:0 auto;
}
.flexnav.show {
	border-top: 1px solid #dbc846;
	overflow: visible;
	max-height: 2000px;
}
	.flexnav li {
		float: none;
		background:none;
		background:#fcf5a2;
		border-bottom: 1px solid #925d02;
	}
	
	.flexnav li:last-child {
		background:#fcf5a2;
	}
	
	.flexnav li a {
		margin:0;
		padding: 10px 15px;
	}
	.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;
	}
	
	#footnav li a {
		font-size: 0.8em;
	}
}