/*********/
/* fonts */
/*********/
@font-face {
	font-family: "Geometria-Bold";
	src: url("./fonts/Geometria-Bold.ttf");
}
@font-face {
	font-family: "Geometria";
	src: url("./fonts/Geometria.ttf");
}


/**********/
/* global */
/**********/
html * {
	font-family: "Geometria" !important;
}


/*********/
/* icons */
/*********/
.window-close {
	background: url(./img/window-close.svg) no-repeat;
	background-size: 35px;
	width: 35px;
	height: 35px;
	position: absolute;
	right: 5px;
	top: 10px;
}


/****************/
/* legend block */
/****************/
#legend {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 280px;
	background: #fff;
	box-shadow: 0 2px 4px 0 rgba(0,0,0,.24);
	padding: 1em;
	border-radius: 4px;
	box-sizing: border-box;
	z-index: 1000;
}
.legend_header1 {
	font-weight: bold;
	font-size: 1em;
}
#legend_content {
	padding-top: 15px;
}

.legend_description {
	opacity: 1;
	color: #000000;
	font-size: 13px;
}
.legend_header2 {
	font-size: 13px;
	font-weight: bold;
	padding-top: 20px;
	padding-bottom: 5px;
}
.legend_list {
	font-size: 11px;
	line-height: 18px;
	padding-bottom: 10px;
}

.legend_el {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 2rem;
	padding-top: 2px;
}
.legend_color {
	height: 8px;
	width: 8px;
	margin-right: 5px;
	display: inline-block;
	line-height: 2rem;
	border-radius: 20px;
	border: .5px solid rgba(0,0,0,.2);
}
.legend_title {
	font-size: 11px;
	width: 240px;
	word-break: keep-all;
}
.legend_dropdown {
	text-align: center;
	margin-top: .8em;
}
#plw_year {
	font-size: 1.2em;
	padding: .25em 1em;
}
.legend_filter {
	margin-top: .8em;
	opacity: 1;
	color: #000000;
	font-size: 13px;
}


/****************************/
/* arrow to hide map legend */
/****************************/
#hide_btn {
	position: absolute;
	right: 15px;
	text-align: center;
	width: 16px;
	height: 16px;
	cursor: pointer;
}
.CDB-ArrowToogle.is-down {
	transform: rotate(180deg);
}
.CDB-ArrowToogle {
	position: relative;
	height: 100%;
}
.CDB-ArrowToogle.is-blue:after, .CDB-ArrowToogle.is-blue:before {
	background: #1785fb;
}
.CDB-ArrowToogle:after, .CDB-ArrowToogle:before {
	display: block;
	position: absolute;
	top: 8px;
	width: 10px;
	height: 1px;
	background: #2e3c43;
	content: "";
}
.CDB-ArrowToogle:before {
	left: 0;
	transform: rotate(-45deg);
}
.CDB-ArrowToogle:after {
	right: -1px;
	transform: rotate(45deg);
}


/*******************/
/* toggle switches */
/*******************/
.b {
	display: block;
}

.toggle {
	display: inline-block;
	vertical-align: middle;

	position: relative;
	width: 45px;
	height: 25px;
	border-radius: 100px;
	background-color: #ddd;
}

.check {
	position: absolute;
	display: block;
	cursor: pointer;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	z-index: 6;
}
.check:checked ~ .track {
	box-shadow: inset 0 0 0 20px #87ba33;
}
.check:checked ~ .switch {
	right: 2px;
	left: 22px;
	transition: .35s cubic-bezier(0.785, 0.135, 0.150, 0.860);
	transition-property: left, right;
	transition-delay: .05s, 0s;
}

.switch {
	position: absolute;
	left: 2px;
	top: 2px;
	bottom: 2px;
	right: 22px;
	background-color: #fff;
	border-radius: 36px;
	z-index: 1;
	transition: .35s cubic-bezier(0.785, 0.135, 0.150, 0.860);
	transition-property: left, right;
	transition-delay: 0s, .05s;
	box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.track {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	transition: .35s cubic-bezier(0.785, 0.135, 0.150, 0.860);
	box-shadow: inset 0 0 0 2px rgba(0,0,0,.05);
	border-radius: 40px;
}


/***************/
/* map styling */
/***************/
#map {
	outline: none;
	position: absolute;
	left: 0;
	bottom: 0;
	top: 0;
	right: 0;
	width: 100%;
}


/************************/
/* custom leaflet popup */
/************************/
.leaflet-popup-content p {
	margin: 5px 0px;
	line-height: 1em;
}
.leaflet-popup-content-wrapper {
	border-radius: 0px;
	font-size: 1.1em;
	padding: 0;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
	/* background: rgba(255, 255, 255, 0.85); */
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}
.leaflet-popup-content {
	margin: 0px;
	padding-bottom: 5px;
	width: 300px !important;
}
.leaflet-container a.leaflet-popup-close-button {
	width: 28px;
	height: 28px;
	border-radius: 20px;
	margin-right: -10px;
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB3aWR0aD0iOHB4IiBoZWlnaHQ9IjZweCIgdmlld0JveD0iMCAwIDggNiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4gICAgICAgIDx0aXRsZT5TdHJva2UgMzwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+ICAgICAgICA8cGF0aCBkPSJNMSwwIEw3LDYgTTcsMCBMMSw2IiBpZD0iU3Ryb2tlLTMiIHN0cm9rZT0iIzNBQTlFMyI+PC9wYXRoPiAgICA8L2c+PC9zdmc+) no-repeat 50%;
	font-size: 0;
}

/* popup header */
.popup_header_text {
	color: white;
	font-weight: bold;
	background-color: #ff7616;
	padding: 1.3em 1em;
}

/* popup text */
.popup_content {
	margin: 1em 0;
	max-height: 300px;
	overflow-y: auto;
	word-break: break-word;
}
.popup_el {
	padding: 1em 1em 0 1em;
}
.popup_el_title {
	margin-bottom: 2px;
	font-size: 10px;
	font-weight: 300;
	line-height: 14px;
	text-transform: uppercase;
}
.popup_el_content {
	font-weight: bold;
}



/******************/
/* spinner/loader */
/******************/
#spinner_wrapper {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 3000;
	background-color: rgba(255, 255, 255, 0.7);
}
.spinner {
	left: 50%;
	top: 50%;
	position: absolute;
	transform: translate(-50%, -50%);
}
.spinner > div {
	width: 18px;
	height: 18px;
	background-color: rgb(33, 150, 243);
	border-radius: 100%;
	display: inline-block;
	-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
	animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}
.spinner .bounce1 {
	-webkit-animation-delay: -0.32s;
	animation-delay: -0.32s;
}
.spinner .bounce2 {
	-webkit-animation-delay: -0.16s;
	animation-delay: -0.16s;
}
@-webkit-keyframes sk-bouncedelay {
	0%, 80%, 100% {
		-webkit-transform: scale(0)
	}
	40% {
		-webkit-transform: scale(1.0)
	}
}
@keyframes sk-bouncedelay {
	0%, 80%, 100% {
		-webkit-transform: scale(0);
		transform: scale(0);
	}
	40% {
		-webkit-transform: scale(1.0);
		transform: scale(1.0);
	}
}