body {
  font-family: 'Acumin Pro', sans-serif;
}

h1, h2, h3, h4 {
  color: var(--the-green);
  border: none;
  margin: unset;
  padding-left: 0;
  padding-bottom: 0.5em;
}

a {
  cursor: pointer;
}

*:focus {
    outline: none;
}

button {
  font-family: without-serif, sans-serif !important;
  padding: 7px 12px;
}

button,
select {
  border-radius: 3px;
}

.big-green-button {
  text-align: center;
  background-color: var(--the-green);
  color: white !important;
  text-decoration: none;
  padding: 0.9em 1.3em;
  font-size: 1.2em;
}

.up-title {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.2em;
  color: var(--the-green) !important;
  fill: var(--the-green) !important;
  background-color: white !important;
}

.up-title.active {
  background-color: var(--the-green) !important;
  color: var(--the-white) !important;
  fill: var(--the-white) !important;
}

bubble-message {
  background-color: rgba(0,0,0,1);
  border-radius: 3px;
  box-shadow: 0 20px 30px 0 rgba(0,0,0,0.2);

  animation: pulse 3s ease-out;
  animation-iteration-count: infinite;
  opacity: 0.5;
  z-index: 9999;
}

bubble-message * {
  color: white;
}

bubble-message main {
  padding: 1em;
}

bubble-message header {
  font-weight: bold;
  font-size: 1.05em;
  margin-bottom: 0.7em;
}

bubble-message .bubble-message-close-button::before {
  font-size: 1.5em;
  padding: 2px 7px;
  content: '×';
}

.download-link {
  display: block;
  padding: 0.5em 1em;
  max-width: 15em;
  text-decoration: none;
  color: var(--the-blue);
  clear: both;
}

.download-link:after {
  margin-left: 1em;
  content: '\21F2';
}

.description-text {
  font-family: without-serif, sans-serif;
  white-space: pre-line;
}

#share-link-modal p {
  max-width: 32em;
}

#share-link-input-wrapper {
  display: flex;
  gap: 16px;
}

#share-link-input {
  flex: 1;
  text-overflow: ellipsis;
  overflow: hidden;
}

#share-link-copy-button {
  width: 130px;
  flex-shrink: 0;
}

canvas#output {
  display: none;
}

@keyframes pulse {
  0%   { opacity: 0.7; }
  50%  { opacity: 1.0; }
  100% { opacity: 0.7; }
}

dialog main {
  background-color: white;
  margin: auto;
  max-width: 1200px;
  width: fit-content;
  width: -moz-fit-content;
  margin-top: 80px !important;
}

dialog header {
  padding: 1em;
  padding-left: 1.3em;
  background-color: var(--the-green);
  color: var(--the-white);
  position: relative;
}

dialog header .modal-title {
  font-size: 24px;
  line-height: 32px;
}

dialog header .modal-subtitle {
  font-size: 16px;
  line-height: 24px;
  color: #F2FDF9;
}

dialog .close {
  position: absolute;
  top: 0.1em;
  right: 0.2em;
  text-decoration: none;
  font-size: 2.5em;
  width: 1em;
  height: 1em;
  text-align: center;
  cursor: pointer;
  color: var(--the-white);
}

dialog content,
dialog.modal content {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  padding: 1.5em 1.5em 0.75em !important;
  width: 590px;
  background-color: #F9F9F9;
}

dialog content form,
dialog.modal content form {
  display: flex;
  flex-direction: column;
}

dialog content p {
  font-size: 16px;
  line-height: 24px;
  color: #575656;
  margin: 0;
}

dialog footer,
dialog.modal footer {
  display: flex !important;
  align-items: flex-start;
  gap: 16px;
  padding: 0.75em 1.5em 1.5em !important;
  border-top: 1px solid #E7E6E6;
}

.modal-footer-bar {
  display: flex;
  align-items: center;
  gap: 24px;
}

.modal-footer-bar .info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5C5959;
  font-size: 14px;
}

.modal-footer-bar .info i {
  color: #9E9E9E;
}

dialog pre {
  max-width: 850px;
  white-space: pre-line;
}

toast-notification {
  position: fixed;
  right: 25px;
  top: 25px;
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 12px;
  width: 384px;
  background: #EBF5F2;
  border: 1px solid #009E77;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 9999;
}

toast-notification .toast-icon,
toast-notification .toast-header {
  display: flex;
  flex-direction: column;
}

toast-notification .toast-icon {
  align-items: center;
  align-self: flex-start;
  padding: 2px 0 0;
  width: 20px;
  height: 22px;
}

toast-notification .toast-icon i {
  width: 20px;
  height: 20px;
  font-size: 20px;
  color: #009E77;
}

toast-notification .toast-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

toast-notification .toast-header {
  align-items: flex-start;
  flex: 1;
}

toast-notification .toast-label {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #00664D;
  align-self: stretch;
  margin: 0;
}

toast-notification .toast-caption {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #00664D;
  opacity: 0.8;
  align-self: stretch;
  margin: 0;
}

toast-notification .toast-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

toast-notification .toast-footer div {
  display: flex;
  align-items: center;
}

toast-notification.error {
  background: #FEF2F2;
  border-color: #EF4444;
}

toast-notification.error .toast-icon i {
  color: #EF4444;
}

toast-notification.error .toast-label,
toast-notification.error .toast-caption {
  color: #B91C1C;
}

.loading p button {
    margin: auto;
}

#playground {
  width: 1200px;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
}

.country-item {
  font-size: 1.5em;
  text-align: center;
  cursor: pointer;
  display: inline-block;
  width: 300px;
}

.country-item svg {
  filter: drop-shadow(0px 0px 1.5px #000);
}

.flag {
  width: 200px;
  height: 130px;
}

.selectlist-input {
  font-size: 1.7em;
  padding: 0.5em 1em;

  font-family: without-serif;
  font-weight: lighter;

  text-align: center;
  margin: auto;

  /*
   * color: white;
   * background-color: var(--the-green);
   */
  border: none;
}

#presets li a {
  display: block;
  padding: 0.1em 1.5em;
}

#presets li:hover {
  background-color: #efefef;
}

#presets li p {
  color: dimgray;
}

bubble-message {
  pointer-events: none;
}

bubble-message pre {
  font-family: sans-serif;
  white-space: pre-wrap;
}

@media (max-width: 72em) {
  body {
    overflow: unset;
  }

  #playground {
    flex-flow: column nowrap;
    width: unset;
  }

  .flag {
    width: 100px;
    height: 100px;
  }

  .country-item {
    display: flex;
    padding: 1em;
    width: unset;
    font-size: 1.2em;
  }

  .country-item svg {
    order: 1;
    vertical-align: middle;
  }

  .country-item h2 {
    order: 2;
    vertical-align: middle;
    padding-left: 1em;
    line-height: 1.6em;
  }
}
#maparea {
  position: relative;
  background-color: var(--the-white);
  overflow: hidden;
}

canvas.mapboxgl-canvas {
  cursor: auto;
}

.mapboxgl-ctrl button {
  font-size: 1.6em;
  color: var(--the-color);
}

.mapboxgl-ctrl-icon.active {
  background-color: rgba(0,0,0,.07);
}

#coord-tooltip {
  position: absolute;
  display: none;
  pointer-events: none;

  background: #fff;
  color: #666;

  padding: 5px;
  border: solid #ccc 1px;

  font-size: x-small;
  font-family: monospace;
  white-space: nowrap;
}

.mapbox-control-popup {
  position: absolute;
  top: 120px;
  left: 10px;
  background: #FFFFFF;
  border: 1px solid #E7E6E6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 12px;
}

.mapbox-control-popup .radio-group label {
  margin-left: 0.5em;
}

.mapbox-control-popup .radio-group + .radio-group {
  margin-top: 8px;
}

.north-arrow-ctrl {
  padding: 4px 6px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
  line-height: 0;
  cursor: default;
}
[ripple] {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

[ripple]:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, gray 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform .5s, opacity 1s;
}

[ripple]:active:after {
  transform: scale(0, 0);
  opacity: .2;
  transition: 0s;
}
#mobile-switcher {
  display: none;
}

#mobile-warning {
  display: none;
}

@media (max-width: 768px) {
  html {
    height: 100%;
    overflow: hidden;
  }

  body {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  #mobile-warning {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: #fff;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2em;
    box-sizing: border-box;
  }

  #mobile-warning-content {
    max-width: 320px;
  }

  #mobile-warning-content img {
    width: 64px;
    margin-bottom: 1.5em;
  }

  #mobile-warning-content h2 {
    margin: 0 0 0.75em;
    font-size: 1.4em;
    color: #222;
  }

  #mobile-warning-content p {
    margin: 0;
    color: #555;
    line-height: 1.5;
  }

  #drawer {
    display: none;
  }

  #left-panel {
    min-width: unset;
    width: 100%;
    z-index: 1;
    display: none;
  }

  #left-panel[open] {
    max-width: 100%;
    min-width: unset;
  }

  .search-panel {
    min-width: unset;
    max-width: unset;
  }

  .search-input {
    display: none;
  }

  #right-panel {
    width: 100%;
    position: absolute;
    overflow-y: scroll;
    height: inherit;
  }

  #controls-tabs {
    display: none;
  }

  #mobile-switcher {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-evenly;
  }

  #mobile-switcher > div {
    flex: 1;
    text-align: center;
    padding: 12px;
    fill: var(--the-color);
  }

  #mobile-switcher > div.active {
    background-color: #dedede;
  }

  #mapbox-container {
    position: relative;
  }

  #playground {
    box-shadow: 3px 1px 2px rgba(0,0,0,0.9);
  }

  dialog.modal {
    padding: 0;
  }

  dialog.modal main {
    margin: 1em 0 !important;
    width: 100% !important;
    max-width: unset;
  }
}
map-info .dot, map-info, map-info .arrow {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

map-info .dot {
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	background: #00794C;
	border: 4px solid #FFFFFF;
	border-radius: 50%;
	pointer-events: none;
}

map-info {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	isolation: isolate;
	width: 400px;
	font-size: 14px;
	line-height: 20px;
	color: #5C5959;
}


map-info main {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: inherit;
	max-height: 60vh;
	background: #FFFFFF;
	border: 1px solid #E7E6E6;
	border-radius: 4px;
}

map-info main > content {
	overflow-y: auto;
}

map-info header {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	padding: 0 12px 0 16px;
	gap: 12px;
	border-bottom: 1px solid #E7E6E6;
}

map-info header .header-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 12px 0;
	gap: 2px;
	flex: 1;
}

map-info header .close-button-container {
	display: flex;
	align-items: flex-start;
	padding: 12px 0;
	gap: 10px;
	width: 20px;
	align-self: stretch;
}

map-info header .close-button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 20px;
	height: 20px;
	background: #E7E6E6;
	border-radius: 2px;
	cursor: pointer;
}

map-info header .close-button:hover {
	background: #D0CFCF;
}

map-info header .close-button::before {
	content: '×';
	font-size: 18px;
	line-height: 1;
	color: #3D3B3B;
	position: relative;
	top: -1px;
}

map-info header .title {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	font-weight: 700;
	font-size: 16px;
	line-height: 24px;
	color: #1A1919;
}

map-info header .title.coordinate-title i {
	font-size: 16px;
	color: #3D3B3B;
}

map-info header .caption {
	width: 100%;
	font-weight: 400;
}

map-info content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	isolation: isolate;
	width: inherit;
	align-self: stretch;
}

map-info table {
	width: 100%;
	border-collapse: collapse;
}

map-info tr,
map-info .list-item {
	border-bottom: 1px solid #E7E6E6;
}

map-info tr:last-child,
map-info .list-item:last-child {
	border-bottom: none;
}

map-info td {
	padding: 12px 16px;
}

map-info td:first-child {
	font-weight: 400;
	max-width: 200px;
}

map-info td:last-child {
	font-weight: 700;
	text-align: right;
}

map-info strong {
	font-weight: 400;
}

map-info code {
	font-weight: 700;
	background: none;
}

map-info .list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	isolation: isolate;
	align-self: stretch;
}

map-info .list-item {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	padding: 12px 16px;
	gap: 8px;
	align-self: stretch;
}

map-info .list-item .label {
	max-width: 200px;
	font-weight: 400;
}

map-info .list-item .data {
	font-weight: 700;
	text-align: right;
	flex-grow: 1;
}

map-info .arrow {
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	background: #FFFFFF;
	pointer-events: none;
	z-index: 1;
}

map-info .detailed-data.hidden,
map-info content.hidden {
	display: none;
}

map-info .analyse-button-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 12px 16px;
	border-top: 1px solid #E7E6E6;
}

map-info .analyse-button {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 8px 16px;
	gap: 8px;
	background: #00794C;
	border: 1px solid #006640;
	border-radius: 4px;
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	color: #F2FDF9;
	cursor: pointer;
	width: 100%;
	transition: background-color 0.2s ease;
}

map-info .analyse-button:hover {
	background: #006640;
}

map-info .analyse-button:active {
	background: #005533;
}

map-info tr.subordinate {
	display: none;
}

map-info tr.subordinate.visible {
	display: table-row;
}

map-info tr.subordinate td:first-child {
	padding-left: 32px;
}

map-info .subordinate-toggle {
	display: inline-block;
	cursor: pointer;
	margin-right: 4px;
	transition: transform 0.2s ease;
}

map-info .subordinate-toggle.expanded {
	transform: rotate(90deg);
}

map-info .map-info-info-button {
	background: none;
	border: none;
	padding: 0;
	margin-left: 4px;
	cursor: pointer;
	color: #5C5959;
	font-size: 14px;
	vertical-align: middle;
}

map-info .map-info-info-button:hover {
	color: #00794C;
}
nav #locale-picker {
  position: relative;
  cursor: pointer;
}

nav #locale-current {
  font-size: 0.8em;
  color: var(--the-white);
}

nav #locale-dropdown {
  position: absolute;
  display: none;
  right: 0;
  background-color: white;
  box-shadow: 0px 1px 5px rgba(0,0,0,0.3);
  min-width: 100%;
  width: max-content;
  text-align: center;
  line-height: 3em;
  font-weight: normal;
  cursor: pointer;
}

nav #locale-dropdown a {
  font-size: 0.9em;
  color: black;
  padding: 0 1em;
  cursor: pointer;
}

nav #locale-picker:hover #locale-dropdown {
  display: block;
}
