/* || General styles */

html, body {margin: 0; height: 100%; overflow: hidden}

html * {
    font-family: sans-serif;
    font-size: 12px;
}

a {
	text-decoration: none;
	color: #0066cc;
}

/* LEAFLET */

.leaflet-popup {
	overflow: hidden;
}

.leaflet-popup-content img {
	width: 100%;
	height: auto;
}

/* HALLOWEEN */
.top-halloween {
	margin-top: -8px;
	margin-left: -21px;
	width: 300px;
	position: absolute;
}

.bottom-right-flork {
    position: absolute;
    right: -16px;
    bottom: 147px;
    width: 100px;
}

.bottom-left-flork {
    position: absolute;
    left: 80px;
    bottom: -40px;
    width: 100px;
}

.bottom-left-pumpkin {
	position: absolute;
    left: 160px;
    bottom: -40px;
    width: 50px;
}

/* || map UI */

#map {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.top-left {
	top: 140px;
	left: 7px;
	margin: 0 auto;
	max-width: 380px;
}

.under-a {
	top: 210px;
	left: 7px;
	margin: 0 auto;
	max-width: 380px;
}

.top-right {
	top: 7px;
	right: 7px;
	margin: 0 auto;
	max-width: 315px;
}

.bottom-left {
	bottom: 40px;
	left: 7px;
	margin: 0 auto;
	max-width: 315px;
}

.bottom-right {
	bottom: 30px;
	right: 7px;
	margin: 0 auto;
	text-align: right;
}

.bottom-right * {
	text-align: left;
}

.bottom-center {
	bottom: 15px;
	margin: 0 auto;
	width: 285px;
	left: 212px;
	margin-left: -142px !important;
}

#settings_menu {
	bottom: 118px;
}

#circle_menu {
	bottom: 70px;
}

#link_menu {
	bottom: 70px;
}

.ui-box {
	position: absolute;
	z-index: 1000;
}

.ui-white {
	background-color: rgba(255,255,255,.8);
	border: 1px solid #666;
	border-radius: 10px;
	padding: 7px;
}

.ui-button {
	display: inline-block;
	background-color: rgba(255,255,255,.8);
	border: 1px solid #666;
	border-radius: 10px;
	padding: 7px;
	color: white;
	font-size: 30px;
	cursor: pointer;
	text-shadow: 0 0 5px black, -1px -1px 0 #999, 1px -1px 0 #999, -1px 1px 0 #666, 1px 1px 0 #333;
	margin: 0 0 7px 0;
	min-width: 45px;
	min-height: 45px;
	text-align: center;
	box-sizing: content-box;
	line-height: 45px;
}

.white-text {
	color: white;
	text-shadow: 0 0 5px black, -1px -1px 0 #999, 1px -1px 0 #999, -1px 1px 0 #666, 1px 1px 0 #333;
}

.ui-button-small {
	font-size: 10px;
	min-width: 20px;
	min-height: 20px;
	margin: 0;
	line-height: 19px;
}

.date-field {
	width: 140px;
}

.bottom-center .ui-button {
	font-size: 15px;
}

.ui-button img {
	display: block;
}

.ui-menu-shown {
	display: block;
}

.ui-menu-collapsed {
	display: none;
}

.ui-menu {
	margin: auto;
	position: fixed;
}

.ui-menu-left {
	left: 70px;
}

.ui-menu-right {
	right: 70px;
}

#map_links {
	top: 0;
	left: 50%;
	margin-left: -150px;
	height: 15px;
	padding: 3px;
	width: 300px;
	background-color: rgba(255,255,255,1.0);
	text-align: center;
	word-spacing: 30px;
	font-weight: bold;
}

#startup_info {
	display: none;
	z-index: 99999;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(69,69,69,0.8);
}

#admin_menu {
	width: 75%;
	max-width: 280px;
	top: 132px;
}

#events_list {
	overflow-y: scroll;
	height: 445px;
}
#events_box {
	list-style: none;
	padding: 2px;
}

#events_box div {
	height: 1.2em;
	float: left;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.center_message {
	position: absolute;
	height: 130px;
	width: 400px;
	left: 50%;
	top: 50%;
	margin-top: -100px !important;
	margin-left: -200px !important;
	padding: 15px;
}

/* text field with coords */
.coords {
	padding: 5px;
	text-align: center;
}

/* timelapse ui */
.button-timelaps {
	height: 2rem;
	min-width: 60px;
	margin: 4px;
	text-align: center;
	cursor: pointer;
	padding: 5px;
}


/* || Measurements */

.circle-range-size-text {
	font-weight: bold;
	text-shadow: 0 0 5px white;
	writing-mode: vertical-rl;
	text-orientation: mixed;
}

.kilometres {
	font-size: 20px;
	width: 60px;
}


/* || utils */

.image-checkbox {
	display: none;
}

.image-checkbox + span {
	background-color: transparent;
	cursor: pointer;
	padding: 2px;
	font-size: 18px;
}

.image-checkbox:checked + span {
	background-color: gray;
}


.image-checkbox + label {
	background-color: rgba(255,255,255,.8);
	cursor: pointer;

	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.image-checkbox:checked + label {
	background-color: rgba(125,125,125,.8);
}

.bottom-center .ui-button {
	min-height: 20px;
	line-height: 20px;
}

@media screen and (max-width: 590px) {

	.leaflet-control-attribution {
		font-size: 8px !important;
		max-height: 16px;
	}

	.bottom-right {
		bottom: 40px;
		right: 0;
	}

	.top-right {
		right: 0;
		top: 0;
	}

	.bottom-left {
		bottom: 40px;
		left: 0;
	}

	.under-a {
		display: none;
	}
}

@media screen and (min-width: 430px) {

	.under-a {
		display: none;
	}

	.bottom-center {
		bottom: 10px;
	}

	#timetravel_menu {
		display: block;
	}

	#time_travel + label {
		display: none;
	}
}

@media screen and (min-width: 900px) {

	.under-a {
		display: block;
	}

	#link_menu {
		display: block;
		right: 7px;
		position: static;
	}

	#link_toggle + label {
		display: none;
	}

	.bottom-center {
		left: 50%;
	}
}
