@media (min-width: 1000px) {
	#main {
		width: 800px;
		margin-left: auto;
		margin-right: auto;
	}
}

#map_legend {
	z-index: 101;
	font: bold 15px "Open Sans", sans-serif;
	white-space: nowrap;
	position: fixed;
	width: auto;
	bottom: 50px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	background: #555;
	border: 1px solid #444;
	box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
}

#map_legend a {
	display: inline-block;
	height: 100%;
	padding: 1.5em 1.5em 2em 1.5em;
	color: white;
	background: black;
	cursor: pointer;
}

#fsalbum {
	position: fixed;
	z-index: 151;
	left: 20px;
	right: 20px;
	top: 20px;
	bottom: 20px;
}

#fsalbum.page {
	position: absolute;
	left: 0px;
	right: 0px;
	top: 0px;
	bottom: 0px;
}

#fsalbum:before {
	position: fixed;
	z-index: 150;
	content: '';
	display: block;
	width: 0;
	opacity: 0.8;
	background: white;
	left: 0px;
	right: 0px;
	top: 0px;
	bottom: 0px;
}

#popup {
	z-index: 101;
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
}

#popup-shield {
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	opacity: 0.8;
	background: white;
}

#popup-box {
	position: fixed;
	width: 640px;
	height: 480px;
	top: 45%;
	left: 50%;
	transform: translateY(-50%) translateX(-50%);
	background: white;
	border: 1px solid #444;
	box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
}

#popup-content {
	font: normal 16px "Open Sans", sans-serif;
	color: black;
}

#dialog {
	z-index: 110;
	position: fixed;
	display: none;
	left: 20px;
	bottom: 140px;
}

#bubble {
	position: relative;
	background: #ccc;
	border: 3px solid black;
	padding: 5px;
	border-radius: 15px;
	box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
}

#bubble_content {
	display: inline-block;
	background: white;
	font-size: 110%;
	/*font: normal 120% Arimo, sans-serif;*/
	width: 320px;
	height: 550px;
	padding: 0.66em 0.5em;
	border: 2px solid black;
	border-radius: 10px;
	overflow: hidden;
	/*overflow-y: scroll;*/
}

#bubble_content .stmt-container {
	margin-bottom: 1em;
}

#bubble_content .stmt-container.right {
	text-align: right;
}

#bubble_content .statement {
	text-align: left;
	display: inline-block;
	background: #e0e0e0;
	color: black;
	/*font-size: 110%;*/
	max-width: 70%;
	padding: 0.33em 0.66em 0.5em 0.66em;
	border-radius: 20px;
}

#bubble_content .command {
	background: #0c3;
	color: white;
}

#bubble:after {
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 20px 20px 0;
	border-color: #ccc transparent;
	display: block;
	width: 0;
	z-index: 200;
	margin-left: -20px;
	bottom: -20px;
	left: 50%;
}
