:root {
	--page-width: 400px;
	--dark-green: #3e6c30;
}

body {
	margin: 0 auto;
	font-family: Arial,sans-serif;
}

form {
	margin: 0 0;
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	font-weight: 700;
	text-align: center;
}

h1 {
	margin-top: 16px;
	font-size: 150%;
}

h2 {
	margin-top: 16px;
	font-size: 130%;
}

h3 {
	margin: 12px 0 6px 0;
	font-size: 110%;
	text-align: left;
}

input {
	font: 16px sans-serif;
	box-sizing: border-box;
	border: 1px solid #999;
}

input[type=checkbox] {
	vertical-align: middle;
	display: inline-block;
}

input[type=radio] {
	width: auto;
	border: none;
	margin-right: 8px;
}

input[type="number" i] {
	padding: 4px 4px;
	width: 72px;
	height: 32px;
}

input:focus, textarea:focus {
	border-color: #ccc;
}

input[type=button] {
	padding: 4px 16px;
	margin: 0 4px;
}

input[type=button],
input[type=submit] {
	-webkit-appearance: none;
	-webkit-border-radius: 8px;
}

label {
	display: block;
	font-weight: bold;
	font-size: 15px;
	padding-bottom: 4px;
	position: relative;
	color: #666;
}

label span {
	font-weight: normal;
}

legend {
	font-weight: bold;
	font-size: 15px;
	padding-bottom: 6px;
	padding-left: 0;
}

ul {
	list-style: none;
	margin: 0 0 0 12px;
	padding: 0;
}

.advanced-options .form-buttons {
	margin-top: 32px;
}

.algorithm-option {
	margin-bottom: 12px;
}

.banner {
	text-decoration: none;
}

.banner-title {
	margin-bottom: 0;
}

.beta-option {
	margin-top: 24px;
	font-size: 12px;
	color: #ccc;
}

.body-text {
	font-size: 14px;
	color: #000;
	text-align: left;
	line-height: 19px;
	position: relative;
}

.body-text div {
	margin-bottom: 16px;
}

.body-text.center {
	text-align: center;
	margin-bottom: 4px;
}

.body-text.intro {
	font-size: 18px;
	font-weight: bold;
	font-style: italic;
	line-height: 23px;
	color: #62724d;
	margin: 8px 0 8px 0;
}

.body-text-list {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.body-text-list.left {
	align-items: flex-start;
	margin-left: 16px;
	margin-top: 8px;
}

.body-text-list ul {
	list-style: square;
	margin-left: 16px;
}

.body-text-list .subtitle {
	font-size: 16px;
	font-weight: bold;
	padding: 8px 0 8px 0;
}

.body-text-list.wide-spacing div {
	margin-bottom: 0;
}

.body-text-list.medium-spacing li,
.body-text-list.wide-spacing li {
	margin-bottom: 12px;
}

.body-text-list.medium-spacing li {
	margin-bottom: 6px;
}

.body-text-list.medium-spacing ul {
	margin-left: 0;
}

.body-text .body-text-list div {
	margin-bottom: 0;
}

.box {
	display: flex;
	flex-direction: column;
	align-items: center;
	border: solid 1px #ccc;
	padding: 8px;
	text-align: center;
	background-color: #eee;
}

.box a {
	font-weight: bold;
	font-family: monospace;
	font-size: 20px;
	text-decoration: none;
}

.box div {
	margin-bottom: 4px;
	font-weight: bold;
}

.browser-info {
	margin-top: 16px;
	font-size: 9px;
	color: #999;
	text-align: center;
}

.button-back,
.button-options,
.button-primary {
	width: 200px;
	padding: 4px 16px;
	margin: 0 4px;
	border: 1px solid #d5d9d9;
	border-radius: 8px;
	box-shadow: rgba(213, 217, 217, .5) 0 2px 5px 0;
	box-sizing: border-box;
	cursor: pointer;
	display: inline-block;
	line-height: 29px;
	position: relative;
	text-align: center;
	text-decoration: none;
	user-select: none;
	vertical-align: middle;
}

.button-back {
	width: unset;
}

.button-primary {
	font-weight: bold;
	color: white;
	background-color: #4B0080;
}

.button-primary:disabled {
	color: white;
	background-color: #ccc;
}

.button-link {
	font-weight: bold;
	font-size: 18px;
	color: #666;
	background-color: #fff;
	border: none;
	cursor: pointer;
	text-decoration: underline;
	text-align: center;
	padding: 0 12px;
}

.button-back,
.button-options {
	color: white;
	background-color: var(--dark-green);
}

.checkboxes {
	display: flex;
	justify-content: center;
	margin: 16px 0 0 0;
	height: 24px;
}

.checkboxes .help-icon {
	margin-left: 4px;
}

.checkbox-label {
	margin: 1px 0 0 4px;
	display: inline-block;
}

.copyright {
	font-size: 11px;
	text-align: center;
	padding: 16px 0 4px 0;
}

.credits-list li {
	margin-bottom: 4px;
}

#directions-form .form-buttons {
	justify-content: center;
}

#directions-form .form-buttons a,
#directions-form .form-buttons input {
	max-width: 160px;
}

.directions-header {
	font-weight: normal;
	padding: 8px;
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

.directions-map {
	display: flex;
	flex-direction: column;
}

.directions-page {
	font-size: 15px;
}

#header-forward,
#view-button-forward,
#directions-verbose-forward,
#directions-quick-forward {
	display: block;
}

#header-reverse,
#view-button-reverse,
#directions-verbose-reverse,
#directions-quick-reverse {
	display: none;
}

.directions-url {
	text-align: center;
	font-weight: bold;
	font-family: monospace;
	font-size: 18px;
	margin: 6px 0;
}

.directions-wrapper {
	margin: 0 auto;
	max-width: 800px;
	padding: 8px;
}

.disclaimer {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 12px;
}

.disclaimer div {
	border: solid 2px #9e9e9e;
	padding: 6px 6px;
	font-size: 13.5px;
	line-height: 18px;
	max-width: 280px;
	background-color: #ebeef0;
	text-align: center;
}

.disclaimer span {
	font-style: italic;
	font-size: 15px;
}

#distance-info {
	font-size: 15px;
	font-weight: normal;
}

.find-button {
	display: flex;
	justify-content: center;
	margin-top: 12px;
}

.form-buttons {
	display: flex;
	justify-content: space-evenly;
	margin-top: 16px;
}

.free {
	font-style: italic;
	text-align: center;
}

.help-icon {
	border: none;
	cursor: pointer;
	width: 20px;
}

.home-buttons {
	display: flex;
	justify-content: center;
	margin: 12px 0;
}

.home-image-top {
	max-width: 100%;
	margin-top: 4px;
}

.label-center {
	text-align: center;
}

.label-with-help {
	display: flex;
	align-items: center;
	width: 100%;
	margin-bottom: 4px;
	font-weight: bold;
	font-size: 15px;
	color: #666;
	user-select: none;
}

.label-with-help.center {
	flex-direction: column;
}

.label-with-help input {
	margin-left: 2px;
}

.limited-option {
	font-style: italic;
	text-align: center;
}

.link-buttons {
	display: flex;
	justify-content: center;
	margin-top: 12px;
}

.link-buttons.numbered-list {
	margin-top: 0;
}

.link-buttons.numbered-list input {
	width: unset;
}

#loading-message {
	display: block;
	margin-top: 250px;
	text-align: center;
	font-weight: normal;
	font-size: 20px;
	line-height: 22px;
	color: #aaa;
}

#map-overlay {
	display: none;
}

#map-section {
	display: block;
	width: 100%;
}

.map-image {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.map-image img {
	max-width: 100%;
}

.mode-choices {
	width: 160px;
	margin: 0 auto;
}

.mode-choices .label-with-help {
	margin-top: 12px;
}

#mode-form .link-buttons {
	margin-top: 16px;
}

.mode-radio-buttons {
	display: flex;
	flex-direction: column;
	margin-left: 16px;
}

.mode-radio-buttons label {
	font-size: 16px;
}

.mode-radio-buttons li {
	margin-top: 2px;
}

.mode-radio-buttons ul {
	margin-left: 0;
}

.numbered-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-right: 4px;
}

.numbered-list ol {
	list-style: none;
	counter-reset: directions-list-counter;
	padding-inline-start: 8px;
	margin-bottom: 0;
}

.numbered-list li {
	counter-increment: directions-list-counter;
	margin: 0 0 12px 0;
	display:flex;
	align-items: center;
}

.numbered-list li::before {
	min-width: 24px;
	font-size: 15px;
	font-weight: bold;
	content: counter(directions-list-counter);
	background: #4B0080;
	width: 24px;
	height: 24px;
	line-height: 26px;
	border-radius: 20%;
	display: inline-block;
	color: white;
	text-align: center;
	margin-right: 0.5rem;
}

.numbered-list.using {
	margin-bottom: 0;
}

.numbered-list.using li::before {
	background: #666;
	border-radius: 0%;
}

.option {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: var(--page-width);
}

.option,
.option.hidden {
	margin-top: 24px;
}

.option.hidden {
	display: none;
}

.option:first-child {
	margin-top: 12px;
}

.option label {
	width: var(--page-width);
}

.option select {
	width: var(--page-width);
}

.option-visit {
	align-self: flex-start;
	font-size: 15px;
	margin-left: 6px;
}

.options {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.page-image {
	display: flex;
	justify-content: center;
}

.page-image img {
	max-width: 100%;
	padding: 6px;
	border: solid 1px #ccc;
	box-shadow: 4px 5px 7px 0 #9e9e9e99;
	align-self: center; /* Prevents vertical stretching on some browsers. */
}

.page-image-right {
	float: right;
	max-width: 48%;
	height: auto;
	margin: 6px 0 8px 8px;
}

.page-image-right.small {
	max-width: 30%;
}

.page-image-right.large {
	max-width: 60%;
}

.page-section {
	font-weight: bold;
	font-size: 18px;
	padding: 4px 0 0 0;
	text-align: center;
}

.page-section {
	margin-top: 16px
}

.page-subsection {
	font-weight: bold;
	font-size: 16px;
	margin: 20px 0 6px 12px;
}

.page-title,
.banner-title {
	font-weight: bold;
	font-size: 20px;
	font-variant: small-caps;
	color: #727272;
	text-align: center;
	text-shadow: 1px 2px 1px #d4d4d4;
}

.page-two-columns {
	display: flex;
	column-gap: 16px;
}

.page-two-columns img {
	height: auto;
	align-self: flex-start;
}

.print-only {
	display: none;
}

.printer-button {
	background-color: #fff;
	border: none;
	cursor: pointer;
	margin-left: 8px;
	padding-top: 6px;
}

.quick-turns div {
	font-size: 13px;
	line-height: 16px;
	text-align: center;
}

.quick-turns-instructions {
	margin: 6px 0;
}

.reverse-directions.hide {
	display: none;
}

.reverse-directions {
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 8px;
}

.reverse-directions a {
	font-size: 16px;
	font-weight: bold;
	text-decoration: underline;
	color: var(--dark-green);
}

.route-count {
	font-weight: bold;
}

.route-entry,
.route-entry-header {
	display: grid;
	grid-template-columns: 15px 60px 85px 75px 70px;
	text-align: right;
}

.route-entry-header {
	visibility: hidden;
	padding: 3px 0 2px 4px;
	color: #666;
	border-top: solid 2px #a7b7cd;
	border-bottom: solid 1px #ccc;
	font-size: 14px;
	background-color: #EBEEF0;
}

.route-entry:hover {
	background-color: #eee;
}

.route-entry.selected {
	color: white;
	background-color: #4B0080;
}

.route-miles span,
.route-gain span,
.route-grade span,
.route-bridges span {
	font-weight: bold;
}

.route-entry .route-bridges {
	padding-right: 24px;
}

.route-entry .route-gain {
	padding-right: 15px;
}

.route-entry .route-grade {
	padding-right: 18px;
}

.route-entry .route-miles {
	padding-right: 2px;
}

.route-row {
	color: #777;
}

.route-buttons {
	display: flex;
	justify-content: center;
}

.route-page-footer {
	display: none;
	position: absolute;
	width: 100%;
	height: 30px;
	padding-top: 0;
}

.route-info {
	display: none;
	overflow: hidden;
	height: 54px;
}

#route-info-expander-bar {
	position: relative;
	height: 20px;
	cursor: pointer;
}

#route-info-expander-bar img {
	position: absolute;
	left: calc(50vw - 20px);
	top: 2px;
}

#route-info-title {
	font-weight: bold;
	font-size: 14px;
}

#route-info-title span {
	font-weight: normal;
}

#route-info-wrapper {
	display: none;
	position: relative;
	border-top: solid 1px #AAA;
	border-bottom: solid 1px #AAA;
	background-color: #EBEEF0;
	color: black;
	font-weight: normal;
	font-size: 14px;
	padding: 2px 4px 2px 8px;
	margin-bottom: 8px;
	line-height: 18px;
}

#route-options-form {
	padding: 0 0 0 0;
}

.route-list {
	display: none;
	overflow: auto;
	cursor: pointer;
	font-size: 15px;
	line-height: 20px;
	padding: 4px 4px;
	user-select: none;
}

.section-title {
	font-weight: bold;
	font-size: 15px;
	padding: 0 0 8px 0;
}

.select-list {
	display: block;
	font-size: 16px;
	font-family: sans-serif;
	font-weight: 700;
	color: #444;
	line-height: 1.3;
	padding: .4em 1.5em .3em .8em;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	border: 1px solid #aaa;
	box-shadow: 0 1px 0 1px rgba(0,0,0,.04);
	border-radius: .5em;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'),
	linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%);
	background-repeat: no-repeat, repeat;
	background-position: right .7em top 50%, 0 0;
	background-size: .65em auto, 100%;
}

.select-list:focus {
	border-color: #aaa;
	box-shadow: 0 0 0 3px -moz-mac-focusring;
	color: #222;
	outline: none;
}

.spinner {
	display: flex;
	margin-left: 2px;
}

.spinner input {
	width: 40px;
	height: 32px;
	border: 1px solid #6E6F7A;
	border-radius: 5px;
	color: #000;
	text-align: center;
	padding: 0;
	margin: 0 5px;
}

.spinner div.minus:before {
	cursor: pointer;
	content: url("images/arrow-down.svg");
}

.spinner div.plus:after {
	cursor: pointer;
	content: url("images/arrow-up.svg");
}

.spinner-block {
	display: flex;
}

.spinner-block-label {
	font-weight: bold;
	font-size: 15px;
	padding-bottom: 8px;
	color: #666;
}

.spinner-option {
	display: flex;
	column-gap: 16px;
	width: var(--page-width);
	justify-content: center;
}

.spinner-option.left {
	justify-content: flex-start;
	margin-left: 32px;
}

.spinner-option .spinner-block-label {
	margin-left: 4px;
	padding-top: 9px;
}

.topics {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 0 12px auto;
}

.topics a {
	color: #586849;
}

.topics div {
	width: 216px;
	border: solid 2px #62724d;
	border-bottom: none;
	padding: 2px 14px;
	background-color: #62724d;
	color:white;
	font-weight: normal;
	font-size: 15px;
	text-align: center;
}

.topics ul {
	width: 220px;
	font-weight: bold;
	font-size: 18px;
	border: solid 2px var(--dark-green);
	padding: 12px 12px 4px 12px;
}

.topics ul {
	margin-left: 0;
}

.topics li {
	font-weight: bold;
	font-size: 15px;
	margin-bottom: 12px;
}

.topics span {
	color: #666;
	font-weight: normal;
}

#trace {
	display: none;
	position: absolute;
	background-color: white;
	opacity: .90;
	top: 4px;
	left: 10vw;
	width: 80vw;
	padding: 8px;
	font-size: 12px;
	overflow-wrap: anywhere;
}

.travel-options {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.travel-options .subtitle {
	font-size: 16px;
	margin-top: 4px;
}

.travel-options div {
	font-weight: bold;
	font-size: 28px;
	color: #72895d;
}

.travel-options img {
	width: 48px;
}

.travel-options-images {
	display: flex;
	justify-content: center;
	margin: 12px 0;
}

.travel-options-images img {
	width: 48px;
	margin: 0 12px;
	align-self: flex-start;
}

.turns {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 16px;
}

.turns-list li {
	margin-bottom: 3px;
	padding-left: 8px;
}

.turns span {
	font-weight: bold;
}

.turns-box {
	font-weight: normal;
	font-size: 13.5px;
	font-family: "Courier New", monospace;
	box-shadow: 2px 3px 7px 0 #9e9e9e99;
	background-color: #fffdea;
	width: 310px;
	padding: 8px;
}

.turns-box ul {
	margin: 8px 0 8px 0;
}

.user-guide {
	padding: 0 12px;
}

#waiting {
	display: none;
	flex-direction: column;
	align-items: center;
	color: black;
	font-weight: bold;
	width: 200px;
	padding: 20px;
	position: absolute;
	top: 30vh;
	left: calc(50vw - 122px);
	border: solid 2px #999;
	background-color: #EBEEF0;
	box-shadow: 6px 9px 7px 0 #9e9e9e99;
}

#waiting div {
	margin-bottom: 8px;
}

.copyright,
.user-guide,
.wrapper-home {
	max-width: 700px;
	margin: 0 auto;
 }

.wrapper-options {
	max-width: var(--page-width);
	margin: 0 auto;
}

@media (min-width: 320px) {
	:root {
		--page-width: 312px;
	}
}

@media (min-width: 350px) {
	:root {
		--page-width: 342px;
	}
}

@media (min-width: 380px) {
	:root {
		--page-width: 372px;
	}
}

@media (min-width: 500px) {
	.form-buttons {
		margin-top: 32px;
	}

	.banner-title {
		margin: 24px 0 0 0;
	}

	.travel-options div {
		margin: 12px 0 12px 0;
	}
}

@media (min-width: 700px) {
	.home-content {
		max-width: 700px;
		margin: 0 auto;
		padding-top: 12px;
		margin-top: 8px;
		background-color: #fafafa;
		border: solid 2px #f3f3f3;
	}
}


@media print {
	.dont-print {
		display: none;
	}
	.print-only {
		display: block;
	}
	.directions-content {
		font-size: 12px;
	}
	.directions-map {
		flex-direction: column-reverse;
	}
	.numbered-list li {
		margin: 0 0 0 4px;
	}
}
