/* Body */
body {
    padding: 0px;
    margin: 0px;
    height: 100%;
}

html {
	height: 100%;
}

h1, h2, h3 {
	line-height: 30px;
}

a {
	transition: all 0.2s ease-out; 
}

.btn {
	-webkit-user-select: none;  /* Chrome all / Safari all */
    -moz-user-select: none;     /* Firefox all */
    -ms-user-select: none;      /* IE 10+ */
    -o-user-select: none;
    user-select: none;
}


/* Social links */
#share ul {
	margin: 0px;
}

#share li {
	list-style: none;
}

.float_left {
	float: left;
}

.social_links {
	width: 100%;
}


/* Map */
#map {
	/* 
        background-color: #08304a; */
    float:none;
	height: 100%;
	position:absolute;
	top:0;
	width: 100%;
	z-index: 7;
        
}


/* Sidebar */
#sidebar {
	position: absolute;
	top: 2%;
	right: 1%;
	height: 96%;
	width: 32%;
	border: 1px solid #999;
	background-color: #FFFFFF;
	background-color:rgba(255, 255, 255,0.9);
	padding-left: 1%;
	padding-right: 1%;
	z-index: 10;
}

#sidebar h2 {
	float: left;
}

.sidebar_content {
	width: 32%;
	height: 70%;
	padding-top: 5px;
	position: fixed;
	overflow: auto;
}


/* Pop-up information */
.popup_box_header {
    font-size: 16px;
}

hr {
	margin: 5px 0 5px 0;
}


/* Credits */
#credits {
	display: none;
}

#credits p {
	font-size: 9px;
}


/* 'About this map' button, description box */
/* Mobile only */
.toggle_description {
	display: none;
	z-index: 9;
	position: relative;
	float: right;
    right: 0%;
    top: 0%;
}

.description_box_cover {
	display: none;
	z-index: 12;
	position: absolute;
	top: 0%;
	width: 100%;
	height: 100%;
    background-color: #333333;
    background-color:rgba(33,33,33,0.9);
}

.description_box {
	position: absolute;
	display: none;
	z-index: 13;
	height: 96%;
	width: 96%;
	left: 1%;
    padding-left: 1%;
    padding-right: 1%;
    padding-top: 1%;
    top: 1%;
    background-color: #FFFFFF;
	background-color:rgba(255, 255, 255,0.9);
    border: 1px solid #999;
 }   

.description_box h3 {
	padding-bottom: 0px;
	line-height: 15px;
}

.description_box_content {
	width: 96%;
	height: 80%;
	position: fixed;
	overflow: auto;
}

.leaflet-container .leaflet-control-geosearch input{
	margin-bottom:0;}
.leaflet-control-layers-always-expanded .leaflet-control-layers-list{
	margin-bottom:0;}
.leaflet-popup-content{
	margin:19px;}
.leaflet-popup-content-wrapper{
	border-radius:4px;
	box-shadow:0 3px 50px rgba(0, 0, 0, 0.2);}

.x_button {
	width: 15px;
}

/* Caption box in description box */
#caption_box {
	font-size: 12px;
	font-style: italic;
}


/* 'Scroll more' text in description box */
/* Only visible on wide screens */
#scroll_more {
	display: none;
	color: #0088CC;
	padding-bottom: 10px;
}
.popup_box_header a:after{
	content:' →';}
.popup_box_header a{
	font-size:22px;}
	
/* Leaflet controls */
.leaflet-control-zoom a, .leaflet-control-zoom a:hover {
    text-decoration: none;
}

.leaflet-top {
	z-index: 8;
}
.leaflet-top.leaflet-left {
	z-index: 10;
}
.leaflet-right {
	left: 0;
	right: 100;
}

.leaflet-bottom {
    pointer-events: none;
    z-index: 8;
}


/* Styles for smaller screens */
@media (max-width: 700px) {
	h2 {
		font-size: 24px;
	}

	h3 {
		font-size: 18px;
	}
	
	p {
		font-size: 13px;
	}
}

/* Styles from mobile devices */
@media (max-width: 625px) {
	/* Headers */
	h1, h2, h3 {
    	line-height: 20px;
	}


	/* Map */
	#map {
		cursor: default;
		border: 0px solid #737373;
		top: 0%;
		bottom: 0%;
		height: 100%;
		width: 100%;
	}
	

	/* Social buttons */
	#share {
		display: none;
	}
	
	
	/* Sidebar */
	#sidebar {
		position: relative;
		border-width: 0 0 1px;
		border-bottom: 1px solid #FFFFFF;
		margin-top: 0%;
		float: left;
		left: 0%;
		right: 0%;
		top: 0%;
		padding-left: 2%;
		padding-right: 2%;
		width: 96%;
		height: auto;
	}

	#sidebar h3 {
    	line-height: 15px;
    	font-size: 20px;
	}

	.sidebar_content {
		display: none;
	}

	.description_box_header h3 {
		line-height: 25px;
	}

	.toggle_description {
		display: inline;
	}

	
	/* Leaflet controls */
	.leaflet-top {
    	    margin-top: 55px;
	}

	.leaflet-top.leaflet-center {
    	    margin-top: 0;
	}

        .leaflet-control-layers-list label {
            font-size: 1.5em;
        }

	.leaflet-container .leaflet-control-attribution, .leaflet-container .leaflet-control-scale {
		font-size: 10px;
	}

	.leaflet-bar {
		box-shadow: 0 0 0 rgba(0,0,0,0.4);
	}
}


/* Special attributes for small, wide screens */
@media (max-height: 500px) {
	#scroll_more {
		display: block;
	}

	.sidebar_content {
		height: 60%;
	}

	.description_box_content {
		height: 75%;
	}
}

@media (max-height: 400px) {
	#scroll_more {
		display: block;
	}

	.sidebar_content {
		height: 60%;
	}

	.description_box_content {
		height: 75%;
	}
}

@media (max-height: 320px) {
	.sidebar_content {
		height: 40%;
	}

	.description_box_content {
		height: 65%;
	}

}
