﻿.clear{clear:both;}

/***** Start of primary nav ******/
#menu-button{display: none;}
nav.mobile {display:none;}

nav.primary, nav.primary ul {
	position:relative;width:100%;padding:0;margin:0;
	display:flex; flex-direction: row; justify-content: flex-end; align-items: stretch; 
}
nav.primary ul li {
	display:flex; align-items: stretch; 
	margin:0;position:relative;
	list-style-type:none; 
	width:auto;
}
nav.primary ul li a {
	color:#fff;position:relative;
	font-size:16px;
	text-decoration:none;
	display:flex; justify-content: center; align-items: center; column-gap: 6px; 
	margin:0;
	text-align:right;
	-webkit-transition:.2s ease-in;  
	-moz-transition:.2s ease-in;  
	-o-transition:.2s ease-in;  
	transition:.2s ease-in;	
	font-weight:500; letter-spacing: .5px; 
	padding:0 16px;
	cursor: pointer; 
}	
nav.primary ul li a:hover {
	/*color:#c1c4be;*/ color: #d22830;
}

nav.primary ul li a.btnclass { margin: auto 0 auto 8px; }

.desktop-dpdown-i { font-size: 10px; transition:.2s ease-in; }
nav.primary ul li a:hover .desktop-dpdown-i, nav.primary ul li:hover a .desktop-dpdown-i { color: #d22830; transform: rotateX(180deg); }

/* Appearance of the sub-level links */
nav.primary ul li li a { 
	font-size:16px;
	line-height:16px;
	padding:10px;
	color:#fff;
	background: #202020;
	text-align:right;display:flex; justify-content: flex-end; align-items: center; column-gap: 6px; 
	border-right:none;
	border-left:none;
	border-bottom: #444 solid 1px;
}
/* Appearance of the sub-level links on hover */
nav.primary ul li li a:hover { 
	background: #181818; 
}

nav.primary ul li li:first-child a { border-top-left-radius: 12px; border-top-right-radius: 12px; }
nav.primary ul li li:last-child a { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; border-bottom:none;}

/* 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% - 12px); right: 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: 1240px) {
	nav.primary ul li a { font-size: 15px; }
	nav.primary ul li a.btnclass { font-size: 16px; padding-left: 16px; padding-right: 16px; }
}

@media only screen and (max-width: 1180px) {
	nav.primary ul li a { padding: 0 14px; }
}

@media only screen and (max-width: 1150px) {
	nav.primary ul li a { font-size: 14px; }
	nav.primary ul li a.btnclass { margin-left: 6px; }
}

@media only screen and (max-width: 1100px) {
	nav.primary ul li a { padding: 0 10px; }
	nav.primary ul li a.btnclass { margin-left: 4px; }
}

/******** End of primary Nav ***************/

@media screen and (min-width: 1081px)  {
		
	.menu-toggle.exit-click{
		display: none !important;
	}
}

@media screen and (max-width: 1080px)  {
	
	.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:#fff;
		font-size: 20px;
		text-decoration: none; padding: 0 24px;
		cursor: pointer; transition: .2s ease all; 
		display: flex; justify-content: center; align-items: center; column-gap: 14px; 
	}
	#menu-button a span { font-size: 17px; }
	#menu-button a:hover { color: #d22830; }
	
	nav.mobile {
		display: block;
		position: fixed;
		top: 0;
		left: -320px;
		width: min(100%, 300px); 
		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:flex; height: 16px;
		padding: 0;
		margin:50px 0 30px 0;
		color: #999;
		font-size: 18px;
		font-weight: 400;
	}

	/* MENU CLOSE 'X' BUTTON */
	nav.mobile .menu-toggle:not(.exit-click) {
		position: absolute;
		font-family: Arial, sans-serif;
		font-size: 42px;
		line-height: 1;
		background: #222;
		color: #999; padding-top:1px;
		text-decoration: none;
		top: -38px;
		right: 13px;
		cursor: pointer; 
		display: flex; justify-content: center; align-items: center; text-align: center; width: 50px; height: 50px; 
	}
	nav.mobile .menu-toggle:not(.exit-click):hover { /* Menu close button on hoveer */
		background: #444;
		color: #fff;
	}

	/* MENU LIST STYLE */
	nav.mobile ul {
		list-style: none;
		margin:0;
		padding:0;
	}
	nav.mobile > ul {
		margin-bottom: 80px; 
	}
	nav.mobile ul li {
		border-top: 1px solid #454545;
		position:relative;
	}
	/*nav.mobile > ul > li:first-child {
		border-top: none;
	}*/
	nav.mobile > ul > li:last-child {
		border-bottom: 1px solid #454545;
	}
	nav.mobile ul li li {
		background: rgba(0, 0, 0, .2);
	}

	/* 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: 15px;
		padding: 10px;
		border-left: 4px solid rgba(0, 0, 0, 0); 
		color: #fff;
		text-decoration: none;
		text-align: left;
	}
	nav.mobile ul li a:hover {
		color: #d22830; background: rgba(0, 0, 0, .2); 
		border-left: 4px #d22830 solid; /* border highlight - Change to fit match site colors */
	}

	/* SECOND LEVEL */
	nav.mobile ul li li a {
		position: relative;
		display: flex; justify-content: flex-start; align-items: center; column-gap: 12px; min-height: 50px; 
		padding: 10px 10px 10px 18px;
		text-decoration: none;
	}
	nav.mobile ul li li a:hover {}

	/* THIRD LEVEL */
	nav.mobile ul li li li a {
		position: relative;
		display: flex; justify-content: flex-start; align-items: center; column-gap: 12px; min-height: 50px; 
		padding: 10px 10px 10px 31px;
		text-decoration: none;
		border-left: 4px #555 solid;
	}
	nav.mobile ul li li li a:hover {}

	nav.mobile ul li .click.open i{
		transform: rotateX(180deg); color: #d22830; 
	}

	.nav-footer {
		color:#777; 
		position:relative; 
		text-align:center; 
		font-size:14px; 
		line-height:16px; 
		padding:15px 0;
	}
}

@media only screen and (max-width: 480px) {
	#menu-button, #menu-button a { width: 100%; }
}