﻿.clear{clear:both;}

/***** Start of primary nav ******/
#menu-button{display: none;}
nav.mobile {display:none;}

nav.primary {
	padding:0;
	display:flex;justify-content: flex-start; align-items: stretch; 
	margin:0;
	width:100%;
	position:relative;
}
nav.primary ul {
	display:flex;justify-content: flex-start; align-items: stretch; 
	margin:0; 
	padding:0;
}
nav.primary ul li {
	display:flex;justify-content: center; align-items: stretch; 
	position: relative; 
	margin:0;
	list-style-type:none; 
	width:auto;
}
nav.primary ul li a {
	color:#fff;
	font-size:16px;
	text-decoration:none;
	display:flex; justify-content: center; align-items: center; 
	margin:0;
	text-align:center;
	-webkit-transition:.25s ease-in;  
	-moz-transition:.25s ease-in;  
	-o-transition:.25s ease-in;  
	transition:.25s ease-in;	
	font-weight:500; column-gap: 8px; 
	padding:0 12px;
	font-family: "overpass-variable", sans-serif; 
	font-variation-settings: "wght" 600; letter-spacing: .25px; 
}	
nav.primary ul li a i { font-size: 11px; }
nav.primary ul li a:hover {
	color:#b5caf2;
}
/* Appearance of the sub-level links */
nav.primary ul li li a { 
	font-size:16px;
	justify-content: flex-start; 
	line-height:22px;
	padding: 6px 16px; min-height: 40px; 
	color:#fff;
	text-align:left;
	border-right:none;
	border-left:none; min-width: 180px; 
	border-bottom: #363636 solid 1px;
}
/* Appearance of the sub-level links on hover */
nav.primary ul li li a:hover { 
	background: #222d41; color: #fff; 
}

nav.primary ul li li:first-of-type a { 
	border-top-left-radius: 12px; border-top-right-radius: 12px; 
}
nav.primary ul li li:last-of-type a { 
	border-bottom: none; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; 
}

/* 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% - 16px); left: -6px; 
	border-radius: 12px; background: #262626; 
	width: unset; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); 
}
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; 
    position: relative;
    margin:0;
	display: block;
}

@media only screen and (max-width: 1350px) {
	nav.primary ul li a { font-size: 15px; }
}

@media only screen and (max-width: 1300px) {
	nav.primary ul li a { padding: 0 10px; column-gap: 5px; }
}

/******** End of primary Nav ***************/

@media screen and (min-width: 1221px)  {
		
	.menu-toggle.exit-click{
		display: none !important;
	}
}

@media screen and (max-width: 1220px)  {
	
	.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: center; align-items: stretch; height: 100%;
		position: relative;
		z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	}
	#menu-button a { cursor: pointer; padding: 0 24px; min-width: 60px; column-gap: 14px; 
		color:#fff; display: flex; justify-content: center; align-items: center; 
		font-size: 25px;
		text-decoration: none; transition: .25s ease all;
	}
	
	#menu-button a span {
		font-family: "overpass-variable", sans-serif; 
	font-variation-settings: "wght" 600; letter-spacing: .25px; font-size: 20px; text-align: left; 
	}
	
	#menu-button a:hover {
		color: #b5caf2;
	}
	
	nav.mobile {
		display: block;
		position: fixed;
		top: 0;
		left: -320px;
		width: min(100%, 320px);
		height: 100%;
		background: #181818;
		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: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; cursor: pointer; 
		padding: 3px 8px 3px;
		font-family: Arial, sans-serif;
		font-size: 24px;
		font-weight: bold;
		line-height: 1;
		background: #333;
		color: #bbb;
		text-decoration: none;
		top: -38px;
		right: 13px; transition: .25s ease all; 
	}
	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 { cursor: pointer; 
		border-bottom: 1px solid #262626;
		position:relative;
	}
	nav.mobile ul li li {
		border-bottom: 1px solid #333;
	}
	nav.mobile ul li li li {
		border-bottom: 1px solid #3f3f3f;
	}
	nav.mobile ul li { cursor: pointer; 
		border-bottom: 1px solid #262626;
		position:relative;
	}
	nav.mobile > ul > li:first-of-type {
		border-top: 1px solid #262626;
	}
	nav.mobile ul li li:last-of-type {
		border-bottom: none;
	}

	/* FIRST LEVEL */
	nav.mobile ul li a {
		position: relative;
		display: flex; justify-content: space-between; align-items: center; min-height: 54px; 
		font-size: 16px;
		padding: 10px 16px 10px 12px;
		color: #ddd;
		text-decoration: none; line-height: 22px; 
		text-align: left;
		font-family: "overpass-variable", sans-serif; 
	font-variation-settings: "wght" 600; letter-spacing: .25px; transition: .25s ease all; 
	}
	nav.mobile ul li a:hover {
		background: #1f56bd; 
		color: #fff; 
	}

	/* SECOND LEVEL */
	nav.mobile ul li li a {
		background: #202020;
		position: relative;
		display: flex; justify-content: space-between; align-items: center; min-height: 54px; 
		padding: 10px 16px 10px 18px;
		color: #ddd;
		text-decoration: none;
	}
	nav.mobile ul li li a:hover {}

	/* THIRD LEVEL */
	nav.mobile ul li li li a {
		background: #303030;
		position: relative;
		display: flex; justify-content: space-between; align-items: center; min-height: 54px; 
		padding: 10px 16px 10px 25px;
		color: #ddd;
		text-decoration: none;
	}
	nav.mobile ul li li li a:hover {}
	
	nav.mobile ul li a i {
		font-size:15px; transition: .25s ease all; 
	}
	
	nav.mobile ul li .is-listed {
		display: flex; justify-content: flex-start; align-items: center; column-gap: 10px; 
	}
	nav.mobile ul li .is-listed i {
		width: 20px; text-align: center; 
		font-size: 15px; 
	}
	
	nav.mobile ul li i{
		transition: .4s ease all; 
	}
	nav.mobile ul li .click.open i{
		transform: rotateZ(-180deg);
	}

	.nav-footer {
		display: flex; flex-direction: column; align-items: center; row-gap: 12px; 
		color:#b5caf2; 
		position:relative; 
		text-align:center; 
		font-size:16px; 
		padding: 32px 12px;
		
		font-family: "overpass-variable", sans-serif; 
	font-variation-settings: "wght" 400; letter-spacing: .5px; 
	}
	
	hr.nav-footer-hr {
		width: min(75%, 180px); height: 1px; margin: 0 auto; border: none; background: #b5caf2; opacity: .5;
	}
}

@media only screen and (max-width: 650px) {
	#menu-button a span { display: none!important; }
}