/* The main container */

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

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


	/* Background & typography */
	background: #0083B7;
	font-family: 'Titillium Web', sans-serif;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 20px;

}

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

/* The button which opens the menu in the mobile view */
.menu-button {
	display: none; /* The button is hidden by default */
	padding: 18px 22px;
	
	/* Typography */
	font-family: 'Titillium Web', sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: #fff;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1;

	background: #0083B7;
	cursor: pointer;
}

/* The main link containers */
.flexnav>li {
	float: left;
	display: block;
	position: relative;
}

/* General styling for the links */
.flexnav li a {
	color: #fff;
	-webkit-transition: color .2s ease-out;
	-moz-transition: color .2s ease-out;
	-ms-transition: color .2s ease-out;
	-o-transition: color .2s ease-out;
	transition: color .2s ease-out;
}

/* Current Page Styling */
.flexnav li.current_page_item a{
  color: #fff;
  background: #006C95;
}

.flexnav li.current_page_item a:hover{
  color: #fff;
  background: #0083B7;
}

/* The main links */
.flexnav>li>a {
	display: block;
	padding: 18px 20px;
	font-weight: 300;
	font-size: 18px;
	text-decoration: none;
	text-transform: uppercase;
}

/* The hover state of the links */
.flexnav li a:hover {
	color: #0083B7;
	background: #fff;
}

/* The links which contain submenus have extra right padding for the submenu indicator */
.flexnav>.item-with-ul>a {
	padding-right: 66px;
}

/* The buttons which shows/hides the menu on click/tap */
.touch-button {
	display: block;
	position: absolute;
	right: 0px;
	top: 0;
	width: 54px;
	height: 54px;
	z-index: 99;
	cursor: pointer;
	background: transparent; 
}

/* The circle of the indicator */
.touch-button::after {
	/* content: '';
	display: block;
	position: absolute;
	width: 26px;
	height: 26px;
	border: 1px solid #7a8189;
	right: 13px;
	top: 13px;
	border-radius: 23px; */
}

/* The arrow of the indicator */
.touch-button::before {
	/* content: '';
	display: block;
	width: 10px;
	height: 10px;
	position: absolute;
	border-bottom: 1px solid #7a8189;
	border-left: 1px solid #7a8189;
	right: 21px;
	top: 20px;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg); */
}

/* The hover/active state of the indicator */
.flexnav li:hover>.touch-button::before, .sm-screen .submenu-open::before {
	border-bottom-color: #fff;
	border-left-color: #fff;
}

.flexnav li:hover>.touch-button::after, .sm-screen .submenu-open::after {
	border-color: #fff;
}

/* The submenus */
.flexnav ul {
	position: absolute;
	list-style: none;
	left: 0;
	margin: 0;
	padding: 0;
}

/* Level 2+ submenus */
.flexnav ul ul {
	left: 244px;
	top: -1px;
}

.flexnav ul li {
	display: block;
	position: relative;
	padding: 0;
	margin: 0;
	border-top: 0px solid #31353f;
}

/* The submenu links */
.flexnav ul li a {
	background: #2b2f3a;
	padding: 12px 22px;
	display: block;
	width: 200px;
	text-decoration: none;
}

/* The button which toggles level 2+ submenus */
.flexnav ul .touch-button {
	width: 40px;
	height: 40px;
	border-left: 0px solid #31353f;
}

/* The menu icon (the indicator) */
.flexnav ul .touch-button::after {
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;

}

.flexnav ul .touch-button::before {
	right: 17px;
	top: 16px;
	height: 7px;
	width: 7px;
	-webkit-transform: rotate(-135deg);
	-moz-transform: rotate(-135deg);
	-ms-transform: rotate(-135deg);
	-o-transform: rotate(-135deg);
	transform: rotate(-135deg);
}

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


/* Mobile view stylesheet */
@media all and (max-width: 800px) {
	.flexnav {
		overflow: hidden;
		max-height: 0px; 
	}

	.flexnav.show {
		overflow: visible;
		max-height: 3000px;
	}

	.flexnav li {
		float: none;
	}

	.flexnav ul li a {
		width: auto;
	}

	.flexnav>li {
		border-top: 1px solid #C6F7FF;
	}

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

	}

	.flexnav.show .touch-button, .menu-button .touch-button {
		border-left: 0px solid #31353f;
		z-index: 999;
	}

	.flexnav ul .touch-button::before {
		-webkit-transform: rotate(-45deg);
		-moz-transform: rotate(-45deg);
		-ms-transform: rotate(-45deg);
		-o-transform: rotate(-45deg);
		transform: rotate(-45deg);
		right: 16px;
		top: 15px;
	}

	.menu-button {
		display: block;
	}

	.menu-button .touch-button::before {
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-ms-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
		border-left: 0;
		border-top: 2px solid #fff;
		border-bottom: 2px solid #fff;
		height: 2px;
		width: 12px;
		top: 22px;
	}

	.menu-button::after {
		/* display: block;
		width: 12px;
		height: 2px;
		content: '';
		position: absolute;
		background: #7a8189;
		right: 21px;
		top: 30px; */
	}

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

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

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

	
}


@media all and (min-width: 900px) {

	.flexnav>li>a 
	{
	padding: 18px 23.5px;
	}

}

@media all and (min-width: 980px) {

	.flexnav>li>a 
	{
	padding: 18px 24.5px;
	}

}

@media all and (min-width: 1024px) {

	.flexnav>li>a 
	{
	padding: 18px 44px;
	}

}

@media all and (min-width: 1080px) {

	.flexnav>li>a 
	{
	padding: 18px 46px;
	}

}

@media all and (min-width: 1210px) {

	.flexnav>li>a 
	{
	padding: 18px 60px;
	}

}

@media all and (min-width: 1280px) {

	.flexnav>li>a 
	{
	padding: 18px 66px;
	}

}
