﻿
/***** Start of primary nav ******/
#menu-button{display: none;}
nav.mobile { display:none;}

nav.primary {
	padding:0px;
	display:inline-block;
	margin: 0;
	position:relative;
    width:calc(100% - 80px); padding-left:100px;
	}
	nav.primary ul {
		margin:0; 
		padding:0;
		display:flex; 
        flex-direction:row;
        justify-content: space-around;
        padding-top:20px;
		}
		nav.primary ul li {
			display:inline-block;
			margin:0;
			list-style-type:none; 
			width:auto;
			position:relative;
			}

				nav.primary ul li a {
    color: #012d62;
    opacity: 1;
    outline: 0;
    font-size: 18px !important;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    display: inline-block;
    text-align: center;
    line-height: 30px;
    font-weight: 600;
    background: #012d62;
    width: 100%;
    height: 100%;
    font-family: 'segoe-ui', sans-serif;
    border-radius: 40px; /* Rounded pill shape */
    overflow: hidden; /* Clip pseudo-elements inside rounded shape */
    box-sizing: border-box;
    padding: 0 20px;

    &:hover {
        &:after {
            opacity: 1;
            transform: translateY(0) rotateX(0) scale(1.05); /* Slight grow */
        }
        &:before {
            opacity: 0;
            transform:  scale(0.5); /* Slight shrink */
        }
    }

    &:after {
        bottom: 0;
        left: 0;
        opacity: 0;
        width: 100%;
        height: 100%;
        color: #012d62;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.5s ease, opacity 0.5s ease;
        position: absolute;
        background: #fff;
        content: attr(data-back);
        transform: translateY(50%) rotateX(90deg) scale(1);
        transform-origin: center bottom;
        border-radius: 40px;
        box-sizing: border-box;
    }

    &:before {
        bottom: 0;
        left: 0;
        opacity: 1;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
        line-height: 30px;
        transition: transform 0.5s ease, opacity 0.5s ease;
        position: relative;
        background: transparent;
        content: attr(data-front);
        transform: translateY(0) rotateX(0) scale(1);
        transform-origin: center bottom;
        border-radius: 40px;
        box-sizing: border-box;
    }
}
	
			/* Appearance of the sub-level links */
			nav.primary ul li li a { 
				font-size:13px;
				letter-spacing: .2px;
				line-height:24px;
				padding:7px 10px;
				color:#fff;
				background-color: #494848;
				text-align:left;
				transition:.4s ease;
			}
			/* Appearance of the sub-level links on hover */
			nav.primary ul li li a:hover { 
				color:#4b4b4b;
				background-color:#fff;
			}
/* This controls the Primary nav dropdowns for sublinks. Should not have to edit this too muuch */
nav.primary ul ul {
    display: none;
    position: absolute; 
}
nav.primary ul ul ul {
    position: absolute; 
    left: 100%;
    top:0; 
}
nav.primary ul li:hover > ul {  
    display: block;
    line-height:18px; 
    z-index: 1000;
}
nav.primary ul ul li {
    float: none; 
	width: 220px;
    position: relative;
    margin:0;
	display: block;
}


/** drop down btns**/
.drop-down a:hover{
	color:#fff!important;
	background-color:#D36D08!important;
}




/******** End of primary Nav ***************/

@media screen and (max-width: 1356px)  {

/*==============================
	Mobile Nav Styles			
================================*/	
nav.primary{display:none;}
#menu-button{ 
	width: 100px;
	display: inline-block;
	font-size: 24px;
    float:right;
	position: relative;
	line-height:50px; 
	z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	box-sizing:border-box;
	}
	#menu-button a{
		 color:#fff;
		 text-decoration: none;
		 padding:10px 10px 0 0; 
		 font-weight:normal;
		line-height:50px;
		height: 100%;
    display: flex;
    justify-content: center;
    width: 100px;
    margin: 0 auto;
	  }
nav.mobile {
	display:block;
	position: fixed;
	top: 0;
	left: -250px;
	width: 250px;
	height: 100%;
	background: #012d62;
	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: #fff;
	font-size: 18px;
	font-weight: 400;
}

/* MENU CLOSE 'X' BUTTON */
nav.mobile .menu-toggle {
	position: absolute;
	padding: 3px 8px 3px;
	font-family: 'segoe-ui', sans-serif;
	font-size:24px;
	font-weight: bold;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	right:13px;
}
nav.mobile .menu-toggle:hover { /* Menu close button on hoveer */
	color: #fff;
}
	.menu-title{color:#fff;}
	.mobile p{padding:10px;}
/* MENU LIST STYLE */
nav.mobile ul {
	list-style: none;
	font-weight: 300;
	margin:0;
	padding:0;
}
nav.mobile ul li {
	border-top: 1px solid #033877;
	border-bottom: 1px solid #022651;
	position:relative;
}

/* FIRST LEVEL */
nav.mobile ul li a {
	position: relative;
	display: block;
	font-size:15px;
	padding: 10px;
	color: #fff;
	text-decoration: none;
	text-align: left;
}
nav.mobile ul li a:hover {
	background:#022651; 
	color: #fff; 
}

/* SECOND LEVEL */
nav.mobile ul li li:last-child {border:none;}
nav.mobile ul li li a {
	background: #444;
	position: relative;
	display: block;
	padding: 10px 10px 10px 15px;
	border-left:4px #444 solid;
	color: #ccc;
	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: #555;
	position: relative;
	display: block;
	padding: 10px 10px 10px 25px;
	color: #ccc;
	text-decoration: none;
	border-left:4px #555 solid;
}
nav.mobile ul li li li a:hover {background:rgba(85,85,85,0.5);}


}

