/*****************************************
 * FONTS
 *****************************************/
 
/* quicksand-regular - latin */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/quicksand-v28-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
  url('fonts/quicksand-v28-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('fonts/quicksand-v28-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
  url('fonts/quicksand-v28-latin-regular.woff') format('woff'), /* Modern Browsers */
  url('fonts/quicksand-v28-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
  url('fonts/quicksand-v28-latin-regular.svg#Quicksand') format('svg'); /* Legacy iOS */
}
 
/* quicksand-600 - latin */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/quicksand-v28-latin-600.eot'); /* IE9 Compat Modes */
  src: local(''),
  url('fonts/quicksand-v28-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('fonts/quicksand-v28-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
  url('fonts/quicksand-v28-latin-600.woff') format('woff'), /* Modern Browsers */
  url('fonts/quicksand-v28-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
  url('fonts/quicksand-v28-latin-600.svg#Quicksand') format('svg'); /* Legacy iOS */
}

/* Bitter */
@font-face {
    font-family: 'Bitter';
    src: url('fonts/Bitter-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; /* variable font gewicht van Thin tot Black */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/Bitter-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Bitter: Static fonts fallback */
  
@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Italic variants */
@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('fonts/static/Bitter-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}




/* Globale reset en kaartcontainer */
html, body, #map {
  margin: 0;
  padding: 0;
  height: 100%;
  color: #222120;
  font-size: 17px;
  font-family: 'Quicksand';
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-font-smoothing: antialiased; /* Voor Chrome, Safari */
    -moz-osx-font-smoothing: grayscale;  /* Voor Firefox op macOS */
    text-rendering: optimizeLegibility;   /* Betere kerning en ligaturen */
}
 
body {
  color: #222120;
}

a {
  color: #222120;
  text-decoration: none;
  border-bottom: 1px dotted;
}

p {
  font-family: Bitter;
  font-size: 20.25px;
  font-weight: 450;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Flexbox container om kaart en zijpaneel naast elkaar te zetten */
#container {
  display: flex;
  height: calc(100vh - 36px);
}

/* Kaart (neemt de meeste ruimte in) */
#map {
  flex-grow: 1; 
  height: 100%;
}

/* Zijpaneel (vaste breedte) */
#sidebar {
  width: 300px; /* Vaste breedte van het zijpaneel */
  background-color: #fff;
  padding: 15px;
  overflow-y: auto; /* Scrollen mogelijk als de content te lang is */
  border-left: 1px solid gainsboro;
}

/* Stijl voor het lagenbeheer */
#layer-control label {
  font-size: 20px;
  display: inline-block;
  margin-bottom: 5px;
  cursor: pointer;
}

#infopaneel {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #ffffff;
}

hr {
  border: 0;
  height: 1px;
  background-color: #ddd;
  margin: 15px 0;
}

ul {
  list-style: none;
  padding: 0;
}

.logo {
  display: block;
  margin: -15px auto 0 auto;
  width: 180px;
}

.layer-item {
  padding: 5px 0;
}

.layer-item label {
  margin-left: 5px;
  padding: 4px 0 0 0;
}

.opacity-control {
  display: flex;
  align-items: center;
  padding-left: 20px; /* Inspringen om onderscheid te maken */
  font-size: 0.9em;
  color: #555;
  margin-top: 2px;
}

.opacity-control input[type="range"] {
  /* Basis styling voor de slider */
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  transition: opacity .2s;
}


/* 1. Transformatie voor de Zijbalk */
#sidebar {
  /* De standaardbreedte van je zijbalk */
  width: 300px;
  height: 100%;
  position: absolute;
  top: 0;
  left: auto;
  right: 0; 
  z-index: 1; /* Hoger dan de kaart */
  background-color: white;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);

  /* Vloeiende animatie voor in- en uitklappen */
  transition: transform 0.3s ease-in-out; 
}

/* De toestand van de gesloten zijbalk */
#sidebar.collapsed {
  /* Schuif de zijbalk volledig uit het zicht naar links */
  transform: translateX(331px); 
}

/* 2. Styling voor de Toggle Knoppen */
.sidebar-toggle {
  position: fixed;
  height: 48px;
  width: 48px;
  background-color: #222120;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 36px;
  line-height: 36px;
  padding: 0;
  padding-bottom: 6px;
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: block;
}

/* 3. Positionering van de Sluitknop */
#closeSidebar, .x {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 48px;
  font-weight: unset;
  background-color: transparent;
  color: #222120;
  box-shadow: none;
  border: none;
  float: right;
}
#closeSidebar:hover, .x:hover {
  color: #4389bb;
}

/* 4. Positionering van de Hamburgerknop */

/* Toon de knop alleen als de zijbalk gesloten is. */
#sidebar.collapsed ~ #openSidebar, /* Gebruik de algemene naburige selector (~) voor betrouwbaarheid */
#sidebar.collapsed + #openSidebar  /* Optioneel: behoud de directe naburige selector */
{
  display: block !important; /* Forceer de weergave */
}

/* Zorg ervoor dat de hamburgerknop niet achter de zijbalk verdwijnt bij het sluiten. */
#openSidebar {
  top: 10px; 
  right: 10px;
  left: auto;
  background: rgba(255,255,255, 0.9);
  color: #111;
  box-shadow: 2px 2px 4px rgba(0,0,0, 0.36);
  border-top: 1px solid #fff;
}

#openSidebar:hover {
  background: #4389bb;
  color: #fff;
  box-shadow: 2px 2px 4px rgba(0,0,0, 0.36);
}

/* 5. Zichtbaarheid van de Knoppen Beheren */

/* Alleen zichtbaar als de zijbalk is ingeklapt */
#sidebar.collapsed + #openSidebar {
  display: block; 
}


/* Checkbox */
input[type="checkbox"] {
  /* Basiseigenschappen: haalt standaardstijl weg */
  -webkit-appearance: none;
  appearance: none;
  
  /* Afmetingen & Vorm */
  width: 1.75em;
  height: 1.75em;
  margin: 0;
  cursor: pointer;
  
  /* Witte Achtergrond & Rand */
  background-color: white; 
  border: 2px solid #ddd; 
  border-radius: 2px;
  
  /* Positionering voor het vinkje (pseudo-element) */
  display: grid;
  place-content: center; /* Centreert het vinkje */
}

/* Pseudo-element voor het Vinkje (Checkmark) */
input[type="checkbox"]::before {
  content: ""; /* CRUCIAAL: Voegt de inhoud toe */
  width: 1.45em;
  height: 1.45em;
  transform: scale(0); /* Start onzichtbaar */
  transition: 120ms transform ease-in-out; /* Mooie animatie */
  
  /* De achtergrondkleur van het vinkje (deze moet dezelfde kleur zijn als het vinkje zelf) */
  box-shadow: inset 1em 1em rgb(67, 137, 187); 
  
  /* Clip-path creëert de V-vorm van het vinkje. */
  -webkit-clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* Zorgt dat het vinkje zichtbaar wordt bij aangevinkt */
input[type="checkbox"]:checked::before {
  transform: scale(1); /* Maakt het vinkje zichtbaar */
}

.layer-item {
  display: flex;       /* Maakt de items (checkbox, label, en nieuwe regel item) flexibel */
  align-items: center;  /* Centreert alle items verticaal */
  flex-wrap: wrap;      /* Zorgt dat items die te lang zijn naar de volgende regel gaan */
  margin-bottom: 8px;   /* Voegt wat verticale ruimte toe onder de hele groep */
}



/* Stijl de hoofdcontainer van de tijdlijn-bediening */
#timeline-control {
  /* Absolute positionering om deze boven de kaart te plaatsen */
  position: absolute; 
  bottom: 72px;
  left: 12px; 
  
  /* Breedte: 100% minus de linker- en rechtermarge/zijbalkbreedte */
  /* De zijbalk is vermoedelijk 300px + 20px marge = 320px */
  width: calc(100% - 384px); /* Totaal - (zijbalk + 2x marge) */
  height: auto;
  z-index: 0;
  padding: 0px;
}

/* Stijl de labeltekst */
#timeline-control p {
  position: absolute;
  left: 0;
  bottom: 36px;
  background-color: rgba(255, 255, 255, 0.96);
  padding: 10px 15px;
  border-radius: 2px;
  font-size: 20px;
  font-weight: bold;
}

/* Basisstijl voor de slider (input type="range") */
#time-slider {
  -webkit-appearance: none; /* Verwijder standaard WebKit-stijl */
  width: 100%;
  height: 4px; /* Maak de lijn dun */
  background: transparent;
  margin: 10px 0;
  box-shadow: 1px 1px 3px #111;
}

/* De 'Track' (de dunne lijn) */
#time-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: #fff;
  border: none;
  border-radius: 2px;
}
#time-slider::-moz-range-track {
  width: 100%;
  height: 4px;
  background: #fff;
  border: none;
  border-radius: 2px;
}

/* De 'Thumb' (het handvat/de streep) */
#time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 28px; /* Hoogte van de streep */
  width: 8px; /* Dikte van de streep */
  background: rgb(67, 137, 187); 
  cursor: pointer;
  margin-top: -12px; /* Centreer de streep verticaal op de track */
  border-radius: 2px;
  border: 2px;
  border: 1px solid #fff;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.85);
}
#time-slider::-moz-range-thumb {
  height: 28px; /* Hoogte van de streep */
  width: 8px; /* Dikte van de streep */
  background: rgb(67, 137, 187);
  cursor: pointer;
  margin-top: -12px; 
  border-radius: 2px;
  border: 1px solid #fff;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.85);
}



/* Media Query voor Mobiele Schermen (max-width: 768px) */
@media (max-width: 768px) {
  
  #timeline-control {
    width: calc(100% - 54px);
  }
  
  #timeline-control p {
    position: fixed;
    bottom: 100px;
    left: 0px;
    width: 284px;
    font-size: 19px;
    padding: 6px 10px;
    transform: none;    
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.82);
  }
}


/***
 * KNOPPEN
 ****/

.ol-zoom .ol-zoom-in,
.ol-zoom .ol-zoom-out,
#home-knop,
#verhalen-knop,
#instellingen-knop,
#schermvullend-knop,
#mail-contact-knop {
  /* Algemene stijl voor de knoppen */
  background-color: rgba(255,255,255, 0.9);
  color: #111;
  border-radius: 2px;
  transition: background-color 0.2s; /* Vloeiende overgang bij hover */
  height: 36px;
  width: 36px;
  font-size: 24px; /* Grootte van het symbool (+/-) */
  line-height: 30px; /* Verticale centrering */
  border-top: 1px solid #fff;
  box-shadow: 2px 2px 4px rgba(0,0,0, 0.36);
}

.ol-zoom .ol-zoom-in:hover,
.ol-zoom .ol-zoom-out:hover,
#home-knop:hover,
#verhalen-knop:hover,
#instellingen-knop:hover,
#schermvullend-knop:hover,
#mail-contact-knop:hover {
  color: rgba(255,255,255, 0.9);
  background-color: #4389bb;
}

/* Zoomknoppen */

.ol-control {
  position: fixed;
  background: unset;
  padding: unset;
  border-radius:unset;
}

.ol-control:hover {
  background: unset;  /* tweak i.v.m. OSM */
}

.ol-attribution:not(.ol-collapsed) {
  background-color: rgba(255, 255, 255, 0.8); /* tweak ivm OSM */
}

.ol-zoom {
  left: 10px; 
  top: 10px;
}

/* Stijlen voor de Attributieknop (de 'i' knop) */
.ol-attribution button {
  /* Stijl de 'i' knop zelf */
  background-color: rgba(67, 137, 187, 0.9); 
  color: white; /* Tekstkleur ('i') */
  border-radius: 2px; 
  height: 20px;
  width: 20px;
  font-size: 12px;
  line-height: 20px;
}

.ol-attribution button:hover {
  background-color: #4389bb;
}

/* Stijl de Attributie-container (de tekst) */
.ol-attribution {
  /* Zorg dat de tekst op de achtergrond staat */
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2px 5px;
  border-radius: 0;
  border-top-right-radius: 2px;
  font-size: 10px;
  text-align: left;
  position: fixed;
  bottom: 36px;
  left: 0em;
  right: unset;
  max-width: calc(100% - 1.3em);
  display: flex;
  flex-flow: row-reverse;
  align-items: center;
}

/* Overige knoppen */
#home-knop, #verhalen-knop, #instellingen-knop, #schermvullend-knop, #mail-contact-knop {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: absolute;
  left: 12px;
  padding: 0;
}

#home-knop {
  top: 120px;
}

#verhalen-knop {
 top: 168px;
}

#mail-contact-knop {
  top: 216px;
}

#schermvullend-knop {
  top: 264px;
}

#instellingen-knop {
   top: 312px; 
}

@media (max-width: 1024px) {
  #schermvullend-knop{
   display: none;
  }
}

/************** 
 * INFOPANEEL 
 **************/

#infopaneel {
  position: absolute;
  /* Centraal over de kaart */
  top: 2px;
  right: 342px;
  bottom: 12px;
  z-index: 2; /* Zichtbaar boven de kaart, onder de zijbalk */
  background-color: white;
  padding: 48px 20px;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

  /* Maximale breedte op desktop */
  max-width: 420px;    
  overflow-y: auto; /* Scrollen als de inhoud te lang is */

  /* Standaard is het paneel VERBORGEN */
  opacity: 0;
  pointer-events: none; /* Kan niet aangeklikt worden als verborgen */
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
  visibility: hidden;
}

/* Stijl voor de actieve (zichtbare) toestand */
#infopaneel.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Stijl voor de sluitknop in het infopaneel */
#closeInfo {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  color: #222120;
  font-size: 48px;
  font-weight: unset;
  cursor: pointer;
}


/**************************************
 * MELDING PALEOGRAFISCHE KAART
 **************************************/
 
#pop-up-paleo {
  /* Standaard niet zichtbaar */
  display: none; 
  
  /* Positionering: Centraal en boven alles */
  position: fixed; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  z-index: 1; 
  
  /* Uiterlijk */
  background: rgba(0, 0, 0, 0.85);
  color: white; 
  padding: 15px 30px; 
  border-radius: 2px; 
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  
  /* Animatie eigenschap (zorgt dat de fade soepel verloopt) */
  opacity: 0;
  transition: opacity 0.5s ease-in-out; /* Duur van de fade out */
}

/* De klasse die we toevoegen in JS om de pop-up te tonen */
#pop-up-paleo.visible {
  opacity: 1;
}


/**************************************
 * VERHALEN & INFOPANEEL
 **************************************/

#verhaal-content-container {
  display:none; 
  background-color: rgba(0, 0, 0, 0.86);
  position: fixed;
  margin: auto;
  height: 100%;
  width: 100%;
  z-index: 3;
  overflow-x: hidden;
  overflow-y: scroll;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Verwijdert de bulletpoints en marges van de verhalenlijst */
#verhalen-lijst {
  list-style-type: none; 
  padding: 0;
  margin-top: 72px;
  margin-bottom: 15px;
}

li.verhaal-titel-item {
  color: #4389bb;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 6px;
  cursor: pointer;
}

/* Stijl de individuele titels */
#sidebar .verhaal-titel-item {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 2px;
  cursor: pointer;
  font-size: 16px;
  background-color: #4389bb;
  color: #fff;
  border-bottom: unset;
  text-align: center;
  border-radius: 2px;
  font-weight: bold;
  margin-bottom: 1px;
}

#verhaal-content-container .x {
  position: fixed;
  top: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.84);
  color: #222120;
  box-shadow: none;
  border: none;
  margin: 0;
  width: 48px;
  height: 48px;
  font-size: 48px;

  /* --- Flexbox Centering --- */
  display: flex;
  justify-content: center; /* Centreert horizontaal */
  align-items: center;    /* Centreert verticaal */

}

#verhaal-content {
  background-color: white;
  background-size: 100% auto; 
  background-repeat: no-repeat; 
  background-position: top center; 
  font-size: 20.25px;
  width: auto;
  max-width: 60ch;
  display: block;
  margin: 4vh auto 0 auto;
  padding: 18ch 12ch;
}

.verhaal-tekst p a {
  color: #222120;
  text-decoration: none;
  border-bottom: 1px dotted;
}

.verhaal-tekst a:hover {
  color: #4389bb;
}

.verhaal-tekst h1 {
  font-variant: small-caps;
  margin: 0;
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  text-shadow: 0 0 100px rgba(0,0,0, 0.99); /* hack voor duidelijkere leesbaarheid op foto's */
}

.verhaal-tekst h2 {
  font-size: 1.5em;
  margin: 40px 0px -8px 0px;
  font-variant: all-petite-caps;
  font-weight: bold;
}

#verhaal-content > h2:first-of-type {
  color: #fff;
  font-size: 1.8rem;
  text-shadow: 0 0 50px rgba(0,0,0, 0.99); /* hack voor duidelijkere leesbaarheid op foto's */
  margin: 14vh 0px 0 0px;
}

.verhaal-tekst .verhaal-tekst p {
  margin: 30px 0;
}

.verhaal-tekst > p:first-of-type {
  font-weight: bold;
  background: WhiteSmoke;
  padding: 24px;
  margin: 32px -24px 60px -24px; /* Om het mooi te laten lijnen met de andere alinea's */
}

/* SPLIT VIEW & SINGLE VIEW */
#split-view-knop, #single-view-knop {
  position: fixed;
  top: 60px;
  right: 0;
  background-color: rgba(255, 255, 255, 0.84);
  color: #222120;
  box-shadow: none;
  border: none;
  margin: 0;
  width: 48px;
  height: 48px;
  font-size: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#verhaal-content-container.split-view {
  background-color: unset;
  position: fixed;
  margin: unset;
  width: 60ch;
  left: unset;
  box-shadow: 0 0 12px #111;
}

#verhaal-content-container.split-view #verhaal-content {
  margin: 0;
  padding: 4ch;
}

@media (max-width: 1024px) {
 #verhaal-content {
  margin: 0 auto;
  max-width: unset;
 }
 #split-view-knop, #single-view-knop {
  display: none !important;
 }
}

@media (max-width: 850px) {
 #verhaal-content {
   padding: 36px;
 }
}

@media (max-width: 768px) { 
  #verhaal-content {
  font-size: 18px;
  padding: 24px;
  margin: 0 auto;
  }
  #verhaal-content > h2:first-of-type {
  font-size: 1.6rem;
 }
 .verhaal-tekst h1 {
  font-size: 2.4rem;
 }
  #infopaneel {
  font-size: 18px;
    padding: 16px;
    top: 0;
    right: 0;
  }
}


/****
 * POP-UP SUGGESTIE
 *****/
 
/* knop */
button.feature {
  width: 100%;
  box-sizing: border-box;
  font-size: 19px;
  margin: 6px auto 0 auto;
}
 
 /* Pop-up Overlay */
.popup-overlay {
  display: none; /* Standaard verborgen */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.86);
  z-index: 3;
  justify-content: center; /* Horizontaal centreren (met flexbox) */
  align-items: center; /* Verticaal centreren (met flexbox) */
}

/* Pop-up Content Box */
.popup-content {
  background-color: #fff;
  padding: 24px;
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 723px;
  max-height: 84%;
  overflow-y: auto;
  overflow-x: hidden;
  animation: fadeInScale 0.3s ease-out forwards; /* Animatie bij openen */
  box-sizing: border-box; /* Padding en border vallen binnen de breedte/hoogte */
}

#popup-content-home {
  padding: 36px 36px 60px 36px;
  font-size: 1.1em;
}

#home-popup-body.popup-body {
  padding: 0 24px;
  margin-top: 0px;
}

#popup-content-home h2 {
  text-align: center;
}

#popup-content-home img {
  width: 300px;
  margin: -48px auto;
}

@media (max-width: 768px) {
 
 #popup-content-home {
  padding: 12px 12px 32px 12px;
 }
 #popup-content-home img {
  width: 220px;
  margin: -36px auto;
 }
 #home-popup-body.popup-body, .popup-body, .popup-content, .form-container {
  padding: 12px;
 }
 #popup-content-home h2 {
  text-align: center;
  margin-bottom: -6px;
 }
 
}


/* Animatie voor het openen van de pop-up */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

 ::placeholder {
  color: #828281;
  opacity: 1; /* Firefox */
  font-weight: normal;
 }

 ::-ms-input-placeholder { /* Edge 12 -18 */
  color: silver;
  font-weight: normal;
 }

.popup-body, .popup-content, .form-container {
  width: 100%;
  max-width: 723px;
  box-sizing: border-box;
  padding: 24px; 
  margin-top: 24px;
}

.form-container input, .form-container input[type="text"], textarea { 
  display: block;
  width: 100%;
  padding: 12px; 
  margin-bottom: 15px;
  box-sizing: border-box;
  border: 1px solid Gainsboro;
  border-radius: 2px;
  overflow-x: hidden;
  /* Extra stijlen voor code/tekstmodus */
  font-family: Quicksand, sans-serif; 
  white-space: pre-wrap;
}

.form-container input {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 48px;
}

.form-container input[type="checkbox"] {
  float: left;
  width: 50px;
  margin: 0 !important;
  height: 26px;
}

.form-container button[type=submit] {
  display: block;
  margin-bottom: 36px;
}

.form-container form {
  font-size: 20px;
  line-height: 1.25em;
  margin: 48px auto;
  display: block;
}

.form-container form textarea {
  font-size: 20px;
  line-height: 1.44em;
  margin-bottom: 48px;
}

.form-container i {
  font-size: 0.9em;
}

.form-container label { display: block; margin-bottom: 5px; font-weight: bold; }

.form-container .checkbox-label { display: inline-block; font-weight: normal; }

button {
  font-family: Quicksand, sans-serif; 
  text-decoration: none;
  color: #fff;
  background: #4389bb;
  padding: 8px 14px;
  font-weight: bold;
  font-size: 18px;
  border-radius: 2px;
  border: unset;
  cursor: pointer;
  margin: 6px 6px 6px 0;
}

.success, .error { 
  padding: 8px 12px;
  font-weight: bold;
  color: #fff;
  background: #4389bb;
  font-style: italic;
  border-radius: 2px;
  box-shadow: -2px 2px 4px gainsboro;
}

.error { background: Coral; }

h4 {
  font-size: 1.35em;
}

.action-cell button { font-size: 0.9em; padding: 5px 10px; margin: 2px; }

.honingpotje, .potjehoning { display: none; }

/*******
 * FOOTER
 *********/

footer {
  background: #222120;
  color: #fff;
  height: 36px;
  font-family: Quicksand;
  font-size: 14px;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
}

footer a {
  color: #fff;
  text-decoration: unset;
  border-bottom: 1px dotted #fff;
}

.ol-mouse-position {
  position: fixed;
  top: unset;
  right: auto;
  bottom: 0;
  left: 0;
  color: silver;
  padding:8px;
  font-size:14px;
  z-index: 1;
}

#auth-status {
  position: absolute; 
  bottom: 10px; 
  right: 12px;
  color: #fff; 
  z-index: 0;
}

#auth-status a {
  color: #fff;
  text-decoration: unset;
  font-family: Quicksand;
  font-size: 14px;
  font-weight: bold;
}

#copyright {
  font-weight: bold;
  text-align: center;
  margin-top: 8px;
}


blockquote {
  font-style: italic;
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1.6;
  font-family: Bitter;
  margin-top: 48px;
  margin-bottom: 48px;
}

blockquote::before {
  content: '‘';
}

blockquote::after {
  content: '’';
}

.kader {
  background: Gainsboro;
  padding: 24px;
}

.kader h2 {
  font-weight: unset;
}

.noot {
  font-size: 0.8em;
  margin-left: 24px;
}


/******
 * BEHEER
 ****/
 
@media (max-width: 768px) {
 #auth-status {
   display: none;
 }
}