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

	/* Layout */
	display: block;
	overflow: visible;
	width: 100%;
	height: 30px;
	float: right;
	width: auto;

	/* Background & typography */
}

	.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: 18px;
	}
        
        /* The links */
		.flexnav li a {
			/* Layout */
			position: relative;
			display: block;
			z-index: 2;
			padding: 16px 15px;
			overflow: hidden;
		
			
			/* Typography */
			font-weight: bold;
			font-size: 15px;
			letter-spacing: 2.89px;
			color: #000000;
			text-decoration: none;
			text-transform: uppercase;

			/* Background & effects */
			-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: 237px;
			font-weight: bold;
			font-size: 18px;
			padding: 13px 25px;
			letter-spacing: 0;
		}
		.menu-bump {
			margin-left:25px;
			margin-top:13px;
		}

		/* The hover state of the links */
		.flexnav li a:hover, .flexnav li.active>a {
			color: #ffffff;
			background-color: #097aba;
			
		}

		/* 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; 
			background: #097aba;
			z-index:10;
			-moz-box-shadow: rgba(0,0,0,0.35) 1px 1px 3px;
  -webkit-box-shadow: rgba(0,0,0,0.35) 1px 1px 3px;
  box-shadow: rgba(0,0,0,0.35) 1px 1px 3px;
		}
		
		.flexnav li ul li:last-child {
			-moz-border-bottom-left-radius: 8px;
			-moz-border-bottom-right-radius: 8px;
			
			-webkit-border-bottom-left-radius: 8px;
			-webkit-border-bottom-right-radius: 8px;
			
			border-bottom-left-radius: 8px;
			border-bottom-right-radius: 8px;
			
		}

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

		.flexnav li ul li a {
			
			color: #fff;
			text-transform: none;
			font-size: 13px;
		}
		
		.flexnav li ul li:last-child a {
			-moz-border-bottom-left-radius: 8px;
			-moz-border-bottom-right-radius: 8px;
			
			-webkit-border-bottom-left-radius: 8px;
			-webkit-border-bottom-right-radius: 8px;
			
			border-bottom-left-radius: 8px;
			border-bottom-right-radius: 8px;
		}
		
		
		.flexnav li ul li a:hover {
			color: #ccc;
			background: #36a2e0;
			
		}  

		.flexnav ul li ul li a {
			background: #40a6d8; 
		}

		.flexnav ul li ul li ul li a {
			background: #3ca1d3; 
		}

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

			.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: 20px;
		height: 20px;
		display: inline-block;
		text-align: center; 
	}
	
	.flexnav .touch-button a {
	}

		.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: #666666;
			display: none;
			position: absolute;
			top: 20px;
			left: 0px;
		}
		
		/* 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: #46aadb;
        }

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

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

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

		.flexnav.lg-screen ul li .touch-button::after {
			border-left-color: #d8eff6;
			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;
	cursor: pointer;
	line-height: 1; 
	font-weight: 700;
	font-size: 14px;
	width: 100px;
	float: right;
}
	.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: 2px;
		width: 30px;
		border-top: 3px solid #000000;
		border-bottom: 3px solid #000000;
		z-index: 1;
		
	}

	.menu-button::before {
		position: absolute;
		content: "";
		right: 25px;
		top: 25px;
		height: 3px;
		width: 30px;
		border-bottom: 3px solid #000000;
		z-index: 1;
		
	}
li.showme {
	display:none;
}

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


.flexnav {
	overflow: hidden;
	max-height: 0px; 
	width: 100%;
	padding: 5px 0 0 0;
	margin-top:10px;
}

li.dontshow.item-with-ul {
	display:none;
}
li.showme {
	display:block;
}
.flexnav.show {
	overflow: visible;
	max-height: 2000px;
}

	.flexnav li {
		float: none;
		width: 100%;
	}
	
	.flexnav li a {
		background: #097aba;
		color: #fff;
		font-weight: bold;
		z-index:15;
	}

	.flexnav ul li a {
		width: 100%;
	}

	.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;
	}
	
	/* The buttons which shows/hides the menu on click/tap */
	.flexnav .touch-button {
		background: #ccc; 
		width: 46px;
		height: 46px;
	}
	/* The arrow which indicates a submenu */
		.flexnav .touch-button::after {
			left: 16px;
		}
}

@media all and (min-width: 1077px) and (max-width: 1309px) {

		.flexnav {
  margin: 0;
  padding: 0;
  list-style: none;
  /* line-height: 1; */
  margin-top: 10px;
  display: block;
  overflow: visible;
  width: 100%;
  height: 36px;
  float: right;
  width: auto;
  line-height:none;
}
	}
	
@media all and (max-width: 1076px)	{
	
	.flexnav li a:hover, .flexnav li.active>a {
  color: #ffffff;
  background-color: #000000;
}
}