/* ------------------------- 
   Define Global Variables
-------------------------*/
:root {
	--theme-color-1: #2D3956;
	--theme-color-2: #677C97;
	--adjustable-width: max(1195px, 100%);

	/*
	// Alternative color scheme
	--theme-color-1: #333232;
	--theme-color-2: #5b5b5b;
	*/
}


/* ------------------------- 
   ESRI Map CSS
-------------------------*/

html, body, #map {
	padding: 0;
	margin: 0;
	background-color: var(--theme-color-1);
}

#map{
	height: calc(100% - 193px);
	width: var(--adjustable-width);
	border-top: 3px solid;
	border-bottom: 3px solid;
	position: absolute;
	top:120px;
}

#mapTitle {
	display: table;
	position: absolute;
    z-index: 50;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
    padding-top: 10px;
    padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 10px;
    background: rgba(255, 255, 255, 0.8);
	font-size: 24px;
	border-radius: 10px;
	border: 1px solid black;
}

#BasemapToggle {
	position: absolute;
	top: 20px;
	right: 1%;
	z-index: 50;
}

#HomeButton {
	position: absolute;
	top: 100px;
	left: 20px;
	z-index: 50;
}

#ui-esri-dijit-geocoder {
	top:      20px;
	left:     70px;
	position: absolute;
	z-index:  3;
}

.esriPopupWrapper .title {
	cursor: move;
	background-color: var(--theme-color-1);
}

.esriPopup .hidden {
	display: none !important;
}

.infobutton {
	width: 54px;
	height: 54px;
	border: 1px solid black;
	border-radius: 4px;
	margin-right: 5px;
}

.infobutton:hover{
	box-shadow: 0 0 5px 3px rgba(0, 140, 186, 0.5);
}

/* ------------------------- 
   Colorbar
-------------------------*/

#colorbar {
	width: 80px;
	height: calc((100vh - (167px + 1.6em)) * 0.65);
	position: absolute;
	top: 150px;
	right: 1%;
	z-index: 50;
}

#cbar_label {
	transform: rotate(-90deg);
	transform-origin: 100% 0;
	-ms-transform: rotate(-90deg);
	-ms-transform-origin: 100% 0;
	-webkit-transform: rotate(-90deg);
	-webkit-transform-origin: 100% 0;
	position: absolute;
	top: 0px;
	bottom: 0px;
	right: calc(1% + 20px);
	height: 20px;
	width: calc((100vh - (167px + 1.6em)) * 0.65);
	text-align: center;
	font-size: 18px;
}

.textshadow {
	color: white;
	/*text-shadow: 1px 0 0 white, 0 -1px 0 white, 0 1px 0 white, -1px 0 0 white;*/
	text-shadow:0 0 0.2em black, 0 0 0.2em black, 0 0 0.2em black;
}

.cbar_block {
	position: absolute;
	width: 30px;
	right: calc(1% + 30px);
	border: 1px solid black;
}

.cbar_tick {
	position: absolute;
	font-size: 16px;
	right: calc(1% + 67px);
}

/* ------------------------- 
   Copyright
-------------------------*/

#copyright {
	position: absolute;
	right: 75px;
	bottom: 22px;
	background-color: rgba(255, 255, 255, 0.7);
	font-size: 12px;
	z-index: 50;
	padding: 0 5px;
}

/* ------------------------- 
   Layer Controls
-------------------------*/

.layerlist_toggle{
	position: absolute;
	top: 150px;
	left: 20px;
	height: 34px;
	width: 34px;
	z-index: 50;
	cursor: pointer;
	background: url("../images/layers_inactive.png");
	background-size: 34px 34px;
	border-style: none;
	border-radius: 5px;	
}

.layerlist_toggle:hover {
	border-style: none;
	background: url("../images/layers_hover.png");
	background-size: 34px 34px;
}

.layerlist_active, .layerlist_active:hover{
	border-style: none;
	background: url("../images/layers_active.png");
	background-size: 34px 34px;
}


#layerList {
	position: absolute;
	top: 150px;
	left: 80px;
	z-index: 50;
	width: max(25vw, 372px);
	border: 1px solid black;
}

.collapsible {
	background-color: var(--theme-color-2);
	color: white;
	cursor: pointer;
	padding: 10px;
	width: 100%;
	border: none;
	text-align: left;
	outline: none;
	font-size: 18px;
	border: 1px solid black;
}

.active, .collapsible:hover {
	background-color: var(--theme-color-1);
}

.collapsible:after {
	content: '\002B';
	color: white;
	font-weight: bold;
	float: right;
	margin-left: 5px;
}

.active:after {
	content: "\2212";
}

.layer_content {
	padding: 0 18px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s ease-out;
	background-color: #f1f1f1;
}

.layer_controls {
	display: flex;
	align-items:center;
	justify-content: space-evenly;
}

.layer_controls_grid {
	display: inline-grid;
	grid-template-columns: repeat(3, auto);
	gap: 10px 1.5vw;
	margin-left: 1vw;
}

.layer_slider {
	-webkit-appearance: none;
	float:left;
	width: 40%;
	height: 10px;
	border-radius: 5px;  
	background: #d3d3d3;
	outline: none;
	background-image: linear-gradient(to right, rgb(47, 70, 107) 50%, rgb(211, 211, 219) 50%);
}

.layer_slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 25px;
	height: 25px;
	border-radius: 50%; 
	background: #4CAF50;
	cursor: pointer;
}

.layer_slider::-moz-range-thumb {
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: #4CAF50;
	cursor: pointer;
}

input[type=range]::-moz-focus-outer {
    border: 0;
}

.layer_check {
	float: left;
	margin-right: 0.8vw;
}

.opac_label {
	float: left;
	width:40px;
	text-align: center;
}

.layer_label {
	float: left;
}

/* -------------------------
   Animation Controls
--------------------------*/

#animation-controls {
	position: absolute;
	padding-top: 8px;
    bottom: 31px;
	width: var(--adjustable-width);
	background-color: var(--theme-color-2);
	text-align: center;
	color: white;
}

#dwell-control {
	display: inline-block;
	vertical-align: top;
	padding-left: 20px;
	padding-right: 10px;
}

#speed-control {
	display: inline-block;
	vertical-align: top;
	padding-left: 10px;
	padding-right: 20px;
}

#custom-handle {
	width: 4em;
	height: 1.6em;
	top: 50%;
	margin-top: -.87em;
	margin-left: -0.02em;
	text-align: center;
	line-height: 1.6em;
	background: var(--theme-color-1);
	cursor: pointer;
	border: solid black 1px;
}

#slider {
	height: 1.6em;
	border-color: #333232;
	border: 1;
	cursor: pointer;
	display: inline-block;
	vertical-align: top;
}

.ui-slider {
	width: 50%;
	margin-left: auto;
	margin-right: auto;
}

.ui-slider-range {
	display: none !important;
}

.ui-slider-tick-mark {
    display:inline-block;
    height:1.6em;
    position:absolute;
    top:0px;
}

.ui-slider-tick-mark:hover {
	background-color: #69dafa;
	box-shadow: 0px 0px 3px #69dafa;
}

.ui-widget-header {
	background: none;
}

#slider-tooltip {
	position: absolute;
	border: solid black 1px;
	background-color: var(--theme-color-2);
	width: 100px;
	height: 50px;
	bottom: 3em;
	left: 0px;
	display: none;
}

.tooltip {
	display: inline-block;
	margin-bottom: 1em;
	padding: 0 1em;
	text-align: center;
	vertical-align: top;
	border-radius: 3px;
}

.tooltip:after {
	border: 1em solid transparent;
	border-top-color: var(--theme-color-2);
	content: '';
	margin-left: -1em;
	position: absolute;
	top: 100%;
	left: 50%;
	width: 0;
	height: 0;
}

#tooltip-date {
	margin-top: 5%;
	color: white;
	font-weight: "bold";
	font-size: 1.1em;
}

#tooltip-instructions {
	font-size: 0.75em;
	color: #dddddd;
}

#play-controls {
	display: inline-block;
	vertical-align: top;
	padding-left: 20px;
	padding-right: 20px;
}

.animation-button {
	width: 3.5em;
	height: 2em;
	font-family: arial,sans-serif;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid black;
	border-radius: 3px;
}

/* ------------------------- 
   Page Menu CSS
-------------------------*/

a:active,
a:link,
a:visited {
	color:#ff9;
	text-decoration:none
}

a:hover {
	color:rgb(173, 173, 173)
}

#top_banner{
	position:relative;
	height:75px;
	width:var(--adjustable-width);
	background-color: var(--theme-color-2);
	border-bottom: 1px solid;
}

.banner{
	display:block;
	margin-left:auto;
	margin-right:auto;
}

#products_bar {
	position:absolute;
	display:table;
	margin:auto;
	margin-bottom:0px;
	height: 44px;
	width: var(--adjustable-width);
	text-align: center;
}

.product_category {
	display:inline-block;
	position:relative;
	color:#fff;
	z-index:1000;
	padding-top:10px;
}

.product_category a:link,a:active {
	color:#cce5ff
}

.product_category a:visited {
	color:#cce5ff
}

.product_category a:hover {
	color:#fff
}

.product_category a.product_link_unavailable {
	color:#aaa;
	text-decoration:none
}

.product_category>div:first-child {
	width:240px;
	padding-top:4px;
	padding-bottom:10px;
	color:#fff;
	cursor:pointer;
	font-size:16px;
	font-weight:700;
	text-align:center;
	position:relative;
	margin-right:12px;
	border-top-left-radius:6px;
	border-top-right-radius:6px;
	line-height:20px
}

.product_category:first-child:hover>div:first-child,
.product_category:hover>div:first-child {
	background:#000!important;
	box-shadow:0 2px 2px 2px rgba(0,0,0,.4)
}

.product_category>div:last-child {
	display:none;
	position:absolute;
	left:0;
	top:100%;
	width:360px;
	background:#000;
	cursor:default;
	font-size:12px;
	font-weight:700;
	box-shadow:0 2px 2px 2px rgba(0,0,0,.4)
}

.product_category:hover>div:last-child {
	display:block
}

.product_category .product_subcategory_label {
	padding:6px 0;
	line-height:14px;
	background:#000;
	text-align:center
}

.product_category .product_label {
	background:#222;
	padding:6px 0;
	padding-left:4px;
	text-align:left;
}

.product_category .product_label>.info {
	float:right;
	margin-right:4px;
	color:#999;
	cursor:pointer;
	text-decoration:underline;
	position:relative
}

.product_category .product_label>.info:hover>div {
	display:block
}

.product_category .product_links {
	background:#444;
	margin:0;
	width:100%;
	text-align:left;
	line-height:22px
}

a.product_link,
a.product_link:active,
a.product_link:link,
a.product_link:visited {
	margin:2px 8px;
	display:inline-block;
	line-height:26px
}

/* ------------------------- 
   Footer
-------------------------*/
#footer {
	position: absolute;
	height: 15px;
	padding-top: 8px;
	padding-bottom: 8px;
    bottom: 0;
	width: var(--adjustable-width);
	text-align: center;
	font-size: 14px;
	color: white;
	background-color: var(--theme-color-2);
	letter-spacing: .2px;
}