@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: "The Garden of lights";
  src: url("../type/The Garden of Lights.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root {
  color-scheme: light;

  --achtergrondkleur: #f3beed;
  --tekstkleur: #2c1a0b;
  --navigatie-tekstkleur: #633858;
  --tekstvak: #fff4fc;
  --rand: #8b527e;
  --schaduw: lightblue;
  --h1-kleur: #633858;
  --figcaption-kleur: #2c1a0b;
}

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

  --achtergrondkleur: #60425d;
  --tekstkleur: white;
  --navigatie-tekstkleur: white;
  --tekstvak: #443047;
  --rand: #c99ac3;
  --schaduw: #342b36;
  --h1-kleur: #f3beed;
  --figcaption-kleur: #f3beed;
}

body {
  display: grid;
  margin: 0;
  background-color: var(--achtergrondkleur);
  color: var(--tekstkleur);
  font-family: "Comic Relief", system-ui, sans-serif;
  cursor: url("../../kleineafbeeldingen/toverstaf.png") 4 4, auto;
}

header {
  text-align: center;
}

header img {
  width: 60%;
  max-width: 20rem;
  height: auto;
}

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

/* Mobiele navigatie */
.mobiel-menu {
  padding: 1em;
  color: var(--navigatie-tekstkleur);
  background-image: url("../../kleineafbeeldingen/kant3.jpg");
  background-repeat: repeat-x;
  background-size: auto 3em;
}

.mobiel-menu summary {
  cursor: url("../../kleineafbeeldingen/toverstafhover.png"), pointer;
  text-align: center;
  padding: 0.5em;
  font-family: "The Garden of lights", sans-serif;
  font-size: 1.2em;
  text-decoration: underline;
  list-style-position: inside;
}

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

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

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

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

/* Desktopnavigatie is op mobiel verborgen */
.desktop-nav {
  display: none;
}

/* Inhoud van de inspiratiepagina */
.inspiratie-inhoud {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 90%;
  max-width: 75rem;
  margin: 2rem auto;
}

.inspiratie-tekst {
  padding: 1.5rem;
  background-color: var(--tekstvak);
  color: var(--tekstkleur);
  border: 0.15rem solid var(--rand);
}

.inspiratie-tekst h2 {
  margin-top: 0;
  text-align: center;
  font-family: "The Garden of lights", sans-serif;
}

.inspiratie-tekst p {
  font-family: "The Garden of lights", serif;
  font-weight: 400;
  line-height: 1.7;
}

.pinterest-preview {
  align-self: center;
  margin: 0;
  text-align: center;
}

.pinterest-preview a {
  display: block;
}

.pinterest-preview img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0.6rem 0.6rem var(--schaduw);
  transition: transform 0.3s ease;
}

.pinterest-preview img:hover {
  transform: scale(1.03);
}

figcaption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--figcaption-kleur);
  font-family: serif;
  font-weight: 400;
}

@keyframes verschijnen {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a,
button,
img {
  cursor: url("../../kleineafbeeldingen/toverstaf.png") 4 4, pointer;
}

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

/* Navigatie en pagina-inhoud op grotere schermen */
@media (min-width: 45rem) {
  .mobiel-menu {
    display: none;
  }

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

  .inspiratie-inhoud {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 3rem;
  }
}