/* publicly available */

@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Roboto+Mono&display=block);

html, input, select {
	font-family: Inter, sans-serif;
}

* {	box-sizing: border-box }
*[hidden] { display: none !important }

::selection {
	background-color: black;
	color: white;
}

::placeholder {
	color: #aaa;
}

html {
	background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
	overflow-x: hidden;
}

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

body {
	transition: opacity 500ms;
}

body:not(.loaded) {
	opacity: 0.65;
	/* pointer-events: none; */
	cursor: progress;
}

img {
	width: 100%;
}

input, button, textarea, select {
	outline: none;
	transition: border-color 200ms;
	font-family: Inter, sans-serif;
	background-color: white;
	padding: 1em;
	height: fit-content;
	border-radius: 5px;
	border: 1px solid #ccc;
	color: black;
	accent-color: black;
	background-repeat: no-repeat;
	background-position: 0.75em center;
	background-size: 1.5em;
}

input[type=checkbox]:focus-visible {
	outline: 1px solid;
}

textarea::placeholder, input::placeholder {
	color: #ccc;
	font-weight: lighter;
}

button {
	margin: 2px;
	padding-left: 2.8em;
	border: 0;
	box-shadow: 0 1px 2px #bbb, inset 0 0 0 #bbb;
	transition: box-shadow 200ms;
}

button, select {
	cursor: pointer;
}

button:focus-visible {
	outline: 1px solid black;
}

select:focus-visible {
	border: 1px solid black;
}

select:disabled {
	cursor: unset;
}

button:empty {
	padding: 1em;
	background-size: 75%;
	background-position: center;
}

button:hover {
	box-shadow: 0 1px 4px #aaa, inset 0 0 0 #bbb;
}

button:active {
	box-shadow: 0 0 0 #bbb, inset 0 0 4px #bbb;
}

button:disabled {
	opacity: 0.5;
	cursor: unset;
	box-shadow: none;
}

button.loader {
	pointer-events: none;
	user-select: none;
	color: transparent;
	position: relative;
	background-image: none !important;
}

ul { padding-left: 0.75em }
ul li { list-style-type: none }
ul li::before { content: "- " }

iframe {
	border: 0;
	display: block;
}

pre, code {
	font-family: "Roboto Mono", monospace;
}

input:focus, textarea:focus {
	border-color: black;
}

.invalid {
	animation: red-flash 200ms 0ms 2 alternate;
}

body.section-box-container {
	padding: min(10vh, 5em) 0;
	overflow-y: auto;

}

.section-box {
	display: block;
	width: min(80vw, 300px);
	margin: 0 auto;
	padding: 2em;
	background-color: white;
	border: 1px solid grey;
	border-radius: 5px;
}

.section-box input {
	margin: 1em 0;
}

.section-box button {
	margin-top: 1.5em;
	padding: 1em;
}

.section-box.error p {
	overflow: auto;
    max-height: 12em;
}

hr {
	height: 2.5px;
	border: none;
	border-top: 2px solid #ddd;
}

.clickable {
	cursor: pointer;
}

.clickable * {
	pointer-events: none;
}

.loader:before {
	content: " ";
	position: absolute;
	inset: 0;
	margin: auto auto;
	border-radius: 100%;
	width: 0.5em;
	height: 0.5em;
	border: 1px solid transparent;
	border-top-color: black;
	animation: spin 500ms infinite linear;
}

a {
	color: black;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	cursor: pointer;
}

a.disabled {
	color: #bbb;
	text-decoration: none;
	pointer-events: none;
}

small {
	font-size: 0.75em;
}

.small-text {
	font-size: 0.55em;
	margin: 0;
}

/*
details > summary {
	list-style: none;
}

details > summary::marker, details > summary::-webkit-details-marker {
	display: none;
	content: "";
}

details > summary::before {
	content: "▸";
	display: inline-block;
	margin: 0 0.5em;
	scale: 1.5;
	transition: rotate 250ms ease;
}
*/

details[open] > summary::before{
	rotate: 90deg;
}



.popup-background {
	display: flex;
	position: fixed;
	inset: -50%;
	z-index: 8;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2.5px);
	justify-content: center;
	align-items: center;
	text-align: center;
	transform: scale(0.5);
	opacity: 0;
	animation: popup-show 200ms forwards;
}

.popup-background.hide {
	transform: none;
	opacity: 1;
	pointer-events: none;
	animation: popup-hide 200ms forwards;
}

.popup-background > div {
	width: min(80vw, 360px);
	display: inline-block;
	background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
	border-radius: 5px;
	box-shadow: 0px 2px 5px 0px #444;
}

#popup-content {
	padding: 2em;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#popup-text {
	width: 100%;
	text-overflow: ellipsis;
	overflow: hidden;
}

#popup-input {
	width: 100%;
	margin-top: 10px;
}

.popup-background input {
	width: 80%;
	text-align: center;
	box-shadow: none;
}

.popup-buttons {
	justify-content: center;
	padding: 0.3em 0.5em;
	height: 60px;
	display: flex;
}

.popup-button {
	margin: 0 0.5em;
	padding-left: 1em;
	width: 100%;
	max-width: 15em;
}

.popup-button:empty {
	display: none;
}

#popup-loader {
	height: 200px;
	position: relative;
	font-size: 4em;
	cursor: wait;
}

#popup-loader[data-label]::before {
	top: -1em;
}

#popup-loader[data-label]::after {
	content: attr(data-label);
	font-size: 0.25em;
	position: absolute;
	bottom: 2em;
	left: 0;
	right: 0;
}

#map-popup {
	width: 80vw;
}

#popup-map {
	height: 70vh;
	width: 100%;
    border-radius: 5px;
}

#map-popup input {
	margin: 0.5em 0;
	width: 70%;
	max-width: 20em;
}

#gps-button {
	position: relative;
	background-image: url(/icons/gps.svg);
	background-position: center;
	background-size: 60%;
	background-repeat: no-repeat;
	width: calc(1em + 20px);
	height: calc(1em + 20px);
	margin: 0;
	margin-left: 0.2em;
	padding: 1.5em;
	translate: 0 -0.4em;
}

#gps-button.loader {
	top: -6px;
}

.gm-style .gmnoprint button:not([title^=Zoom]) {
	font-size: 1.2em !important;
	height: 2.4em !important;
	padding: 0.5em !important;
	margin-right: 0.5em !important;
	border-radius: 0.5em !important;
}

.gm-style .gmnoprint button {
	animation: zoom-in 500ms;
}

.gm-style .gmnoprint ul[role=menu] {
	display: none;
}

.gm-style div[draggable="false"] {
	display: none !important;
}

.google-visualization-tooltip {
	pointer-events: none;
}

@keyframes zoom-in {
	from {
		transform: scale(0);
		opacity: 0;
	}
	to {
		transform: none;
		opacity: 1;
	}
}

@keyframes appear {
	from {
		transform: scale(0);
	}
	to {
		transform: scale(1);
	}
}

@keyframes zoom-out {
	from {
		transform: none;
		opacity: 1;
	}
	to {
		transform: scale(0);
		opacity: 0;
	}
}

@keyframes popup-show {
	to {
		transform: none;
		opacity: 1;
	}
}

@keyframes popup-hide {
	to {
		transform: scale(0.5);
		opacity: 0;
	}
}

@keyframes slide-out {
	from { 
		transform: scaleY(0);
		opacity: 0;
	}
	to { 
		transform: none;
		opacity: 1;
	}
}

@keyframes slide-in {
	to { 
		transform: scaleY(0);
		opacity: 0;
	}
}

@keyframes spin {
	to { transform: rotate(1turn) }
}

@keyframes red-flash {
	to { background-color: rgb(255, 203, 203) }
}