@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Jersey+10&display=swap");

html,
body {
  color: rgb(0, 0, 0);

  margin: 0 auto;
  overflow-x: hidden;

  line-height: 1.6;
}
.titel {
  position: absolute;
  top: 10px; /* afstand van boven */
  right: max(10vw, 20px);
  z-index: 2;
  color: rgb(246, 255, 161);
  /* use Jersey 10 from Google Fonts; fallback to generic sans-serif */
  font-family: "Jersey 10", "jersey-10-regular";
  font-size: 30px;
  transform: translateY(150px);
  line-height: 17px;
}

.marge-top {
  margin-top: 90vh;
}

@media (min-width: 60rem) {
  .marge-top {
    margin-top: 170vh;
  }
}

img[src*=".gif"],
.crisp-edges {
  image-rendering: crisp-edges;
}

h2,
h3,
h4,
h5,
h6 {
  font-size: large;
}

#introduction,
#terminology,
#moonshine-stills,
#evaporation-stills,
#plastic-still,
#boiling-stills,
#safety,
#heavy-metals,
#adulterated-moonshine,
#lead,
#methanol,
#tests,
#legality,
#society-and-culture,
#etymology,
#prohibition-in-the-united-states {
  max-width: 65ch;
  margin: 0 auto;
}

#introduction h2,
#terminology h2,
#moonshine-stills h2,
#evaporation-stills h2,
#collumstill h2,
#plastic-still h2,
#boiling-stills h2,
#safety h2,
#heavy-metals h2,
#adulterated-moonshine h2,
#lead h2,
#methanol h2,
#tests h2,
#legality h2,
#society-and-culture h2,
#etymology h2,
#prohibition-in-the-united-states h2 {
  font-family: "source serif 4", serif;
}

#introduction h1,
#introduction h2,
#introduction h3,
#introduction h4,
#introduction h5,
#introduction h6,
#terminology h1,
#terminology h2,
#terminology h3,
#terminology h4,
#terminology h5,
#terminology h6,
#moonshine-stills h1,
#moonshine-stills h2,
#moonshine-stills h3,
#moonshine-stills h4,
#moonshine-stills h5,
#moonshine-stills h6,
#collumstill h1,
#collumstill h2,
#collumstill h3,
#collumstill h4,
#collumstill h5,
#collumstill h6,
#evaporation-stills h1,
#evaporation-stills h2,
#evaporation-stills h3,
#evaporation-stills h4,
#evaporation-stills h5,
#evaporation-stills h6,
#plastic-still h1,
#plastic-still h2,
#plastic-still h3,
#plastic-still h4,
#plastic-still h5,
#plastic-still h6,
#boiling-stills h1,
#boiling-stills h2,
#boiling-stills h3,
#boiling-stills h4,
#boiling-stills h5,
#boiling-stills h6,
#safety h1,
#safety h2,
#safety h3,
#safety h4,
#safety h5,
#safety h6,
#heavy-metals h1,
#heavy-metals h2,
#heavy-metals h3,
#heavy-metals h4,
#heavy-metals h5,
#heavy-metals h6,
#adulterated-moonshine h1,
#adulterated-moonshine h2,
#adulterated-moonshine h3,
#adulterated-moonshine h4,
#adulterated-moonshine h5,
#adulterated-moonshine h6,
#lead h1,
#lead h2,
#lead h3,
#lead h4,
#lead h5,
#lead h6,
#methanol h1,
#methanol h2,
#methanol h3,
#methanol h4,
#methanol h5,
#methanol h6,
#tests h1,
#tests h2,
#tests h3,
#tests h4,
#tests h5,
#tests h6,
#legality h1,
#legality h2,
#legality h3,
#legality h4,
#legality h5,
#legality h6,
#society-and-culture h1,
#society-and-culture h2,
#society-and-culture h3,
#society-and-culture h4,
#society-and-culture h5,
#society-and-culture h6,
#history h1,
#history h2,
#history h3,
#history h4,
#history h5,
#history h6,
#etymology h1,
#etymology h2,
#etymology h3,
#etymology h4,
#etymology h5,
#etymology h6,
#prohibition-in-the-united-states h1,
#prohibition-in-the-united-states h2,
#prohibition-in-the-united-states h3,
#prohibition-in-the-united-states h4,
#prohibition-in-the-united-states h5,
#prohibition-in-the-united-states h6 {
  font-family: "Source Serif 4", serif;
}

#moonshine {
  color: white;
}

img.startbeeld {
  position: absolute;
  top: 0px; /* move it 200px down from the top */
  left: 50%;
  transform: translateX(-50%);

  width: 100vw;
  height: auto;
  z-index: 1;
  display: block;
  object-fit: cover;
  margin: 0;
}

.introduction {
  margin-top: 450px;
}

.side-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: auto;
  min-width: 50vw;
  min-height: auto;
  pointer-events: none;
  overflow: visible;
  z-index: -10;
}

.side-left,
.side-right {
  position: absolute;
  top: 0;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.side-left {
  left: 0;
}

.side-right {
  right: 0;
}

.side-left img,
.side-right img {
  position: absolute;
  opacity: 0.9;
  mix-blend-mode: overlay;
  mix-blend-mode: difference;

  min-width: 20vw;
  min-height: auto;
  max-width: 40vw;
  max-height: auto;
  filter: hue-rotate(220deg) saturate(3) brightness(1);
}

@media (max-width: 60ch) {
  .side-images {
    display: none;
  }
}

#evaporation-wrapper {
  position: relative;
  width: 100vw;
  padding: 30px;
  margin-left: calc(50% - 50vw);

  background-color: black;
  color: white;
  z-index: 1;
  overflow: hidden;

  /* Make box bigger */
  min-height: 120vh; /* adjust this value as needed */

  /* Fade top & bottom */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 80%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 80%,
    transparent 100%
  );
}

.background-image {
  position: absolute; /* relative to #evaporation-wrapper */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* make it always match wrapper height */
  background-image: url("../media/illustratie-still.gif");
  background-size: cover; /* fill proportionally */
  background-position: center; /* center image */
  z-index: -1; /* behind content */
  transform: translateY(-150px); /* remove fixed offset */
  filter: saturate(1.5);
}

#evaporation-content {
  position: relative;
  left: -500px; /* moves text left */
  max-width: 65ch;
  width: 90%;
  margin: 0 auto;
}

.model3D {
  max-width: none;
  transform: translateX(-110px);
  margin-top: -250px;
  margin-bottom: -100px;
  filter: contrast(1.2) brightness(0.8);
}

.model3D-2 {
  transform: translateX(-110px);
  margin-top: -250px;
  margin-bottom: -100px;
  filter: brightness(0.8) contrast(1.3) saturate(0.9);
}

.columstill {
  font-weight: 700;
}

/* ensure column still uses the same font as the rest of the page */
#column-still,
.columstill {
  font-family: "Source Serif 4", serif; /* same as your headings */
  font-weight: 400; /* normal weight like the rest */
  font-style: normal;
  line-height: 1.6;
}

.loop-safety {
  float: right;
  width: 50vw;
  height: auto;
  max-width: 450px;
  transform: translateX(175px);

  margin-left: -190px;
}

.vloeistof {
  .video-wrapper {
    overflow: hidden;
    background: transparent;
    border: 2px solid white;
  }

  /* De video */
  .vloeistof {
    height: 180px;
    width: 300px;

    margin-top: 220px;
  }
}

.flex-vloeistof {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

.tests {
  position: relative;
  color: rgb(0, 0, 0);
  min-height: 400px;
  padding: 2rem 0;
  overflow: visible;
  font-style: bold;
}

.zwart {
  transform: translateX(-250px);
}

.flex-vrijheidsbeeld {
  display: flex;
}
.text-vrijheidsbeeld {
  transform: translateX(-200px);
  transform: translateY();
  margin-top: 20px;
  font-size: 10pt;
}

img.vrijheidsbeeld {
  display: block;
  transform: translate(-140px, 0px);
  height: 1000px;
}

img.history {
  max-height: 750px;
  max-width: auto;
  float: left;
  transform: translateX(-50px);
  transform: translateY(-10px);
}
#history .content {
  max-width: 95ch;
  height: 60%;
  margin: 0 auto;
  align-self: right;
}

#history {
  /* allow inner text to be wider than the previous 50vw */
  width: 100%;
  z-index: 0;
  margin: 0 auto;
}

/* make the history text column 70% of the viewport and center it */
#history .text-history {
  width: 70vw;
  max-width: 95ch;
  margin: 0 auto;
  box-sizing: border-box;
  padding-top: 1rem;
}

#history h1,
#history h2,
#history h3,
#history h4,
#history h5,
#history h6 {
  text-align: center;
  transform: translateX(-220px); /* centers text within the text block */
}

section {
  font-family: monospace;
  margin-bottom: 2em;
}

section#evaporation-wrapper {
  overflow: hidden;
}

section h2 {
  font-family: monospace;
  font-weight: bold;
  margin-bottom: 2em;
}

img.illustratie-fullsize {
  display: block;
  width: 95vw; /* 95% of the viewport width */
  max-width: 95vw;
  height: auto;
  max-height: 95vh; /* keep it within the viewport height */
  object-fit: contain;
  margin: 0 auto;
}

.auto {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* compenseert de 50% offset */
  margin-top: 50px; /* behoud je negatieve bottom-margin vibe */
  max-width: 90vw;
  height: auto;
}

.text-car {
  padding-top: 600px;
}

.verbergen-side-images {
  position: relative;
  z-index: 9999; /* boven ALLE side images */
  background: white; /* bedekt je side images */
}

a,
a:link,
a:visited {
  display: inline-block;

  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  padding: 6px 12px;
  color: black;
  text-decoration: none;
  line-height: 1;
  vertical-align: middle;
  font-family: "Shadows Into Light";
}

a:nth-child(3n + 1) {
  background-image: url("../media/tape1.png");
}

a:nth-child(3n + 2) {
  background-image: url("../media/tape2.png");
}

a:nth-child(3n + 3) {
  background-image: url("../media/tape3.png");
}

.verbergen-side-images {
  position: relative;
  background: white;
  z-index: 999;
  isolation: isolate; /* ✨ MAGIC FIX */
}
