/* public.css - cets-global-banner */
/* Styles for the CES "Megamenu" on the WordPress sites to replace the old fyimenu */
/* "ces-mm" is the scoping prefix for any ID styles */

/* Sizes: 1050px, 870px, 800px, 768px, 650px, 600px, 450px, 310px */


/* ********************************************** */
/* General Styles for any size window             */
/* ********************************************** */ 

/* Clearing */
.clear {
	clear: both;
}

/* so the header doesn't run over the anchor links
------------------------------------------------- */
:target {
	scroll-margin-top: 35px; 
}
.logged-in :target {
	 scroll-margin-top: 65px; 
} 

/* =MegaMenu
#ces-mm is the overall container for this project 
------------------------------------------------- */

html {
    padding-top: 30px !important;
}

#ces-mm {
	margin: 0;
	padding: 0;
	position: fixed;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color:#a50309;
	font-family: verlag, arial, helvetica, sans-serif;
	min-height: 30px;
}


/* =MenuBar 
	#ces-mm-bar is the grey bar with UWEX and CES 
	eyebrows that displays on every page 
------------------------------------------------- */
#ces-mm.not-logged-in {
	top: 0;
}
/*additional space for admin bar */
#ces-mm.logged-in {
	top: 32px;
}
#ces-mm .explore-extension {
	color: #c6c6c6;
    font-family: verlag, arial, helvetica, sans-serif;
	vertical-align: text-top;
	font-size: 14px;
	line-height: 27px;
}
.theme-discovery #ces-mm .explore-extension {
	color: #f2c4c4;
}
#ces-mm #ces-mm-bar {
	background: #23282d;
	min-height: 32px;
	margin-bottom: 0;
	min-width: 580px;
	transition: all 0.5s ease;
}
.theme-discovery #ces-mm #ces-mm-bar {
	background-color: #c5050c;
	border-bottom: 1px solid #e40b10;
}
/*themes with verlag */
.theme-discovery #ces-mm .explore-extension,
.theme-discovery #ces-mm #ces-mm-bar .mm-link,
.theme-kayak #ces-mm .explore-extension,
.theme-kayak #ces-mm #ces-mm-bar .mm-link,
.theme-magnify #ces-mm .explore-extension,
.theme-magnify #ces-mm #ces-mm-bar .mm-link {
	font-size: 16px;
}
#ces-mm #ces-mm-bar .mm-link {
    margin: 3px 10px 2px;
	font-size: 14px;
    border: none;
    color: white;
    text-decoration: none;
    line-height: 27px;
    font-weight: normal;
	vertical-align: text-top;
}

#ces-mm #ces-mm-bar .left {
	float: left;	
}
#ces-mm #ces-mm-bar .right {
	float: right;	
	padding-left: 10px;
	border-left: 1px solid #fff;
	margin-left: 10px;
}
#ces-mm.opened #ces-mm-bar .right {
	border-left: none;
}

#ces-mm #ces-mm-ceslink {padding-right: 24px; background: url(../images/menuicon.gif) no-repeat right; cursor: pointer;}
#ces-mm.opened #ces-mm-ceslink {
	background: url(../images/close-icon.png) no-repeat right; 
	background-color: #b30e12;
    background-position: center;
	cursor: pointer; 
	margin-right: 15px;
    margin-top: 5px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}
/*	=Menu
	#ces-mm-menu is the multi-panel menu that 
	opens when the bar control is clicked  
------------------------------------------------- */
#ces-mm #ces-mm-menu {
	margin-top: 0;
	border-bottom: 1px solid #b3080c;
	border-top: 1px solid #840207;
	border-width: 1px 0;
	border-collapse:collapse;
	font-family: verdana, arial, helvetica, sans-serif;
}
#ces-mm #ces-mm-menu-inner {
	max-width: 1050px;
	margin-left:auto;
	margin-right: auto;
}

/*	.mm-item is each box */
#ces-mm #ces-mm-menu .mm-item {
	display: table-cell;
	padding-bottom: 26px;
}
/*	.title is the item's title */
#ces-mm #ces-mm-menu .title {
	font-size: 20px;
	text-align: center;	
	margin: 0;
	line-height: 32px;
	padding: 8px;
	font-weight:bold;
}
#ces-mm #ces-mm-menu .title a {
	color: white;
	text-decoration: none;
}
#ces-mm #ces-mm-menu a {
	font-weight: normal;
}
/*	.content is the item content area */
#ces-mm #ces-mm-menu .content {
	border-right: 2px solid #9b0000;
	height: 200px;
	font-size: 14px;
	color: white;
	margin: 1em 0 1em 0;
	padding: 0 1em;
	line-height: 1.8em;
}
#ces-mm .inner .home-link {
    border-bottom: 1px solid #774445;
    padding-bottom: 8px;
    margin-bottom: 8px;
    display: inline-block;
}
#ces-mm #ces-mm-menu .explore-link a {
	font-weight: bold;
}
#ces-mm #ces-mm-menu .content p {
	line-height: 1.8em;
	margin-bottom: 1em;
	padding: 0;
	margin-top: 0;
	font-size: 14px;
}
#ces-mm #ces-mm-menu .content a {
	font-size: 14px;
	color: white;
	text-decoration: none;
}
#ces-mm #ces-mm-menu .content a:hover {
	text-decoration: underline;
}
#ces-mm #ces-mm-menu .mm-item-image {
	text-align: center;
}

/* hide mobile links on desktop */
#ces-mm #ces-mm-menu .mm-item.facebook,
#ces-mm #ces-mm-menu .mm-item.twitter{
	display: none;
}

/*	=CES Home box
------------------------------------------------- */
#ces-mm #ces-mm-ces {width: 262px;}

/*	=Learning Store box
------------------------------------------------- */
#ces-mm #ces-mm-learningstore {
	width: 262px;
	text-align: center;
}
/*	=FYI box
------------------------------------------------- */
#ces-mm #ces-mm-fyi {width: 262px;}

/*	=County box
------------------------------------------------- */
#ces-mm #ces-mm-counties {width: 272px; text-align:center;}
#ces-mm #ces-mm-countylink { }
#ces-mm #ces-mm-countymap {height: 120px;}

/*	=Staff Directory Box
------------------------------------------------- */
#ces-mm #ces-mm-staff-directory {
	width: 272px;
	text-align: center;
}

/*	= Social Media Box
------------------------------------------------- */
#ces-mm .ces-mm-social {
	width: 232px;
}
#ces-mm .ces-mm-social .content {
	border-right: none;
	display: flex;
	justify-content: center;
}
#ces-mm .ces-mm-social .content .inner p.social-icon {
	display: flex;
}
#ces-mm .ces-mm-social .content img {
	padding-right: 15px;
}
/*	= Institutes Media Box
------------------------------------------------- */
#ces-mm #ces-mm-institutes {
	width: 272px;
}

/* 	=Search bar 
------------------------------------------------- */
#ces-mm #ces-mm-search {
	text-align: center;
	padding: 0 0 1em 0;
	font-size: 14px;
}
#ces-mm #ces-mm-search input.searchbox {
	width: 86.206895%;
	padding: 3px;
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
}
#ces-mm input[type="submit"] {
	border: 1px solid #ccc;
	border-color: #ccc #ccc #bbb #ccc;
	border-radius: 3px;
	background: #e6e6e6;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05);
	color: rgba(0, 0, 0, .8);
	cursor: pointer;
	-webkit-appearance: button;
	font-size: 12px;
	line-height: 1;
	padding: .6em 1em .4em;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ********************************************** */
/* Responsive Sizes                               */
/* ********************************************** */
@media only screen and (max-width: 1240px) {
	#ces-mm .institute {display: none;}		
}
@media only screen and (max-width: 800px) {
	#ces-mm #ces-mm-menu .title {font-size: 16px;}		
}
@media screen and (max-width: 782px) {
	#ces-mm.logged-in {
		top: 46px;
	}
}
@media only screen and (max-width: 700px) {
	#ces-mm #ces-mm-menu {	background: none;}
	#ces-mm #ces-mm-menu .content {	display: none;}
	#ces-mm #ces-mm-menu .mm-item {
		display: block;
		width: 100%; 
		border-bottom: 1px solid #5d1012;
		padding-bottom: 0;
	}
	#ces-mm #ces-mm-menu .title, #ces-mm #ces-mm-search form  {
		font-size: 20px;
		text-align: left;
		padding: 0.25em 1em;
	}
	#ces-mm #ces-mm-search {
		text-align: center;
		padding: 0 ;
	}
	#ces-mm #ces-mm-search input.searchbox {
		width: 250px;
	}
	
	#ces-mm #ces-mm-menu .mm-item.social {
		display: none;
	}
	#ces-mm #ces-mm-menu .mm-item.facebook,
	#ces-mm #ces-mm-menu .mm-item.twitter {
		display: block;
	}
	
}
@media only screen and (max-width: 600px) {
	#ces-mm {
		position: absolute;
	}
	html {
		padding-top: 76px !important;
	}
	#ces-mm #ces-mm-bar {
		min-height: 76px;
	}
	#ces-mm.opened #ces-mm-bar {
		min-height: 32px;
	}
	#ces-mm #ces-mm-bar {
		min-width: auto;
	}
	#ces-mm #ces-mm-bar .mm-link {
		margin: 3px 10px 2px;
		border: none;
	}
	#ces-mm #ces-mm-bar .left {
		display: block;
		float: none;
		width: auto;
		margin: 0;
		padding: 0.25em 1em;
		border-bottom: 1px solid #444;
	}
	.theme-discovery #ces-mm #ces-mm-bar .left {
		border-bottom: 1px solid #dc2f2f;
	}
	#ces-mm.opened #ces-mm-bar .left,
	.theme-discovery #ces-mm.opened #ces-mm-bar .left {
		float: left;
		border-bottom: none;
	}
	#ces-mm #ces-mm-bar .right {
		display: inline-block;
		float: none;
		border-left: none;
		margin: 0;
		padding: 0.25em 24px 0.25em 1em;
	}
	#ces-mm.opened  #ces-mm-bar .right {
		float: right;
		min-height: 32px;
		padding: 0;
		width: 32px;
	}
	#ces-mm #ces-mm-bar br.clear {
		display: none;
	}	
}