/* CORE MENU ITEMS ***************************************************** */

/* nav is the menu container, float left/right or margin auto for a centered menu
to auto size menu items open /js/flexnav.js and set 'calcItemWidths': false on line 14 to true
*/
nav {
    position: absolute;
    z-index: 999;
	top: auto;
    bottom: 0px;
    right: 0px;
    margin: auto;
	padding: 0 20px;
    background-color: #eeeeee;
    border-radius: 20px 20px 0 0;
    /*top: 50%;
    transform: translateY(-50%);
    -webkit-transform-origin-y: -50%;
    -ms-transform: translateY(-50%);
    -ms-transform-origin-y: -50%;
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -webkit-transform: -webkit-translateY(-50%);*/
}

.flexnav {
  -webkit-transition: none;
  -moz-transition: none;
  -ms-transition: none;
  transition: none;
  -webkit-transform-style: preserve-3d;
  overflow: visible;
  margin: 50px auto auto auto;
  width: 100%;
  max-height: 0;
  list-style: none;
  padding: 0px;
  margin: 0px;	    
}

.flexnav.opacity {
	opacity: 1; 
}

.flexnav.flexnav-show {
	max-height: 2000px;
	opacity: 1;
	-webkit-transition: all .5s ease-in-out;
	-moz-transition: all .5s ease-in-out;
	-ms-transition: all .5s ease-in-out;
	transition: all .5s ease-in-out; 
}

.flexnav.one-page {
	position: fixed;
	top: 50px;
	right: 5%;
	max-width: 200px; 
}

.flexnav li {
    font-size: 100%;
    position: relative;
    padding: 0px;
    margin: 0px;
    z-index: 999;
    list-style: none;
    list-style: none;
    float: left;
    display: block;
    overflow: visible;
}

/* modify to change the appearance of menu items */
.flexnav li a {
	position: relative;
	display: block;
	padding: 15px;
	z-index: 2;
	overflow: hidden;
	color: #222222;
	text-decoration: none; 
}

.flexnav li a:hover {
	/*background:#BFBFBF;*/
	border-bottom: solid 4px #00A9EC;
	padding-bottom: 11px;
}
.flexnav li ul {
	width: 220px; /* change to modify with of dropdown menus */
	padding: 0px;
	margin: 0px;	
	display: none;
    list-style: none;
    position: absolute;
	top: auto;
	left: 0; 
}

.flexnav li ul li {
	font-size: 100%;
	position: relative;
	overflow: hidden;
    width: 100%; 
}

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

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


.flexnav li ul li a {
	display: block;
	background: #eeeeee; 
}

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

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

.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; 
}

.flexnav .touch-button {
	position: absolute;
	z-index: 999;
	top: 0;
	right: 0;
    width: 57px;
    height: 57px;
	display: inline-block;
	background: #acaca1;
	background: rgba(0, 0, 0, 0.075);
	text-align: center; 
    display: none;
}

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

.flexnav .touch-button .navicon {
    position: relative;
    top: 33%;
    font-size: 12px;
    color: #fff;
}

.menu-button {
    position: relative;
    display: none;
    padding: 1em;
    color: black;
    cursor: pointer;
    width: 50px;
    height: 50px;
    float: right;
    margin: 24px 0px 24px 24px;
    z-index: 888;
    background-image: url(../images/menu_icon-blue.png);
    /* background-image: url(../images/menu_icon.png); */
    background-position: center;
    background-size: 50px;
    background-repeat: no-repeat !important;
}

.menu-button.opened {
    background-image: url(../images/menu_icon_close-blue.png);
    /* background-image: url(../images/menu_icon_close.png); */
    z-index: 9999;
	top: 15px !important;
}

.menu-button span.navicon {
    display: none;
}


/* ****************** */
/* ***** TABLET ***** */
/* ****************** */
@media screen and (min-width:481px) and (max-width:1025px) { 
	
	body.fixed {
		overflow: hidden;
	}
	
	nav {
		position: relative;
		float: left;
		width: 100%;
		height: auto !important;
		top: 0px;
		transform: translateY(0px);
		-webkit-transform-origin-y: 0px;
		-ms-transform: translateY(0px);
		-ms-transform-origin-y: 0px;
		-moz-transform: translateY(0px);
		-o-transform: translateY(0px);
		-webkit-transform: -webkit-translateY(0px);
	}

	.flexnav {	
		padding: 0px;
		margin: 0px;
		overflow: hidden;
	}

	.flexnav-show {
		/*border-top: 1px solid #e8e8e8;*/
	}

	.flexnav li ul {
		width: 100%;
		position: relative;
	}

	.flexnav li {
		width: 100%;
		float: left;
		text-align: center;
	}

	.flexnav li a {
		float: left;
		width: 100%;
		padding: 17px;
		border-bottom: 1px solid #e8e8e8;
	} 
	header.alt-nav .flexnav li a {
        color: white;
        border-bottom: 1px solid #282828;
    }
	header.alt-nav .flexnav li ul li a {
        background-color: #4b4c4d;
    }
	.flexnav .touch-button {
		display: block;
	}

	.menu-button {
		display: block;
	}
	
	/* ALTERNATE NAVIGATION ****** */
	
	body.fixed header.alt-nav .logo {
		position: fixed;
		z-index: 9999;
		top: 0px;
	}

	header.alt-nav .topbar {
		z-index: 9999;
		position: fixed;
		height: 0px;
		display: none;
		overflow: hidden;
	}

	header.alt-nav .menu-button {
		position: fixed;
		top: 15px;
		right: 15px;
		margin: 9px;
	}
	
	header.alt-nav.tiny .menu-button {
		opacity: 0.6;
		top: 15px !important;
	}

	header.alt-nav.tiny .menu-button.opened {
		opacity: 1;
	}

	header.alt-nav nav {
		position: fixed;
		top: 0px;
		left: 0px;
		right: 0px;
		bottom: 100%;
		overflow: hidden;
	}

	header.alt-nav nav.active {
		position: fixed;
		top: 0px;
		bottom: 0px;
		left: 0px;
		right: 0px;
		background-color: #fff;
		z-index: 999;
	}

	header.alt-nav nav.active .menu-main-menu-container {
		position: fixed;
		top: 97px;
		left: 0px;
		right: 0px;
		bottom: 0px;
		overflow: scroll;
		padding-bottom: 100px;
		z-index: 9992;
		background-color: #00719D;
	}
	
	header.alt-nav .flexnav-show {
		/*border-top: 1px solid #282828;*/
	}
	
	header.alt-nav .flexnav li a {
		color: white;
		border-bottom: 1px solid #282828;
	}
	
	header.alt-nav .flexnav li a:hover, header.alt-nav .flexnav li a:focus {
		color: white;
		background-color: #282828;
	}
	
	header.alt-nav .topbar.show {
		display: none;
		height: auto !important;
		bottom: 0px;
	}

	header.alt-nav .topbar .search-form, header.alt-nav .topbar .site-description {
		display: none;
	}

	header.alt-nav .topbar.show .social_icons {
		margin: auto;
		float: none;
		display: table;
	}

	header.alt-nav .topbar.show .social_icons .icon i {
		margin: 10px 10px;
		padding: 0px;
	}

	header.alt-nav .topbar.show .phonenumber {
		float: none;
		margin: auto;
		display: table;
		font-size: 19px;
		line-height: 19px;
	}

	header.alt-nav .topbar.show .phonenumber i {
		font-size: 17px;
	}
	body.fixed header.alt-nav .phone_header {
        position: relative;
        z-index: 9999;
    }
}


/* ****************** */
/* ***** MOBILE ***** */
/* ****************** */
@media screen and (max-width:480px) { 
	
	body.fixed {
		overflow: hidden;
	}
	
	nav {
		position: relative;
		float: left;
		width: 100%;
		height: auto !important;
		top: 0px;
		transform: translateY(0px);
		-webkit-transform-origin-y: 0px;
		-ms-transform: translateY(0px);
		-ms-transform-origin-y: 0px;
		-moz-transform: translateY(0px);
		-o-transform: translateY(0px);
		-webkit-transform: -webkit-translateY(0px);
	}

	.flexnav {	
		padding: 0px;
		margin: 0px;
		overflow: hidden;

	}

	.flexnav li {
		width: 100%;
		float: left;
		text-align: center;
	}

	.flexnav li ul {
		width: 100%;
		position: relative;
	}

	.flexnav li a {
		float: left;
		width: 100%;
		text-align: center;
		padding: 17px;
		border-bottom: 1px solid #e8e8e8;
	}

	.flexnav .touch-button {
		display: block;
	}

	.menu-button {
		display: block;
	}
	
	/* ALTERNATE NAVIGATION ****** */
	
	body.fixed header.alt-nav .logo {
		position: fixed;
		z-index: 9999;
		top: 0px;
	}
	
	body.fixed header.alt-nav p.contact_links {
		position: fixed;
		z-index: 9999;
		top: 83px;
	}

	header.alt-nav .topbar {
		z-index: 9999;
		position: fixed;
		height: 0px;
		display: none;
		overflow: hidden;
	}

	header.alt-nav .menu-button {
		position: fixed;
		top: 15px;
		right: 15px;
		margin: 5px 0 0 0px;
	}
	
	header.alt-nav.tiny .menu-button {
		opacity: 0.6;
	}

	header.alt-nav.tiny .menu-button.opened {
		opacity: 1;
	}

	header.alt-nav nav {
		position: fixed;
		top: 0px;
		left: 0px;
		right: 0px;
		bottom: 100%;
		overflow: hidden;
	}

	header.alt-nav nav.active {
		position: fixed;
		top: 0px;
		bottom: 0px;
		left: 0px;
		right: 0px;
		background-color: white;
		z-index: 999;
		border-radius: 0;
	}

	header.alt-nav nav.active .menu-main-menu-container {
		position: fixed;
		top: 124px;
		left: 0px;
		right: 0px;
		bottom: 0px;
		overflow: scroll;
		padding-bottom: 100px;
		z-index: 9992;
		background-color: #00719D;
	}
	
	header.alt-nav .flexnav-show {
		border-top: 1px solid #282828;
	}
	
	header.alt-nav .flexnav li a {
		color: white;
		border-bottom: 1px solid #282828;
	}
	
	header.alt-nav .flexnav li ul li a {
        background-color: #4b4c4d;
	}
	
	header.alt-nav .flexnav li a:hover, header.alt-nav .flexnav li a:focus {
		color: white;
		background-color: #282828;
	}
	
	header.alt-nav .topbar.show {
		display: none;
		height: auto !important;
		bottom: 0px;
	}

	header.alt-nav .topbar .search-form, header.alt-nav .topbar .site-description {
		display: none;
	}

	header.alt-nav .topbar.show .social_icons {
		margin: auto;
		float: none;
		display: table;
	}

	header.alt-nav .topbar.show .social_icons .icon i {
		margin: 10px 10px;
		padding: 0px;
	}

	header.alt-nav .topbar.show .phonenumber {
		float: none;
		margin: auto;
		display: table;
		font-size: 19px;
		line-height: 19px;
	}

	header.alt-nav .topbar.show .phonenumber i {
		font-size: 17px;
	}

	
}