﻿/* Main layout */

html {
	padding: 0;
	margin: 0;
}

body {
	padding: 0;
	margin: 0;
	font-family: roboto, sans-serif;
	color: #838589;
	font-size: 1.125em;
	line-height: 1.4em;
	background-color: #fff;
	font-weight: 300;
}

.main {
	max-width: 1280px;
	margin: auto;
	position: relative;
}

.v-stack {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto;
	grid-auto-flow: row;
	grid-row-gap: var(--spacing, 0);
	justify-items: var(--alignment, start);
}

	.v-stack.fill-equally {
		grid-template-rows: repeat(auto-fit, minmax(0, 1fr));
	}

	.v-stack.fill-proportionally {
		display: flex;
		flex-flow: column;
	}

	.v-stack spacer {
		flex: 1 1 auto;
	}

.h-stack {
	display: grid;
	grid-template-columns: auto;
	grid-template-rows: 1fr;
	grid-auto-flow: column;
	grid-column-gap: var(--spacing, 0);
	align-items: center;
}

	.h-stack.fill-equally {
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	}

	.h-stack.fill-proportionally {
		display: flex;
		flex-flow: row;
	}

	.h-stack spacer {
		flex: 1 1 auto;
	}

/* Text styles */

h1 {
	font-size: 28px;
	margin: 0;
	font-weight: inherit;
}

	h1.title {
		font-size: 36px;
	}

h2 {
	font-size: 22px;
	margin: 0;
}

h3 {
	font-size: 18px;
	margin: 0;
}

h4 {
	font-size: 16px;
	margin: 0;
}

h5 {
	font-size: 12px;
	margin: 0;
}

p, li {
	font-size: 16px;
	margin: 0 0 1em 0;
}

a {
	color: #0d3584;
	text-decoration: none;
}

	a.active {
		text-decoration: none;
	}

	a.custom-button {
		display: inline-block;
		padding: 10px 18px;
		background-color: #000000;
		color: #ffffff;
		text-align: center;
		border-radius: 8px;
		font-weight: bold;
	}
	
	
/* Header */

.header {
	padding: 18px 24px;
	background-color: #000000;
}

.header-inner {
	--spacing: 24px;
}

.logo {
	height: 96px;
}

@media all and (max-width: 1000px) {

	.header {
		padding: 18px 24px 48px;
		background-color: #000000;
	}

	.logo {
		height: 64px;
	}
	
	.map-card {
		
	}
}

@media all and (max-width: 600px) {
}

h3.header-title {
	color: #ffffff;
	font-size: 26px;
}

/* Map header */

.map-header {
	display: flex;
	justify-content: space-between;
}

.map-name-display, .map-name-edit {
	flex-grow: 1;
}

.map-name-display {
	padding-bottom: 4px; 
	padding-top: 5px;
}

.map-name-edit-link {
	color: #999999;
	cursor: pointer;
	font-size: 80%;
	padding-top: 11px;
}

.map-name-edit {
	margin-left: -5px; 
	margin-top: -4px; 
	padding-bottom: 4px; 
	align-items: baseline;
}

.map-name-edit input {
	font-size: 28px; 
	font-weight: inherit; 
	font-family: roboto, sans-serif; 
	border: 1px solid #BBBBBB; 
	border-radius: 4px; 
	padding: 4px;
}

.map-name-apply-link {
	color: #999999;
	cursor: pointer;
	font-size: 80%;
	padding-top: 2px;
	margin-left: 5px;
}

.map-share {
	padding: 6px;
	margin-right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.map-share img {
	width: 30px;
}

.map-distance, .map-duration {
	background-color: #EEEEEE;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	padding-top: 6px;
	padding-bottom: 4px;
	width: 60px;
	font-size: 80%;
	align-items: center;
	justify-content: space-evenly;
	cursor: pointer;
}

.map-distance-icon, .map-duration-icon {
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.map-distance img, .map-duration img {
	width: 22px;
}

.map-distance {
	margin-right: 12px;
}

/* Map */

.map-card {
	border-radius: 20px;
	background-color: #ffffff;
	margin-top: -40px;
	max-width: 800px;
	overflow: hidden;
	box-shadow: 0 8px 20px 0 #00000022;
}

.custom-help {
	padding-top: 30px;
}

.custom-help img {
	width: 50%;
}

@media all and (min-width: 800px) {
	
	.map-card {
		width: 800px;
	}
	
	.custom-help {
		width: 700px;
	}

	.map-holder {
		display: flex;
		align-items: center;
		flex-direction: column;
	}
}

.map-header {
	padding: 20px;
	color: #333333;
}

.map-distance-duration {
	font-size: 80%;
	padding-top: 4px;
}

.map-error {
	padding: 20px;
	background-color: #F7F9FC;
}

.map-error-title {
	padding-bottom: 16px;
	font-weight: bold;
}

.map-error-message {
	padding-bottom: 4px;
}

	.map-error-message::before {
		content: "o";
		opacity: 0.3;
		font-size: 90%;
		margin-right: 8px;
	}

.map-data {
	padding: 20px;
	background-color: #F7F9FC;
}

.map-data-intro {
	font-size: 90%;
	padding-bottom: 16px;
}

.map-data-item {
	display: flex;
	background-color: #000000AA;
	border-radius: 10px;
	padding: 8px;
	margin-bottom: 20px;
	color: #ffffff;
	justify-content: flex-start;
	align-items: stretch;
}

.map-data-pill {
	border-radius: 6px;
	width: 20px;
}

.map-data-type-name {
	padding: 8px 8px 8px 16px;
}

.map-data-type {
	opacity: 0.7;
	font-weight: normal;
	font-size: 90%;
	padding-bottom: 4px;
}

.map-data-name {
	font-weight: bold;
	padding-bottom: 2px;
}

/* Info */

.info-holder {
	display: flex;
	align-items: center;
	flex-direction: column;
}

.info-card {
	border-radius: 20px;
	background-color: #ffffff;
	margin-top: -40px;
	max-width: 800px;
	overflow: hidden;
	box-shadow: 0 8px 20px 0 #00000022;
}

@media all and (min-width: 800px) {
	.info-card {
		width: 800px;
	}
}

.info-header {
	padding: 20px;
	color: #333333;
}

.info-body {
	padding: 20px;
	background-color: #F7F9FC;
}

	.info-body h2 {
		margin: 16px 0 8px;
	}

.info-links, .back-link {
	margin-top: 16px;
}

	.info-links a, .back-link a {
		display: block;
		border-top: 1px solid #eeeeee;
		padding: 10px 0;
		font-weight: bold;
	}

	.back-link a::before {
		content: "◀";
		opacity: 0.3;
		font-size: 90%;
		margin-right: 8px;
	}
		.info-links a::after {
			content: "▶";
			opacity: 0.3;
			font-size: 90%;
			margin-left: 8px;
		}

.info-back {
	font-weight: bold;
}

	.info-back::before {
		content: "<";
		opacity: 0.3;
		font-size: 90%;
		margin-right: 6px;
	}

table.data {
	border: 0;
	margin-bottom: 1em;
}

table.data tr:first-child td {
	font-weight: bold;
}

table.data td {
	border: 0;
	padding: 4px 0;
	vertical-align: top;
}

table.data td:first-child {
	padding-right: 8px;
	font-weight: bold;
}

/* Errors */
.error-holder {
	display: flex;
	align-items: center;
	flex-direction: column;
}

.error-card {
	border-radius: 20px;
	background-color: #ffffff;
	margin: 0 0 100px;
	max-width: 800px;
	overflow: hidden;
	box-shadow: 0 8px 20px 0 #00000022;
	padding: 40px;
}

/* Content Screens */
p.intro {
	padding-top: 37px;
	font-family: 'roboto-bold', sans-serif;
	color: #000;
}

p.heading, h3 {
	font-family: 'anton-regular', sans-serif;
	color: #000;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 1em 0;
}

.video-holder {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
}

.video-holder iframe, .video-holder object, .video-holder embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

table.poi-legend {
	width: 100%;
	margin: 40px 0;
	border-collapse: collapse;
	border: 1px solid #838589;
}

table.poi-legend td {
	padding: 10px 10px;
	border: 1px solid #838589;
	color: #000;
}

table.poi-legend td.icon {
	width: 48px;
}

.content {
	width: 82%;
	margin: 0 auto;
}

ul.image-list {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

div.two-col-logos {
	display: flex;
	flex-direction: column;
}

div.two-col-logos div {
	display: flex;
	align-content: center;
	align-items: center;
	justify-content: space-evenly;
	padding-bottom: 40px;
}

div.two-col-logos div a {
	display: block;
	width: 40%;
	text-align: center;
}

ul.one-col-logos {
	display: flex;
	flex-direction: column;
}

ul.one-col-logos li {
	width: 100%;
	text-align: center;
	min-height: 124px;
	display: flex;
	align-content: center;
	align-items: center;
	justify-content: center;
}

@media all and (min-width: 800px) {
	.error-card {
		width: 800px;
	}
}

/* Modal */
.modal {
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0,0,0);
	background-color: rgba(0,0,0,0.3);
}

.modal-holder {
	background-color: #ffffff;
	margin: 15% auto 0;
	border: 1px solid #999999;
	border-radius: 10px;
	width: 400px;
}

.modal-content {
	padding: 20px;
	min-height: 240px;
}

.modal-content .copy-icon {
	width: 18px;
	opacity: 0.6;
	margin-left: 10px;
	cursor: pointer;
}

.copied-message {
	margin-left: 10px;
}

.modal-field {
	font-size: 20px;
	font-weight: inherit;
	font-family: roboto, sans-serif;
	border: 1px solid #BBBBBB;
	border-radius: 4px;
	padding: 4px;
	margin-right: 4px;
	width: 120px;
}

.modal-footer {
	padding: 10px;
	border-top: 1px solid #999999;
	display: flex;
	justify-content: flex-end;
}

.modal-error {
	padding-top: 20px;
	font-style: italic;
}

.modal-close-button {
	display: inline-block;
	color: #FFFFFF;
	padding: 4px 8px;
	background-color: #999999;
	font-weight: bold;
	font-size: 90%;
	cursor: pointer;
	border-radius: 5px;
	margin-left: 10px;
}

.modal-apply-button {
	display: inline-block;
	color: #FFFFFF;
	padding: 4px 8px;
	background-color: #666666;
	font-weight: bold;
	font-size: 90%;
	cursor: pointer;
	border-radius: 5px;
	margin-left: 10px;
}
