@font-face {
  font-family: "Comic Relief";
  src: url("../type/ComicRelief-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Romantic";
  src: url("../type/ROMANTIC.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Roffelia";
  src: url("../type/Roffelia.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "The Garden of lights";
  src: url("../type/The\ Garden\ of\ Lights.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}



/* Dit zijn de kleuren die worden gebruikt voor de light mode. Hiervoor heb ik custom property gebruikt.*/

:root {
  color-scheme: light;

  --achtergrondkleur: #f3beed;
  --tekstkleur: canvastext;
  --navigatiekleur: #633858;
  --h1-kleur: #633858;
  --paragraafkleur: canvastext;
}


/* Deze kleuren worden gebruikt bij dark mode. Ook met custom property */

body.dark-mode {
  color-scheme: dark;

  --achtergrondkleur: #60425d;
  --tekstkleur: #f3beed;
  --navigatiekleur: white;
  --h1-kleur: #f3beed;
  --paragraafkleur: black;
}



* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "The Garden of Lights", sans-serif;
  background: var(--achtergrondkleur);
  color: var(--tekstkleur);
  cursor: url("../../kleineafbeeldingen/toverstaf.png") 4 4, auto;
}

a, button, select, .pinterest-preview img, summary {
    cursor: url('../../kleineafbeeldingen/toverstafhover.png'), default;
}


h1 {
  font-family: "Romantic", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2.5em;
  color: var(--h1-kleur);
  animation: verschijnen 1s ease-out;
}




header {
  text-align: center;
}

header #logo {
  display: block;
  width: 60%;
  max-width: 20em;
  height: auto;
  margin: 0 auto;
}


/* code voor de naviagtie. Ik heb transform toegevoegd zodat er iets meer animatie in de website zit*/

/* Navigatie */

/* Hamburger-menu op kleine schermen */
.mobiel-menu {
  display: block;
  padding: 1em;
  background-image: url("../../kleineafbeeldingen/kant3.jpg");
  background-repeat: repeat-x;
  background-size: auto 3em;
}

.mobiel-menu summary {
  color: var(--navigatiekleur);
  font-family: "The Garden of lights", sans-serif;
  font-size: 1.4em;
  cursor: pointer;
}


.mobiel-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3em;
  padding: 1em;
  background: none;
}

/* Desktopmenu standaard verborgen */
.desktop-nav {
  display: none;
}

/* Navigatielinks */
.mobiel-menu nav a,
.desktop-nav a {
  color: var(--navigatiekleur);
  text-decoration: underline;
  font-family: "The Garden of lights", sans-serif;
  font-size: 1.2em;
  display: inline-block;
  transition: transform 0.3s ease;
}

.mobiel-menu nav a:hover,
.desktop-nav a:hover {
  transform: scale(1.2);
}

/* Donkere modus */
body.dark-mode .mobiel-menu,
body.dark-mode .desktop-nav {
  background-image: url("../../kleineafbeeldingen/kantdark.jpg");
}

/* Desktopmenu op brede schermen */
@media (min-width: 45rem) {
  .mobiel-menu {
    display: none;
  }

  .desktop-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.3em;
    padding: 1em;
    background-image: url("../../kleineafbeeldingen/kant3.jpg");
    background-repeat: repeat-x;
    background-size: auto 3em;
  }

  body.dark-mode .desktop-nav {
    background-image: url("../../kleineafbeeldingen/kantdark.jpg");
  }
}


main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
  padding: 1em 5%;
  align-items: start;
}


main > #selfie {
  display: block;
  width: 100%;
  height: auto;
  justify-self: stretch;
}

/* Verhaalpagina */

figure.verhaal {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin: 0;
  position: relative;
}

.verhaal-achtergrond {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
}

figure.verhaal > p {
  grid-area: 1 / 1;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 10% 9% 12% 19%;
  color: var(--paragraafkleur);
  font-family: "The Garden of Lights", serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(0.75rem, 1vw, 1rem);
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* Decoratieve beginletter */

.beginletter {
  float: left;
  width: 25%;
  height: auto;
  margin-top: -2em;
  margin-right: 0.5em;
}

/* Navigatie op grotere schermen */

@media (min-width: 35em) {
  nav {
    flex-direction: row;
    justify-content: center;
  }
}

/* Selfie links en verhaal rechts op een breed scherm */

@media (min-width: 50em) {
  main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 35em) {
  figure.verhaal {
    min-height: 35rem;
  }

  .verhaal-achtergrond {
    width: 100%;
    height: 100%;
    object-fit: fill;
  }
}