/* user nav 
================================================== */

body.login nav.user {
	display: none!important;
}

/* hide the login on the login page ;-)*/
nav.user {
	float: left;
	line-height: 43px;
}

nav.user a {
	text-decoration: none;
	float: left;
	padding: 0 5px;
	margin-right: 5px;
	color: #758694;
}

nav.user a:hover {
	color: #53a3b7;
}

body.tall-logo nav.user {
	margin-left: 180px;
}

/* header / logo (desktop)
================================================== */

.header { 
	position: relative; /* Sticky Nav will break without this */
	clear: both;
	padding: 0;
	background: #4c5966;
	/*ie 7*/
	z-index: 999;
}

.headerBar {/*Styles the grey bar behind the University of Maryland, Baltimore text*/
height: 170px;
background-color: #3a3a3a;
background-image:  url('/media/umb/style-assets/images/swoosh_simple.png');
background-repeat:no-repeat;
background-size: 100%;
background-position: center bottom; 
overflow: hidden;
padding-top: 0px;
}


.branding {
	max-width: 365px;
	/*background-color: blue;*/
/*background-image: url(../../img/wlogo.png);
background-repeat:no-repeat;*/
}
.branding img {
 max-width: 100%;
}

#locatedIn {
	/*position:absolute;*/
/*	right:0em;
	bottom:.9em;*/
	color:#dfdfdf;
	line-height: 1.3em;
	margin-top: 2.5em;
}

#locatedIn .baltimore {
	letter-spacing: .15em;
	font-size:1em;
	margin-bottom: 0;
	font-family: 'Gotham SSm A', 'Gotham SSm B', 'proxima-nova', sans-serif; font-weight: 300; font-style: normal; 

}

#locatedIn .secondLine {
		font-family: 'Gotham SSm A', 'Gotham SSm B', 'proxima-nova', sans-serif; font-weight: 500; font-style: normal; 

	line-height: 1.2em;
	font-size: .8em;
	margin-bottom: 0;
	color: #dfdfdf;
}

#locatedIn .pointerIcon {
	height:2.3em;
	float: left;
	padding-right: 10px;
	margin-bottom: 20px;
	/*left:-2.25em;*/
}



/* header / preheader / menu
================================================== */

.header .container {
	position: relative;
}

.container.preheader {
	/*right: -10px;*/
	position: relative;
    width: 100%;

}

section.container.preheader { /*Sticky nav will break without this*/
max-width: none;
width:100%;
}

.container.preheader form {
	margin: 0;
	padding: 0;
	height: auto;
}

.search-wrapper {
	float: right;
    padding: 0px; 
    margin-left: 10px; The search-wrapper's padding was preventing the preheader bar from shrinking as far as I wanted it to
}

.search #search-trigger {
	font-size: 0.75em;
	font-weight: bold;
	/*color:#989898;*/
	text-indent: -9999em;
	display: block;
	float: left;
	padding: 0;
	margin: 0 0 0 1em;
	width: 23px;
	height: 30px;
	position: relative;
	top: -2px;
	background: url('/media/umb/style-assets/images/search_white.png') -23px 50% no-repeat;
	cursor: pointer;
}

.search #search-trigger.active {
	background: url('/media/umb/style-assets/images/search_white.png') 0px 50% no-repeat;
  
}

.search input {
	height: 20px; /*shrinks the search bar to fit in its newly shrunken space*/
	/* More formatting will be needed here*/
	background-color: #fff;
	width: 200px;
	margin-left: 3px;
	top: 3px;
	position: relative;
	font-size: .8em;
	color: #000;
	-webkit-appearance: textfield;
}

.js .search input {
	display: none;
}


#preheadwrap {
	margin-top: 5px;
	height: 25px;
	border: none;
	float: right;
	padding-top: 3px;
}
#preheadwrap ul {
    margin-left: 0;
}

@media (min-width:768px) {
  #preheadwrap ul {
    text-align: right;
  }
}

#preheadwrap ul li {
	display: inline-block;
	font-size: .8em;
	font-family: 'Gotham SSm 4r', 'Gotham SSm A', 'Gotham SSm B', 'proxima-nova', sans-serif; font-weight: 400; font-style: normal;
	letter-spacing: .025em;

}
#preheadwrap ul li a {
	color: #dfdfdf;
	margin-right: 20px;
	text-decoration: none;
	text-transform: uppercase;
}
@media (max-width: 500px) {
  #preheadwrap ul li a {
    margin-right: 10px;
  }
}

#preheadwrap ul li a:hover, #preheadwrap ul li a:focus {
	color: #fff;
}

input[type="search"] {
	margin: -2px 0px 0px 10px;
	background-color: #fff;
	border: none;
	height: 20px;
	width: 160px;
	box-shadow: none;
	font-size: 1em;
	color: #3a3a3a;
}

form.search-bar {
   float: right;
}

form.search-bar input {
    font-size: 0.9em;
    height: 2em;
    width: 17em;
    background-color: #DFDFDF;
    color: #000;
    border-radius: 0.5em;
    border: 0px none;
    margin-left: 20px;
    box-shadow: none !important;
    line-height: normal;
    font-weight: 500;
    padding: 4px 1em;
  
  /*Search icon*/
    background-image: url(/media/umb/style-assets/images/magnifying-glass-revised-01.png);
    background-repeat: no-repeat;
    background-position: 5px 50%;
    background-size: 14px auto;
    padding-left: 24px;

}

form.search-bar input::-webkit-input-placeholder {
   color: #000;
}
form.search-bar input:-moz-placeholder { /* Firefox 18- */
   color: #000;
}
form.search-bar input::-moz-placeholder {  /* Firefox 19+ */
   color: #000; 
}
form.search-bar input:-ms-input-placeholder {  
   color: #000; 
}

@media (max-width: 767px) {
	.headerBar > .container:first-of-type > .row-fluid {
		height:6em;
	}
	form.search-bar input {
		width:100%;
		margin:.5em 0;
		height:3em;
	}
	form#cse-search-box {
		width:100%;
	}
	#brandwrapper {
    	margin-bottom: 2em !important;
	}
}

.preheader .phone {
	float: right;
	line-height: 45px;
	margin-right: 10px;
	padding: 0 15px 0 10px;
	/*border-right: 1px solid #d8dfe5;*/
}

.preheader .phone a, .preheader .phone {
	color: #758694;
}

@media (max-width:767px) {
  .preheader ul {
    margin-left: 0;
    margin-top: 0.5em;
  }
  

}

.preheader ul li:last-of-type a {
    margin-right: 0 !important;
  }

.preheader .social {
	 height: 30px; /*Shrinks the height of the preheader link bar (myUM Directory Campus Map, etc.)*/
	float: right;
	line-height: 30px;
	height: 45px;
	margin-right: 0;
	position: relative;
	padding-right: 20px;
}

.lt-ie9 .preheader .social {
	margin-right: 0;
	padding-right: 20px;
}

.preheader .social a {
  	font-family: 'Gotham SSm A', 'Gotham SSm B', 'Open Sans', 'proxima-nova', sans-serif; font-weight: 200; font-style: normal; 
	color:#989898;
	top:  -5px;  
	position: relative;
	text-decoration: none;
	font-size: .8em; 
	line-height: 40px; 
	padding: 0;
}

ul.social {
	border-right: none;
}


.lt-ie8 .preheader .social a {
	padding:0 3px;
}



/* main navigation / desktop styles
================================================== */




/* colors first level */
.primary_menu > li > a:hover,
.primary_menu > li > a:focus,
.primary_menu > .active > a,
.primary_menu > li > a.selected { color: #fff; background: #53a3b7;}

/* colors second level */
.primary_menu ul li a:hover,
.primary_menu ul li a:focus,
.primary_menu ul .active > a,
.primary_menu ul a.selected,
.primary_menu .parent > .active { color: #fff;background:#53a3b7;}





/* hide trigger for desktop */
.mobile_nav, .mobile-menu-holder {
	display: none;
}

#main_menu {
	/*wrapper nav*/
	padding: 0;
	z-index: 999;
	right: -12px;
	clear: none;
	position: relative;
	float: right;
	top: 0;
}




/* arrow background images */
.primary_menu li.parent i {
	background: url(../images/menu_arrow.png) 0 0 no-repeat;
	display: inline-block;
	width: 5px;
	margin-left: 8px;
	height: 5px;
	position: relative;
	top: -2px;
}
.primary_menu ul li.parent i {
	background-position: -5px 0;
}

.lt-ie8 .primary_menu .parent i {
	position: relative;
	display: inline;
	zoom: 1;
	left: 5px;
	top: -4px;
}

.primary_menu {
	float: right;
	margin: 0;
	padding: 0;
	position: relative;
	list-style: none;
}
.primary_menu ul {
	margin: 0;
	padding: 0;
	display: none;
}

/* first level */
.primary_menu li {
	float: left;
	list-style: none;
	margin: 0 0 0 2px;
	padding: 0;
	position: relative;
	background: #4c5966;
	text-transform: lowercase;
}

.primary_menu li a {
	border: none;
	color: #d8dfe5;
	display: block;
	height: 95px;
	line-height: 95px;
	margin: 0!important;
	padding: 0 12px;
	text-decoration: none;
	font-size: 110%;
}

.primary_menu li ul li a, .lt-ie9 .primary_menu li ul li a {
	font-size: 100%;
}

.primary_menu li ul li {
	background: #758694;
	float: none;
	left: auto;
	margin: 0;
	top: 0;
	width: 100%;
}

.primary_menu li ul li ul li {
	background: #758694;
}

.primary_menu li li {
	border-bottom: 1px solid #a3b0bb;
}

.primary_menu li ul a,
.primary_menu li ul li a,
.primary_menu li ul li ul li a {
	height: auto;
	line-height: 1.5;
	padding: 7px 10px;
	width: 175px;
	color: #fff;
}

.primary_menu li ul {
	background: #6d767e;
	left: 0;
	padding: 0;
	position: absolute;
	top: 95px;
	z-index: 100;
}
.primary_menu li ul ul {
	border-top: 0px;
	z-index: 100000;
}
.primary_menu ul ul {
	border: none;
	top: 0!important;
	left: 195px;
	/*when js is off*/
}
.primary_menu li ul li ul {
	padding: 0;
	position: absolute;
	top: 0;
}

/* -------------- edge detect css --------------- */
.primary_menu li.edge ul {
	left:-100%!important;

}
.primary_menu ul li.edge ul {
    left:-100%!important;
    width:195px;
}


/*=================== ie7 fix */
.lt-ie8 .primary_menu ul ul {
	display: none;
}

/* js off */
.no-js .primary_menu li:hover ul ul {
	display: block;
}

.no-js .primary_menu li:hover ul,
.no-js .primary_menu li:hover ul li:hover ul {
	display: block;
}

.no-js.lt-ie8 .primary_menu ul li:hover ul {
	display: block;
}

/*
***********************************************************************************
/*	BEGIN MEDIA QUERIES
***********************************************************************************
 */

@media only screen and (min-width: 768px) {
	.mobile_nav, .mobile-menu-holder {
		display: none!important;
	}
	
.sticky_nav {
    position: fixed;
    top: 0px;
    width: 100%;
    background-color: #FFCD00;
  
}

.headerBar.sticky_placeHolder {
	margin-bottom: 40px;
}


	/* hide trigger for desktop */
}

/*==================================================== 
******************************************************
/*	DEVICES less than 880 pixels wide
******************************************************
====================================================== */

@media only screen and (max-width: 880px) {

.headerBar { height: auto;}

.branding { max-width: 300px;}

#brandwrapper {margin-bottom: 2em;}


	/*** Menu Adjustment so items don't cover the logo ***/
	.primary_menu li {
		margin: 0 0 0 2px;
	}
	
	.primary_menu li a {
		padding: 0 10px;
		font-size: 120%;
	}
}

/**** end max width 800px ****/

/*==================================================== 
******************************************************
/*	DEVICES less than 800 pixels wide
******************************************************
====================================================== */

@media only screen and (max-width: 800px) {
	/*** Menu Adjustment so items don't cover the logo ***/
	.primary_menu li {
		margin: 0;
	}
	
	.primary_menu li a {
		padding: 0 7px;
		font-size: 115%;
	}
}

/**** end max width 800px ****/

/*==================================================== 
******************************************************
/*	DEVICES less than 600 pixels wide
******************************************************
====================================================== */

@media only screen and (max-width: 600px) {

.headerBar { height: auto;}

.branding { max-width: 300px;}

#brandwrapper {margin-bottom: 2em;}


	a.tele {
		cursor: pointer;
		pointer-events: visible;
	}
}

/**** end max width 600 ****/

/*==================================================== 
******************************************************
/*	DEVICES less than 767 pixels wide 
******************************************************
====================================================== */

@media only screen and (max-width: 767px) {
	/*** Header / Logo / Preheader Mobile Adjustments ***/


.headerBar { height: auto;}

.branding { max-width: 300px;}

#brandwrapper {margin-bottom: 2em;}


	nav.user {
		float: right;
		line-height: 55px;
	}
	
	nav.user a {
		margin: 0 10px 0 0;
		padding: 0;
	}
	
	.header {
		position: relative;
		height: auto;
		margin-top: 50px;
	}
	
	.header .sticky-wrapper .container {
		padding: 0;
		width: 100%;
	}
	
	
	.container.preheader {
		position: absolute;
		top: 0;
		right: 0;
		padding: 0;
		width: 100%;
		/***!! added width***/
	}

	#brandwrapper {
		/*width: 93%;*/
        margin-top: .25em;

	}
	
	.container.preheader  .phone,
	.container.preheader  .phone a {
		border: 0px;
		padding: 5px 0 0 0;
		margin: 0;
	}
	
	.container.preheader  .phone {
		margin-right: 10px;
	}
	
	.preheader .social {
		display: none;
	}
	
	.search input {
		position: relative;
		width: 180px;
		/***!! changed width ***/
		right: 0;
		top: auto;
		margin: 0 0 0 5px;
		font-size: 16px!important;
		overflow-x: hidden;
	}
	
	.search #search-trigger {
		width: 30px;
		margin: 0;
		top: auto;
	}
	
	.search-wrapper {
		/***!!removed float right */
		padding: 10px 0 0 0;
		margin: 0;
		position: absolute;
		/***!! changed position type*/
		left: 50px;
		/***!! added left position*/
		z-index: 2;
	}
	
	/*** Mobile Navigation Trigger ***/
	.lt-ie9 .mobile_nav {
		display: none;
	}
	
	.mobile_nav {
		margin: 0;
		display: block;
		position: absolute;
		top: 5px;
		left: 5px;
		height: 40px;
		width: 40px;
		background: #53a3b7;
		z-index: 1;
	}
	
	.mobile_nav a span {
		display: block;
		width: 20px;
		height: 40px;
		padding: 0;
		position: absolute;
		left: 10px;
		top: 0px;
		background: url(../images/navtriggerbg.png) -20px 50% no-repeat;
	}
	
	.mobile_nav a.active span {
		background-position: -60px 50%;
	}
	
	.mobile_nav a {
		color: #fff;
		text-decoration: none;
		display: block;
		padding: 0 0 0 5px;
		height: 40px;
		width: 100%;
		line-height: 38px;
		position: relative;
		z-index: 2000;
	}
	
	.no-js .mobile_nav {
		display: none;
	}
	
	/*** Mobile Navigation ***/
	#main_menu, #main_menu .primary_menu, .js #main_menu, .js #main_menu {
		/* hide on mobile */
		display: none!important;
	}
	
	.primary_menu {
		margin: 0;
		background: #4c5966;
		padding: 10px 0;
	}
	
	.primary_menu ul {
		height: auto;
		width: 100%;
		overflow: visible;
	}
	
	.primary_menu *, .primary_menu {
		float: none!important;
	}
	
	.primary_menu li a {
		height: auto;
		line-height: normal;
		margin: 0;
		font-size: 100%!important;
		padding: 10px 0 5px 20px;
	}
	
	.primary_menu li ul a,
	.primary_menu li ul li a,
	.primary_menu li ul li ul li a {
		height: auto;
		width: auto;
		line-height: auto;
		background: #4c5966;
		padding: 8px 0 5px 20px;
	}
	
	.primary_menu li ul,
	.primary_menu,
	.primary_menu ul ul,
	.primary_menu ul ul ul {
		position: relative!important;
		top: auto!important;
		left: 0!important;
		clear: both!important;
		right: auto!important;
		width: 100%!important;
	}
	
	.primary_menul,
	.primary_menu ul {
		border: none;
	}
	
	.primary_menu ul {
		display: none;
	}
	
	.primary_menu li {
		margin: 0;
	}
	
	.primary_menu li a {
		text-transform: uppercase;
	}
	
	.primary_menu li li a {
		text-transform: none;
	}
	
	.primary_menu ul ul li a {
		padding-left: 30px;
	}
	
	.primary_menu ul ul li ul li a {
		padding-left: 50px;
	}
	
	.primary_menu ul ul li:last-child {
		border: 0px;
	}
	
	.primary_menu ul ul li {
		border-left: 0px solid #fff;
		border-right: 0px solid #fff;
	}
	
}



@media (min-width: 320px) and (max-width: 480px) {
/*Sticky Nav styles*/

.headerBar { height: auto;}

.branding { max-width: 280px;}

#brandwrapper {margin-bottom: 1em;}

}

	/* Tall Logo MOBILE adjustments */
	body.tall-logo nav.user {
		margin-left: 0;
	}
	
	body.tall-logo #logo {
		background-image: url(../images/tall-logo-mobile.png);
		/*notice that this image changes on mobile */
	background-color: transparent!important;
		background-position: 0 0;
		position: relative;
		display: block;
		width: 78px;
		height: 85px;
		margin: 0;
		top: auto;
		left: 20px;
		padding: 0!important;
	}
	
	body.tall-logo .header {
		height: 60px;
		margin-bottom: 30px;
	}
	
	body.tall-logo .search-wrapper {
		left: 10px;
	}*/
	
	/* tall logo mobile nav trigger location change */
	body.tall-logo .mobile_nav {
		left: auto;
		right: 10px;
		top: 60px;
		z-index: 1000;
	}
	
	body.tall-logo .mobile-menu-holder {
		z-index: 1000;
		top: 80px;
		position: absolute;
		left: 0;
		right: 0;
	}
	
	/*end tall logo tall header mobile adjustments */
}

/**** end max width 767 ****/

/* ================================================== 
	MAIN RETINA BACKGROUND IMAGE REPLACEMENT & RETINA INFORMATION
	http://weedygarden.net/2012/04/hi-res-retina-display-css-sprites/
	http://www.kylejlarson.com/blog/2012/creating-retina-images-for-your-website/
	http://www.webresourcesdepot.com/3-solutions-for-serving-high-res-images-to-retina-display-devices/
================================================== */

/*	change the webkit number to 1 to test on webkit to make sure 
	the sizes and the images show up correctly then switch back before launch */

@media only screen and (-webkit-min-device-pixel-ratio: 2),
 	only screen and (-o-min-device-pixel-ratio: 3/2),
 	only screen and (min--moz-device-pixel-ratio: 2),
	only screen and (min-device-pixel-ratio: 2) {
	#logo {
		background-image: url(../images/retina/logo_@2x.png);
		-moz-background-size: 140px 59px;
		w & h of total ORIGINAL 72dpi image
		-ie-background-size: 140px 59px;
		-o-background-size: 140px 59px;
		-webkit-background-size: 140px 59px;
		background-size: 140px 59px;
	}
	
.tall-logo #logo {
		background-image: url(../images/retina/tall-logo-mobile_@2x.png);
		-moz-background-size: 170px 185px;
		w & h of total image 72dpi image
		-ie-background-size: 170px 185px;
		-o-background-size: 170px 185px;
		-webkit-background-size: 170px 185px;
		background-size: 170px 185px;*/
	}
	
	.search #search-trigger {
		background-image: url(../images/retina/search_@2x.png);
		-moz-background-size: 60px 30px;
		w & h of total ORIGINAL 72dpi image
		-ie-background-size: 60px 30px;
		-o-background-size: 60px 30px;
		-webkit-background-size: 60px 30px;
		background-size: 60px 30px;*/
	}
	
	#main_menu li.parent i {
		background-image: url(../images/retina/menu_arrow_@2x.png);
		-moz-background-size: 20px 5px;
		w & h of total ORIGINAL 72dpi image
		-ie-background-size: 20px 5px;
		-o-background-size: 20px 5px;
		-webkit-background-size: 20px 5px;
		background-size: 20px 5px;*/
	}
}

/* end desktop and main retina swapping */

/*==================================================== 
******************************************************
/*	MOBILE SPECIFIC RETINA SWAPPING
******************************************************
====================================================== */

@media only screen and (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2),
 	only screen and (max-width: 767px) and (-o-min-device-pixel-ratio: 3/2),
 	only screen and (max-width: 767px) and (min--moz-device-pixel-ratio: 2),
	only screen and (max-width: 767px) and (min-device-pixel-ratio: 2) {
	.tall-logo #logo {
		background-image: url(../images/retina/tall-logo-mobile_@2x.png);
		-moz-background-size: 78px 85px;
		w & h of total image 72dpi image
		-ie-background-size: 78px 85px;
		-o-background-size: 78px 85px;
		-webkit-background-size: 78px 85px;
		background-size: 78px 85px;
	}
	
	.mobile_nav a span {
		background-image: url(../images/retina/navtriggerbg_@2x.png);
		-moz-background-size: 80px 40px;
		w & h of total sprite 72dpi image
		-ie-background-size: 80px 40px;
		-o-background-size: 80px 40px;
		-webkit-background-size: 80px 40px;
		background-size: 80px 40px;*/
	}
}

/*end mobile specific retina swapping */

/*Updated search bar with a submit button (for improved accessibility)*/
form.search-bar.has-submit-button #umb-search-submit {
    height: 2.25rem;
    width: 2.75rem;
    float: right;
    border-radius: 0 .5em 0.5em 0;
    border: 0 none;
    background-color :#fff;
    background-image: url(/media/umb/style-assets/images/magnifying-glass-revised-01.png);
    background-repeat: no-repeat;
    background-position: 45% 45%;
    background-size: 14px auto;
}
form.search-bar.has-submit-button #umb-search-submit:hover,
form.search-bar.has-submit-button #umb-search-submit:focus {
    background-color :#ffcd00;
}
form.search-bar.has-submit-button input#query {
    border-radius: 0.5em 0 0 .5em;
    padding-left: 1em;
    background-image: none;
    width: 13em;
    height: 2.25rem;
}
@media (max-width: 767px) {
  form.search-bar.has-submit-button #umb-search-submit {
      width: 10%;
      margin: .5rem 0;
      height: 2.75rem;
  }
  form.search-bar.has-submit-button input#query {
      width :90%;
      margin: .5rem 0;
      height: 2.75rem;
  }
}


