/*-------------------------------------------------------*/
/* Map viewer chrome */


.hidden
{
   display: none !important;
}

button {
	position: relative;
    appearance: auto;
    -webkit-writing-mode: horizontal-tb !important;
    text-rendering: auto;
//    color: -internal-light-dark(black, white);
    letter-spacing: normal;
    word-spacing: normal;
    text-transform: none;
    text-indent: 0px;
    text-shadow: none;
    display: inline-block;
    text-align: right;
    align-items: flex-start;
    cursor: default;
    background-color: #FFFFFF;
    box-sizing: border-box;
    margin: 0em;
    font: 400 13.3333px Arial;
//    padding: 1px 6px;
    border-width: 0px;
    border-radius: 3px;
//    border-style: outset;
    border-color: #FFFFFF;
	z-index: 1000000;
}

button:hover {
	background-color: #D3D3D3;
}

#mapViewer #NLSLogo, #mapViewerFindByPlace #NLSLogo, #mapViewerGeoRefMaps #NLSLogo, #mapViewerPrint #NLSLogo, #mapViewerSideBySide #NLSLogo {
	width: 131px;
}

#mapViewer #header #pageTitle {
	margin-left: 151px;
	max-height: 85px;
	overflow:hidden;
}

#mapViewerSideBySide #header #pageTitle {
	margin-left: 151px;
	max-height: 70px;
	overflow:hidden;
}

#mapViewer #header #attribution  {
	position: absolute;
    	right: 0;
    	bottom: 0;
    	margin: 0px 6px 10px 0;
	font-size: 0.8em;
    	padding: 0;
}

#mapViewer #header #re-use  {
	position: absolute;
    	right: 0;
    	bottom: 32px;
    	margin: 0px 6px 0px 0;
	font-size: 0.8em;
    	padding: 0;
}


#mapViewerPrint  #header #re-use{
  	display: none;
}

#mapViewerFindByPlace #header #re-use, #mapViewerGeoRefMaps #header #re-use {
	position: absolute;
    	right: 0;
    	bottom: 10px;
    	margin: 0px 15px 0px 0;
	font-size: 0.8em;
    	padding: 0;
}

#mapViewerPrint #header #pageTitle {
	margin-left: 151px;
	max-height: 105px;
	overflow:hidden;
}

#mapViewerFindByPlace #header #pageTitle {
	margin-left: 251px;
	max-height: 70px;
	overflow:hidden;
}




#mapViewerFindByPlace .ol-zoom{bottom:.1em;left:.4em;}


#mapViewerFindByPlace .ol-zoomslider {border: 1px solid #ccc;left:.5em; }
#mapViewerFindByPlace .ol-rotate{top:121px;right:220px;}

#mapViewerGeoRefMaps .ol-rotate {top:120px;right:49px;}

//#mapViewerPrint .ol-zoom{top:85px;left:.5em;}
#mapViewerPrint .ol-rotate {top:85px;right:.5em;}

#mapViewerSideBySide .ol-zoom {top:140px;left:.5em; border: 1px solid #ccc; }
#mapViewerSideBySide .ol-zoomslider {top:205px  !important;left:.5em;border: 1px solid #ccc; }
#mapViewerSideBySide .ol-rotate {top:138px;right:49px;}


#mapViewerGeoRefMaps #header #pageTitle {
	margin-left: 251px;
	max-height: 70px;
	overflow:hidden;
}

#mapViewer, #mapViewerPrint, #mapViewerFindByPlace, #mapViewerGeoRefMaps {
	background-color: #d9dde6;
}

#mapViewer #header, #mapViewerFindByPlace #header, #mapViewerGeoRefMaps #header{
	z-index: 1000;
	max-height: 100px;
}

#mapViewerSideBySide #header {
	z-index: 1000;
	max-height: 132px;
}

#mapViewerPrint #header {
	max-height: 80px;
	overflow:hidden;
}

#mapViewer #siteTitle, #mapViewerPrint #siteTitle, #mapViewerFindByPlace #siteTitle, #mapViewerGeoRefMaps #siteTitle, #mapViewerSideBySide #siteTitle {
	float: left;
	margin: 0;
	color: #13133b;
	font-size: 1.1em;
	border: none;
	padding: 18px 0 0 18px;
	margin: 0;
	width: 82px;
}

#mapViewer #mainContentOuter, #mapViewerPrint #mainContentOuter, #mapViewerFindByPlace #mainContentOuter, #mapViewerGeoRefMaps #mainContentOuter, #mapViewerSideBySide #mainContentOuter {
	position: relative;
	background-color: white;
	border-bottom: 1px solid #ccc;
}

#mapViewer #mainContent, #mapViewerPrint #mainContent, #mapViewerFindByPlace #mainContent, #mapViewerGeoRefMaps #mainContent, #mapViewerSideBySide #mainContent {
	position: relative;
	background-color: white;
	max-width: 100%;
	min-height: 500px;
	margin: 0;
	padding: 0;
}

#mapViewer #footer, #mapViewerFindByPlace #footer, #mapViewerGeoRefMaps #footer {
	position: absolute;
	bottom: 0 !important;
	left: 0;
	width: 100%;
	background-color: #d9dde6;
	font-size: 0.8em;
	font-weight: bolder;
	margin: 0;
	padding: 0;
	border-top: 1px solid #ccc;
	z-index: 100;
}

#mapViewer #footerMenu, 
#mapViewerFindByPlace #footerMenu, 
#mapViewerGeoRefMaps #footerMenu,
#mapViewer #footerMenuSite, 
#mapViewerFindByPlace #footerMenuSite, 
#mapViewerGeoRefMaps #footerMenuSite,
#mapViewer #footerMenuViewer, 
#mapViewerFindByPlace #footerMenuViewer, 
#mapViewerGeoRefMaps #footerMenuViewer {
	margin: 0 0 5px 0;
}

#mapViewer #footerMenu, 
#mapViewerFindByPlace #footerMenu, 
#mapViewerGeoRefMaps #footerMenu,
#mapViewer #footerMenuSite, 
#mapViewerFindByPlace #footerMenuSite, 
#mapViewerGeoRefMaps #footerMenuSite {
	padding: 0 4px 0 0;
}

#mapViewer #footerMenuViewer, 
#mapViewerFindByPlace #footerMenuViewer, 
#mapViewerGeoRefMaps #footerMenuViewer {
	padding: 0 0 0 2px;
}

@media only screen and (max-width: 72rem) {
	#mapViewerGeoRefMaps #footerMenuSite, #mapViewer #footerMenuSite {display: none; }

}

#mapViewerSideBySide #footer {
	position: absolute;
	bottom: 0 !important;
	left: 0;
	width: 56px;
	background-color: #d9dde6;
	font-size: 0.8em;
	font-weight: bolder;
    	border-radius: 4px;
	margin: 0;
	padding: 0;
	border-top: 1px solid #ccc;
	z-index: 100;
}


#mapViewerSideBySide #footerMenuViewer {
	padding: 0 3px 2px 2px;
   	border-radius: 4px;
}

#mapViewerGeoRefMaps #footerMenuViewer {
	padding: 0 3px 2px 2px;
   	border-radius: 4px;
}

#mapViewerSideBySide #footerMenuViewermobile {
	padding: 0 3px 2px 2px;
   	border-radius: 4px;
}

#mapViewerGeoRefMaps #footerMenuViewermobile {
	padding: 0 1px 0 1px;
   	border-radius: 4px;
}

#mapViewerFindByPlace #footerMenuViewermobile {
	padding: 0 1px 2px 1px;
   	border-radius: 4px;
}

     @media only screen and (min-width: 70rem) {

	#mapViewer #tip
	 {
		float: left;
		margin: 0 0 10px 14px;
		padding: 6px 14px;
		background-color: #eee;
		border-right: 1px solid #ccc;
		border-bottom: 1px solid #ccc;
		border-left: 1px solid #ccc;
		line-height: 1em;
	}

}

     @media only screen and (max-width: 70rem) {

	#mapViewer #tip
	 {
		display: none;
	}

}


     @media only screen and (min-width: 60rem) {

	 #mapViewerFindByPlace #tip, #mapViewerGeoRefMaps #tip, #mapViewer #help, #mapViewerFindByPlace #help, #mapViewerGeoRefMaps #help 
	 {
		float: left;
		margin: 0 0 10px 14px;
		padding: 6px 14px;
		background-color: #eee;
		border-right: 1px solid #ccc;
		border-bottom: 1px solid #ccc;
		border-left: 1px solid #ccc;
		line-height: 1em;
	}

}

     @media only screen and (max-width: 60rem) {

	#mapViewerFindByPlace #tip, #mapViewerGeoRefMaps #tip, #mapViewer #help, #mapViewerFindByPlace #help, #mapViewerGeoRefMaps #help 
	 {
		display: none;
	}

}

#mapViewerGeoRefMaps #layers, #mapViewerFindByPlace #layers
 {
	float: left;
	margin: 0 0 14px 0;
	padding: 6px 14px;
	background-color: #eee;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	border-left: 1px solid #ccc;
	line-height: 1.2em;
}

#mapViewer #help:hover, #mapViewerFindByPlace #help:hover, #mapViewerGeoRefMaps #help:hover {
	background-color: #666;
	background-image: url(https://maps.nls.uk/assets/graphics/right_bottom_corner_hover.png);
}
#mapViewer #help a, #mapViewerFindByPlace #help a, #mapViewerGeoRefMaps #help, #mapViewerGeoRefMaps a.olControlCustomPermalinkToggle {
	display: block;
	margin: 0;
	padding: 2px 14px 4px 14px;
	background-image: url(https://maps.nls.uk/assets/graphics/left_bottom_corner.png);
	background-position: bottom left;
	background-repeat: no-repeat;
	color: white;
	text-decoration: none;
}
#mapViewer #help a:hover, #mapViewerFindByPlace #help a:hover, #mapViewerGeoRefMaps #help a:hover, #mapViewerGeoRefMaps a.olControlCustomPermalinkToggle:hover {
	background-image: url(https://maps.nls.uk/assets/graphics/left_bottom_corner_hover.png);
}

#mapViewer #footer p, #mapViewerFindByPlace #footer p, #mapViewerGeoRefMaps #footer p {
	margin-bottom: 0;
}

#mapViewer #map, #mapViewerPrint #map, #mapViewerFindByPlace #map, #mapViewerGeoRefMaps #map, #mapViewerSideBySide #mapleft, #mapViewerSideBySide #mapright, #mapViewerSideBySide #map {
	z-index: 6;
	background-color: #f2f3f4;
	position: absolute;
	height: auto;
	width: auto;
}

#mapViewerSideBySide #mapleft, #mapViewerSideBySide #mapright {
	border: 1px solid #ccc; left:.5em;
}

#mapViewer #map {
	top: 116px;
	bottom: 30px;
	z-index:1;
}

#iiif-notification {
	position: absolute;
	left: 5px;
	bottom: 45px;
    z-index: 1;
    background-color: #FFF;
	padding: 5px;
    border-radius: 2px;
    font-size: 0.75em;
    font-weight: bold;
	color: rbga(0, 0, 51, 0.8);
    opacity: 0.6;
    white-space: nowrap;
}

#mapViewerFindByPlace #map  {
	top: 0px;
	bottom: 37px;
}

#mapViewerGeoRefMaps #map  {
	top: 0px;
	bottom: 40px;
}


#mapViewerPrint #map {
	top: 0px;
	right: 0;
	bottom: 0;
	left: 0;
}

#mapViewerPrint .ol-mouse-position, #mapViewerPrint .ol-zoomslider, #mapViewerPrint .ol-scale-line {
	visibility: hidden;
 }

#mapViewer #map {
	background-image: url(https://maps.nls.uk/assets/graphics/check.png);
}

#mapViewerFindByPlace #map, #mapViewerGeoRefMaps #map {
	left: 0px;
}

#mapViewerFindByPlace #map {
	right: 0px;
}

#mapViewerGeoRefMaps #map {
	right: 0;
}

#mapViewer #map {
	left: 0;
	right: 0;
}

#mapViewer #layersSideBar, #mapViewerGeoRefMaps #layersSideBar { 
	position: absolute;
	top: 185px;
	left: 0.5em;
	max-width: 245px;
	max-height: 600px;
	z-index: 12000;
	background-color: white;
	overflow:hidden;
	margin: 0;
	padding: 0px 10px 5px 10px;
	border-radius: 3px;
	background:rgba(255,255,255,0.9);
	border: 1px solid #ccc;
}

#mapViewerFindByPlace #layersSideBar { 
	position: absolute;
	bottom: 120px;
	left: 0.5em;
	max-width: 265px;
//	height: 330px;
	z-index: 2001;
	background-color: white;
	overflow:hidden;
	margin: 0;
	padding: 0px 10px 5px 10px;
	border-radius: 3px;
	background:rgba(255,255,255,0.9);
	border: 1px solid #ccc;
}


#mapViewerFindByPlace #layersSideBarOutlines { 
	position: absolute;
	bottom: 140px;
	left: 0.5em;
	max-width: 300px;
//	height: 230px;
	height: auto;
	z-index: 12000;
	background-color: white;
//	overflow:hidden;
	margin: 0;
	padding: 0px 10px 5px 10px;
	border-radius: 3px;
	background:rgba(255,255,255,0.9);
	border: 1px solid #ccc;
}

#mapViewerGeoRefMaps #layersSideBarOutlines { 
	position: absolute;
	bottom: 80px;
	left: 55px;
	width: 270px;
//	height: 265px;
	z-index: 2001;
	background-color: white;
//	overflow:hidden;
	margin: 0;
	padding: 2px 5px 5px 5px;
	border-radius: 3px;
	background:rgba(255,255,255,0.9);
	border: 1px solid #ccc;
}

#mapViewerGeoRefMaps #layersSideBarOutlines3d { 
	position: absolute;
	bottom: 120px;
	left: 0.5em;
	width: 255px;
	height: 320px;
	z-index: 2001;
	background-color: white;
//	overflow:hidden;
	margin: 0;
	padding: 0px 10px 5px 10px;
	border-radius: 3px;
	background:rgba(255,255,255,0.9);
	border: 1px solid #ccc;
}


#mapViewerFindByPlace #layersSideBarOutlinesRoy { 
	position: absolute;
	bottom: 110px;
	left: 10px;
	width: 255px;
//	height: 130px;
	z-index: 2000;
	background-color: white;
//	overflow:hidden;
	margin: 0;
	padding: 0px 10px 5px 10px;
	border-radius: 3px;
	background:rgba(255,255,255,0.9);
	border: 1px solid #ccc;
}

#mapViewerFindByPlace #layersSideBarOutlinesRecords { 
	position: absolute;
	bottom: 75px;
	left: 43px;
	width: 275px;
//	height: 285px;
	z-index: 2001;
	background-color: white;
//	overflow:hidden;
	margin: 0;
	padding: 0px 10px 5px 10px;
	border-radius: 3px;
	background:rgba(255,255,255,0.9);
	border: 1px solid #ccc;
}


#mapViewerSideBySide #sidebysideSideBar {
	position: absolute;
	top: 140px;
	left: 50px;
	max-width: 270px;
//	max-height: 600px;
	z-index: 2000;
	background-color: white;
//	overflow:hidden;
	margin: 0;
	padding: 0px 10px 5px 10px;
	border-radius: 3px;
	background:rgba(255,255,255,0.9);
	border: 1px solid #ccc;

}

#mapViewerSideBySide #searchSideBar {
	height: 60px;
//	background-color: #eee;

}

#mapViewer #resultsSideBar, #mapViewerFindByPlace #resultsSideBar {
	position: absolute;
	top: 121px;
	border-radius: 3px;
	right: 5px;
	width: 185px;
	z-index: 1500;
	background-color: white;
	margin: 0px;
	padding: 1px 8px 8px 8px;
//	max-height: 500px;
	background:rgba(255,255,255,0.95);
}

#mapViewerFindByPlace #results {
	margin: 5px 0 0 0;
//	max-height: 400px;
	border: 1px solid #ccc;

	overflow-y: scroll;
	overflow-x: hidden;
}

#mapViewerFindByPlace #results p {
	padding: 5px;

}

#mapViewerFindByPlace #resultsheader {
	max-height: 60px;
	line-height: 1.1em;
	padding-bottom:4px;
}



.resultslist {
	margin: 5px;
	padding: 5px 5px  4px;
	line-height: 1.1em;
}

#mapViewerGeoRefMaps #resultsSideBar {
	position: absolute;
	top: 145px;
	border-radius: 3px;
	right: 5px;
	width: 180px;
	z-index: 3000;
	background-color: white;
	overflow: auto;
	margin: 0px;
	padding: 10px;
	max-height: 500px;
	background:rgba(255,255,255,0.95);
}

 @media only screen and (min-width: 75rem)  {

	#mapViewerGeoRefMaps #wfsParishCountyResults {
	    position: absolute;
	    right: 50px;
	    top: 121px;
	    z-index: 100;
	    background-color: #FFF;
	    border-radius: 2px;
	    font-size: 0.75em;
	    font-weight: bold;
	    opacity: 0.6;
	//    white-space: nowrap;
	}

}

 @media only screen and (min-width: 65rem) and (max-width: 75rem) {

	#mapViewerGeoRefMaps #wfsParishCountyResults {
	    position: absolute;
	    right: 50px;
	    top: 121px;
	    max-width: 300px;
	    z-index: 100;
	    background-color: #FFF;
	    border-radius: 2px;
	    font-size: 0.75em;
	    font-weight: bold;
	    opacity: 0.6;
	//    white-space: nowrap;
	}

}

@media only screen and (min-width: 60rem) and (max-width: 65rem) {

	 #mapViewerGeoRefMaps #wfsParishCountyResults {
	    position: absolute;
	    right: 50px;
	    top: 121px;
	    max-width: 200px;
	    z-index: 100;
	    background-color: #FFF;
	    border-radius: 2px;
	    font-size: 0.75em;
	    font-weight: bold;
	    opacity: 0.6;
	//    white-space: nowrap;
	}

}

@media only screen and (max-width: 60rem) {

	#mapViewerGeoRefMaps #wfsResults {
		display: none;
	}

}




 @media only screen and (min-width: 75rem)  {

	#mapViewerFindByPlace #zoomStatement {
	    position: absolute;
	    right: 222px;
	    top: 121px;
	    z-index: 1000000;
	    background-color: #FFF;
	    border-radius: 2px;
	    font-size: 0.75em;
	    font-weight: bold;
	    opacity: 0.8;
	//    white-space: nowrap;
	}

}

 @media only screen and (min-width: 65rem) and (max-width: 75rem) {

	#mapViewerFindByPlace #zoomStatement {
	    position: absolute;
	    right: 222px;
	    top: 121px;
	    max-width: 300px;
	    z-index: 1000000;
	    background-color: #FFF;
	    border-radius: 2px;
	    font-size: 0.75em;
	    font-weight: bold;
	    opacity: 0.8;
	//    white-space: nowrap;
	}

}

@media only screen and (min-width: 60rem) and (max-width: 65rem) {

	 #mapViewerFindByPlace #zoomStatement {
	    position: absolute;
	    right: 222px;
	    top: 121px;
	    max-width: 200px;
	    z-index: 1000000;
	    background-color: #FFF;
	    border-radius: 2px;
	    font-size: 0.75em;
	    font-weight: bold;
	    opacity: 0.8;
	//    white-space: nowrap;
	}

}

@media only screen and (max-width: 60rem) {

	#mapViewerFindByPlace #zoomStatement {
		display: none;
	}

}

#mapViewerGeoRefMaps #wfsResults
 {
    position: absolute;
    right: 164px;
    bottom: 28px;
    z-index: 100;
    background-color: #FFF;
    border-radius: 2px;
    font-size: 0.75em;
    font-weight: bold;
    opacity: 0.6;
    white-space: nowrap;
}
 

#measurementControlForm {
	position: absolute;
	right: 42px;
	top: 121px;
	z-index:100000;
}

#measurementControlFormSBS {
	position: absolute;
	right: 42px;
	top: 141px;
	z-index:100000;
}

#measurementControlOutput {
	display: none;
	position: absolute;
	right: 5px;
	top: 158px;
	background-color: white;
	z-index:100000;
	font-size: 0.75em;
	font-weight: bold;
	padding: 0 6px;
	border: 1px inset #ddd;
	text-align: right;
	opacity:0.6;
	filter:alpha(opacity=60);
}

#measurementControlOutputSBS {
	display: none;
	position: absolute;
	right: 5px;
	top: 178px;
	background-color: white;
	z-index:100000;
	font-size: 0.75em;
	font-weight: bold;
	padding: 0 6px;
	border: 1px inset #ddd;
	text-align: right;
	opacity:0.6;
	filter:alpha(opacity=60);
}

#measurementControlOutputReturnLink, #measurementControlOutputSpan {
	display: block;
}
#measurementControlOutputSpan {
	height: 1.7em;
}

#controlToggle {
	visibility: hidden;
}

#showlayers	{
	visibility: visible;
	position: absolute;
	bottom: 80px;
	left: 50px;
	z-index: 1000;
	font-size: 0.8em;
	text-decoration: underline;
	color: blue;
	background-color: white;
	padding: 5px 5px 5px 5px;
	border-radius: 6px;
	border: 1px solid #ccc;
}

#showlayers:hover {
	background-color: #D8D8D8;
}


#swaplayers	{
	visibility: visible;
	position: absolute;
	bottom: 26px;
	left: 46%;
	z-index: 1000;
	font-size: 0.8em;
//	text-decoration: underline;
	color: blue;
	background-color: white;
	padding: 3px 5px 3px 5px;
	border-radius: 6px;
        border-width: 1px;
        border-color: #ccc;
}

#swaplayers:hover {
	background-color: #D8D8D8;
}

#swaplayers-swipe	{
	visibility: visible;
	position: absolute;
	bottom: 26px;
	left: 46%;
	z-index: 1000;
	font-size: 0.8em;
//	text-decoration: underline;
	color: blue;
	background-color: rgba(255, 255, 255, 0.7);
	padding: 3px 5px 3px 5px;
	border-radius: 6px;
}

#swaplayers-swipe:hover {
	background-color: #D8D8D8;
}

.swapimg {
    	display: inline-block;
	vertical-align: middle;

}



#showlayersOutlines	{
	visibility: visible;
	position: absolute;
	bottom: 100px;
	left: 10px;
		height: 30px;
	width: 38px;
	z-index: 1000;
	font-size: 0.8em;
	text-decoration: underline;
	color: blue;
	background-image: url(https://maps.nls.uk/assets/graphics/layers.png);
	padding: 0px 5px 0px 2px;
	border-radius: 6px;
	border: 1px solid #000;
}

#showlayersOutlines:hover {
	background-image: url(https://maps.nls.uk/assets/graphics/layers_hover.png);
}

#showlayersOutlinesExplore	{
	visibility: visible;
	position: absolute;
	bottom: 100px;
	left: 5px;
	height: 30px;
	width: 38px;
	z-index: 1000;
	font-size: 0.8em;
	text-decoration: underline;
	color: blue;
	background-image: url(https://maps.nls.uk/assets/graphics/layers.png);
	padding: 0px 5px 0px 2px;
	border-radius: 6px;
	border: 1px solid #000;
}

#showlayersOutlinesExplore:hover {
	background-image: url(https://maps.nls.uk/assets/graphics/layers_hover.png);
}


#mapViewerGeoRefMaps #exploreslideroverlaymobile {
	visibility: visible;
	position: absolute;
	right: 5px;
	bottom: 5px;
	width: 180px;
	z-index: 1000;
	background-color: white;
	padding: -15px 5px 15px 10px;
  	border-radius: 3px;
}

#show	{
	visibility: visible;
	position: absolute;
	top: 122px;
	left: 6px;
	z-index: 1000;
	font-size: 0.8em;
	height: 32px;
	width: 32px;
	background-image: url(https://maps.nls.uk/assets/graphics/search.png);
//	background-color: white;
	padding: 0 5px 2px 0px;
	border-radius: 6px;
	border: 1px solid #000;
}

#show:hover {
	background-image: url(https://maps.nls.uk/assets/graphics/search_hover.png);
}


#sidebysideshow	{
	visibility: visible;
	position: absolute;
	top: 142px;
	left: 50px;
	z-index: 1000;
	font-size: 0.8em;
	text-decoration: underline;
	color: blue;
	height: 32px;
	width: 32px;
	background-image: url(https://maps.nls.uk/assets/graphics/search.png);
	padding: 0px 5px 2px 2px;
	border-radius: 6px;
	border: 1px solid #000;
}

#sidebysideshow:hover {
	background-image: url(https://maps.nls.uk/assets/graphics/search_hover.png);
}



#viewerback	{
	visibility: visible;
	position: absolute;
	top: 205px;
	left: 10px;
	z-index: 1000;
	font-size: 0.8em;
	color: white;
	background-color: rgba(0,128,0,0.7);
	padding: 5px 5px 5px 5px;
	border-radius: 6px;
	border: 1px solid #000;
	cursor: pointer;
}

#viewerback:hover {
	background-color: rgba(107,142,35,0.7);
}

/*-------------------------------------------------------*/
/* Modifications for print page */
#mapViewerPrint #header #pageTitle {
	margin: 0 0 0 270px;
	padding: 16px;
	color: #003;
	font-size: 0.7em;
	border: none;
	line-height: 1.2em;
}

#mapViewerPrint form  {
	display: none;
}


#mapViewerSideBySide #layerSelect {
	display:none;
}



/*-------------------------------------------------------*/
/* Open layers chrome */

/* Mobile Devices - hide header and footer for phones
@media only screen and (max-device-width: 480px), only screen and (-webkit-min-device-pixel-ratio: 2) {
#overview { display:none; }
#header { display:none; }
#footer { display:none; }

} */



/* CSS full-screen layout */
#layerSelect {position: absolute; top: 121px; z-index: 20000; left: 300px;}
#layerSelect2  {position: absolute; top: 340px; left: 20px; z-index: 10000;}
#overlaySelect2  {position: absolute; top: 240px; left: 0px; z-index: 10000;}
#zoomtoextent2 {position: absolute; top: 250px; left: 0px; z-index: 10000;}
#key {position: absolute; top: 130px; left: 11px; z-index: 10000;}

#map form {
	margin: 0;
	padding: 0;
}


#nlsgaz { 
	width: 190px;
	}

#ngrgaz { 
	width: 120px;
	font-size: 0.9em;
	}

#search-button-ngrgaz {
	// clear: left;
	float:right;
	margin: 2px 10px 0px 0px;
	vertical-align: middle;
	width:20px;
	padding: 2px 3px 2px 7px;
	border: 1px;
	color:#f3f3f3;
	font-size: 0.8em;
	border: 1px solid #0000FF; box-shadow: 0 1px 3px #ccc; 
	background-color: #FFF;
	font-weight:700;
	opacity: 0.95;
//	z-index: 100;
        font-family: inherit;
	cursor: pointer;
}

/* CSS autocomplete */
.ac-renderer{position:absolute;border:1px solid #898989;z-index: 30000;margin-top:-1px;max-width:500px; max-height: 400px; overflow: auto; font-size:.9em;}

.ac-row{white-space:nowrap;position:relative;cursor:pointer;padding:5px;background-color:#fff;overflow:hidden !important; text-overflow:ellipsis}
.ac-row .suffix{font-size:.8em;color:#7a7a7a;padding:.1em 0 0 5px}
.ac-row .type{font-size:.8em;color:#aaa;display:block;width:100%}
.ac-highlighted{font-weight:bold}
.ac-active{color:#393939;background-color:#D6D6D6;}
.ac-type{background-color:#990033;color:#FFFFFF;display:block;margin:2px;padding:2px;font-style:italic;float:right}





#customZoom {
    z-index: 1001;
    position: relative;
    top: 10px;
    left: 10px;
}
#customZoom a {
    text-decoration: none;
    position: absolute;
    display: block;
    width: 50px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    background: #369;
    border: 1px solid #ccc;
    border-radius: 3px;
}
#customZoom a:hover {
    background: #036;
}
#customZoomOut {
    top: 25px;
}


#layerfilterzoom {
	font-size: 0.8em; float:right;
}

#mapViewerSideBySide #NLSLogo {
	padding: 6px 16px;
}


#mapViewerSideBySide #siteTitle {
	padding: 10px 0 0 18px;
}

#mapViewerSideBySide #return, #mapViewerSideBySide #zoomtoextent {
	position: absolute;
	right: 5px;
	padding: 0;
	margin: 0;
}

	@media only screen and (min-width: 60rem) {

		#mapViewerSideBySide #zoomtoextentleft {
			position: absolute;
			top: 105px;
		  	right: 51%;
			font-size: 0.8em;
			overflow: hidden;
		}

	}

	@media only screen and (max-width: 60rem) {

		#mapViewerSideBySide #zoomtoextentleft {
			display: none;
		}

	}

	@media only screen and (min-width: 70rem) {

		#mapViewerSideBySide #layerfilterleftcaption {
			position: absolute;
			top: 73px;
		  	right: 52.5%;
			font-size: 0.8em;
			overflow: hidden;
		}

	}

	@media only screen and (max-width: 70rem) {

		#mapViewerSideBySide #layerfilterleftcaption {
			display: none;
		}

	}

	@media only screen and (min-width: 70rem) {

		#mapViewerSideBySide #layerfilterleft {
			position: absolute;
			top: 73px;
		  	right: 51%;
			font-size: 0.8em;
			overflow: hidden;
		}

	}

	@media only screen and (max-width: 70rem) {

		#mapViewerSideBySide #layerfilterleft {
			display: none;
		}

	}


	@media only screen and (min-width: 70rem) {

		#mapViewerSideBySide #layerfilterrightcaption {
			position: absolute;
			top: 73px;
		  	right: 2.5%;
			font-size: 0.8em;
			overflow: hidden;
		}

	}

	@media only screen and (max-width: 70rem) {

		#mapViewerSideBySide #layerfilterrightcaption {
			display: none;
		}

	}


	@media only screen and (min-width: 60rem) {

		#mapViewerSideBySide #zoomtoextentright {
			position: absolute;
			top: 105px;
		  	right: 1%;
			font-size: 0.8em;
			overflow: hidden;
		}

	}

	@media only screen and (max-width: 60rem) {

		#mapViewerSideBySide #zoomtoextentright {
			display: none;
		}

	}

	@media only screen and (min-width: 70rem) {

		#mapViewerSideBySide #layerfilterright {
			position: absolute;
			top: 73px;
		  	right: 1%;
			font-size: 0.8em;
			overflow: hidden;
		}

	}

	@media only screen and (max-width: 70rem) {

		#mapViewerSideBySide #layerfilterright {
			display: none;
		}

	}

#mapViewerSideBySide #return {
	top: 5px;
	font-size: 0.8em;
}

#mapViewerSideBySide #zoomtoextent, #overlaySelectNode, #overlaySelectLayer, #overlaySelectNodeRight, #overlaySelectLayerRight {
	top: 40px;
	font-size: 0.9em;
	overflow: hidden;
	z-index: 14000;
}

#overlaySelectNode,  #overlaySelectNodeRight {
	margin: 0 140px 0 0px;
}

#mapViewerSideBySide #mapleft, #mapViewerSideBySide #mapright, #mapViewerSideBySide #map {
	top: 0px;
	bottom: 0;
}

#mapViewerSideBySide #mapleft {
	left: 0;
	right: 50.2%;
	border-right: 1px solid #ccc;
	border-top: 1px solid #ccc;
}

#mapViewerSideBySide #mapright {
	right: 0;
	left: 49.9%;
	border-left: 1px solid #ccc;
	border-top: 1px solid #ccc;
}

#mapViewerSideBySide #map {
	left: 0;
	right: 0;
}

#mapViewerSideBySide #searchSideBar {
	clear: both;
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
	box-shadow: none;
}

#mapViewerSideBySide #searchSideBar #nlsmapleftform, #mapViewerSideBySide #searchSideBar #nlsmaprightform {
	background-color: #eee;
	padding: 0.5%;
	max-height: 85px;
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}

#mapViewerSideBySide #searchSideBar #nlsmapleftform {
	position: absolute;
	left: 0;
	right: 50.2%;
//	float: left;

}

#mapViewerSideBySide #searchSideBar #nlsmaprightform {
	position: absolute;
	left: 49.9%;
	right: 0;
//	float: right;

}

#mapViewerSideBySide #searchSideBar p {
	font-size: 0.9em;
	padding: 0;
}

/* BLOCKS WITH FLOATED CONTENT FIX */
/* These declarations make sure that the containers that contain nothing 
but floated elements expand to contain those floated elements */

#mapViewerSideBySide #searchSideBar:after{
    content: "."; 
    display: block; 
    height: 0; 
    clear: both; 
    visibility: hidden;
}

* html #mapViewerSideBySide #searchSideBar {
	height: 1%;
}

	#mapViewer #drawControlForm {
	    position: absolute;
	    left: 5px;
	    margin-top: -2px;
	    font-size: 0.9em;
	}

	#mapViewerPrint #drawControlForm {
	    left: 5px;
	    margin-top: 15px;
	    font-size: 0.9em;
	}

	#mapViewerPrint #drawControlForm2 {
	    position: absolute;
	    right: 10px;
	    top: 45px;
	    font-size: 12px;
	    display: inline !important;
	}

	#drawControlFormElevation-div {
	    position: absolute;
 	    background: rgba(207, 219, 234, 0.95); 
	    border: 1px  solid #150b02; 
	    padding: 5px 2px 2px 4px;
	    border-radius:2px;
	    line-height: 1.1em;
	    right: 5px;
	    bottom: 100px;
	    font-size: 0.9em;
	    z-index: 100000;
	}

	#mapViewerGeoRefMaps #stopmeasuringmessage {
	    right: 50px;
	    top: 150px;
	}

	#mapViewerSideBySide #stopmeasuringmessage {
	    right: 5px;
	    top: 172px;
	}

	#mapViewerPrint #stopmeasuringmessage {
		color: blue;
	    right: 45px;
	    top: 88px;
	}

	#mapViewer #stopmeasuringmessage {
	    position: absolute;
	    right: 40%;
	    top: 128px;
	    padding: 0px 10px 0px 10px; 
	    font-size: 14px; 
	    color: blue; 
	    background-color: white; 
	    z-index:10;
	    opacity: 0.6;
	}

	#mapViewerPrint #header #pageTitle {
	   margin-right:180px;
	}

      .ol-popup {position: absolute;background-color: white;-webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
        padding: 15px;border-radius: 10px;font-size: 12px; border: 1px solid #cccccc; bottom: 12px; left: -50px; min-width: 360px;  z-index: 2000000;}
      .ol-popup:after, .ol-popup:before {top: 100%;border: solid transparent;content: " ";height: 0;width: 0;position: absolute;pointer-events: none;text-decoration: none;}
      .ol-popup:after {border-top-color: white; border-width: 10px;left: 48px;margin-left: -10px;}
       a { text-decoration: none; }
      .ol-popup:before {border-top-color: #cccccc;border-width: 11px;left: 48px;margin-left: -11px;}
      .ol-popup-closer {text-decoration: none; position: absolute;top: 2px;right: 8px;}
      .ol-popup-closer:after { content: 'Close' }



		.close {
			    -webkit-appearance: none;
			    padding: 0;
			    cursor: pointer;
			    background: 0 0;
			    border: 0;
			    float: right;
			    font-size: 16pt;
			    font-weight: 700;
			    line-height: 1;
			    margin: 0 0 4px 6px;
			    color: #000;
			    text-shadow: 0 1px 0 #fff;
			    filter: alpha(opacity=20);
			    opacity: .6;
				z-index: 10000000;
			}

			.close:hover {
			    opacity: 0.2;
			}

#showmaplocation { background-color: #4285c5;
	background-image : url(https://geo.nls.uk/maps/img/right_bottom_corner_blue.png) !important;
	background-position: bottom right !important;
}

#showmaplocation:hover { background-color: #94abc2;
	background-image : url(https://geo.nls.uk/maps/img/right_bottom_corner_blue_hover.png) !important;
	background-position: bottom right !important;
}

#showmaplocationinfo { position:absolute; bottom: 80px; display: block; margin-left:290px; margin-right:290px;  max-width: 300px;  padding: 0px 10px 0px 10px; font-size: 12px; color: blue; background-color: white; z-index:100000; } 

#showexaggerationinfo { position:absolute; left: 400px; top: 50%; right: 100px; max-width: 400px; padding: 5px 10px 5px 10px; font-size: 14px; z-index:10000; background-color: white; border-radius: 6px; text-align: center; } 

#showIIIFinfo { position:absolute; bottom: 60px; left:40%; padding: 0px 10px 0px 10px; font-size: 12px; background-color: white; z-index:10; border-radius: 6px;} 

#showlocationinfo { position: absolute; bottom: 50px; display: block; margin-left:20%; margin-right:20%;  width: 30%; padding: 0px 15px 0px 15px; font-size: 12px; line-height: 18px; background-color: white; z-index:10; border-radius: 6px;} 

#showlocationinfo p { font-size: 12px; }

#showlocationinfo li { font-size: 12px;  }

#showmaplocationpopup { text-decoration: underline; color: blue; cursor: pointer; }

#viewgeoreferencedlocationpopup { text-decoration: underline; color: blue; cursor: pointer;  }

#showCoordinatesinfo { position:absolute; bottom: 20px; left:350px; max-width: 500px; padding: 0px 10px 0px 10px; font-size: 12px; background-color: white; z-index:10001; border-radius: 6px;} 

#explorelayerinfo { white-space: nowrap; display: inline; }

#layerinfo { font-size: 0.9em; }

#cesium-logo {position: absolute; bottom: 0; right: 8px; z-index: 1999;}

#mapViewerGeoRefMaps .ol-mouse-position{position: absolute; bottom:28px; }

     @media only screen and (min-width: 40rem) {
		#showRoyinfo { position:absolute; bottom: 40px; left:230px; max-width: 500px; padding: 0px 10px 0px 10px; font-size: 12px; background-color: white; z-index:999; border-radius: 6px;} 
	 }
	 
	 @media only screen and (max-width: 40rem) {
			#showRoyinfo {display: none;}
	 }
	 
	 @media only screen and (min-width: 40rem) {
			#showEdinburghinfo { position:absolute; bottom: 40px; left:200px; max-width: 500px; padding: 0px 10px 0px 10px; font-size: 12px; background-color: white; z-index:999; border-radius: 6px;} 
	 }
	 
	 	 @media only screen and (max-width: 40rem) {
			#showEdinburghinfo {display: none;}
	 }

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100000000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
	font-size: 0.9em;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 10px;
    border: 1px solid #888;
    width: 60%; /* Could be more or less, depending on screen size */
}

#modal-text { z-index: 0; padding: 25px;}

/* The Close Button */
.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    z-index: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



		
@media only screen and (min-width: 40rem) {
	#mapViewerFindByPlace #slider-range {width: 200px; }
}
		
@media only screen and (max-width: 40rem) {
	#mapViewerFindByPlace #slider-range {width: 150px; }
}

		
#scalesofmaps { font-size: 0.9em; line-height: 1.0em; margin:0; padding-bottom: 1px; }
		
#slider-range { margin: 5px; }
		
@media only screen and (min-width: 40rem) {
	#findbuttontoggle { position:absolute; top: 56px; left:280px; background-color:#e6e6e6; border: 1px solid #592F57; border-bottom-left-radius: 6px; border-top-left-radius: 6px;padding: 1px 10px 1px 10px; font-size: 14px; } 
}
		
@media only screen and (max-width: 40rem) {
	#findbuttontoggle { position:absolute; top: 38px; left:5px; background-color:#e6e6e6; border: 1px solid #592F57; border-bottom-left-radius: 6px; border-top-left-radius: 6px;padding: 1px 10px 1px 10px; font-size: 12px; } 
}

#date {
	margin-top: 5px;
}
		
#findbuttontoggle:hover{ background-color:#c8d9ef; }
		
		
@media only screen and (min-width: 40rem) {
	#findquickbuttontoggle { position:absolute; top: 56px; left:436px; background-color:#9dc1ef; border: 2px solid #592F57; border-bottom-right-radius: 6px; border-top-right-radius: 6px;padding: 0px 10px 0px 10px; font-size: 15px; } 
}
		
@media only screen and (max-width: 40rem) {
	#findquickbuttontoggle { position:absolute; top: 38px; left:144px; background-color:#9dc1ef; border: 2px solid #592F57; border-bottom-right-radius: 6px; border-top-right-radius: 6px;padding: 0px 10px 0px 10px; font-size: 14px; } 
}
		
 .controls {
		    margin-top: 10px;
		        border: 1px solid transparent;
		        border-radius: 2px 0 0 2px;
		        box-sizing: border-box;
		        -moz-box-sizing: border-box;
		        height: 32px;
		        outline: none;
		        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
		
		      }
		

      a.skiplink {
        position: absolute;
        clip: rect(1px, 1px, 1px, 1px);
        padding: 0;
        border: 0;
        height: 1px;
        width: 1px;
        overflow: hidden;
      }
      a.skiplink:focus {
        clip: auto;
        height: auto;
        width: auto;
        background-color: #fff;
        padding: 0.3em;
      }
      #map:focus {
        outline: #4A74A8 solid 0.15em;
      }


#progress {
        position: absolute;
        top: -4px;
        left: 0;
        height: 2px;
        background: rgba(0, 0, 51, 0.8);
        width: 0;
        transition: width 250ms;
	z-index: 1000;
      }  


#progress-explore {
        position: absolute;
        bottom: 36px;
        left: 0;
//		height: 1px;
        box-shadow: 0px 0px 1px 1px rgb(0, 0, 51, 0.8);
        width: 0;
        transition: width 250ms;
			z-index: 1000;
      }

#progress-explore-3d {
        position: absolute;
        bottom: 2px;
        left: 0;
//		height: 1px;
        box-shadow: 0px 0px 1px 1px rgb(0, 0, 51, 0.8);
        width: 0;
        transition: width 250ms;
			z-index: 1999;
      }  


#colorcontainer {
        position: absolute;
	top: 121px;
	height: 430px;
	width: 285px;
	right: 5px;
	z-index: 2000;
	background-color: white;
	overflow:hidden;
	margin: 0;
	padding: 5px;
	border-radius: 5px;
	border: 1px solid #ccc;
      }  

#mapViewerPrint .colorlabel label {
	position: absolute;
	margin-top: 70px;
	padding:10px;
	left: 0px;
	font-size: 0.8em;

}

#mapViewer .colorlabel label {
        position: absolute;
	margin-top: 70px;
	padding:10px;
	left: 0px;
	font-size: 0.8em;
	margin-top: 3px;
}

#mapViewer #searchSideBar, #mapViewerFindByPlace #searchSideBar, #mapViewerGeoRefMaps #searchSideBar { 
	position: absolute;
	top: 121px;
	left: 0.5em;
	max-width: 275px;
	max-height: 600px;
	z-index: 2000;
	background-color: white;
//	overflow:hidden;
	margin: 0;
	padding: 0px 5px 5px 10px;
	border-radius: 3px;
	background:rgba(255,255,255,0.9);
	border: 1px solid #ccc;
}

#showcolourbutton {
    visibility: visible;
    position: absolute;
    top: 30px;
    right: 10px;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: rgba(0,128,0,0.7);
    padding: 1px 5px 1px 5px;
    border-radius: 3px;
}

#showcolourbutton:hover {
	background-color: #D8D8D8;
}

		@media only screen and (min-width: 35rem) {

			#showdrawbutton {
			    visibility: visible;
			    position: absolute;
			    top: 30px;
			    right: 10px;
			    z-index: 1000;
			    font-size: 0.9em;
			    color: white;
			    background-color: rgba(0,0,128,0.7);
			    padding: 2px 7px 2px 7px;
			    border-radius: 4px;
			}

		}

		@media only screen and (max-width: 35rem) {

			#showdrawbutton {
				display: none;
			}

		}

#showdrawbutton:hover {
	background-color: #D8D8D8;
}


#returntoexplorebutton {
    visibility: visible;
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 1000;
    font-size: 0.9em;
    color: white;
    background-color: rgba(0,128,0,0.7);
    padding: 2px 7px 2px 7px;
    border-radius: 4px;
}

#returntoexplorebutton:hover {
	background-color: rgba(107,142,35,0.7);
}

#removelastfeaturebutton {
    visibility: visible;
    position: relative;
    margin-top: 55px;
    left: 5px;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: rgba(196,41,35,0.7);
    padding: 2px 5px 2px 5px;
    border-radius: 3px;
}

#removelastfeaturebutton:hover {
	background-color: #D8D8D8;
}

#deletefeaturebutton {
    visibility: visible;
    position: relative;
    margin-top: 5px;
    left: 5px;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: rgba(196,41,35,0.7);
    padding: 2px 5px 2px 5px;
    border-radius: 3px;
}

#deletefeaturebutton:hover {
	background-color: #D8D8D8;
}

#royremovelastfeaturebutton {
    visibility: visible;
    position: relative;
    margin-top: 10px;
    left: 5px;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: rgba(196,41,35,0.7);
    padding: 5px 5px 5px 5px;
    border-radius: 5px;
    display:block;
    clear:left;
}

#royremovelastfeaturebutton:hover {
	background-color: #D8D8D8;
}

#royremovelastfeaturebutton2 {
    visibility: visible;
    position: relative;
    margin-top: 10px;
    left: 5px;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: rgba(196,41,35,0.7);
    padding: 5px 5px 5px 5px;
    border-radius: 5px;
    display:block;
    clear:left;
}

#royremovelastfeaturebutton2:hover {
	background-color: #D8D8D8;
}

#royremovelastfeaturebutton3 {
    visibility: visible;
    position: relative;
    margin-top: 10px;
    left: 5px;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: rgba(196,41,35,0.7);
    padding: 5px 5px 5px 5px;
    border-radius: 5px;
    display:block;
    clear:left;
}

#royremovelastfeaturebutton3:hover {
	background-color: #D8D8D8;
}



#roydeletefirsttranscription {
    visibility: visible;
    position: relative;
    margin-top: 10px;
    left: 5px;
    z-index: 1000;
    font-size: 1em;
    color: white;
    background-color: rgba(196,41,35,0.7);
    padding: 5px 5px 5px 5px;
    border-radius: 5px;
    display:block;
    clear:left;
}

#roydeletefirsttranscription:hover {
	background-color: #D8D8D8;
}

#downloadbutton {
    visibility: visible;
    position: relative;
    margin-top: 5px;
    left: 35px;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: #2c1dd0;
    padding: 2px 5px 2px 5px;
    border-radius: 5px;
}

#downloadbutton:hover {
	background-color: #c5c3db;
}

#exportbutton {
    visibility: visible;
    position: relative;
    margin-top: 55px;
    left: 10px;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: rgba(61,38,196,0.7);
    padding: 2px 5px 2px 5px;
    border-radius: 3px;
}

#exportbutton:hover {
	background-color: #D8D8D8;
}

#export27700button {
    visibility: visible;
    position: relative;
    margin-top: 5px;
    left: 5px;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: rgba(55,212,28,0.7);
    padding: 2px 5px 2px 5px;
    border-radius: 3px;
}

#export27700button:hover {
	background-color: #D8D8D8;
}


#tracepolygon {
    visibility: visible;
    position: relative;
    margin-top: 10px;
    left: 5px;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: rgba(50,231,19,0.7);
    padding: 1px 5px 1px 5px;
    border-radius: 3px;
}

#databasebutton:hover {
	background-color: #D8D8D8;
}


#databasebutton {
    visibility: visible;
    position: relative;
    margin-top: 10px;
    left: 5px;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: rgba(50,231,19,0.7);
    padding: 1px 5px 1px 5px;
    border-radius: 3px;
}

#databasebutton:hover {
	background-color: #D8D8D8;
}


#updatedatabasebutton {
    visibility: visible;
    position: relative;
    margin-top: 5px;
    left: 5px;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: rgba(50,231,19,0.7);
    padding: 5px 5px 5px 5px;
    border-radius: 3px;
}

#updatedatabasebutton:hover {
	background-color: #D8D8D8;
}


#updatecompletenessbutton {
    visibility: visible;
    position: relative;
    margin-top: 5px;
    left: 5px;
    z-index: 1000;
    font-size: 1.0em;
    color: white;
    background-color: rgba(50,231,19,0.7);
    padding: 5px 5px 5px 5px;
    border-radius: 3px;
}

#updatecompletenessbutton:hover {
	background-color: #D8D8D8;
}

#roydatabasebutton {
    visibility: visible;
    position: relative;
    margin-top: 10px;
    margin-left: 10px;
    float: left;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: rgba(50,50,231,0.7);
    padding: 5px 5px 5px 5px;
    border-radius: 5px;
}

#roydatabasebutton:hover {
	background-color: #D8D8D8;
}

#roydatabasebutton2 {
    visibility: visible;
    position: relative;
    margin-top: 10px;
    margin-left: 10px;
    float: left;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: rgba(50,50,231,0.7);
    padding: 5px 5px 5px 5px;
    border-radius: 5px;
}

#roydatabasebutton2:hover {
	background-color: #D8D8D8;
}

#roydatabasebutton3 {
    visibility: visible;
    position: relative;
    margin-top: 10px;
    margin-left: 10px;
    float: left;
    z-index: 1000;
    font-size: 0.8em;
    color: white;
    background-color: rgba(50,50,231,0.7);
    padding: 5px 5px 5px 5px;
    border-radius: 5px;
}

#roydatabasebutton3:hover {
	background-color: #D8D8D8;
}

#measuremessage {
    position: absolute;
	bottom:55px;
    left: 5px;
    right: 5px; 
//    color: blue;
    font-size: 0.8em;
    line-height: 1.2em;
    border: 1px solid lightgray;
	margin-top: 3px;
	margin-bottom: 3px;
	padding: 4px;
}

#name {

    font-size: 0.8em;
    line-height: 1.2em;

}

/* Common stuff */
.picker-wrapper, 
.slide-wrapper {
    position: relative;
    float: left;
}
.picker-indicator,
.slide-indicator {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}
.picker,
.slide {
    cursor: crosshair;
    float: left;
}


/* Default skin */

.cp-default {
    background-color: white;
    padding: 12px;
//    box-shadow: 0 0 40px #000;
    border-radius: 15px;
    float: left;
}
.cp-default .picker {
    width: 200px;
    height: 200px;
}
.cp-default .slide {
    width: 30px;
    height: 200px;
}
.cp-default .slide-wrapper {
    margin-left: 10px;
}
.cp-default .picker-indicator {
    width: 5px;
    height: 5px;
    border: 2px solid darkblue;
    -moz-border-radius: 4px;
    -o-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    opacity: .5;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
    filter: alpha(opacity=50);
    background-color: white;
}
.cp-default .slide-indicator {
    width: 110%;
    height: 10px;
    left: -4px;
    opacity: .6;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);
    filter: alpha(opacity=60);
    border: 2px solid darkblue;
    -moz-border-radius: 4px;
    -o-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    background-color: white;
}


/* Fancy skin */

.cp-fancy {
    margin-top:0px;
    padding: 10px;
    background-color: #ededed; 
//    background: -webkit-linear-gradient(top, #aaa 0%, #222 100%);   
    float: left;
    border: 1px solid #999;
    box-shadow: inset 0 0 10px white;
}
.cp-fancy .picker {
    width: 200px;
    height: 200px;
    border: 1px solid #999;
}
.cp-fancy .slide {
    width: 30px;
    height: 200px;
    border: 1px solid #999;
}
.cp-fancy .slide-wrapper {
    margin-left: 10px;
}
.cp-fancy .picker-indicator {
    width: 24px;
    height: 24px;
    background-image: url(http://cdn1.iconfinder.com/data/icons/fugue/bonus/icons-24/target.png);
}
.cp-fancy .slide-indicator {
    width: 30px;
    height: 31px;
    left: 30px;
    background-image: url(http://cdn1.iconfinder.com/data/icons/bluecoral/Left.png);
}

.io {
   clear: both;
   float: left;
   margin-top: 2px;
   padding: 2px;
   border: 1px solid lightgray;
   position: relative;
   background-color: white;
}

.io input {
   width: 48px;
   border: 1px solid black;
   font-size: 11px;
}

.io input#rgb_r {
   width: 36px;
   border: 1px solid black;
}

.io input#rgb_g {
   width: 36px;
   border: 1px solid black;
}

.io input#rgb_b {
   width: 36px;
   border: 1px solid black;
}

.io label {
   font-size: 12px;
   font-weight: bold;
}


#transparency { 
	position: absolute;
	bottom: 40px;
	left: 45px;
	max-width: 245px;
	max-height: 600px;
	z-index: 2000;
	background-color: white;
	overflow:hidden;
	margin: 0;
	padding: 0px 10px 5px 10px;
	border-radius: 3px;
	background:rgba(255,255,255,0.9);
	border: 1px solid #ccc;

}


#transparency h4 {
	line-height: 0.9em;
    	margin: 0.4em 0 0.5em 0;
}

#zoomtoextents { 
	position: absolute;
	bottom: 40px;
	left: 300px;
	max-width: 255px;
	max-height: 600px;
	z-index: 2000;
	background-color: white;
	overflow:hidden;
	margin: 0;
	padding: 2px 10px 5px 10px;
	border-radius: 3px;
	background:rgba(255,255,255,0.9);
	border: 1px solid #ccc;

}

#zoomtoextent p {
	font-size: 0.9em;
}

#date h4 {
	font-size: 0.8em;
	line-height: 0.9em;
    	margin: 0.4em 0 0.7em 0;
}
		
#kw { 
	width: 125px;
	font-size: 10pt;
	margin-bottom: 10px;

}

#search-button-kw {
	float:right;
	margin-left:5px;
	margin-right:30px;
	margin-top: - 20px;
 	text-align: center;
	vertical-align: top;
	width:40px;
	padding: 2px 5px 2px 5px;
	border: 2px;
	color:#FFFFFF;
	font-size: 0.8em;
	border: 1px solid #0000FF; box-shadow: 0 1px 3px #ccc; 
	border-radius: 2px;
	background-color: #FFF;
	font-weight:700;
	opacity: 0.95;
	z-index: 100;
        font-family: inherit;
}

#search-button-kw:hover { 
	background-color: #D8D8D8;
}

#clearfilters { 
	margin-top: -5px;
	text-align: center;
	padding: 3px;
//	font-size: 1.0em;
	color: white;
	border: 1px solid  #0000FF; box-shadow: 0 1px 3px #ccc; 
	border-radius: 2px;
	width: 100px;
}

#clearfilters:hover { 
	background-color: #D8D8D8;
}

#nofilters { 
	margin-top: 5px;
}

#dateIDslider.slider .tooltip.top {  margin-top: 20px;}

#explorelinks {
    position: absolute;
    padding: 0 5px 0 5px;
    left: 450px;
    bottom: 69px;
    z-index: 1800;
    background-color: #FFF;
    border-radius: 2px;
    font-size: 0.7em;
//    font-weight: bold;
    opacity: 0.9;
    white-space: nowrap;
}

#move {
    position: absolute;
    padding:20px;
    line-height: 1em;
    height:20px;
}

#searchSideBarheader { 
	margin-top:2px;
	margin-left:-6px;
	margin-bottom:4px;
	float:left;
	width:32px;
	cursor: move;
}

#layersSideBarOutlinesheader { 
	margin-top:2px;
	margin-left:-2px;
	margin-right:4px;
	margin-bottom:4px;
	float:left;
	width:32px;
	cursor: move;
}

#layersSideBarOutlinesRoyheader  { 
	margin-top:2px;
	margin-left:-6px;
	margin-right:4px;
	margin-bottom:4px;
	float:left;
	width:32px;
	cursor: move;
}

#layersSideBarOutlinesRecordsheader  { 
	margin-top:2px;
	margin-left:-6px;
	margin-right:4px;
	margin-bottom:4px;
	float:left;
	width:32px;
	cursor: move;
}

#layersSideBarOutlines3dheader { 
	margin-left:-6px;
	margin-right:4px;
	margin-bottom:4px;
	float:left;
	width:32px;
	cursor: move;
}

#layersSideBarheader { 
	margin-top:2px;
	margin-left:-8px;
	margin-right:4px;
	margin-bottom:4px;
	float:left;
	width:32px;
	cursor: move;
}

#sidebysideSideBarheader { 
	margin-left:-8px;
	margin-right:4px;
	margin-bottom:4px;
	float:left;
	width:32px;
	cursor: move;
}

#url {
	font-weight: bold;
	display: inline-block;
	white-space: nowrap;
	overflow: hidden;
}

#clipboard-response {
	display: inline-block;
        white-space: nowrap;
        overflow: hidden;
}

#copytilesetbutton {
	display: inline-block;
	margin-top: -10px;
}

#copytilesetbutton:hover {
	cursor: pointer;
	background-color: #bfbfbf;
}

	.WFSclose {
	  float: right;
	  font-size: 22px;
	  font-weight: bold;
	  padding-right:3px;
	}
	
	.WFSclose:hover,
	.WFSclose:focus {
	  color: #aaa;
	  text-decoration: none;
	  cursor: pointer;
	}


		/* Tooltip container */
		.tooltip2 { position: relative;  display: inline-block;   z-index: 2; }
		
		/* Tooltip text */
		.tooltip2 .tooltiptext {top: -5px;left: 110%;visibility: hidden;width: 200px;background-color:rgba(1,1,1,0.7);	color: #fff;text-align: center;	padding: 5px 5px;border-radius: 6px;position: absolute;z-index: 3000; font-size: 0.9em !important; line-height:1.3em;}
		
		/* Show the tooltip text when you mouse over the tooltip container */
		.tooltip2:hover .tooltiptext {   display: inline-block;  visibility: visible;}

		.tooltip2 .tooltiptext::after {	  content: " ";  position: absolute;  top: 15px; right: 100%; margin-top: -5px; border-width: 5px; border-style: solid;  border-color: transparent black transparent transparent;}


		.onoffswitch {
		    position: relative; width: 58px; margin-top:3px; margin-bottom:5px;
		    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
		}
		.onoffswitch-checkbox {
		    position: absolute;
		    opacity: 0;
		    pointer-events: none;
		}
		.onoffswitch-label {
		    display: block; overflow: hidden; cursor: pointer;
		    border: 2px solid #170909; border-radius: 20px;
		}
		.onoffswitch-inner {
		    display: block; width: 200%; margin-left: -100%;
		    transition: margin 0.3s ease-in 0s;
		}
		.onoffswitch-inner:before, .onoffswitch-inner:after {
		    display: block; float: left; width: 50%; height: 20px; padding: 0; line-height: 20px;
		    font-size: 12px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
		    box-sizing: border-box;
		}
		.onoffswitch-inner:before {
		    content: "ON";
		    padding-left: 10px;
		    background-color: #345AC2; color: #FFFFFF;
		}
		.onoffswitch-inner:after {
		    content: "OFF";
		    padding-right: 10px;
		    background-color: #EEEEEE; color: #999999;
		    text-align: right;
		}
		.onoffswitch-switch {
		    display: block; width: 14px; margin: 3px;
		    background: #FFFFFF;
		    position: absolute; top: 0; bottom: 0;
		    right: 34px;
		    border: 2px solid #170909; border-radius: 20px;
		    transition: all 0.3s ease-in 0s; 
		}
		.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
		    margin-left: 0;
		}
		.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
		    right: 0px; 
		}


        #chart { position: absolute;
		    bottom: 75px;
		    left: 5px;
		    right: 5px;
		    height: 265px;
		    z-index: 2001;
		    background-color: white;
		    overflow: hidden;
		    margin: 0;
		    padding: 2px 5px 5px 5px;
		    border-radius: 3px;
		    background: rgba(255,255,255,0.9);
		    border: 1px solid #ccc;
	}
        #chart p { text-align: center; vertical-align: center; }

	#showHeight { position: absolute; bottom: 100px; right: 5px; background: rgba(255, 255, 255, 0.5); border-radius: 1px;font-size:9pt; line-height: 12pt; padding: 3px; white-space: nowrap; z-index: 10; }

	#footerMenuViewermobile {
		margin-block-start: 0em;
	}

	#mapViewerGeoRefMaps #footermobile {
		position: absolute;
		bottom: 3px !important;
		left: 2px;
		width: 53px;
		background-color: #d9dde6;
		font-size: 0.8em;
		font-weight: bolder;
//		border-radius: 4px;
		margin: 0;
		padding: 0;
		border-top: 1px solid #ccc;
		z-index: 100;

	}
	
	.mobile {
    display: none;
	}
	
	#morePanel  {
    display: none;
	}

	/* The WMTSModal (background) */
	.WMTSmodal {
	  display: none; /* Hidden by default */
	  position: fixed; /* Stay in place */
	  z-index: 10000; /* Sit on top */
	  left: 0;
//	  top: 20%;
	  margin:5% auto;
	  width: 100%; /* Full width */
	  height: 100%; /* Full height */
	  overflow: auto; /* Enable scroll if needed */
//	  background-color: rgb(0,0,0); /* Fallback color */
	  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
	  border: 1px solid #000;

	}
	
	/* Modal Content/Box */

        @media only screen and (min-width: 50rem) {

		.modal-content {
		  background-color: #fefefe;
		  margin: 15% auto; /* 15% from the top and centered */
		  padding: 20px;
		  border: 1px solid #888;
	          border-radius: 4px;
		  width: 60%; /* Could be more or less, depending on screen size */

		}

	}

        @media only screen and (max-width: 50rem) {

		.modal-content {
		  background-color: #fefefe;
		  margin: 5% auto; /* 15% from the top and centered */
		  padding: 10px;
		  border: 1px solid #888;
	          border-radius: 4px;
		  width: 90%; /* Could be more or less, depending on screen size */

		}

	}
	
	/* The Close Button */
	.close {
	  color: #555555;
	  float: right;
	  font-size: 28px;
	  font-weight: bold;

	}
	
	.close:hover,
	.close:focus {
	  color: black;
	  text-decoration: none;
	  cursor: pointer;
	}

	/* The WMTSClose Button */
	.WMTSclose {
	  color: #555555;
	  float: right;
	  font-size: 28px;
	  font-weight: bold;

	}
	
	.WMTSclose:hover,
	.WMTSclose:focus {
	  color: black;
	  text-decoration: none;
	  cursor: pointer;
	}

	#xyzcontent {
		display: inline-block;

        	overflow: hidden;
	}

	#WMTScontent {
		overflow-wrap: break-word;
	}
	



	#copytilesetbutton {
		display: inline-block;
		margin-top: -10px;
	}
	
	#copytilesetbutton:hover {
		cursor: pointer;
		background-color: #bfbfbf;
	}
	
	#mobile-notification {
		display: none;
	}
	
	.morePanel-img { display: inline; margin: 5px 10px -5px 0; vertical-align: bottom;  }
