/*Main Library Header Styles*/

/***********************************/
/*     Menu styles                 */
/***********************************/

/*adds and hides h2 to top nav SJA 4/18/18*/
#topnav, #libhome {
    position: absolute;
    top: -30em;
    left: -300em;
}

/* =Top Menu
-------------------------------------------------------------- */
.top-menu {
  float: right;
  margin: 10px 0;
  padding: 0;
}

.top-menu li {
  display: inline;
  list-style-type: none;
}

.top-menu li a {
  border-left: 1px solid #cccccc;
  color: #333333;
  font-size: 11px;
  padding: 0 4px 0 8px;
}

.top-menu > li:first-child > a {
  border-left: none;
}

.top-menu li a:hover {
  color: #333333;
}


/*Hides skip navigation link off screen - link added for accessibility SJA 4/12/18 */
a.skip-main {
    left: -999px;
    position: absolute;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}

/* =Header Menu (Primary)
-------------------------------------------------------------- */
.menu {
  background-color: #467AAA;
  clear: both;
  margin: 0 auto;
}

.main-nav {
  clear: both;
}

.menu,
.menu ul {
  display: block;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu li {
  border: 0;
  display: block;
  float: left;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 5;
}

.menu li:hover {
  white-space: normal;
  z-index: 10000;
}

.menu li li {
  float: none;
}

.menu ul {
  left: 0;
  position: absolute;
  top: 0;
  visibility: hidden;
  z-index: 10;
}

.menu li:hover > ul {
  top: 100%;
  visibility: visible;
}

.menu li li:hover > ul {
  left: 100%;
  top: 0;
}

.menu:after,
.menu ul:after {
  clear: both;
  content: '.';
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.menu,
.menu ul {
  min-height: 0;
}

.menu ul,
.menu ul ul {
  margin: 0;
  padding: 0;
}

.menu ul li a:hover,
.menu li li a:hover {
  color: #484848;
  text-decoration: none;
}

.menu ul {
  margin-top: 1px;
  min-width: 15em;
  width: auto;
}

.menu a {
  border-left: 1px solid #585858;
  color: #ffffff;
  cursor: pointer;
  display: block;
  font-size: 13px;
  font-weight: 600;
  height: 45px;
  line-height: 45px;
  margin: 0;
  padding: 0 0.9em;
  position: relative;
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
}

.menu a:hover {
  background-color: #467AAA;
  color: #ffffff;
}

ul.menu > li:hover {
  background-color: #467AAA;
  color: #ffffff;
}

.front-page .menu .current_page_item a {
  background: none;
  background-color: transparent;
  background-image: none;
  filter: none;
}

.menu li li {
  background: #ffffff;
  background-image: none;
  border: 1px solid #e5e5e5;
  color: #444444;
  filter: none;
  margin: -1px 0 1px 0;
  width: auto;
}

.menu li li a {
  background: transparent !important;
  border: none;
  color: #444444;
  font-size: 12px;
  font-weight: 400;
  height: auto;
  height: 20px;
  line-height: 20px;
  padding: 5px 10px;
  text-shadow: none;
  white-space: nowrap;
}

.menu li li a:hover {
  background: #f5f5f5 !important;
  background-image: none;
  border: none;
  color: #444444;
  filter: none;
}

.menu li li:hover {
  background: #f5f5f5 !important;
  filter: none;
}

.menu ul > li + li {
  border-top: 0;
}

.menu li li:hover > ul {
  left: 100%;
  top: 0;
}

.menu > li:first-child > a {
  border-left: none;
}

.menu a#responsive_menu_button {
  display: none;
}

.main-nav #responsive_current_menu_item {
  display: none;
}

.js .main-nav .menu {
  display: block;
}

/* =Primary Main Menu IE Fixes
-------------------------------------------------------------- */
.ie7 .menu ul {
  background: url(core/images/ie7-fix.gif) repeat;
}

.ie7 .menu li li a {
  min-width: 100%;
}

/* =Sub-Header Menu
-------------------------------------------------------------- */
.sub-header-menu {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-top: none;
  clear: both;
  margin: 0 auto;
}

.sub-header-menu,
.sub-header-menu ul {
  display: block;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.sub-header-menu li {
  border: 0;
  display: block;
  float: left;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 5;
}

.sub-header-menu li:hover {
  white-space: normal;
  z-index: 10000;
}

.sub-header-menu li li {
  float: none;
}

.sub-header-menu ul {
  left: 0;
  position: absolute;
  top: 0;
  visibility: hidden;
  z-index: 10;
}

.sub-header-menu li:hover > ul {
  top: 100%;
  visibility: visible;
}

.sub-header-menu li li:hover > ul {
  left: 100%;
  top: 0;
}

.sub-header-menu:after,
.sub-header-menu ul:after {
  clear: both;
  content: '.';
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.sub-header-menu,
.sub-header-menu ul {
  min-height: 0;
}

.sub-header-menu ul,
.sub-header-menu ul ul {
  margin: 0;
  padding: 0;
}

.sub-header-menu ul li a:hover,
.sub-header-menu li li a:hover {
  color: #484848;
  text-decoration: none;
}

.sub-header-menu ul {
  margin-top: 1px;
  min-width: 15em;
  width: auto;
}

.sub-header-menu a {
  border-left: 1px solid #e5e5e5;
  color: #333333;
  cursor: pointer;
  display: block;
  font-size: 12px;
  font-weight: 400;
  height: 35px;
  line-height: 35px;
  margin: 0;
  padding: 0 0.9em;
  position: relative;
  text-decoration: none;
  text-shadow: none;
}

.sub-header-menu a:hover {
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-color: #f9f9f9;
  background-clip: padding-box;
}

.sub-header-menu .current_page_item a,
.sub-header-menu .current-menu-item a {
  background-color: #f9f9f9;
}

.sub-header-menu li li {
  background: #ffffff;
  background-image: none;
  border: 1px solid #e5e5e5;
  color: #444444;
  filter: none;
  margin: -1px 0 1px 0;
  width: auto;
}

.sub-header-menu li li a {
  border: none;
  color: #444444;
  font-size: 12px;
  font-weight: 400;
  height: auto;
  height: 20px;
  line-height: 20px;
  padding: 5px 10px;
  text-shadow: none;
}

.sub-header-menu li li a:hover {
  background: #f9f9f9;
  background-image: none;
  border: none;
  color: #444444;
  filter: none;
}

.sub-header-menu ul > li + li {
  border-top: 0;
}

.sub-header-menu li li:hover > ul {
  left: 100%;
  top: 0;
}

.sub-header-menu > li:first-child > a {
  border-left: none;
}

.sub-header-menu ul.children a,
.sub-header-menu .current_page_ancestor,
.sub-header-menu .current_page_ancestor ul a {
  background: none;
  background-image: none;
  filter: none;
}

/* =Sub Header Menu IE Fixes
-------------------------------------------------------------- */
.ie7 .sub-header-menu ul {
  background: url(core/images/ie7-fix.gif) repeat;
}

.ie7 .sub-header-menu li li a {
  min-width: 100%;
}

#logo{height:0px;}

li.become-far-right {
float:right!important;
}

.menu {
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background-color: #467AAA;
    margin: 0 auto;
	font-size: 90%;
}

/* Menu items */
.menu a {   
border-left: 1px solid #fff;
    color: #fff;
    font-size: 13px;
	/*font-size: 10px;*/
    font-weight: 600;
    height: 45px;
    line-height: 45px;
    padding: 0 0.9em;
    text-shadow: none;
}
/* Menu item hover */
.menu a:hover {
    background-color: #467AAA;
    color: #ffeb52;
    text-decoration: none;
}

/* Menu dropdown */
.menu li li {
    background: #467AAA;
    background-image: none;
    border: 1px solid #fff;
    color: #fff !important;
    filter: none;
    margin: -1px 0 1px 0;
    width: auto;
    height: 41px;
    padding-right: 5px;
}

.menu li li a{
     color: #fff;
}

ul#menu-main-menu-1 li.contact a, ul#menu-main-menu-1 li.contact a:link, ul#menu-main-menu-1 li.contact a:visited, ul#menu-main-menu-1 li.contact a:hover, ul#menu-main-menu-1 li.contact a:focus, ul#menu-main-menu-1 li.contact a:active {
    background-color: #b91619;
    text-align: right;
    width: 90px;
    /*background: url(https://library.unc.edu/wp-content/themes/responsiveUNCLib/images/chat1.png) #b91619 10px center no-repeat;*/
}

ul#menu-main-menu-1 li.accounts a {
    /* icon removed to avoid overlap on libguides */ 
    /*background: url(https://library.unc.edu/wp-content/themes/responsiveUNCLib/images/accounticon.png) 11px center no-repeat;*/
	background-attachment: inherit;
    text-align: right;
    width: 118px;
}

ul#menu-main-menu-1 li.accounts li a {
    text-align: left;
}

.moreOption {
    background-color: #2F5272 !important;
}

/***********************************/
/*     Menu styles                 */
/***********************************/

#logo{height:0px;}


li.become-far-right {
float:right!important;
}

.menu {
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background-color: #467AAA;
    margin: 0 auto;
	font-size: 90%;
}
/* Menu items */
.menu a {   
border-left: 1px solid #fff;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    height: 45px;
    line-height: 45px;
    padding: 0 0.9em;
    text-shadow: none;
}
/* Menu item hover */
.menu a:hover {
    background-color: #467AAA;
    color: #ffeb52;
    text-decoration: none;
}

/* Menu dropdown */
.menu li li {
    background: #467AAA;
    background-image: none;
    border: 1px solid #fff;
    color: #fff !important;
    filter: none;
    margin: -1px 0 1px 0;
    width: auto;
    padding: 5px;
}

.menu li li a{
     color: #fff;
}

/**/@media only screen and (max-width: 1030px) {

   .menu li a, .menu li li a {
		font-size: 12px;
	}

}

/**/@media only screen and (max-width: 970px) {

   .menu li a, .menu li li a {
		font-size: 10px;
	}

}

/**/@media only screen and (max-width: 875px) {

   .menu li a, .menu li li a {
		font-size: 9px;
	}
	#container {
  margin: 0;
  max-width: inherit;
  padding: 0;
}

}



/* Menu dropdown hover */
.menu li li:hover{
background:#467AAA !important;
color: #fff !important;
}

.menu li li a:hover {
    background: #467AAA !important;
    background-image: none;
    border: none;
    color: #ffeb52 !important;
    filter: none;
}

ul.menu > li:hover {
background-color: #467AAA;
}

.menu-item ul li, .menu-item ul li a {
    box-shadow:none;
}

/*Make the contact us menu item red*/
/*.menu-item-654 {background:#b91619 !important;}
.menu-item-654 a:hover {background:#b91619 !important;}*/

li.menu-item-654 a:link {background:#b91619 !important;} /* unvisited link */  
li.menu-item-654 a:visited {background:#b91619 !important;} /* visited link */  
li.menu-item-654 a:hover {background:#b91619 !important;filter:none;} /* mouse over link */  
li.menu-item-654 a:active{background:#b91619 !important;} /* selected link */  

ul#menu-main-menu-1 li.home a {
    height: 34px;
    width: 200px;
    padding: 0px;
    margin: 5px;
    text-indent: -9999px;
    background-position: 0px 0px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url(https://library.unc.edu/wp-content/themes/responsiveUNCLib/images/UniversityLibraries_logo_white_h-200x34.png);
}

/*Simplified Mobile Version of menu */

select.responsiveMenuSelect {
    font-size: 200%;
    height: 50px;
	padding-bottom: 0;
    padding-left: 0.2em;
    padding-right: 0.2em;
    padding-top: 0.1em;
    max-width: 100%;
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    -moz-box-sizing: border-box;
    background-color: #FFFFFF;
    border-bottom-color: #CCCCCC;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-image-outset: 0 0 0 0;
    border-image-repeat: stretch stretch;
    border-image-slice: 100% 100% 100% 100%;
    border-image-source: none;
    border-image-width: 1 1 1 1;
    border-left-color-ltr-source: physical;
    border-left-color-rtl-source: physical;
    border-left-color-value: #AAAAAA;
    border-left-style-ltr-source: physical;
    border-left-style-rtl-source: physical;
    border-left-style-value: solid;
    border-left-width-ltr-source: physical;
    border-left-width-rtl-source: physical;
    border-left-width-value: 1px;
    border-right-color-ltr-source: physical;
    border-right-color-rtl-source: physical;
    border-right-color-value: #AAAAAA;
    border-right-style-ltr-source: physical;
    border-right-style-rtl-source: physical;
    border-right-style-value: solid;
    border-right-width-ltr-source: physical;
    border-right-width-rtl-source: physical;
    border-right-width-value: 1px;
    border-top-color: #AAAAAA;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    border-top-style: solid;
    border-top-width: 1px;
    box-shadow: 0 1px 0 #FFFFFF, 0 1px 1px rgba(0, 0, 0, 0.2) inset;
    cursor: text;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    max-width: 100%;
    outline-color: -moz-use-text-color;
    outline-style: none;
    outline-width: medium;
    padding-bottom: 6px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 6px;
    vertical-align: middle;
}
.responsiveSelectContainer select.responsiveMenuSelect, select.responsiveMenuSelect {
    display: inline-block;
    width: 100%;
}
 
.responsiveSelectContainer select.responsiveMenuSelect, select.responsiveMenuSelect{
	display:none;
}

@media (max-width: 800px) {
	.responsiveSelectContainer{
		border:none !important;
		background:none !important;
		box-shadow:none !important;
		height:auto !important;
		max-height:none !important;
		visibility:visible !important;
	}
	.responsiveSelectContainer ul, ul.responsiveSelectFullMenu, #megaMenu ul.megaMenu.responsiveSelectFullMenu{
		display: none !important;
	}
	.responsiveSelectContainer select.responsiveMenuSelect, select.responsiveMenuSelect { 
		display: inline-block; 
		width:100%;
	}

select.responsiveMenuSelect{
height:50px;
font-size:200%;
}

.responsiveSelectContainer select.responsiveMenuSelect, select.responsiveMenuSelect{
	display:none;
}

@media (max-width: 800px) {
	.responsiveSelectContainer{
		border:none !important;
		background:none !important;
		box-shadow:none !important;
		height:auto !important;
		max-height:none !important;
		visibility:visible !important;
	}
	.responsiveSelectContainer ul, ul.responsiveSelectFullMenu, #megaMenu ul.megaMenu.responsiveSelectFullMenu{
		display: none !important;
	}
	.responsiveSelectContainer select.responsiveMenuSelect, select.responsiveMenuSelect { 
		display: inline-block; 
		width:100%;
	}

.et-box-content{ padding:0 !important; }

.centerCaption{ text-align: center; color:black;}

.one_third{ margin-right: 2%; }

.spacedList{padding: 10px 0px 0px 0px;}
