/* --- Main stylesheet --- */
@import url("components/preloader.css");
/* --- Import fonts from Google Font API --- */
@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');

:root {
  --main-color: #001c75;
  --secondary-color: white;
}

html {
  background: var(--main-color);
  background-color: var(--main-color);
  overflow: auto;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: var(--secondary-color);
  letter-spacing: 0.1em;
}

body {
  padding: 0px;
  margin: 0px;
  margin-left: 24%;
  margin-right: 24%;
  background: var(--main-color) !important;
  color: white !important;
}

#gallery {
  margin-top: 60px;
  margin-bottom: 80px;
}

#coverWrapper {
  border-bottom: 1px solid white;
  padding-top: 80px;
  padding-bottom: 40px;
}

#credits {
  margin-top: 60px;
}

#data {
  margin-top: 60px;
}

/* --- Typography - text selection --- */
::-moz-selection {
  /* Code for Firefox */
  color: var(--main-color);
  background: var(--secondary-color);
}

::selection {
  color: var(--main-color);
  background: var(--secondary-color);
}

/* --- Typography - headers --- */
h1 {
  font-family: 'Domine', serif;
  font-weight: bold;
  font-size: 2.5em !important;
  color: white;
  letter-spacing: normal;
  margin-bottom: 0;
  margin-top: 0;
  padding-bottom: 0;
}

h2 {
  /*font-family: 'Domine', serif;*/
  font-weight: normal;
  font-size: 1.5em !important;
  letter-spacing: normal;
  margin-top: 10px;
}

h3 {
  font-family: 'Domine', serif;
  font-size: 1.25em !important;
  letter-spacing: normal;
}

/* --- Typography - colors for spans --- */
u {
  text-decoration: none;
  color: rgba(200, 200, 200, 1);
  font-weight: bold;
}

mark {
  color: rgba(255, 0, 0, 0.9);
  font-weight: bold;
  background-color: var(--main-color);
}

span {
  color: rgba(117, 236, 196, 0.9);
  font-weight: bold;
  background-color: var(--main-color);
}

.refusal {
  color: rgba(200, 200, 200, 1);
  font-weight: bold;
}

.anger {
  color: rgba(255, 0, 0, 0.9);
  font-weight: bold;
}

.acceptance {
  color: rgba(117, 236, 196, 0.9);
  font-weight: bold;
}

.deaths {
  color: rgba(250, 250, 250, 0.9);
  font-weight: bold;
}

/* --- Typography - links in the text --- */
a {
  color: white;
}

a:visited {
  color: white;
}

/* --- Typography - the section with project credits --- */
.float-container {
  display: flex;
  gap: 4rem;
}

.float-child-1 {
  width: 60%;
}

.float-child-2 {
  width: 30%;
}

#publication p {
  margin-bottom: 0;
  margin-top: 0;
}

#info p {
  margin-top: 0;
}

#info {
  margin-top: 70px;
  margin-bottom: 60px;
}

/* --- Styling the external SVG with state borders --- */
path {
  stroke: white;
  stroke-width: 1;
  fill: none;
}

#states {
  opacity: 0;
}

#arrows {
  opacity: 0;
}

/* --- Animation for switching between map and grid view --- */
.flower_group {
  transition: 1s;
}

svg {
  transition: 1s;
}

#flower {
  /*transform: scale(0.75);*/
  position: relative;
  bottom: 80px;
  right: 65px;
}

#flowerContainer {
  height: 340px
}

#how {
  margin-top: 60px;
}

/* --- Button styling --- */
.buttonGroup {
  margin-top: 60px;
  height: 30px;
  font-weight: bold;
}

button {
  background: transparent;
  border: 2px solid white;
  border-radius: 20px;
  height: 30px;
  padding: 0px 10px;
  color: white;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1em;
  letter-spacing: 0.1em;
  transition: 0.5s;
}

button:hover {
  background: var(--secondary-color);
  cursor: pointer;
  color: var(--main-color);
}

button:focus {
  outline: 0;
}

#action {
  float: left;
  margin: 0;
  line-height: 30px;
}

#mapButton, #gridButton {
  float: right;
}

#mapButton {
  border-bottom-right-radius: 20px;
  border-top-right-radius: 20px;
}

#gridButton {
  border-bottom-left-radius: 20px;
  border-top-left-radius: 20px;
}

/* --- Custom scrollbar for the visualization --- */
::-webkit-scrollbar {
  width: 13px;
  height: 13px;
}

::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border: 2px solid #FFFFFF;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #FFFFFF;
}

::-webkit-scrollbar-track {
  background: var(--main-color);
  border-radius: 10px;
  box-shadow: inset 0px 0px 0px 0px #F0F0F0;
}

/* --- Time slider track --- */
/* --- Generated from https://doodlenerd.com/html-control/css-input-range-generator --- */
input[type=range] {
  -webkit-appearance: none;
  margin: 10px 0;
  width: 100%;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 28px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 0px 0px 0px #000000;
  background: #001c75;
  border-radius: 50px;
  border: 2px solid #ffffff;
}

input[type=range]::-webkit-slider-thumb {
  box-shadow: 0px 0px 1px #000000;
  border: 2px solid #001c75;
  height: 22px;
  width: 22px;
  border-radius: 50px;
  background: #ffffff;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: 1px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
  background: #001c75;
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 28px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 0px 0px 0px #000000;
  background: #001c75;
  border-radius: 50px;
  border: 2px solid #ffffff;
}

input[type=range]::-moz-range-thumb {
  box-shadow: 0px 0px 1px #000000;
  border: 2px solid #001c75;
  height: 22px;
  width: 22px;
  border-radius: 50px;
  background: #ffffff;
  cursor: pointer;
}

input[type=range]::-ms-track {
  width: 100%;
  height: 28px;
  cursor: pointer;
  animate: 0.2s;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

input[type=range]::-ms-fill-lower {
  background: #001c75;
  border: 2px solid #ffffff;
  border-radius: 100px;
  box-shadow: 0px 0px 0px #000000;
}

input[type=range]::-ms-fill-upper {
  background: #001c75;
  border: 2px solid #ffffff;
  border-radius: 100px;
  box-shadow: 0px 0px 0px #000000;
}

input[type=range]::-ms-thumb {
  box-shadow: 0px 0px 1px #000000;
  border: 2px solid #001c75;
  height: 22px;
  width: 22px;
  border-radius: 50px;
  background: #ffffff;
  cursor: pointer;
}

input[type=range]:focus::-ms-fill-lower {
  background: #001c75;
}

input[type=range]:focus::-ms-fill-upper {
  background: #001c75;
}

/* --- Single elements of the slider --- */
#date-helper {
  display: none;
}

#timeContainer p {
  margin: 0;
  bottom: 44px;
  position: relative;
}

#timeContainer {
  position: relative;
  top: 10px;
}

#date {
  position: relative;
  bottom: 44px;
}

#gradient {
  position: relative;
  bottom: 27px;
}

/* Gallery */
.row img {
  vertical-align: middle;
  border: 2px solid white;
  border-radius: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 6px;
  padding-right: 6px;
}

/* Position the image container (needed to position the left and right arrows) */
.container {
  position: relative;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  /*border-radius: 0 3px 3px 0;*/
  border-radius: 20px;
  border: 2px solid white;
  padding-right: 12px;
  padding-left: 12px;
  padding-top: 6px;
  padding-bottom: 6px;
  user-select: none;
  -webkit-user-select: none;
  transition: 0.5s;
}

/* Position the "next button" to the right */
.next {
  right: 0;
}

/* On hover the next slide, add a color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Number text with the date */
.numbertext {
  color: white;
  font-size: 16px;
  float: right;
  border: 2px solid white;
  border-radius: 20px;
  padding-right: 10px;
  padding-left: 10px;
  padding-top: 3px;
  padding-bottom: 3px;
}

/* Container for image text */
.caption-container {
  text-align: left;
  background-color: var(--main-color);
  color: white;
  height: 60px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.row {
  display: flex;
  transition: 0.5s;
  gap: 24px;
  margin-top: 20px;
}

/* Add a transparency effect for thumnbail images */
.demo {
  transition: 0.5s;
  opacity: 0.4;
}

.active,
.demo:hover {
  opacity: 1;
  transition: 0.5s;
}
