@font-face {
  font-family: "Anaheim";
  src: url("../fonts/helvetica-255/Helvetica.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "canin";
  src: url("../fonts/fonts4/Eater/Eater-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
h2,
h3 {
  font-family: "canin", serif;
}

h2 {
  font-size: 1.9rem; /* hoofd­titels: Biografie, Nalatenschap */
}

h3 {
  font-size: 1.9rem; /* subtitels */
}
article {
  max-width: 110ch;
  margin: 0 auto;
}

p {
  text-align: justify;
  hyphens: none;
}

:root {
  --green: #15db3d;
}

body {
  margin: 0;
  font-family: "anaheim", sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
}

body.light {
  background-color: rgb(255, 255, 253);
  color: var(--green);
}

body.dark {
  background-color: rgb(255, 255, 253);
  color: rgb(255, 0, 0);
  font-family: "anaheim", sans-serif;
}

body.light a {
  color: rgb(255, 0, 0);
}

body.dark a {
  color: var(--green);
}

p {
  margin-bottom: 1.5em;
}

body.light .swap img:nth-child(2) {
  display: none !important;
}

body.dark .swap img:first-child {
  display: none !important;
}

/* Main content */
div#main-content {
  margin-left: 4em;
  margin-right: 4em;
}

/* Afbeeldingen */
img {
  max-width: 90%;
  height: auto;
}

/* Kolommen */
.kolommen {
  display: flex;
  flex-direction: column;
  min-height: 200vh;
}

.kolommen > * {
  flex: 1;
}

/* Cool Beeld */
.cool-beeld {
  position: sticky;
  top: 2rem;
}

#zitkleur {
  width: 40%;
  position: relative;
}
#zitbud {
  width: 40%;
  position: relative;
  opacity: 0;
  transition: opacity 0.3s;
}

.zitten {
  position: relative;
  margin-top: 0;
  text-align: center;
}

body.light .zitten {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

body.light #zitbud {
  opacity: 1;
}

#zitkleur:hover ~ #zitbud {
  opacity: 1;
}

body.dark #zitbud {
  display: none;
}

body {
  size: 20%;
  color: rgb(151, 0, 0);
  font-size: x-large;
}

article p {
  font-size: 1.3rem; /* of 1.1rem als je durft */
  line-height: 1.9;
  margin-bottom: 2.5rem;
}
.kolommen section p {
  max-width: 520px;
}

.kolommen {
  display: grid;
  grid-template-columns: 2fr 1fr; /* tekst breder dan beeld */
  gap: 3rem;
  align-items: start;
}
.slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slide-track {
  display: flex;
  width: max-content;
  animation: scroll 15s linear infinite;
}

/* individuele afbeeldingblokjes */
.slide {
  margin-top: 2cm;
  margin-bottom: 0cm;
  width: 200px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0px;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.slider {
  overflow: hidden;
  width: 100%;
  position: relative;
  contain: layout paint;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* pauzeer bij hover (optioneel) */
.slider:hover .slide-track {
  animation-play-state: paused;
}

#titelgeel {
  display: block;
  margin: 1.5rem auto;
  width: 60%;
  max-width: 600px;
  height: auto;
}

/* Larger heading under the title image */
header h1 {
  text-align: center;
  font-size: 2.4rem;
  margin-top: 0.5rem;
}

/* 👁️ Oog-overlay met witte achtergrond */
#eye-overlay {
  position: fixed;
  inset: 0;
  background-color: rgb(255, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease;
}

/* Het oog zelf */
#eye {
  width: 70%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#eye:hover {
  transform: scale(1.05);
}

.kolommen {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  width: auto;
  padding: 0;
  margin: 2rem 0;
}

.kolommen section {
  flex: 0 0 50%; /* text column fixed at max 50% */
  max-width: 50%;
  min-width: 0;
  text-align: left;
  line-height: 1.6;
  padding-right: 1rem;
}

.cool-beeld {
  flex: 0 0 50%; /* images take up 40% so they're smaller */
  max-width: 50%;
  display: flex;
  flex-direction: column; /* images stacked vertically */
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 2rem;
  padding-left: 1rem;
}

.cool-beeld img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

#naakt,
#liggen {
  width: 100%;
}

.kolommen section {
  float: left;
  shape-outside: polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%);
  shape-margin: 1em;
  width: 100%;
}

body.light #titelgeel {
  display: none;
}

body.light #titelgroen {
  display: block;
}

#titelgeel,
#titelgroen {
  margin: 0 auto;
  display: block;
}

body.dark #titelgeel {
  display: block;
}

body.dark #titelgroen {
  display: none;
}

#titelgroen {
  margin: 0 auto;
  display: block;
}

#Titelgroen {
  display: block;
  margin: 1.5rem auto;
  width: 60%;
  max-width: 600px;
  height: auto;
}

#abverhaal {
  size: 100%;
  max-width: 100%;
  margin-top: 0%;
}
#abzwang {
  size: 50%;
  max-width: 50%;
}

/* Swap Button */
.theme-swap-button {
  position: fixed;
  width: 60px;
  /* border-radius: 0 0 0 100px; */
  overflow: hidden;
  top: 0;
  right: 0;
  z-index: 999;
  background-color: oklch(62.793% 0.25768 29.223);
  padding-left: 10px;
}

.theme-swap-button img {
  cursor: pointer;
  mix-blend-mode: screen;
}

.light .theme-swap-button img:last-child {
  display: none;
}

.dark .theme-swap-button {
  background-color: var(--green);
}

.dark .theme-swap-button img:first-child {
  display: none;
}
#airliggroen {
  transform: scaleX(-1);
}

#portret {
  max-width: 4%;
}
#naaktgroen,
#naakt {
  max-width: 100%;
}
#naaktgroen {
  transform: scaleX(-1);
}

#airbudroen {
  max-width: none;
  width: 3000px;
}

#airbud,
#airbudgroen {
  width: 100vw;
  max-width: none;
  height: auto;
}

#introduction p:first-of-type {
  text-align: center;
}

article p:first-child {
  text-align: center;
}

#volgelingen,
#pali-canon,
#nalatenschap {
  text-align: center;
}

.cool-beeld.swap {
  margin-bottom: 8rem;
}
@media (max-width: 768px) {
  .kolommen {
    display: initial;
  }
  .kolommen section {
    flex: initial;
    max-width: initial;
    min-width: initial;
    text-align: initial;
    line-height: initial;
    padding-right: initial;
  }
  .cool-beeld {
    flex: initial;
    max-width: initial;
    display: initial;
    flex-direction: initial;
    align-items: initial;
    gap: initial;
    position: initial;
    top: initial;
    padding-left: initial;
  }
  .cool-beeld img {
    width: 100%;
    height: auto;
    position: static;
    left: initial;
    object-fit: initial;
  }
  div#main-content {
    margin-left: 1em;
    margin-right: 1em;
  }
  body {
    font-size: 0.6rem;
  }
  article p {
    line-height: 1.2;
  }
  #introduction p:first-of-type,
  article p:first-child,
  #volgelingen,
  #pali-canon,
  #nalatenschap {
    text-align: left;
  }
}
