﻿.clear{clear:both;}

/***** Start of primary nav ******/
#menu-button{display: none;}
nav.mobile {display:none;}

nav.primary { padding:0; position: relative; display:flex; justify-content: flex-start; align-items: stretch; margin:0; width:100%;}
nav.primary ul { margin:0;  padding:0; position: relative; display:flex; justify-content: flex-start; align-items: stretch; }
nav.primary ul li { position: relative; display:flex; justify-content: center; align-items: stretch; margin:0; list-style-type:none; width:auto;}
nav.primary ul li a {
	color:#ddd;
	font-size:17px;
	text-decoration:none;
	display:flex; justify-content: center; align-items: center; column-gap: 10px; 
	margin:0;
	text-align:center;
	-webkit-transition:.4s ease-in;  
	-moz-transition:.2s ease-in;  
	-o-transition:.2s ease-in;  
	transition:.2s ease-in;	
	font-weight:500;
	padding:0 24px;
	cursor: pointer; 
}	
nav.primary ul li a:hover {
	color:#f2d06b;
}
nav.primary > ul > li > a > i.dpdownicon { font-size: 10px; transition: .25s ease all; }
nav.primary > ul > li:hover > a > i.dpdownicon { color: #f2d06b; transform: rotateZ(180deg); }

.homepage .is-homepage-link, 
.invpage .is-invpage-link, 
.faqpage .is-faqpage-link, 
.aboutpage .is-aboutpage-link, 
.contactpage .is-contactpage-link, 
.homepage .is-homepage-link:hover, 
.invpage .is-invpage-link:hover, 
.faqpage .is-faqpage-link:hover, 
.aboutpage .is-aboutpage-link:hover, 
.contactpage .is-contactpage-link:hover { color: #fff; }

.is-homepage-link:before, 
.is-invpage-link:before, 
.is-faqpage-link:before, 
.is-aboutpage-link:before, 
.is-contactpage-link:before { position: absolute; content: ""; left: 50%; transform: translateX(-50%); bottom: 20px; width: 0px; max-width: calc(100% - 20px); height: 2px; background: #f2d06b; transition: .15s ease all; opacity: 0; }

.is-homepage-link:hover:before, 
.is-invpage-link:hover:before, 
.is-faqpage-link:hover:before, 
.is-aboutpage-link:hover:before, 
.is-contactpage-link:hover:before { width: 100%; opacity: 1; transition: .3s ease all; }

.homepage .is-homepage-link:before, 
.invpage .is-invpage-link:before, 
.faqpage .is-faqpage-link:before, 
.aboutpage .is-aboutpage-link:before, 
.contactpage .is-contactpage-link:before { background: #fff; width: 100%; opacity: 1; transition: .3s ease all; }

.homepage .is-homepage-link:hover:before, 
.invpage .is-invpage-link:hover:before, 
.faqpage .is-faqpage-link:hover:before, 
.aboutpage .is-aboutpage-link:hover:before, 
.contactpage .is-contactpage-link:hover:before { opacity: 1; }

/* Appearance of the sub-level links */
nav.primary ul li li a { 
	font-size:16px;
	line-height:16px;
	padding:10px;
	color:#fff;
	background: #1b1b1b;
	text-align:left; justify-content: flex-start; 
	border-right:none;
	border-left:none;
	border-bottom: #303030 solid 1px;
}
nav.primary ul li li:first-child a { border-top-left-radius: 8px; border-top-right-radius: 8px; }
nav.primary ul li li:last-child a { border-bottom: none; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
/* Appearance of the sub-level links on hover */
nav.primary ul li li a:hover { 
	background: #f29441; color: #000; 
}

/* 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: calc(100% - 8px); left: 0; 
	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: 200px;
    position: relative;
    margin:0;
	display: block;
}

@media only screen and (max-width: 1220px) {
	nav.primary ul li a { padding: 0 20px; }
	.is-homepage-link:before, .is-invpage-link:before, .is-faqpage-link:before, .is-aboutpage-link:before, .is-contactpage-link:before { max-width: calc(100% - 12px); }
}

@media only screen and (max-width: 1120px) {
	nav.primary ul li a { padding: 0 16px; }
	.is-homepage-link:before, .is-invpage-link:before, .is-faqpage-link:before, .is-aboutpage-link:before, .is-contactpage-link:before { max-width: calc(100% - 6px); }
}

/******** End of primary Nav ***************/

@media screen and (min-width: 1141px) {
	.menu-toggle.exit-click { display: none !important; }
}

@media screen and (max-width: 1140px) {
	.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; align-items: stretch; 
		position: relative;
		z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	}
	#menu-button a {
		color:#ddd; display: flex; justify-content: center; align-items: center; column-gap: 10px; padding: 0 24px;
		font-size: 20px;
		text-decoration: none;
		cursor: pointer; 
	-webkit-transition:.4s ease-in;  
	-moz-transition:.2s ease-in;  
	-o-transition:.2s ease-in;  
	transition:.2s ease-in;	
	}
	#menu-button a span { font-size: 17px; text-align: left; }
	#menu-button a:hover {color:#f2d06b;}

	#menu-button a:before { position: absolute; content: ""; left: 50%; transform: translateX(-50%); bottom: 20px; width: 0px; max-width: calc(100% - 20px); height: 2px; background: #f2d06b; transition: .15s ease all; opacity: 0; }

	#menu-button a:hover:before { width: 100%; opacity: 1; transition: .3s ease all; }
	
	nav.mobile {
		display: block;
		position: fixed;
		top: 0;
		left: -340px;
		width: min(100%, 320px);
		height: 100%;
		background: #000;
		z-index: 500; /* needs to be higher than #menu-button, adjust as needed */
		overflow:auto;
	}

	/* MENU HEADER STYLES */
	nav.mobile .mobile_top {
		position: relative;
		display:flex; height: 14px; 
		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;
		display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; 
		font-family: Arial, sans-serif;
		font-size: 36px;
		line-height: 1;
		background: #d9d9d9;
		color: #000;
		text-decoration: none;
		top: -38px;
		right: 13px;
		cursor: pointer; 
	}
	nav.mobile .menu-toggle:not(.exit-click):hover { /* Menu close button on hoveer */
		background: #f29441;
		color: #000;
	}

	/* MENU LIST STYLE */
	nav.mobile ul {
		list-style: none;
		margin:0;
		padding:0;
	}
	nav.mobile ul li {
		border-bottom: 1px solid #303030;
		position:relative;
	}
	nav.mobile ul ul li:last-child {
		border-bottom: none;
	}

	/* FIRST LEVEL */
	nav.mobile ul li a {
		position: relative;
		cursor: pointer; 
		display: flex; justify-content: flex-start; align-items: center; column-gap: 12px; min-height: 50px; 
		font-size: 17px;
		padding: 10px;
		color: #fff;
		text-decoration: none;
		text-align: left;
	}
	nav.mobile ul li a:hover {
		color: #000; background: #f29441;
	}

	/* SECOND LEVEL */
	nav.mobile ul li li a {
		background: #1b1b1b;
		position: relative;
		display: flex; justify-content: flex-start; align-items: center; column-gap: 12px; min-height: 50px;  
		padding: 10px 10px 10px 15px;
		color: #fff;
		text-decoration: none;
	}
	nav.mobile ul li li a:hover {}

	/* THIRD LEVEL */
	nav.mobile ul li li li a {
		background: #222;
		position: relative;
		display: flex; justify-content: flex-start; align-items: center; column-gap: 12px; min-height: 50px; 
		padding: 10px 10px 10px 25px;
		color: #fff;
		text-decoration: none;
	}
	nav.mobile ul li li li a:hover {}

	nav.mobile ul li .click.open i:before{
		content: "\f068";
	}

	.nav-footer {
		color:#777; 
		position:relative; 
		text-align:center; 
		font-size:14px; 
		line-height:16px; 
		padding:15px 0;
	}
}

@media only screen and (max-width: 650px) {
	#menu-button { justify-content: flex-end; }
	#menu-button a span { display: none!important; }
}