/* Alert Modal */

:root {
	--main_width: 800px;
}

.modal_container {
	display: block !important;
	background: #fff;
	width: 500px;
	/* width: var(--main_width); */
	padding: 30px;
	margin: 0 auto;
	border-radius: 10px;
	box-shadow: 0px 0px 10px #5c5c5c;
	z-index: 2000;
}

.modal_container a {
	padding: 30px;
	background: teal;
	color: #fff;
	font-weight: bold;
	font-size: 24px;
	border-radius: 10px;
}

.modal {
	position: fixed;
	width: 100vw;
	height: 100vh;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	text-align: left;
}

.modal_open {
	visibility: visible;
	opacity: 1;
	transition-delay: 0s;
}

.modal_bg {
	position: absolute;
	background: #3387b6;
	opacity: 0.5;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.modal_alert_close {
	position: relative;
	margin-top: 15px;
	margin-right: 0;
	margin-left: auto;
	display: block;
	font-weight: bold;
	background: #1B5796;
	color: #FFFFFF;
}

.modal_alert_close:hover {
	background-color: #dae6f2;
	color: #1f5792;
}

.modal_container h1 {
	color: #1B5796;
	margin-top: 0;
}

.modal_container_text {
	color: #000000;
	font-size: 18px;
	margin-top: 0;
	word-break: normal !important;
	word-wrap: normal !important;
}

.modal_alert_body {
	color: #000000;
}

/* Image Modal */

#modal_iamge {
	border-radius: 5px;
	cursor: pointer;
	transition: 0.3s;
}

.modal_image {
	width: 80%;
	text-align: center;
	cursor: pointer;
}

/* The Modal (background) */
.modal_image_bg {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	padding-top: 100px; /* Location of the box */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal_image_content {
	margin: auto;
	display: block;
	max-height: 100%;
	max-width: 100%;
}

.modal_iamge_close {
	position: relative;
	margin-top: 15px;	
	margin-right: 0;
	margin-left: auto;
	display: block;
	color: #1B5796;
	font-weight: bold;
}

/* Caption of Modal Image */
#modal_iamge_caption {
	margin: auto;
	display: block;
	width: 80%;
	max-width: 700px;
	text-align: center;
	color: #ccc;
	padding: 10px 0;
	height: 150px;
}

/* Add Animation */
.modal_iamge_content, #modal_iamge_caption {
-webkit-animation-name: zoom;
-webkit-animation-duration: 0.6s;
	animation-name: zoom;
	animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
	from {-webkit-transform:scale(0)}
	to {-webkit-transform:scale(1)}
}

@keyframes zoom {
	from {transform:scale(0)}
	to {transform:scale(1)}
}

/* The Close Button */
.modal_iamge_close {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
}

.modal_iamge_close:hover,
.modal_iamge_close:focus {
	color: #bbb;
	text-decoration: none;
	cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
	.modal_content {
		width: 100%;
	}
}

/* Fix mapbox z-index issue */

.leaflet-bottom, .leaflet-top {
    z-index: unset !important;
}
