@import './normalize_8.0.1.css';
@import url('https://api.mapbox.com/mapbox-gl-js/v1.10.0/mapbox-gl.css');

@font-face {
	font-family: 'WHT_Recreation_regular';
	src: url('imgs/WHT RECREATION.OTF') format('opentype');
}

@font-face {
	font-family: 'WHTBusiness_regular';
	src: url('imgs/WHTBusiness.OTF') format('opentype');
}

@font-face {
	font-family: 'WHTThree_regular';
	src: url('imgs/WHTThree.OTF') format('opentype');
}
@font-face {
	font-family: 'ESRI_US_Forestry_1';
	src: url('imgs/ESRI_651.TTF') format('truetype');
}
@font-face {
	font-family: 'ESRI_AMFM_Water';
	src: url('imgs/ESRI_153.TTF') format('truetype');
}



/* These colours are WHT's branding set, but don't use them here - do all colour specification in individual maps' main.css files */

:root {
	--dxgreen:		rgb( 66,  79,  39);
	--dxred:			rgb(159,  45,  58);
	--beige:			rgb(236, 223, 184);
	--stdgrey:		rgb(159, 158, 149);
	--khaki:			rgb(160, 144, 101);
	--dxkhaki:		rgb(114, 102,  72);
	--dxpurple:		rgb( 98,  77, 116);
	--dxbrown:		rgb(118,  73,  53);
	--ltpurple:		rgb(173, 114, 181);
	--stdblue:		rgb( 77, 116, 179);
	--stdorange:	rgb(235, 164, 101);
	--whitetrans:	rgba(255, 255, 255, 0.9);
}

body {
	font-family: Arial, Open Sans, Century Gothic, Tw Cen MT, Avant Garde Gothic, ITC Avant Garde, Gothic L, Twentieth Century, TeX Gyre Adventor, futura-pt, sans-serif;
	text-rendering: optimizeLegibility;
	height: 100%;
	font-size: 14px;
	overflow: hidden;
}

h1 {
	font-weight: 600;
	font-size: 80px;
	letter-spacing: -0.04em;
	line-height: 0.9em;
}

h2 {
	font-weight: 500;
	font-size: 21px;
	letter-spacing: 0em;
	line-height: 1.1em;
	margin: 0;
}

h3 {
	font-weight: 500;
	font-size: 16px;
	line-height: 1em;
	margin-top: 20px;
	margin-bottom: 0px;
}

h4 {
	font-weight: 400;
	font-size: 14px;
	line-height: 1em;
	margin-top: 8px;
	margin-bottom: 0px;
}

p {
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.3em;
	line-height: 1.1em;
}

div#map {
	width: calc(100% - 260px);
	height: 100vh;
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	margin: none;
	border: none;
	z-index: 45;
}

.fullscreen-btn {
	background-image: url('../common/imgs/fullscreen.png');
	background-size: 60%;
	background-repeat: no-repeat;
	background-position: center center;
}

.fullscreen-btn.exit-fullscreen {
	background-image: url('../common/imgs/exit_fullscreen.png');
	background-size: 80%;
}

.share-btn {
	background-image: url('../common/imgs/share_btn.png');
	background-size: 60%;
	background-repeat: no-repeat;
	background-position: center center;
}

div#shareDialog {
	display: none;
	position: absolute;
	left: calc(50vw - 125px);
	top: calc(50vh - 125px);
	z-index: 100;
}

div#shareDialog h2 {
	padding: 5px 10px;
}

div#shareDialog .floatRight {
	float: right;
	padding-left: 2em;
	cursor: pointer;
}

div#shareLinks {
	padding: 5px 10px;
}

span.shareLink {
	display: block;
	clear: both;
	padding: 5px 0;
	font-size: 12pt;
}

span.shareLink, span.shareLink a, span.shareLink a:visited {
	text-decoration: none;
}

span.shareLink:hover, span.shareLink a:hover {
	text-decoration: underline;
}

div#coords {
	position: absolute;
	right: 0px;
	bottom: 0px;
	z-index: 10;
	padding: 2px 10px 4px 8px;
	display: none;
}

div#sidebar {
	height: 100vh;
	width: 250px;
	position: absolute;
	overflow: hidden;
	right: 0px;
	top: 0px;
	z-index: 47;
	padding: 1em 5px 5px 5px;
}

.hidden {
	display: none;
}

h2#filtersHeading, h2#searchHeading, h2#legendsHeading {
	z-index: 60;
}

h2#popupsHeading {
	z-index: 30;
}

div#wht_logo {
	text-align: center;
}

div#wht_logo img {
	max-width: calc(100vw / 7);
	max-height: calc(100vh / 8);
}

div#sponsor_logos, div#sponsor_logos_small_screen {
	padding: 5px;
	z-index: 50;
}

div#sponsor_logos::after, div#sponsor_logos_small_screen::after {
	content: "";
	clear: both;
	display: table;
}

div.text_float {
	float: left;
	clear: none;
	padding: 10px;
	margin: auto;
}

div#sponsor_logos div.text_float h3, div#sponsor_logos_small_screen div.text_float h3 {
	text-align: center;
	padding: 0px;
	margin: 0px;
	width: 96px;
}

div#sponsor_logos img, div#sponsor_logos_small_screen img {
	max-width: 70px;
	margin: 2px;
	float: left;
}

p.sponsor_note {
	clear: both;
	margin: 1em -1ex 0.5ex -1ex;
	padding: 1.2ex 25px 0 25px;
	border-top: 2px solid var(--dxred);
	font-size: 14px;
	letter-spacing: 0.05ex;
}

div#controls {
	padding: 5px;
	margin: -5px -4px 0 -4px;
}

div#controls h2 {
	display: block;
	padding: 10px 25px;
}

span.mapSwitcher, span.filterControl {
	font-size: 15px;
	cursor: pointer;
}

span.mapSwitcher.right {
	float: right;
}

#filtersHeading.extended {
	height: 55px;
}

span.filterControl {
	padding: 4px;
	margin: 30px 5px 5px 5px;
	width: 38%;
	text-align: center;
	position: absolute;
	border-radius: 5px;
}

span.filterControl.left {
	clear: both;
	left: 14px;
}
span.filterControl.right {
	right: 14px;
}

span.filterControl.inactive {
	display: none;
}

span.filterControl:hover {
	text-decoration: underline;
}

div#filterText, div#searchText, div#legend, div#popupContainer {
	margin: none;
	overflow-x: visible;
}

div#legend, div#popupContainer, div#filterText, div#searchText {
	padding: 5px;
	max-height: calc(100vh - 400px);
	overflow-y: auto;
}

div.legendPreface {
	font-style: italic;
	padding: 1ex 1em 0 1em;
	margin-bottom: -1ex;
}

div.popupItem {
	padding-bottom: 10px;
}

div.popupItem img {
	max-width: 100%;
}

span.popupField {
	margin-bottom: 6px;
}

span.prefixText {
	font-style: italic;
}

span.filterSubhead {
	font-size: 100%;
	font-style: italic;
}

div.legendItem, div.polygonLegend {
	display: block;
	line-height: 21px;
	height: 21px;
	overflow: hidden;
}

span.legendSymbol {
	vertical-align: middle;
	text-rendering: geometricPrecision;
}

svg.legendLineSample {
	width: 30px;
	height: 20px;
	border: none;
	margin: 0;
	padding: 0;
	position: relative;
	left: -7px;
}

span.legendDefinition, span.filterText {
	font-family: Arial, Open Sans, Century Gothic, Tw Cen MT, Avant Garde Gothic, ITC Avant Garde, Gothic L, Twentieth Century, TeX Gyre Adventor, futura-pt, sans-serif;
	text-rendering: optimizeLegibility;
	font-size: 15px;
	text-shadow: none;
	margin: 2px 0 0 5px;
	overflow-x: visible;
	overflow-y: hidden;
	height: 21px;
}

span.popupField {
	display: block
}

.popupField img {
	max-width: 300px;
}

.collapseControl {
	cursor: default !important;
}

h2.collapseControl {
	cursor: pointer !important;
}

.collapseControl:after {
	cursor: pointer;
  content: '\02795'; /* Unicode character for "plus" sign (+) */
  float: right;
  margin-left: 5px;
}

.collapseControl.active:after {
  content: "\2796"; /* Unicode character for "minus" sign (-) */
}

.collapsibleContent {
	display: none;
}

.collapsibleContent.active {
	display: block;
}

span.smallScreensOnly {
	display: none;
}

div.mapboxgl-ctrl-bottom-right {
	margin-bottom: 27px !important;
}


@media
	only screen and (max-width: 800px),
	only screen and (max-height: 640px)
{
	.fullscreen-btn {
		display: none !important;
	}

	body {
		font-size: 11px;
	}

	h1 {
		font-size: 60px;
	}

	h2 {
		font-size: 16px;
	}

	h3 {
		font-size: 15px;
		margin-top: 10px;
	}

	h4 {
		font-size: 13px;
		margin-top: 6px;
	}

	p {
		font-size: 11px;
	}

	div#map {
		width: 100vw;
		height: calc(100vh - 40px);
		top: 40px;
		border: 0px;
		margin: 0px;
		padding: 0px;
		z-index: 5;
	}

	div#shareDialog h2 {
		padding: 3px 6px;
	}

	div#shareDialog .floatRight {
		padding-left: 1em;
	}

	div#shareLinks {
		padding: 3px 6px;
	}

	div#coords {
		font-size: 10px;
		padding: 0px 6px 1px 6px
	}

	div.mapboxgl-ctrl-bottom-right {
		margin-bottom: 20px !important;
		margin-right: -4px !important;
	}

	div#sidebar {
		width: 100vw;
		height: 30px;
		border: none;
		overflow: visible;
		padding: none;
	}

	div#wht_logo {
		display: none;
	}

	div#sponsor_logos, div#sponsor_logos_small_screen {
		padding: none;
		width: 50vw;
		position: absolute;
		left: 25vw;
		top: 0px;
		height: 40px;
		padding: 0px;
		text-align: center;
	}

	div#sponsor_logos .text_float, div#sponsor_logos_small_screen .text_float {
		display: none;
	}

	div#sponsor_logos img, div#sponsor_logos_small_screen img {
		max-width: 12vw;
		max-height: 40px;
		margin: 0 2px !important;
		float: none !important;
		vertical-align: middle
	}

	div#controls {
		padding: 0px;
		margin: 0px;
		width: 100%;
		height: 100%;
		position: absolute;
		top: 0px;
		left: 0px;
		right: 0px;
		pointer-events: none;
	}

	h2#filtersHeading, h2#searchHeading, h2#popupsHeading {
		height: 20px;
		display: block;
		position: absolute;
		margin: 0px !important;
		pointer-events: auto;
	}

	h2#filtersHeading {
		width: calc(25vw - 30px);
		top: 0px;
		left: 0px !important;
		padding: 10px 10px 10px 20px !important;
	}

	h2#searchHeading {
		width: calc(25vw - 30px);
		top: 0px;
		right: 0px !important;
		padding: 10px 10px 10px 20px !important;
	}

	h2#legendsHeading {
		display: none !important;
	}

	h2#popupsHeading {
		width: 26vw;
		bottom: 0px;
		left: 37vw;
		padding: 5px 0px;
	}

	h2#baseMapControl {
		display: none !important;
	}

	div#filterText, div#searchText, div#legend, div#popupContainer {
		max-width: 80vw;
		max-height: calc(100vh - 140px);
		pointer-events: auto;
	}

	div#filterText, div#searchText, div#legend {
		margin: 80px auto 20px auto;
	}

	div#popupContainer {
		position: absolute;
		bottom: 0;
		left: 15vw;
		width: 70vw;
		margin: 20px auto 40px auto;
	}

	div.popupItem: {
		padding-bottom: 7px;
	}

	span.largeScreensOnly {
		display: none;
	}

	span.smallScreensOnly {
		display: inline;
	}

	p.sponsor_note {
		display: none;
	}
}

@media
	only screen and (max-width: 450px)
{
	.fullscreen-btn {
		display: none !important;
	}

	body {
		font-size: 10px;
	}

	h1 {
		font-size: 40px;
	}

	h2 {
		font-size: 14px;
	}

	h3 {
		font-size: 13px;
		margin-top: 9px;
	}

	h4 {
		font-size: 11px;
		margin-top: 4px;
	}

	p {
		font-size: 10px;
	}

	div#shareDialog h2 {
		padding: 2px 4px;
	}

	div#shareDialog .floatRight {
		padding-left: 1ex;
	}

	div#shareLinks {
		padding: 2px 4px;
	}

	div#coords {
		font-size: 10px;
		padding: 0px 4px 1px 4px;
	}

	div#sponsor_logos, div#sponsor_logos_small_screen {
		width: 40vw;
		left: 30vw;
	}

	div#sponsor_logos img, div#sponsor_logos_small_screen img {
		max-width: 8vw;
		margin: 0 1px;
		vertical-align: middle;
	}

	h2#filtersHeading, h2#searchHeading {
		width: calc(30vw - 30px);
		padding: 10px 5px 5px 10px !important;
	}

	h2#searchHeading {
		width: calc(30vw - 30px);
		padding: 10px 5px !important;
	}

	h2#legendsHeading {
		width: 25vw;
		left: 35vw;
	}

	h2#popupsHeading {
		width: 30vw;
		left: 35vw;
	}

	div.popupItem: {
		padding-bottom: 7px;
	}
}
