@font-face {
	font-family: 'legend';
	/*src: url('GermaniaOne-Regular.ttf') format('truetype');*/
  src: url('Metamorphous-Regular.ttf') format('truetype');
  /*font-family: Arial, Helvetica, sans-serif*/;
}
@font-face {
  font-family: 'label';
  font-weight: bold;
  /*src: url('GermaniaOne-Regular.ttf') format('truetype');*/
  src: url('Metamorphous-Regular.ttf') format('truetype');
	/* src: url('Roboto/Roboto-Regular.ttf') format('truetype'); */
}
body {
  padding: 0;
  margin: 0;
}
html, body, #map {
  height: 100%;
  width: 100vw;
}

.leaflet-tooltip.my-labels {
  font-family:label;
	transform-origin: 0 0;
  transform: rotate(-30deg);
  background-color: transparent;
  border: transparent;
  box-shadow: none;
  font-size: 18px;
  font-weight: 800;
  text-shadow:1px 1px 1px #fff, -1px -1px 1px #fff;
}
.leaflet-tooltip.my-markers {
  font-family:label;
	transform-origin: 0 0;
  transform: rotate(-30deg);
  background-color: transparent;
  border: transparent;
  box-shadow: none;
  padding-top: 30px;
  font-size: 12px;
  font-style: italic;
  text-shadow:1px 1px 1px #fff, -1px -1px 1px #fff;
}
/*Legend specific*/
.legend {
  font-family:legend;
	padding: 6px 8px; 
  font-size: 14px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  line-height: 24px;
  color: #000;
}
.legend h4 {
  text-align: center;
  font-size: 16px;
  margin: 2px 8px 2px 8px;
  color: #000;
}

.legend span {
  position: relative;
  bottom: 3px;
}

.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin: 0 8px 0 0;
  opacity: 0.7;
}

.legend i.icon {
  background-size: 18px;
  background-color: rgba(255, 255, 255, 1);
}

hr {
  border:none;
  border-top:1px dashed #000;
  color:#fff;
  background-color:#fff;
  height:1px;
  width:50%;
}

/*Period description inside a legend*/
.legend details.description {
  max-width: 460px;
  margin-top: 4px;
}
.legend details.description summary {
  cursor: pointer;
  font-weight: bold;
}
.legend details.description p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 18px;
  margin: 6px 0;
}
.legend details.description[open] {
  max-height: 45vh;
  overflow-y: auto;
}

/*Cities and names are hidden at continent zoom (see updateLabelVisibility)*/
.zoomed-out .city-marker,
.zoomed-out .leaflet-tooltip.my-labels,
.zoomed-out .leaflet-tooltip.my-markers {
  display: none;
}

/*Story layers: person markers and always-visible place names*/
.person-marker {
  background: transparent;
  border: none;
}
.person-marker svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.leaflet-tooltip.story-label {
  font-family: legend;
  font-size: 14px;
  font-weight: bold;
  color: #8e1b1b;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(142, 27, 27, 0.4);
  border-radius: 4px;
  box-shadow: none;
  padding: 1px 6px;
}
.leaflet-tooltip.story-label:before {
  display: none;
}
.legend .story-legend-icon svg {
  vertical-align: middle;
  margin: 0 6px 0 0;
}
.legend .story-legend-line {
  display: inline-block;
  width: 18px;
  margin: 0 6px 4px 0;
  border-top: 3px dashed;
  vertical-align: middle;
}

/*Story animation: play button and highlighted stop*/
.story-play a {
  font-size: 14px;
  font-weight: normal;
}
.person-marker.story-active svg {
  transform: scale(1.35);
  transition: transform 0.3s;
}
.person-marker.story-traveler svg circle:first-child {
  fill: #fbe9e7;
}

/*Compact legend for layers with many entries*/
.legend.compact {
  font-size: 12px;
  line-height: 17px;
  max-width: 440px;
}
.legend.compact h4 {
  font-size: 14px;
}
.legend.compact i {
  width: 13px;
  height: 13px;
  margin: 2px 6px 0 0;
}
.legend.compact small {
  font-size: 10px;
  line-height: 13px;
  display: inline-block;
}

/*Readable font for 20th-century layers (legends, names and cities)*/
@font-face {
  font-family: 'modern';
  src: url('Roboto/Roboto-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'modern';
  src: url('Roboto/Roboto-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: 'modern';
  src: url('Roboto/Roboto-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'modern';
  src: url('Roboto/Roboto-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}
.legend.modern,
.legend.modern h4,
.leaflet-tooltip.modern {
  font-family: modern, Arial, Helvetica, sans-serif;
}
.legend.modern h4 {
  font-weight: bold;
}
.leaflet-tooltip.my-labels.modern {
  font-weight: 500;
  letter-spacing: 0.2px;
}
.leaflet-tooltip.my-labels.modern span {
  font-size: 17px !important;
}
.leaflet-tooltip.my-markers.modern span {
  font-size: 12px !important;
}

/*Legend and name toggles (see CaptionControl in index.html)*/
.hide-legend .leaflet-control.legend,
.hide-names .leaflet-tooltip.city-label,
.hide-names .leaflet-tooltip.story-label,
.hide-areas .leaflet-tooltip.area-label,
.hide-title .leaflet-control.map-title {
  display: none;
}
.caption-toggles a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
}
.caption-toggles a.active {
  background-color: #dfe7f1;
  color: #1f4e85;
}

/*Story popups with the dates of each stop*/
.story-popup .leaflet-popup-content {
  font-family: modern, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 19px;
  margin: 8px 12px;
  color: #333;
}
.story-popup .leaflet-popup-content strong {
  color: #8e1b1b;
}

/*Story: sync history maps with the years of the journey*/
.story-play a.story-sync {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}
.story-play a.active {
  background-color: #dfe7f1;
  color: #1f4e85;
}
.story-popup .story-map-note {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #1f4e85;
}

/*Story replay: hide all map controls (the tile attribution stays, as the tile licences require)*/
.leaflet-control {
  transition: opacity 0.4s;
}
.story-replaying .leaflet-control:not(.leaflet-control-attribution) {
  opacity: 0;
  pointer-events: none;
}

/*City captions sit to the right of their dot (see bindTooltip patch in index.html)*/
.leaflet-tooltip.my-markers.city-label {
  padding: 0 2px;
  margin-left: 0;
  line-height: 1.2;
}
.leaflet-tooltip.my-markers.city-label span {
  white-space: nowrap;
}
.leaflet-tooltip.city-label:before {
  display: none;
}

/*Story replay speed: button and short on-screen indicator*/
.story-play a.story-speed {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #333;
}
.story-toast {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-family: modern, Arial, Helvetica, sans-serif;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.story-toast.visible {
  opacity: 1;
}

/*Revealing caption in the lower centre of the view on each layer change*/
.layer-caption {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  z-index: 800;
  max-width: 60%;
  padding: 10px 22px 12px;
  border-radius: 6px;
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  text-align: center;
  font-family: modern, Arial, Helvetica, sans-serif;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
}
.layer-caption.visible {
  opacity: 1;
  transition: opacity 0.25s;
}
.layer-caption-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  clip-path: inset(0 100% 0 0);
}
.layer-caption-sub {
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #f3d9a4;
  opacity: 0;
}
.layer-caption.visible .layer-caption-title {
  animation: caption-reveal 0.9s ease-out forwards;
}
.layer-caption.visible .layer-caption-sub {
  animation: caption-fade 0.6s ease-out 0.6s forwards;
}
@keyframes caption-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes caption-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 700px) {
  .layer-caption { max-width: 86%; bottom: 36px; }
  .layer-caption-title { font-size: 17px; }
  .layer-caption-sub { font-size: 13px; }
}

/*Language toggle BY / EN*/
.caption-toggles a.lang-toggle {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.3px;
}
/*The decorative legend font has no Cyrillic letters: use the readable font for Belarusian*/
html[lang="be"] .legend,
html[lang="be"] .legend h4,
html[lang="be"] .leaflet-tooltip.my-labels,
html[lang="be"] .leaflet-tooltip.my-markers {
  font-family: modern, Arial, Helvetica, sans-serif;
}

/*Hint under the layer list*/
.leaflet-control-layers .layers-hint {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid #ddd;
  font-size: 11px;
  color: #777;
}
