@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  src: url(fonts/Figtree-VariableFont_wght.ttf) format("truetype");
}
@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-weight: 300 900;
  src: url(fonts/Figtree-Italic-VariableFont_wght.ttf) format("truetype");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  src: url(fonts/static/ChakraPetch-Light.ttf) format("truetype");
  font-weight: 300;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  src: url(fonts/static/ChakraPetch-Regular.ttf) format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  src: url(fonts/static/ChakraPetch-Medium.ttf) format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  src: url(fonts/static/ChakraPetch-SemiBold.ttf) format("truetype");
  font-weight: 600;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  src: url(fonts/static/ChakraPetch-Bold.ttf) format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: italic;
  src: url(fonts/static/ChakraPetch-LightItalic.ttf) format("truetype");
  font-weight: 300;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: italic;
  src: url(fonts/static/ChakraPetch-Italic.ttf) format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: italic;
  src: url(fonts/static/ChakraPetch-MediumItalic.ttf) format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: italic;
  src: url(fonts/static/ChakraPetch-SemiBoldItalic.ttf) format("truetype");
  font-weight: 600;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: italic;
  src: url(fonts/static/ChakraPetch-BoldItalic.ttf) format("truetype");
  font-weight: 700;
}
body {
  margin: 0;
  font-family: "Figtree", system-ui;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1.5;
  background-color: #c5e8d3;
}
select,
button {
  font-family: "Figtree", system-ui;
  font-size: 1em;
}
p {
  font-size: 17px;
}
::selection {
  background: #a75ff4;
}
.topBar {
  position: relative;
  width: calc(100% - 10px);
  margin: 6px 5px 0px 0px;
  display: flex;
}
.rtl .topBar {
  margin: 6px 0px 0px 5px;
}
.topBar > *,
#eightyPercent > * {
  padding-left: 5px;
  padding-right: 5px;
}
#eightyPercent {
  width: calc(100% - 225px);
  display: flex;
}
#sliderWrapper {
  flex-grow: 1;
  display: flex;
}
#timeframeWrapper,
#dateDisplay {
  /* flex-grow: 1; */
  border-right: 2px solid grey;
}
.rtl #timeframeWrapper,
.rtl #dateDisplay {
  /* flex-grow: 1; */
  border-left: 2px solid grey;
  border-right: none;
}
#timeSlider {
  flex-grow: 1;
  margin-left: 10px;
  vertical-align: middle;
}
#legend {
  position: absolute;
  bottom: 10px;
  left: calc(50% - 160px);
  height: 50px;
}
#sidetext {
  width: 25%;
  float: left;
  color: #eee;
  background: #29173d;
}
#readMore {
  position: relative;
  float: left;
  width: 100%;
  color: #222;
  background: #eee;
  z-index: 100;
  padding-bottom: 20px;
}
#readMore > h2 {
  margin: 50px 30px 0px;
}
#readMore h3 {
  font-size: 21px;
}
#flexContainerFooter {
  width: calc(100% - 40px);
  display: flex;
  flex-wrap: wrap;
  margin: 0px 20px;
}
.card img {
  width: 100%;
  object-fit: cover;
  height: 200px;
  border-radius: 20px;
  border: 0.5px #555 solid;
}
.card {
  width: 300px;
  margin: 0px 10px;
}
.card a {
  color: inherit;
  text-decoration: none;
}
#sidetext > * {
  margin-left: 15px;
  margin-right: 15px;
}
#main {
  background-color: #c5e8d3;
}
#main,
#overlay {
  position: fixed;
  width: 75%;
  height: 100vh;
  left: 25%;
  z-index: 5;
}
#overlay {
  height: 100vh;
  left: 25%;
  top: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#header > h1 {
  margin: 0px auto;
}
h1,
.intro {
  text-align: center;
}
h1 {
  font-family:
    "Chakra Petch", "Tomorrow", "Righteous", "Dela Gothic One", "Russo One",
    "Changa", sans-serif;
  text-transform: uppercase;
}
#sidetext h1 {
  font-size: 70px;
  line-height: 0.9;
}
.first {
  margin-top: 20vh;
}
.step {
  margin-top: 70vh;
}
#globeViz {
  width: 100%;
  height: calc(100vh - 120px);
}
#rightBar {
  position: fixed;
  z-index: 10;
  right: 20px;
  width: 200px;
  bottom: 20px;
  /* pointer-events: none; */
}
/* #chartWrapper {
      position: fixed;
      z-index: 10;
      left: 85vw;
      top: 40vh;
    } */
input {
  accent-color: #a75ff4;
}
a {
  color: #a75ff4;
}
.line {
  fill: none;
  stroke: #222;
  stroke-width: 1px;
}
.area {
  fill: url(#area-gradient);
  stroke-width: 0px;
}
#interactionWrapper {
  display: inline-flex; /* Align items in a row */
  align-items: center; /* Align vertically with the text */
  margin-left: 10px;
}

.rtl #interactionWrapper {
  margin-right: 10px;
}
.switch {
  width: 30px;
  height: 18px;
  background: grey;
  border-radius: 100px;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.switch:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 20px;
  transition: 0.3s;
}

#interactionWrapper input[type="checkbox"] {
  height: 0;
  width: 0;
  visibility: hidden;
}

#interactionWrapper input[type="checkbox"]:checked + .switch {
  background: #a75ff4;
}

#interactionWrapper input[type="checkbox"]:checked + .switch:after {
  left: calc(100% - 15px);
}

#play {
  width: 53px;
  text-align: center;
  margin-left: 5px;
}

.rtl #play {
  margin-right: 5px;
}

.arrow-pulse-down {
  width: 100%;
  font-size: 35px;
  animation: arrow-pulse-down 2s linear infinite;
  text-align: center;
}

text {
  font-family: "Figtree", system-ui;
  font-size: 12px;
}

/* .arrow-pulse-down:after {
      content: "↓";
      width: 35px;
      height: 35px;
      margin: 0 40%;
      font-size: 35px;
      animation: arrow-pulse-down 2s linear infinite;
    } */

span#active-label {
  margin-left: 3px;
}

@keyframes arrow-pulse-down {
  0% {
    bottom: 40px;
    opacity: 1;
  }

  50% {
    opacity: 0.1;
  }

  100% {
    bottom: 20px;
    opacity: 1;
  }
}

#topBloc {
  position: relative;
  z-index: 10;
}

.infobox {
  display: none;
  color: black;
  line-height: 1.1;
  font-size: 0.95em;
  width: 200px;
  background-color: rgba(265, 265, 265, 0.7);
  padding: 5px 10px;
  margin-left: 5px;
  border-radius: 15px;
}

.rtl text.title {
  text-anchor: end;
}

#hint-infobox {
  position: absolute;
}

#lang_links {
  color: #a75ff4;
  width: 100%;
  text-align: center;
}
#lang_links a {
  text-decoration: none;
}
#lang_links a:hover,
#lang_links a.active {
  text-decoration: underline;
}

@keyframes background-fade {
  0% {
    background-color: rgba(265, 265, 265, 0.6);
  }

  50% {
    background-color: rgba(265, 265, 265, 0.9);
  }

  100% {
    background-color: rgba(265, 265, 265, 0.6);
  }
}

@media screen and (max-width: 480px) {
  .card {
    width: calc(100%+15px);
    margin: 0px 5px 15px;
  }
  .topBar {
    position: static;
    display: block;
    font-size: 0.9em;
  }
  #topBloc {
    position: absolute;
    top: calc(50vh + 60px);
    width: calc(100% - 6vw);
  }
  #topBloc,
  #rightBar,
  #legend {
    left: 4vw;
  }
  #sidetext > * {
    margin-left: 2vw;
    margin-right: 2vw;
  }
  #interactionWrapper {
    position: static;
    margin-left: 0px;
    font-size: 0.9em;
  }
  #timeframeWrapper {
    border-right: 0px;
  }
  .rtl #timeframeWrapper {
    border-left: 0px;
  }
  #eightyPercent {
    width: 100%;
    display: block;
  }
  .topBar > *,
  #eightyPercent > * {
    padding: 0px;
  }
  #sliderWrapper {
    width: calc(100% - 20px);
  }
  #sidetext {
    width: 100%;
    position: relative;
    z-index: 15;
    background: transparent;
    pointer-events: none;
  }
  #sidetext a {
    pointer-events: all;
  }
  .step,
  .first {
    background: #29173d;
    padding: 1px 10px;
    border-radius: 4px;
  }
  .step {
    margin-top: 120vh;
  }
  #main,
  #overlay {
    width: 100%;
    left: 0%;
  }
  #rightBar {
    font-size: 0.9em;
    width: 100%;
    top: calc(50vh + 170px);
    /* max-width: 45vw; */
  }
  #twoColsMobile {
    display: flex;
    width: 100%;
  }
  #viewWrapper,
  #trackWrapper {
    flex: 1;
  }
  #chartWrapper {
    /* left: auto;
        top: auto;
        right: 3vw;
        bottom: 20px; */
    display: none;
  }
  .first {
    margin-top: 45vh;
  }
  #globeViz,
  #overlay {
    height: 50vh;
  }
  #legend {
    top: 50vh;
  }
}
#readMore > p {
  width: 100%;
  text-align: center;
  margin-bottom: 0px;
}
#readMore a {
  color: inherit;
}
