﻿.clear{clear:both;}

/***** Start of primary nav ******/
#menu-button{display: none;}
nav.mobile {display:none;}

nav.primary {
	padding:0; pointer-events: all; 
	display:flex; justify-content: flex-end; align-items: stretch; 
	margin:0;
	width:100%;
	position:relative;
}
nav.primary ul {
	margin:0; pointer-events: all; 
	padding:0;
	width: 100%; position: relative; 
	display:flex; justify-content: space-between; align-items: stretch; 
}
nav.primary ul li {
	display:flex; justify-content: center; align-items: stretch; 
	margin:0; position: relative; 
	list-style-type:none; 
	width:auto;pointer-events: all; 
}
nav.primary ul li a {
	font-family: 'bai-jamjuree', sans-serif; pointer-events: all; 
	color:#000; position: relative;  
	font-size:16px;
	text-decoration:none;
	display:flex; justify-content: center; align-items: center; 
	margin:0;
	text-align:center;
	text-transform:uppercase;
	-webkit-transition:.25s ease-in;  
	-moz-transition:.25s ease-in;  
	-o-transition:.25s ease-in;  
	transition:.25s ease-in;	
	font-weight:400;
	padding:0 40px;
}	
nav.primary ul li a:hover {
	color: #245812; background: #f2f2f2;
}
nav.primary ul li a:hover:before, nav.primary ul li a:hover:after {
	left: 28px; right: 28px; 
}
/* Appearance of the sub-level links */
nav.primary ul li li a { 
	display:flex; justify-content: flex-end; align-items: center; 
	font-size:16px;
	line-height:16px;
	padding:14px;
	color:#fff;
	background: #181818;
	text-align:right;
	border-right:none;
	border-left:none;
	border-bottom: #303030 solid 1px;
}
/* Appearance of the sub-level links on hover */
nav.primary ul li li a:hover { 
	color:#fff;
	background: #123a0a;
}

/* This controls the Primary nav dropdowns for sublinks. Should not have to edit this too muuch */
nav.primary ul ul {
    display: none;
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);  
	width: unset;
}
nav.primary ul ul ul {
    position: absolute; 
    left: 100%;
    top:0; 
}
nav.primary ul li:hover > ul {  
    display: block;
    line-height:18px; 
    z-index: 100;
}
nav.primary ul ul li {
    float: none; 
	width: 190px;
    position: relative;
    margin:0;
	display: block;
}
@media only screen and (max-width: 1430px) {
	nav.primary ul li { flex-grow: 1; }
	nav.primary ul li a { padding: 0 12px; flex-grow: 1; }
}
@media only screen and (max-width: 1250px) {
	nav.primary ul li { flex-grow: 1; }
	nav.primary ul li a { padding: 0 12px; flex-grow: 1; }
}

@media only screen and (max-width: 1150px) {
	nav.primary ul li { flex-grow: 1; }
	nav.primary ul li a { padding: 0 12px; flex-grow: 1; }
}

/******** End of primary Nav ***************/

@media screen and (min-width: 1001px)  {
		
	.menu-toggle.exit-click{
		display: none !important;
	}
}

@media screen and (max-width: 1000px)  {
	
	.mobile + .menu-toggle.exit-click{
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		z-index: 499;
		pointer-events: none;
		background: rgba(36,32,33,0.33);
		opacity: 0;	
		transition: ease opacity 0.3s;
	}
	.mobile.open + .menu-toggle.exit-click{
		pointer-events: auto;
		opacity: 1;
		-webkit-backdrop-filter: blur(4px);
		backdrop-filter: blur(4px);
	}
/*==============================
	Mobile Nav Styles			
================================*/	
	nav.primary{display:none;} 
	
	#menu-button { 
		display: flex; justify-content: flex-end; align-items: stretch; 
		position: relative;
		z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	}
	#menu-button a {
		color:#000; 
		font-size: 24px;
		text-decoration: none;
		font-family: 'bai-jamjuree', sans-serif; pointer-events: all; 
	position: relative;  
	display:flex; justify-content: center; align-items: center; column-gap: 12px; 
	
	-webkit-transition:.25s ease-in;  
	-moz-transition:.25s ease-in;  
	-o-transition:.25s ease-in;  
	transition:.25s ease-in;	
	padding:0 3vw;
	}
	#menu-button a span {
		font-family: 'bai-jamjuree', sans-serif; font-size:16px; text-align: right;	font-weight:400;text-transform:uppercase;

	}
	#menu-button a:hover {
		color: #245812; background: #f2f2f2; cursor: pointer; 
	}
	
	nav.mobile {
		display: block;
		position: fixed;
		top: 0;
		left: -300px;
		width: min(100%, 300px);
		height: 100%;
		background: #181818;
		z-index: 500; /* needs to be higher than #menu-button, adjust as needed */
		overflow:auto;
		pointer-events: all; 
	}

	/* MENU HEADER STYLES */
	nav.mobile .mobile_top {
		position: relative;
		display:block;
		padding: 0;
		margin:50px 0 10px 0;
		color: #999;
		font-size: 18px;
		font-weight: 400;
	}

	/* MENU CLOSE 'X' BUTTON */
	nav.mobile .menu-toggle:not(.exit-click) {
		position: absolute;
		padding: 3px 8px 3px;
		font-family: Arial, sans-serif;
		font-size: 24px;
		font-weight: bold;
		line-height: 1;
		background: #222;
		color: #999;
		text-decoration: none;
		top: -38px;
		right: 13px;
		cursor: pointer; 
	}
	nav.mobile .menu-toggle:not(.exit-click):hover { /* Menu close button on hoveer */
		background: #000;
		color: #fff;
	}

	/* MENU LIST STYLE */
	nav.mobile ul {
		list-style: none;
		margin:0;
		padding:0;
	}
	nav.mobile ul li {
		border-top: 1px solid #454545;
		border-bottom: 1px solid #151515;
		position:relative;
	}
	nav.mobile > ul > li:first-child {
		border-top: none;
	}
	nav.mobile ul li:last-child {
		border-bottom: none;
	}

	/* FIRST LEVEL */
	nav.mobile ul li a {
		position: relative; cursor: pointer; 
		display: flex; justify-content: space-between; align-items: center; min-height: 50px; 
		font-family: 'bai-jamjuree', sans-serif; 
		font-size: 16px; text-transform: uppercase; 
		padding: 10px 14px 10px 10px;
		color: #ccc;
		text-decoration: none;
		border-left: 4px #181818 solid;
		text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
		text-align: left;
	}
	nav.mobile ul li a:hover {
		background: #101010; 
		color: #4baf1d; 
		border-left: 4px #4baf1d solid; /* border highlight - Change to fit match site colors */
	}

	/* SECOND LEVEL */

	nav.mobile ul li li a {
		background: #222;
		position: relative;
		display: flex; justify-content: space-between; align-items: center; min-height: 50px; 
		padding: 10px 14px 10px 15px;
		border-left:4px #222 solid;
		color: #ccc;
		text-decoration: none;
	}
	nav.mobile ul li li a:hover {}

	/* THIRD LEVEL */
	nav.mobile ul li li li a {
		background: #282828;
		position: relative;
		display: flex; justify-content: space-between; align-items: center; min-height: 50px; 
		padding: 10px 14px 10px 25px;
		color: #ccc;
		text-decoration: none;
		border-left: 4px #282828 solid;
	}
	nav.mobile ul li li li a:hover {}

	nav.mobile ul li .click.open i:before{
		content: "\f068";
	}

	.nav-footer {
		color:#aaa; font-family: 'bai-jamjuree', sans-serif; text-transform: uppercase; 
		position:relative; 
		text-align:center; 
		font-size:14px; 
		line-height:16px; letter-spacing: 2px;
		padding:20px 12px;
	}

	/* FONT AWESOME ICONS */
	nav.mobile ul li a .fa{
		width:25px;
		font-weight:100;
		padding:8px 3px;
		margin:0 6px 0 0;
		text-align:center;
		background:#292929;
		-webkit-border-radius: 30px;
		-moz-border-radius: 30px;
		border-radius: 30px;
		text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
	}


	nav.mobile ul li .fa-chevron-down {color:#999;}
}

@media only screen and (max-width: 650px) {
	#menu-button a { padding: 0 5vw; }
}