/*
*   MOBILE STYLES
*    Overrides existing stylesheerts
*  	Author: Darrell Wilson hello@make-digital.co.uk
*	Dtae: 13/03/2013;
*/


html {
	width:100%;height:100%;margin:0;padding:0;
}

body {
	width:100%;height:100%;margin:0;padding:0;overflow:hidden;
}

#mapViewer {
	width:100%;height:100%;margin:0;padding:0;overflow:hidden;
}

.nomobile { 
	display: none;
}


#header-top {
	display: none;
}


#mapViewer #header browseralert {
	display: none;
}

#mapViewer #NLSLogo {
	display: none;
}

#mapViewer #footer {
	position: absolute;
	top: 0 !important;
	margin-top: -1px;
	display: block;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 3px 0 0 0;
	height: 30px;
	max-height: 30px;
	font-size: 1.0em;
	line-height: 1.5em;

	background-color: #ffffff;
	z-index: 10000000;
	border-bottom: 1px solid #003;
}

#mapViewer #footer:before {
  content: "\0020 National Library of Scotland - Map Images";
	background-image: url(https://maps.nls.uk/assets/graphics/nls_logo_miniature_left_top_padding_2025.png);
	background-position: left 5px;
	background-repeat: no-repeat;
	padding: 6px 0 0 36px;
	margin: 0px 5px 0px 5px !important;
	display: block;
//	width: 350px;
}

#mapViewer #header {

	font-size:0.95em;
	line-height: 1.8em;
//	height: 186px;
	max-height: none;
//	overflow:hidden;
}

#mapViewer #header #pageTitle {
	margin: 32px 0px 0px 0px;
	border-top: 1px solid #003;
	font-size: 1em;
	padding: 46px 5px 4px 10px;
	line-height: 1.3em;
//	height: 95px;
	max-height: none;
	overflow:hidden;
}

#mapViewer #header #attribution {
	display: none;
}

#mapViewer #header #re-use {
	display: none;
}

#bar	{

		border-top: 1px solid #003;
		border-bottom: 1px solid #003 !important;
 		font-size: 0.95em;
		padding: 3px 5px 3px 0;
		line-height: 1.5em;
		background-color: #faf2f8;
		background-image: url(https://maps.nls.uk/assets/graphics/shade.png);
		max-height: none;
		overflow:hidden;
}

#URHere {

	margin: 0;
	overflow:hidden;
	padding: 0 0 0 8px;
}

#URHere p {

	max-height: 22px;
	overflow:hidden;
}

#digitalOrdersMenu {
	position: absolute;
	top: 6px;
	right: 0px;
	width:  18.6em;
   	max-height:none;
	background-color: #fff;
	padding-bottom:4px;
	border-bottom: 1px solid #003;
}

#digitalOrdersMenu li, #digitalOrdersMenu, #digitalOrdersMenu2 li {
 		font-size: 1.0em;
		    height: 28px;
}

#headerMenu li a, #digitalOrdersMenu li a, #digitalOrdersMenu2 li a {
	display: inline-block;
	color: white;
	text-decoration: none;
	min-height: 28px !important;
	padding: 1px 4px 5px 16px; 
//	line-height: 1.4em !important;
}

input#image-button{
    background: #DB0000 url('https://maps.nls.uk/img/shopping_cart_darkredbckgrnd.png') no-repeat top left;
    height: 28px;
    padding-left:31px;
	padding-bottom:4px;
    max-height:28px;
    width:  9.5em;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    float:left;
}

input#image-button:hover {
    background: #8DA4BF;
	background-color: #8DA4BF;
}

.btn.orderThisMap {
	max-height: 25px;

}

#headerMenu li, #digitalOrdersMenu li, #digitalOrdersMenu2 li {
    height: 28px;
}

.btn.viewBasket {
	line-height: 1.7em;
	height: 28px !important;
    	width:  7.8em;
		padding-top: 0;
}

 #bar #headerMenu	{
 	display: none;
 }



#mapViewer #map {

	height: 100%;
	margin:0;
	padding:0;
	top: 0;
	bottom: 0;

}

#iiif-notification {
	bottom: 5px;
	left: 70px;
}




#footerMenuViewer ul, #footerMenuViewer li, #footerMenuViewer .tip {
	visibility:hidden;
}

#ol6footerMenuViewer ul, #ol6footerMenuViewer li {
	display: none;
}

#footerMenuSite ul, #footerMenuSite li {
	display: none;
}

.headerSearchForm {
	display: none;
}

#headerSearchFormSearchBox {
	display: none;
} 

#headerSearchFormSubmitButton {
	display: none;
}

#gcse:search {
	display: none;
}



#cx {
	display: none;
}

.ol-zoom {top:30px; left: 5px; font-size: 0.85em;}

.ol-overviewmap .ol-overviewmap-map {
    height: 100px;
    width: 100px;
}

.ol-overviewmap-box {
    border: 2px solid #e00;
}

.ol-rotate {
	top:30px; right:5px; 
}

img {
	max-width: 100%;
}
a#logo img {
	max-width: 62%;
}

#NLSLogo {
	width: 60px;
}

/*
*	SEARCH
*/
#search {
	display: none;
}

#shareThisPage {
	display: none;
}

#share_and_bookmark {
	display: none;
}

#showmaplocationinfo { 
	left: 5% !important;
	right: 5% !important;
}

#mapViewer #tip {
	display: none;
}

#progress {
	position: absolute;
	bottom: 10px !important;
}

#footerMenuViewer li.footerhelp {
	display: none;
}

#footerMenuViewer li.footerhelp a {
	display: none;
}

#ol6footerMenuViewer li.footerhelp {
	display: none;
}

#ol6footerMenuViewer li.footerhelp a {
	display: none;
}

#viewerback	{
		top: 80px;
}



#footerMenuViewermobile li {
//	background-image: url(/assets/graphics/right_bottom_corner_help_new.png);
	background-position: bottom right;
	background-repeat: no-repeat;
	background-color: #eb5b59;
	float: right;
	list-style: none;
	display: inline;
	margin: 0 0 1px 1px;
	padding: 0;
}

#footerMenuViewermobile li:hover {
	background-color: #A65101;
//	background-image: url(/assets/graphics/left_bottom_corner_hover_help.png);
	background-position: bottom left;
}



#footerMenuViewermobile li a  {
	display: block;
	margin: 0;
	padding: 2px 12px 4px 12px;
//	background-image: url(/assets/graphics/left_bottom_corner_hover_help.png);
//	background-position: bottom left;
	background-repeat: no-repeat;
	color: #141414;
	text-decoration: none;
}

#footerMenuViewermobile {
    padding: 0 1px 0 1px;
    border-radius: 4px;
}


#footermobile {
    position: absolute;
    bottom: 3px !important;
    left: 2px !important;
    width: 57px;
    background-color: #d9dde6;
    font-size: 0.8em;
    font-weight: bolder;
//    border-radius: 4px;
    margin: 0 0 0 4px;
    padding: 0;
    border-top: 1px solid #ccc;
    z-index: 100;

}

#footermore {
    position: absolute;
    bottom: 40px !important;
    left: 5px !important;
    width: 50px;
    font-size: 0.8em;
    font-weight: bolder;
	color: #FFFFFF;
	background-color: #003;
    border-radius: 2px;
    margin: 0 0 0 4px;
    padding: 0 0 0 6px;
	    border: 1px solid #FFF;
		user-select: none;
		cursor: pointer;
    z-index: 100;
}

#footermore:hover {
	background-color: #000080;
}

.mobile {
    display: inline;
}

#morePanel  {
	position: absolute;
	max-width: 90%;
	margin: auto;
	left: 3%;
	top: 5%;
	right: 3%;
	max-height:90% !important;
	background-color: white;
    font-size: 1.0em;
//    font-weight: bolder;
    border-radius: 2px;
	z-index: 10000;
	border: 1px solid #000;
	padding: 3px 10px 20px 15px;
//    box-shadow: 0 1px 3px #ccc !important;
	overflow-y: scroll;
	box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

	#morePanel ul li {  vertical-align: middle; margin-bottom: 0.5em; }

	#morePanel ul li a {  vertical-align: middle; margin-bottom: 0.5em; }

	.morePanel-img { display: inline; margin: 5px 15px -10px 0; vertical-align: middle;  }

		.close {
			    -webkit-appearance: none;
			    padding: 0;
			    cursor: pointer;
			    background: 0 0;
			    border: 0;
			    float: right;
			    font-size: 18pt;
			    font-weight: 700;
			    line-height: 1;
			    margin: 4px 4px 4px 6px;
			    color: #000;
			    text-shadow: 0 1px 0 #fff;
			    filter: alpha(opacity=20);
			    opacity: .6;
				z-index: 10000000;
			}

			.close:hover {
			    opacity: 0.2;
			}
			
	#viewlocation  { display: inline;  } 
			
	#explorelayerinfomobile { display: inline;  } 
			
	#iiif-notification { max-width: 250px !important; }
	
	#full-screen-mobile a {   }
	
	.hr {
    margin: auto;
    width: 80%;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #000;
    max-width: 500px;
}

#mobile-notification {
	position: absolute;
	top: 50%;
	left:5%;
    margin: auto;
	max-width: 90%;
    z-index: 10000;
    background-color: #FFF;
	padding: 5px;
    border-radius: 2px;
    font-size: 0.9em;
    font-weight: bold;
	color: blue;
    opacity: 0.9;
	text-align: center;
    white-space: nowrap;
	border: 1px solid #000;
}

		#fullscreen-img {
			visibility: visible;
			position: absolute;
			top: 162px;
			left: 45px;
			z-index: 1000;
			font-size: 0.8em;
			height: 28px;
			width: 28px;
//			background-image: url(https://maps.nls.uk/img/geolocation.png);
			background-color: white;
			padding: 1px;
			border-radius: 6px;
			border: 1px solid #000;
	}
	
		#exitfullscreen-img {
			visibility: visible;
			position: absolute;
			top: 10px;
			left: 45px;
			z-index: 1000;
			font-size: 0.8em;
			height: 28px;
			width: 28px;
//			background-image: url(https://maps.nls.uk/img/geolocation.png);
			background-color: white;
			padding: 1px;
			border-radius: 6px;
			border: 1px solid #000;
	}
