@media screen and (min-width: 450px) {
	.legendElements h2{
		font-size: 160%;
	}
	.legendElements h3{
		font-size: 140%;
	}
	.legendElements p{
		font-size: 100%;
	}
	.legendElements td{
		font-size: 100%;
	}
	#map-infobox {
		width: 400px;
		min-width: 400px;
	}
	#map-infotable {
		width: 250px;
		min-width: 200px;
	}	
}
@media screen and (max-width: 450px) {
	.legendElements h2{
		font-size: 120%;
	}
	.legendElements h3{
		font-size: 100%;
	}
	.legendElements p{
		font-size: 75%
	}
	.legendElements td{
		font-size: 75%
	}
	#map-infobox {
		width: 200px;
		min-width: 200px;
	}
	#map-infotable {
		width: 200px;
		min-width: 200px;
	}	
}

@media screen and (min-width: 900px) {
	#map_LAYOUT {
		display: flex;	
		height: 96vh;
		min-height: 600px;
	}
	#map_MAP {
		width: 70%;
		height: 100%;
		border-top: 0px solid #004b8f;
	}
	#map_LEGEND {
		width: 30%;
		min-width: 400px;
		border-left: 2px solid #004b8f;
	}
	#map_LEGEND0 {
		display: none;
	}	
	#map_LEGEND1 {
		display: inline;
	}
}

@media screen and (max-width: 900px) {
	#map_LAYOUT {
		display: inline;
		height: 192vh;
		min-height: 1600px;
	}
	#map_MAP {
		width: 100%;
		height: 50%;
		border-top: 2px solid #004b8f;
	}
	#map_LEGEND {
		width: 100%;
		min-width: 100%;
		border-top: 2px solid #004b8f;
	}
	#map_LEGEND0 {
		display: inline;
	}
	#map_LEGEND1 {
		display: none;
	}
}

body {
	font-family: Arial;
	background-color: #ffffff;
	margin: 10px 20px 10px 10px;
	padding-left: 2%;
	padding-right: 2%;
}

/*LAYOUT*/
#map_LAYOUT {
	float: left;
	width: 100%;
	border: 4px solid #004b8f;
	overflow: hidden;
}
#map_MAP {
	float: left;
	overflow: hidden;
}
#map_LEGEND {
	float:left;
	height: 100%;
	z-index: 1000;
	color: #004b8f;
}
#map_LEGEND0 {
	font-family: Arial;
	position: relative;
	width: 100%;
	color: #004b8f;
}
#map_LEGEND1 {
	font-family: Arial;
	position: relative;
	/*top: 2%;*/
	width: 100%;
	height: 140px;
}
#map_LEGEND2 {
   	position: relative;
	/*top: 2%;*/
	width: 100%;
	height: 24px;
	min-height: 24px;
}
#legend0-1{   
	/*padding-bottom: 10px;*/
}
#legend0-1, #legend1-1, #legend2-1, #legend2-2, #legend2-3, #legend2-4, #legend2-5, #legend2-6 {   
	position: relative;
	float: left;
	width: 94%;
	left: 4%;
	/*padding-bottom: 10px;*/
}
#map {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	background-color: #f8f9fa;
	position: relative;
	z-index: 1000;
}
#data {
	width: 100%;
	height: 20%;
	min-height: 20px;
	/*padding-bottom: 10px;*/
	margin: 0;
	background-color: #f8f9fa;
	border-bottom: 2px solid #004b8f;
	z-index: 1010;
	display: none;
}
#overview_table {
    height: 100%;
}
#results {
    top: 0;
	display: block;
    width: 100%;
    height: 100%;
    vertical-align: top;
    overflow: auto;    
}
#map-switch {
	position: relative;
	color: #004b8f;
	width: 44px;
	height: 44px;
	background-image: url('../images/layout/map_0.png');
	background-size: 42px 42px;
	background-repeat: no-repeat;
	transition: background .5s;
	cursor:pointer;
}
#map-switch:hover{
	background-image: url('../images/layout/map_0_h.png');
	transition: background .5s;
}
#map-tableicon {
	position: relative;
	color: #004b8f;
	width: 44px;
	height: 44px;
	background-image: url('../images/layout/table.png');
	background-size: 42px 42px;
	background-repeat: no-repeat;
	transition: background .5s;
	cursor:pointer;
}
#map-tableicon:hover{
	background-image: url('../images/layout/table_h.png');
	transition: background .5s;
}
#map-infotable {
	position: relative;
	right: 55px;
	color: #004b8f;
	background-color: #909bb1;
	display: none;
	padding: 5px 5px 0px 5px;
	font-size: 120%;
}
#map-xcross {
	position: relative;
	float: right;
	width: 30px;
	height: 30px;
	background-image: url('../images/layout/xcross.png');
	background-size: 30px 30px;
	background-repeat: no-repeat;
	transition: background .5s;
	cursor:pointer;
}
#map-xcross:hover{
	background-image: url('../images/layout/xcross_h.png');
	transition: background .5s;
}

/*UI modifications*/
.ui-resizable-handle{width:0;height:0;border:4px solid;color:transparent;border-radius:10px;z-index: 1001;}

/*LEGEND*/
.legendElements{
	text-decoration: none;
	font-family: Arial;
	/*white-space: nowrap;*/
}
.legendElements h1, h2, h3, h4, h5{
	color: #ffffff;
	background-color: #004b8f;
	padding: 2%;
}
.legendElements ul{
	list-style-type: none;
	margin: 0;
}
.legendElements p{
	padding-left: 2px;
	padding-top: 2px;
}
.legendElements a{
	text-decoration: none;
}
.legendElements a:hover{
	/*text-decoration: none;*/
	text-decoration: underline;
}
.legendElements img{
	vertical-align:middle;
	padding: 0px 10px 0px 0px;
	/*width: 20px;*/
}
.legendIMG{
	width: 20px;
}
.legendElements td{
	vertical-align: top;
	padding-left: 0px;
	padding-top: 5px;
	padding-right: 20px;
	padding-bottom: 0px;
}
.KeyArrowUp {
	float:left;
	width: 100%;
	font-size:120%;
	padding: 2% 0px 2% 2%;
	color: #ffffff;
	font-weight: bold;
	background-color: #004b8f;
	background-image: url('../images/layout/arrow_upw.png');
	background-size: 20px 10px;
	background-position: 96%;
	background-repeat: no-repeat;
	cursor:auto;
	text-decoration: none;
	transition: background .5s;
}
.KeyArrowUp:hover {
	background-image: url('../images/layout/arrow_up_h.png');
	background-size: 20px 10px;
	cursor:pointer;
	color: #004b8f;
	text-decoration: none;
	transition: background .5s;
	background-color: #ff5a09;
}
.KeyArrowDown {
	float:left;
	width: 100%;
	font-size:120%;
	padding: 2% 0px 2% 2%;
	color: #ffffff;
	font-weight: bold;
	background-color: #909bb1;
	background-image: url('../images/layout/arrow_down.png');
	background-size: 20px 10px;
	background-position: 96%;
	background-repeat: no-repeat;
	cursor:auto;
	text-decoration: none;
	transition: background .5s;
}
.KeyArrowDown:hover {
	background-image: url('../images/layout/arrow_down_h.png');
	background-size: 20px 10px;
	cursor:pointer;
	color: #004b8f;
	text-decoration: none;
	transition: background .5s;
	background-color: #ff5a09;
}


/*CUSTOM CHECKBOX*/
.layerselect {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 6px;
    cursor: pointer;
   /* font-size: 22px;*/
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.layerselect input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #909bb1;
}

/* On mouse-over, add a grey background color */
.layerselect:hover input ~ .checkmark {
    background-color: #ff5a09;
}

/* When the checkbox is checked, add a blue background */
.layerselect input:checked ~ .checkmark {
    background-color:  #004b8f;
}

.layerselect input:disabled ~ .checkmark {
    background-color:  #ffffff;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.layerselect input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.layerselect .checkmark:after {
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid #ff5a09;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


/* Create a custom radio button */
.checkmark2 {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #909bb1;
    border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.layerselect:hover input ~ .checkmark2 {
    background-color:  #ff5a09;
}

/* When the radio button is checked, add a blue background */
.layerselect input:checked ~ .checkmark2 {
    background-color: #004b8f;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark2:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.layerselect input:checked ~ .checkmark2:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.layerselect .checkmark2:after {
 	top: 6px;
	left: 6px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background:  #ff5a09;
}






/*TABLE*/
.dataResults{
	font-size:80%;
}
tr.d0 td {
  background-color: #004b8f;
  color: #f8f9fa;
}
td.d1 {
  width:40%
}

.w3-table,.w3-table-all{font-size:80%; border-collapse:collapse;border-spacing:0;width:100%;text-align:left;display:table}.w3-table-all{border:1px solid #ccc}
.w3-bordered tr,.w3-table-all tr{border-bottom:1px solid #004b8f}.w3-striped tbody tr:nth-child(even){background-color:#dcdfe7}
.w3-table-all tr:nth-child(odd){background-color:#f8f9fa}.w3-table-all tr:nth-child(even){background-color:#dcdfe7}
.w3-hoverable tbody tr:hover,.w3-ul.w3-hoverable li:hover{background-color:#ff5a09}.w3-centered tr th,.w3-centered tr td{text-align:center}
.w3-table td,.w3-table th,.w3-table-all td,.w3-table-all th{padding:4px 4px;display:table-cell;text-align:left;vertical-align:top}
.w3-table th:first-child,.w3-table td:first-child,.w3-table-all th:first-child,.w3-table-all td:first-child{padding-left:16px}


/* --- AMENDMENTS OF LEAFLET style --- */

.leaflet-interactive {
  cursor: pointer;
}

.leaflet-control-layers-toggle{
	background-color: #ffffff;
}

.leaflet-control-layers-expanded{
	color: #004b8f;
	background-color: #ffffff;
}
.leaflet-container {
	font-family: Arial;
}
.leaflet-touch .leaflet-bar {
	border: 0px solid  #004b8f; 
}

/*map copyrights*/
.leaflet-control-attribution a{
	display: inline;
	color: #004b8f;
	font-size: 100%;
}
.leaflet-control-attribution a:hover{
	font-weight: normal;
		color: #ff5a09;
}
/*zoom buttons*/
.leaflet-bar a:first-child {
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 0px;
	border-bottom: 2px solid #004b8f;
	width:40px;
	height:40px;
	background: url('../images/layout/plus.png') no-repeat;
	background-size: 40px 40px;
	font-size: 0px;
	transition: background .5s;
}
.leaflet-bar a:last-child {
	border-top-left-radius: 0px;
	border-top-right-radius: 0px;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	border-bottom: none;
	width: 40px;
	height: 40px;
	background: url('../images/layout/minus.png') no-repeat;
	background-size: 40px 40px;
	font-size: 0px;
	transition: background .5s;
}
.leaflet-bar a:hover:first-child{
	width:40px;
	height:40px;
	background: url('../images/layout/plus_h.png') no-repeat;
	background-size: 40px 40px;
}
.leaflet-bar a:hover:last-child{
	width:40px;
	height:40px;
	background: url('../images/layout/minus_h.png') no-repeat;
	background-size: 40px 40px;
}


/*popup*/
.leaflet-popup-content-wrapper{
	background-color: white;
	border-radius: 0px;
	font-family: Arial;
	color: #004b8f;
	background-color: #ffffff;
}
.leaflet-popup-tip{
	display: none;
}
.leaflet-popup-content{
	font-size: 120%;
	margin: 0;
	padding: 10px;
}
.leaflet-popup-content p{
	line-height: 100%;
}
.leaflet-popup-pane{
	position:relative;
	/*top:-30px;*/
}
.leaflet-container a.leaflet-popup-close-button {
	padding: 0;
	font-size: 0px;
	width: 25px;
	height: 25px;
	background: url('../images/layout/xcross.png') no-repeat;
	background-size: 25px 25px;
	color: #004b8f;
}
.leaflet-container a.leaflet-popup-close-button:hover {
	padding: 0;
	font-size: 0px;
	width: 25px;
	height: 25px;
	background: url('../images/layout/xcross_h.png') no-repeat;
	background-size: 25px 25px;
	color: #ff5a09;
}

/*cluster*/
.marker-cluster {
	border-radius: 20px;
	}
.marker-cluster div {
	position: relative;
	width: 28px;
	height: 28px;
	/*background-image: url('../images/layout/AM_group.png');*/
	background-position: 1px 0px;
	background-repeat: no-repeat;
	text-align: center;
	border-radius: 20px;
	font: 16px;
	font-family: Arial;
	}
.marker-cluster span {
	line-height: 28px;
	}
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {
	-webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;
	-moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;
	-o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;
	transition: transform 0.3s ease-out, opacity 0.3s ease-in;
}
.marker-cluster2 {
	/*border-radius: 20px;*/
	}
.marker-cluster2 div {
	position: relative;
	width: 28px;
	height: 28px;
	background-image: url('../images/layout/AM_group2.png');
	background-position: 1px -3px;
	background-repeat: no-repeat;
	text-align: center;
	/*border-radius: 20px;*/
	font: 16px;
	font-family: Arial;
	}
.marker-cluster2 span {
	line-height: 28px;
	}


/*FADE OUT ANIMATION*/

path.leaflet-interactive,
.leaflet-marker-icon,
.leaflet-marker-shadow
{
  -webkit-animation: fadein 1.5s; /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 1.5s; /* Firefox < 16 */
  -ms-animation: fadein 1.5s; /* Internet Explorer */
  -o-animation: fadein 1.5s; /* Opera < 12.1 */
  animation: fadein 1.5s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
