body {
	font-family: sans-serif;
	padding: 0;
	margin: 0;
}

html, body, #mapobj {
	width: 100%;
	height: 100%;
}

#mapobj {
	cursor: crosshair;
}

#mapobj #streetview-popup {
	white-space: nowrap;
}

#mapobj #streetview-popup img:first-child {
	display: block;
}
#mapobj #streetview-popup img {
	max-width: 20em;
	margin: 0 auto;
	padding: 0.2em
}


#settings nav#switcher {
	float: right;
	padding-left: 2em;
}
#settings nav#switcher a {
	text-decoration: none;
}
#settings nav#switcher ul {
	margin: 0;
	list-style: none;
}
#settings nav#switcher ul li {
	margin: 0;
	position: relative;
}
#settings nav#switcher ul li.active:before {
	content: "\2329";
	color: orangered;
	position: absolute;
	left: -1em;
}

#settings #switched {
	float: left;
}
#settings #switched .switched-content {
	display: inline-block;
}


#settings input,
#settings select,
#settings button {
	height: inherit;
	line-height: inherit;
}
#settings button {
	padding: 0 0.5em;
}
#settings label {
	display: inline;
	font-weight: normal;
}
#settings a,
#settings a.export_link.active,
#settings #gpx_file_label {
	text-decoration: underline;
	color: darkblue;
	cursor: pointer;
}

#settings a.export_link {
	color: lightgrey;
}

#settings h2 {
	display: inline;
	font-size: 1.0em;
	font-weight: bold;
	letter-spacing: 0;
}

#settings {
	position: absolute;
	top: 1em;
	right: 1em;
	z-index: 9999999999;
	font-size: 80%;
	background: white;
	opacity: 0.85;
	padding: 1em;
	border-radius: 0.5em;
	min-width: 35em;
	max-width: 80%;
}
#settings #route .section:first-child {
	margin-left: 0; 
}
#settings #route .section {
	display: inline-block;
	margin-left: 1em;
	opacity: 1.0
}
#settings #route .section:last-child {
	margin-right: 1em; 
}
#settings .section * {
	margin-bottom: 0;
}

#settings .section#export,
#settings .section#poi_range {
	padding-top: 1em;
}

#settings .section-group.top-space {
	margin-top: 0.5em;
}

#settings #rwgps,
#settings #rwgps .toggle {
	display: inline-block;
}

#settings #gpx_file {
	opacity: 0;
	position: absolute;
	left: -999em;
	top: -99em;
}

.leaflet-marker-icon.text {
	font-weight: bold;
	font-family: sans-serif;
}

#route-info {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 9999999999;
	font-size: 80%;
	background: white;
	opacity: 0.85;
	padding: 0.2em;
}

#route-info .field .value {
	font-weight: bold;
}


a#settings_toggle {
	display: none;
	text-decoration: none;
}


.spinner {
	display: none;
	height: 1em;
}
.spinner.active {
	display: inline-block;
}


.dist-marker {
	font-size: 9px;
	border: 1px solid #777;
	border-radius: 10px;
	text-align: center;
	color: #000;
	background: #fff;
}

@media screen and (max-width: 800px) {
	#settings {
		min-width: 0;
		width: 80%;
	}

	a#settings_toggle {
		display: inline;
		position: absolute; top: 0.5em; right: 0.5em;
	}

	#settings nav#switcher {
		float: none;
		padding: 0.5em 0;
	}
	#settings nav#switcher li:first-child {
		padding-left: 0;
	}
	#settings nav#switcher li {
		display: inline;
		padding: 0 0.6em;
	}
	#settings nav#switcher li.active:before {
		display: none;
	}
	#settings nav#switcher li.active {
		border-bottom: 1px solid orange;
	}

	#settings .section {
		display: block;
	}

	#settings a#help_link {
		position: absolute;
		top: 1em;
		right: 1em;
	}
}
