
nav.mobile { display:none;}

.pull-right ul.mega-menu{
	justify-content: flex-end;
}
.text-center ul.mega-menu{
	justify-content: center;
}
.pull-left ul.mega-menu{
	justify-content: flex-start;
}
.justify ul.mega-menu{
	justify-content: space-around;
}

ul.mega-menu > li > a{
	
    position: relative;
    display: block;

    padding: 10px 0 5px 0;
    margin: 0 15px 20px;
	
	color: #595959 !important;
	font-family: BaRossSans, sans-serif;
	font-weight: 600;
	background: none !important;   
	text-decoration: none;
	font-size: 18px;
	border-bottom: #fff dotted 2px;
}
ul.mega-menu >li:focus > a, ul.mega-menu >li:hover > a, ul.mega-menu >li:active > a{

	border-bottom: #263f4f dotted 2px;
	color: #263f4f !important;
}

ul.mega-menu{
	position: initial;
	width: 100%;
	display: flex !important;
	flex-direction: row;
	margin-right: 0 !important;
}
ul.mega-menu > li{
	position: initial !important;
	width: auto !important;
	font-size: 18px;
}
ul.mega-menu > li > ul{
	position: absolute;
	left: 0;
	padding: 10px;
	box-sizing: border-box;
	
	background: #263f4f !important;
	color: #fff !important;
	
	opacity: 0;
	transform: translateY(-10px);
	transform-origin: top;
	pointer-events: none;
	transition: ease all 0.3s;
	z-index: 1000;
}
ul.mega-menu > li.mega-dropdown > ul{
	padding: 0 ;
}
ul.mega-menu > li:not(.mega-dropdown){
	position: relative !important;
}
ul.mega-menu > li:not(.mega-dropdown) > ul{
	width: 220px;
	display: flex ;
	flex-direction: column;
}
ul.mega-menu > li.mega-dropdown > ul{
	right: 0;
	width: 100%;
	margin: 0 auto;
	display: flex;	
	font-size: 18px;
	
	margin-left: 0;
    margin-right: -7%;
    width: 106.8%;
}
#menu-secondary > li > ul {
	flex-direction: column;
}

ul.mega-menu > li.mega-dropdown > ul .mega-foot{
	right: 0;
	left: 0;
	bottom: 0;
	position: absolute;
	width: 100%;
	display: flex;	
	justify-content: space-around;
	font-size: 18px;
	background: none !important;
}
ul.mega-menu > li.mega-dropdown > ul .mega-foot > ul{
	width: 100%;
	display: flex;	
	padding: 10px;
	background: url('/wp-content/themes/www.chadwick-baross.com/images/bg-dark-texture.jpg') center center fixed !important;
	-moz-background-size: cover;
	-o-background-size: cover;
	-webkit-background-size: cover;
	background-size: cover;
}
ul.mega-menu > li.mega-dropdown > ul .mega-foot > a{
	display: none !important;
}
ul.mega-menu > li.mega-dropdown > ul .mega-foot > ul li a{
	color: #fff !important;
    border: solid 1px #fff;
    border-radius: 4px;
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    padding: 14px;
    text-align: center;
	left: 0 !important;
	background: #000;
}
ul.mega-menu > li.mega-dropdown > ul .mega-foot > ul li a:hover{
	background: #263f4f !important;
}
ul.mega-menu > li.mega-dropdown > ul .mega-foot > ul li a:before{
	content: none !important;
}
ul.mega-menu > li.mega-dropdown > ul .mega-foot > ul li{
	width: 16.6667%;
}


ul.mega-menu > li.mega-dropdown > ul > li{
	width: 100%;
	background: url("/wp-content/themes/www.chadwick-baross.com/images/bg-light-texture-alt-offwhite.jpg") left center;
	-moz-background-size: 2000px auto;
	-o-background-size: 2000px auto;
	-webkit-background-size: 2000px auto;
	background-size: 2000px auto;
	
	-moz-background-repeat: repeat;
	-o-background-repeat: repeat;
	-webkit-background-repeat: repeat;
	background-repeat: repeat;
}
ul.mega-menu > li.mega-dropdown > ul > li > ul{

	padding: 10px 0 40px;
}
ul.mega-menu > li.mega-dropdown > ul > li:nth-of-type(odd){
	background: url("/wp-content/themes/www.chadwick-baross.com/images/bg-light-texture-alt.jpg") left center;
	-moz-background-size: 2000px auto;
	-o-background-size: 2000px auto;
	-webkit-background-size: 2000px auto;
	background-size: 2000px auto;
	
	-moz-background-repeat: repeat;
	-o-background-repeat: repeat;
	-webkit-background-repeat: repeat;
	background-repeat: repeat;
}


ul.mega-menu > li.mega-dropdown > ul > li:last-of-type{
	border-right: none;
}
ul.mega-menu > li.mega-dropdown > ul > li > a{
	font-weight: bold;
	text-transform: uppercase;
	font-size: 18px;
	font-family: ChadwickGrunge, sans-serif;
	background: #263f4f !important;
	color: #fff !important;
	padding: 20px 15px;
	transition: ease all 0.2s;
}
ul.mega-menu > li.mega-dropdown > ul > li > a:hover, ul.mega-menu > li.mega-dropdown > ul > li:hover > a, ul.mega-menu > li.mega-dropdown > ul > li:focus > a, ul.mega-menu > li.mega-dropdown > ul > li:active > a{
	color: #fff !important;
	background: #000 !important;
}
ul.mega-menu > li.mega-dropdown > ul > li li > a{
	font-weight: 600;
	font-size: 18px;
	color: #000 !important;
	font-family: BaRossSans, sans-serif;
	left: 0;
	position: relative;
	transition: ease all 0.2s;
}
ul.mega-menu > li.mega-dropdown > ul > li li a:hover{
	background: none !important;
	left: 5px;
}
ul.mega-menu > li.mega-dropdown > ul > li li a:before{
    position: absolute;
    content: '';
    top: 11px;
    bottom: 11px;
    left: 12px;
    width: 4px;
    background: #263f4f;
	opacity: 0;
	transition: ease-in-out all 0.2s;
}
ul.mega-menu > li.mega-dropdown > ul > li li a:hover:before{
    left: 6px;
	opacity: 1;
}


ul.mega-menu > li:hover > ul{
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}
#menu-secondary.mega-menu > li > a{
	color: #595959 !important;
	font-weight: 600;
}
#menu-secondary.mega-menu > li > ul a{
	color: #fff !important;
	font-weight: 600;
	font-family: BaRossSans, sans-serif;
	background: none !important;
}
#menu-secondary.mega-menu li.nav-cta > a{
	background: #263f4f !important;
	color: #fff !important;
	border-bottom: none !important;
	padding: 10px 20px;
	border-radius: 5px;
	position: relative;
	margin-left: 30px;
	transition: ease all 0.2s;
}
#menu-secondary.mega-menu li.nav-cta > a:hover{
	background: #000 !important;
}
#menu-secondary.mega-menu li.nav-cta > a:before{
    content: '';
    border-left: #d5d6da dotted 2px;
    margin: 0 16px;
    left: -32px;
    top: 0;
    bottom: 0;
    position: absolute;
	pointer-events: none;
}


ul.mega-menu > li:not(.mega-dropdown) > ul > li a{
	font-weight: 600;
	font-size: 18px;
	color: #fff !important;
	font-family: BaRossSans, sans-serif;
	left: 0;
	position: relative;
	width: 100%;
	transition: ease all 0.2s;
}
ul.mega-menu > li:not(.mega-dropdown) > ul > li a:hover{
	background: none !important;
	left: 5px;
}
ul.mega-menu > li:not(.mega-dropdown) > ul > li a:hover:before {
    left: 6px;
    opacity: 1;
}
ul.mega-menu > li:not(.mega-dropdown) > ul > li a:before {
    position: absolute;
    content: '';
    top: 11px;
    bottom: 12px;
    left: 12px;
    width: 4px;
    background: #d5d6da;
    opacity: 0;
    transition: ease-in-out all 0.2s;
}
/* #menu-primary li:nth-of-type(2) > ul.mega-dropdown > li {
	width: 16.66666666%;
}

#menu-primary li:nth-of-type(5) > ul, #menu-primary li:nth-of-type(6) > ul, #menu-primary li:nth-of-type(7) > ul {
	display: flex ;
	flex-direction: column;
}

#menu-primary > li:nth-of-type(2) > ul > li > ul {
	display: flex ;
	flex-direction: column;
}
#menu-primary > li:nth-of-type(2) > ul > li > ul {
	padding: 10px;
}
#menu-primary > li:nth-of-type(2) > ul > li > a {
	display: block;
}
#menu-primary > li:nth-of-type(2) > ul {
	width: 95%;
	margin-left: 5%;
}
*/

@media screen and (max-width: 1400px)  {

	ul.mega-menu > li.mega-dropdown > ul > li > a{
		font-size: 14px;
	}
	
}

@media screen and (max-width: 1280px)  {

	ul.mega-menu > li.mega-dropdown > ul{
		margin-left: -6.8%;
		margin-right: -6.8%;
		width: 113.6%;
	}
	
}


@media screen and (min-width: 1024px)  {
	#menu-button{
		display: none !important;
	}
	.show-mobile{
		display: none !important;
	}	
	.menu-toggle.exit-click{
		display: none !important;
	}
}
@media screen and (max-width: 1023px)  {

	ul.mega-menu{display: none !important;}
	.mobile .navbar-right{
		float: none !important;
	}	
	
	
	.mobile:not(.open) + .menu-toggle.exit-click{
		display: none;
	}
	.mobile.open + .menu-toggle.exit-click{
		position: fixed !important;
		top: 0 !important;
		left: 250px !important;
		right: 0 !important;
		bottom: 0 !important;
		z-index: 1000;
	}
/*==============================
	Mobile Nav Styles			
================================*/	
#menu-button{ 
	display: inline-block;
	font-size: 24px;
	line-height:60px; 
	z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	text-align: right;
	padding: 0 0 0 34px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
        right: 0;
	}
	#menu-button a{
		color: #000;
		text-decoration: none;
		padding: 0;
		font-weight: normal;
		transform: scaleX(2);
		display: block;
	  }
nav.mobile {
	display:block;
	position: fixed;
	top: 0;
	left: -250px;
	width: 250px;
	height: 100%;
	background: #263f4f;
	z-index: 2000; /* needs to be higher than #menu-button, adjust as needed */
	overflow:auto;
	font-family: 'BaRossSans', sans-serif;
}
/* MENU HEADER SOCIAL MEDIA */
	nav.mobile .social-media {
		position: relative;
		text-decoration: none;
		display: inline-block;
		font-size:16px;
		word-spacing:13px;
		padding:0 0 0 15px;
		color: #ccc !important;
	}
	
	nav.mobile .social-media a:link, nav.mobile .social-media a:visited {color:#ccc; text-decoration:none;}
	nav.mobile .social-media a:hover, nav.mobile .social-media a:active {color:#fff; text-decoration:underline;}

/* 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;
	color: #999;
	text-decoration: none;
	top:-38px;
	right:13px;
}
nav.mobile .menu-toggle:hover { /* Menu close button on hoveer */
	color: #fff;
}

/* MENU LIST STYLE */
nav.mobile ul {
	list-style: none;
	font-weight: 300;
	margin:0;
	padding:0;
}
nav.mobile ul li {
	position:relative !important;
}

/* FIRST LEVEL */
nav.mobile ul li a {
	position: relative;
	display: block;
	font-size:15px;
	padding: 20px;
	color: #fff;
	text-decoration: none;
	text-align: left;
	font-weight: 600;
}
nav.mobile ul li a:hover {
	background: #263f4f; 
	color: #fff; 
}

/* SECOND LEVEL */
nav.mobile ul li li:last-child {border:none;}
nav.mobile ul li li a {
	background: rgba(0,0,0,0.5);
	position: relative;
	display: block;
	padding: 20px 20px 20px 30px;
	color: #fff;
	text-decoration: none;
}
nav.mobile ul li li a:hover {background:rgba(65,65,65,0.5);}

/* THIRD LEVEL */
nav.mobile ul li li li:last-child {border:none;}
nav.mobile ul li li li a {
	background: rgba(0,0,0,0.75);
	position: relative;
	display: block;
	padding: 20px 20px 20px 45px;
	color: #fff;
	text-decoration: none;
}
nav.mobile ul li li li a:hover {background:rgba(65,65,65,0.5);}


nav.mobile ul li .click{/* dropdown menu idicator arrow be sure to include this image with your image files */ 
	cursor:pointer;
	z-index: 12399994;
	top:0;
	right:0;
	width:auto;
	height:auto;
    padding: 20px;
    color: #d5d6da;
    position: absolute;

}

.nav-footer {color:rgba(255,255,255,0.5); position:relative; text-align:center; font-size:14px; line-height:16px; padding:15px 0;}

/* 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;
}


}