/*
 *
 * INSTRUCTIONS
 *
 * Copy the Legal Disclaimer and the @font-faces statements to your regular CSS file.
 * The font file(s) should be placed relative to the regular CSS file.
 *
 */

/*
 * Legal Disclaimer for Web licence
 *
 * Licence to use self-hosted webfonts for displaying dynamic text on specified website domains. Our package includes WOFF and WOFF2 font formats.
 *
 * Should the license page views limit be exceeded the license holder will be required to contact Lineto.com for an upgrade.
 * 
 * It is strictly prohibited to rename the font and to download or use these fonts in any other media. 
 * 
 * These Web fonts are licensed exclusively for the use on the following domain(s) and their subdomains:
 *
 * migratoryjournal.jonasvonarb.ch (monthly pageviews: <50K)
 *
 */

/* complete */

@font-face {
  font-family: "CircularXXWeb-Black";
  src: url("https://migratoryjournal.jonasvonarb.ch/assets/type/Circular/Circular-Latin-WebFonts/Fonts/CircularXXWeb-Black.woff")
    format("woff");
}

@font-face {
  font-family: "CircularXXWeb-Black";
  src: url("https://migratoryjournal.jonasvonarb.ch/assets/type/Circular/Circular-Latin-WebFonts/Fonts/CircularXXWeb-Black.woff2")
    format("woff2");
}

/* subset */

@font-face {
  font-family: "CircularXXSub-Black";
  src: url("https://migratoryjournal.jonasvonarb.ch/assets/type/Circular/Circular-Latin-WebFonts/Fonts/CircularXXSub-Black.woff")
    format("woff");
}

@font-face {
  font-family: "CircularXXSub-Black";
  src: url("https://migratoryjournal.jonasvonarb.ch/assets/type/Circular/Circular-Latin-WebFonts/Fonts/CircularXXSub-Black.woff2")
    format("woff2");
}

:root {
  --width: 0px;
  --widthPlus: 0px;
  --Plus: 0px;
  --absNachTi: calc(6400px + 150vw);
  --mittel: 20px;
  --klein: 14px;
  --gross: 40px;
}

*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: CircularXXWeb-Black;
}

html,
body {
  margin: 0;
  overflow-y: hidden;
  overflow-x: scroll;
  height: 100vh;
  width: var(--widthPlus);
  background-color: white;
  scroll-behavior: smooth;
  font-size: var(--klein);
  /* line-height: 15px; */
  letter-spacing: 0.1px;
}

p {
  margin: 0;
}

#scroller {
  top: 0;
  position: relative;
  z-index: 1000000000;
  width: var(--widthPlus);
  height: 100%;
  pointer-events: none;
}
.fillLeft {
  width: fit-content;
  height: 100vh;
  background-color: rgba(0, 0, 0, 1);
  position: absolute;
  color: white;
  pointer-events: initial;
  transition: left 2s;
  z-index: 100000000000;
  box-shadow: 0px 0px 0px 0px #ffffff;
  /* pointer-events: none; */
}

#intro {
  padding-right: 300px;
  height: 100%;
  line-height: unset;
}

#introTitel {
  width: 6400px;
  height: 100vh;
  font-size: 400px;
  overflow: hidden;
  bottom: -60px;
  margin-right: 150vw;
  padding-left: 50px;
  line-height: unset;
  display: inline-block;
  vertical-align: bottom;
}

#introTitel > div {
  bottom: 20px;
  position: absolute;
}
#introTitelCon {
  margin-right: var(--absNachTi);
}

#introPfeil {
  font-size: var(--mittel);
  width: 50vw;
  left: 60px;
  top: 30px;
  display: inline-block;
}
#introText {
  margin-right: 150vw;
  width: 53vw;
  left: var(--absNachTi);
  margin-bottom: 320px;
  display: inline-block;
}

#introText > p {
  font-size: var(--mittel);
  line-height: 31.5px;
  letter-spacing: 1.1px;
  word-spacing: -0.2px;
  overflow: visible;
  /* font-family: C-Light; */
  text-align: justify;
  hyphens: auto;
}
/* 
.fillLeft--X {
  position: absolute;
  left: calc(50vw - 40px);
  background: black;
  top: 0;
  text-align: center;
  vertical-align: middle;
  padding: 0;
  width: 30px;
  transition: height 1s;
  font-size: 10px;
  cursor: pointer;
  color: white;
  z-index: 10000000000000;
  pointer-events: initial;
  line-height: 30px;
  display: none;
} */

.menuLeft--Hidden > .fillLeft--X {
  transition: top 1s;
}

.menuLeft--Hidden {
  position: fixed;
  left: 0;
  right: 0;
  height: 30px;
  background-color: green;
}

#fillRight {
  top: 0px;
  right: 0px;
  background-color: black;
  padding-left: 130vw;
  width: 400vw;
  height: 100vh;
  position: absolute;
}
/* Scale canvas with resize attribute to full size */
canvas[resize] {
  left: 50vw;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  position: absolute;
  display: block;
  pointer-events: none;
  display: none;
}

#canvasBack {
  z-index: 100;
  width: calc(100% + 50vw);
  height: 120vh;
  top: -10vh;
  left: 0;
  position: fixed;
  display: none;
}

svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px;
  position: fixed;
  background-color: transparent !important;
  z-index: 10;
}

#background {
  width: 100vw;
  height: 100vh;
  position: fixed;
  display: none;
}

.buttonContainer {
  position: fixed;
}
.vl0 {
  border-left: 1px solid;
  top: 0;
  height: 100vh;
  position: fixed;
  left: calc(50vw - 1px);
  z-index: 100000;
  color: rgb(80, 80, 80);
  color: white;
  z-index: 1;
}

#infoPerson {
  position: fixed;
  width: 30vw;
  height: 70vh;
  background-color: white;
}

.map {
  width: 100vw;
  height: 100vh;
  position: fixed;
  pointer-events: none;
  transition: filter 0.5s;
  opacity: 1;
  background-color: black;
}

.leaflet-interactive {
  cursor: default;
  /* fill: bisque; */
}

#ebeneMapWorl .leaflet-marker-pane > * {
  -webkit-transition: all 0s cubic-bezier(0, 0, 0.2, 1);
  -moz-transition: all 0s cubic-bezier(0, 0, 0.2, 1);
  -o-transition: all 0s cubic-bezier(0, 0, 0.2, 1);
  -ms-transition: all 0s cubic-bezier(0, 0, 0.2, 1);
  transition: all 0s cubic-bezier(0, 0, 0.2, 1);
  filter: blur(0);
}

#ebeneMapWorl .moving > * {
  -webkit-transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
  -moz-transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
  -o-transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
  -ms-transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
  filter: blur(0);
}

#ebeneMapWorl img {
  pointer-events: none;
}

.leaflet-interactive:hover {
  fill: blue;
}

#audios {
  position: fixed;
}

/*d3*/

.node {
  cursor: pointer;
}

.node:hover {
  stroke: #000;
  stroke-width: 1.5px;
}

.node--leaf {
  fill: white;
}

.label {
  font: 11px "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-anchor: middle;
  text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff, 0 -1px 0 #fff;
}

.label,
.node--root,
.node--leaf {
  pointer-events: none;
}

#earth_div {
  pointer-events: none;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  position: fixed !important;
  background-image: black;
  background-image: -moz-linear-gradient(
    center bottom,
    rgb(253, 253, 253) 0%,
    rgb(253, 253, 253) 15%,
    rgb(223, 223, 223) 53%,
    rgb(255, 255, 255) 56%,
    rgb(253, 253, 253) 100%
  );
}

.nonTouch {
  pointer-events: initial;
}

.p5Canvas {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
}
#defaultCanvas0 {
  z-index: 10000000000;
}
#defaultCanvas1 {
  z-index: 5;
}

.leaflet-control-container {
  display: none;
}

/*Text*/

#textPers,
#textPersInf {
  position: fixed;
  z-index: 10000000000000000000;
  color: white;
  line-height: 20px;
  color: white;
  top: 80vh;
  left: 120px;
  opacity: 0;
  animation: opacity 1s;
  pointer-events: none;
}
#textPersInf {
  text-align: right;
  left: unset;
  font-size: var(--klein);
  right: 51vw;
  text-transform: uppercase;
  color: rgb(80, 80, 80);
  display: none;
}

#textPersInf > p {
  display: none;
}

#textPers > p {
  text-align: justify;
  margin: 0;
  display: inline-block;
}

#timeL {
  width: var(--width);
  position: absolute;
  left: 100vw;
  z-index: 10000000000;
  color: white;
  display: grid;
}

#timeL > p {
  border-left: solid 1px white;
  padding-left: 3px;
  height: 20px;
  letter-spacing: 0.3px;
  transition: background-color 0.2s;
  /* writing-mode: vertical-rl;
  text-orientation: upright; */
  /* font-family: genMono; */
}

#infoMap {
  position: initial;
  top: 50px;
  left: 10px;
  content: "hello";
  color: white;
}

.policy {
  background-color: grey;
  width: calc(var(--width) / 272 - 4px);
  margin-left: 0px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  font-size: var(--klein);
}

.policy:hover {
  background-color: rgb(230, 233, 20) !important;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;

  border-top: 20px solid #f00;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  /*transform: translate(71px, -21px) rotate(-0deg);*/
  transform: translate(90.5px, 35px) rotate(-0deg);
  background-color: transparent !important;
  color: white !important;
  box-shadow: none !important;
  text-align: left;
  width: 200px;
  font-size: var(--klein);
}

.leaflet-popup-content > span {
  background-color: black;
  z-index: 1000;
}

.leaflet-popup-tip-container,
.leaflet-popup-close-button {
  display: none !important;
}

.connec {
  transform-origin: top left;
  transform: rotate(0deg) translate(0, 0);
  border-left: 1px solid white;
  height: 45px;
}

#kantone > span {
  line-height: 15px;
}

/*-------slider------*/

#legendeLinks {
  height: auto;
  padding-top: 10px;
  padding-left: 15px;
  padding-right: 30px;
  padding-bottom: 20px;
  position: fixed;
  top: 30px;
  left: 30px;
  width: 23vw;
  color: white;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10;
}

#legendeLinks div,
#legendeLinks p {
  width: 100%;
}
#legKantSchal {
  width: auto !important;
  float: right;
}

.textPol {
  height: auto;
  max-height: 40vh;
  overflow-y: scroll;
}

.yearPol {
  display: none;
}

.oriPol {
  display: inline;
  text-transform: initial;
  color: rgb(90, 90, 90);
}

.quellPol {
  color: rgb(90, 90, 90);
}

.targPol {
  line-height: 18px;
}

.titelPol {
  text-transform: capitalize;
  text-decoration: underline;
  display: inline;
}

/* #legendeRechts {
  width: auto;
  min-width: 200px;
  height: auto;
  padding-top: 10px;
  padding-left: 15px;
  padding-right: 30px;
  padding-bottom: 30px;
  position: fixed;
  top: 30px;
  right: 30px;
  width: 30vw;
  color: white;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.5);
} */

.container--lege {
  position: initial;
  top: 30px;
  width: 20vw;
  color: white;
}
.container--lege > .upper {
  display: block;
  padding-bottom: 5px;
}
#switchesRight.container--lege {
  text-align: left;
}

#switchesRight {
  left: 30px;
  top: 150px;
}

#switchesLeft {
  left: 30px;
}

#switchesLeft {
  font-size: var(--kelin);
}

.swiContain {
  font-size: var(--mittel);
  margin-bottom: 5px;
}

.titSwi {
  margin-left: 5px;
  letter-spacing: 0.7px;
}
.titNam {
  margin-left: 10px;
}

.legendeIcon {
  display: inline-block;
  color: white;
  width: 25px;
}

#legende > p {
  width: 100%;
  line-height: 100px;
}

#legende > div {
  width: 100%;
  line-height: 18px;
  letter-spacing: 0.5px;
}

label {
  margin-bottom: -20px;
}

#switchesRight > div {
  text-align: left;
}

#switchesRight > div > span {
  margin-bottom: 30px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 14px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.swiEbe span {
  top: 6px;
  bottom: -6px;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 10px;
  width: 10px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: rgb(230, 233, 20);
}

input:focus + .slider {
  box-shadow: 0 0 1px rgb(230, 233, 20);
}

input:checked + .slider:before {
  -webkit-transform: translateX(10px);
  -ms-transform: translateX(10px);
  transform: translateX(10px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 6px;
}

.slider.round:before {
  border-radius: 6px;
}
#ebeneMapWorl {
  display: block;
}

.ebene {
  display: none;
}

#ebeneInfoAusl {
  z-index: 2;
  width: 65vw;
  height: 70vh;
  margin-top: 30px;
  margin-left: 25vw;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  filter: invert();
}

#legKant,
#legPol,
#legGes {
  display: none;
  width: calc(20vw - 30px);
  margin-top: 10px;
}

#legKant > div {
  column-count: 2;
  column-gap: 25px;
}
#legKant > div > span:hover {
  text-decoration: underline;
  cursor: pointer;
  color: rgb(230, 233, 20);
}

#legKant > div > span:hover > span {
  text-decoration: underline;
  cursor: pointer;
  color: rgb(230, 233, 20);
}

#ebeneInfoPoli,
#ebeneInfoGeschi {
  position: absolute;
}

#ebeneInfoGeschi {
  background-color: rgb(230, 233, 20);
}

#ebeneInfoTest {
  background-color: green;
  width: 100vw;
  height: 30vh;
  position: fixed;
}

#poliText {
  padding: 10px;
  position: fixed;
  width: 20vw;
  max-height: 600px;
  overflow: scroll;
  top: 30px;
  right: 20px;
  color: white;
  z-index: 1000;
  text-align: left;
  display: block;
  text-align: left;
  display: none;
}
#poliText > p {
  text-align: left;
  background-color: black;
}
#poliText > .titelPol {
  text-transform: uppercase;
}

.markerActiv {
  opacity: 1;
}
.markerInActiv {
  transform-origin: center;
  opacity: 1;
}
.markerHidden {
  opacity: 0;
  display: none;
}
.geschi {
  background-color: rgba(30, 30, 30, 0.7);
  color: white;
  padding: 20px;
  width: 28vw;
  max-width: 470px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  line-height: 18px;
}

.geschiLang {
  max-width: initial;
  height: auto !important;
}

.geschiLang p {
  padding-top: 10px;
  border-top: solid white 1px;
  max-width: 40vw;
  width: auto;
}

.grey {
  color: rgb(80, 80, 80);
}

/*Subtitles*/

#subt {
  text-align: left;
  bottom: 300px;
  left: 50vw;
  width: auto;
  height: 100px;
  font-size: var(--mittel);
  /* font-size: 20px; */
  line-height: 23px;
  letter-spacing: 1.4px;
  color: white;
  position: fixed;
  background-color: none;
  padding: 10px;
  hyphens: auto;
  overflow: hidden;
  background: rgb(25, 25, 25, 0.8);
  border-radius: 5px;
  z-index: 100000000000000000000;
}

#subt p {
  color: rgb(80, 80, 80);
  font-size: var(--klein);
  line-height: 17px;
}
#subt span {
  margin-top: 6px;
  display: inline-block;
}

.nameMitPunkt,
.nameMitPunktLos {
  position: fixed;
  color: white;
  left: 30px;
  padding: 4px;
  padding-right: 10px;
  padding-left: 4px;
  text-align: left;
  color: rgb(80, 80, 80);
  text-transform: uppercase;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 100;
  border-radius: 5px;
}

#videoTest {
  width: 1px;
  height: 1px;
  top: 5vh;
  left: 25vw;
  position: fixed;
  display: none;
}

video::cue {
  color: rgb(230, 233, 20);
  background: transparent !important;
  position: fixed;
  top: 0px;
  display: none;
}

/* jinsu */
.colorJinsu {
  color: #0072ed;
}
input:checked + .colorJinsu {
  background: #0072ed;
}

#nameMitPunktJinsu > span {
  color: #0072ed;
}

/* .colorJinsu::before {
  background: #0072ed;
}
input:checked + .colorJinsu::before {
  background: white;
} */

/* Johan */
.colorJohan {
  color: #c6893e;
}

#nameMitPunktJohan > span {
  color: #c6893e;
}
input:checked + .colorJohan {
  background: #c6893e;
}

/* .colorJohan::before {
  background: #be9b71;
} */
/* input:checked + .colorJohan::before {
  background: white;
}

input:checked + .colorJohan {
  background: #be9b71;
} */

#nameMitPunktVero > span {
  color: #17853f;
}

#nameMitPunktNermina > span {
  color: #bb252f;
}

/* input:checked + .colorAli {
  background: #038c17;
}
.colorAli::before {
  background:#038c17;
  opacity: 0.8;
  filter: invert();

}
input:checked + .colorNermina {
  background: #f2c9cc;
}
.colorNermina::before {
  background: #f2c9cc;
  filter: invert();
  opacity: 0.8;
} */

.top {
  z-index: 10000000000 !important;
  pointer-events: none;
}

.top > div > label {
  filter: invert();
}

.topActiv {
  z-index: 10000000000 !important;
  pointer-events: initial;
}

.labelInactiv {
  pointer-events: none;
  filter: invert();
}

.infoSmall {
  display: inline-block;
  color: rgb(200, 200, 200);
  text-transform: none;
}

button {
  all: unset;
}

#RELOAD {
  background-color: #000;
  color: white;
  position: fixed;
  height: 20px;
  padding-left: 10px;
  padding-right: 10px;
  /* border: solid white 1px; */
  top: 0;
  right: 0;
  z-index: 1000000000000000000;
  display: none;
}
.upper {
  text-transform: uppercase;
}

.underl {
  text-decoration: underline;
}

.texDar {
  color: rgb(150, 150, 150);
}

#outro {
  padding: 20px;
  width: 75vw;
  position: absolute;
  top: 100px;
  color: white;
  font-size: 50px;
  line-height: 62px;
  letter-spacing: 1.1px;
  word-spacing: 0px;
}

#impressum {
  text-align: left;
  padding: 20px;
  width: 50vw;
  position: absolute;
  bottom: 30px;
  right: 0;
  color: white;
}

.mobile {
  display: none;
}
@media only screen and (max-width: 1600px) {
  * {
    display: none;
  }
  html,
  body {
    width: 100vw;
    height: 100vh;
    top: 0;
    position: fixed;
    background-color: black;
    color: white;
    z-index: 1000000000000000000000000000000;
    font-size: 100px;
    text-transform: uppercase;
    display: block;
  }

  #mobile {
    width: 100vw;
    height: 100vh;
    top: 0;
    position: fixed;
    background-color: black;
    color: white;
    z-index: 1000000000000000000000000000000;
    font-size: 6vw;
    text-transform: uppercase;
    display: block !important;
  }
}
