@font-face {
  font-family: Sunsetpalm;
  src: url(fonts/SunsetPalmScriptTrial.otf);
}

@font-face {
  font-family: learners;
  src: url(fonts/LettersforLearners.ttf);
}

@font-face {
  font-family: worldDisco;
  src: url(fonts/WorldDiscovery_PERSONAL_USE_ONLY.otf);
}

:root {
  --goud: gold;
  --roze: pink;
  --blauw: #001861;
  --silver: #c0c0c0;
}

.achtergrond {
  display: flex;
  justify-content: center;
}

html {
  color-scheme: light dark;
  color: light-dark(#000, #fff);
  --whitespace-s: 1rem;
  scroll-padding-top: 6em;
  color: light-dark(#000, #fff);
  --button: light-dark(pink, #b33b72);
  --color-cyan: light-dark(darkcyan, cyan);
  --color-pink: light-dark(pink, #b33b72);
  --color-blue: light-dark(#90d5ff, #0f5298);
  --color-dark: #333333;
  --color-light: #fefefe;
  --backdrop-dialog: light-dark(#ffffff66, #66339966);
  --background-li1: light-dark(#ffebef, #66339966);
  --background-summary: light-dark(#b36b43, #522f17);
  --button-hover: light-dark(#b33b72, #2b1b2a);
  --font: light-dark (black, white);
      --focus-state: light-dark(#b33b72, pink);

  --button-active: #8bc34a;

  @media (prefers-reduced-motion: no-preference) {
    scroll-behavior: smooth;
  }
}

main {
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
}

/*met hulp van sanne*/
body {
  background-image: url("./images/ACHTERGROUND_LCITH_CLICK.png");
  @media (prefers-color-scheme: dark) {
    background-image: url("./images/donkeren_dark.png");
  }

  background-size: auto;
  background-position: center;
  background-repeat: repeat;
  padding-bottom: 10%;
  padding-left: 10%;
  padding-right: 10%;
}

H1 {
  font-family: worldDisco;
  font-size: 6vw;
  line-height: 1;
  text-wrap: balance;
  margin: --whitespace-s;
  text-align: center;
}

h2 {
  font-family: worldDisco;
  font-size: 2.5vw;
  line-height: 3;
  text-wrap: balance;
}

p {
  font-family: learners;
  font-size: 3.5vw;
  line-height: 0.9;
  text-wrap: balance;
  color: var(--font);
}

/* landen */
/*de nth-of-type heb ik geleerdt van de student assistenten tijdens de deep dives*/
main > section:nth-of-type(1) {
  display: flex;
  line-height: 25px;
  text-wrap: balance;
  font-family: learners;
  font-size: 1rem;
}

/* foto's */
/* voor dit heb ik hulp gehad van letterlijk iedereen die mij kon helpen. Maar geen chat of internet gebruikt*/
section:nth-of-type(2) ul {
  grid-template-columns: 0.5fr 0.5fr 0.5fr;
  grid-template-rows: 0.5fr 0.5fr;
  display: grid;
  grid-template-areas:
    "netherlands"
    "missen"
    "earth"
    "international"
    "world "
    "next"
    "other";

  gap: 0.5em;
  list-style-type: none;

  @media (width > 28em) {
    grid-template-columns: 0.5fr 0.5fr;
    grid-template-rows: 0.5fr 0.5fr;
    grid-template-areas:
      "netherlands  missen"
      "international earth"
      "next world"
      "other . ";
  }

  @media (width > 30em) {
    grid-template-columns: 0.5fr 0.5fr 0.5fr;
    grid-template-rows: 0.5fr 0.5fr 0.5fr;
    grid-template-areas:
      "netherlands missen international"
      "earth       next   world"
      "other       .      . ";
  }
}

section:nth-of-type(2) li:nth-of-type(1) {
  grid-area: netherlands;
}

section:nth-of-type(2) li:nth-of-type(2) {
  grid-area: missen;
}
section:nth-of-type(2) li:nth-of-type(3) {
  grid-area: earth;
}
section:nth-of-type(2) li:nth-of-type(4) {
  grid-area: international;
}

section:nth-of-type(2) li:nth-of-type(5) {
  grid-area: world;
}

section:nth-of-type(2) li:nth-of-type(6) {
  grid-area: next;
}

section:nth-of-type(2) li:nth-of-type(7) {
  grid-area: other;
}

section:nth-of-type(2) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  font-family: worldDisco;
  font-size: 20px;
  margin: 4%;
  padding-block: 0.5em;
  padding-inline: 0.5em;
  border-width: 0.3em;
  border-style: solid;
  border-radius: 1.5em;
  transition: 0.5s;
  background-color: var(--roze);
  text-decoration: none;
  color: Var(--black);
  line-height: 30px;
  display: inline-block;
}

a:hover {
  transform: scale(1.1);
}

li {
  list-style-type: none;
  font-family: learners;
  font-size: 3vw;
}

dialog {
  background-color: Var(--button);
  max-width: 80%;
  padding: 40;
  font-family: learners;
}

dialog a {
  font-family: learners;
  font-size: 30px;
  padding: 30em;
  border: 0.3em solid black;
  border-radius: 1.5em;
  line-height: 1;
  display: inline-block;
}

/*bron hva AI*/

#mydialog section summary {
  font-family: worldDisco;
  font-size: 20px;
  border-width: 0.1em;
  border-style: solid;
  border-color: var(--button-color);
  border-radius: 0.5em;
  padding: 10px;
  background-color: var(--background-summary);
  color: white;
  margin: 5px;
}

/* helaas heb ik hiervoor hva ai moeten gebruiken na dingen zoals
www.schools gebruikt te hebben en waarna niks klopten*/
#mydialog[open] {
  animation: dialog-open 0.2s ease-in;
}

@keyframes dialog-open {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#mydialog section li {
  font-family: learners;
  border-width: 0.1em;
  border-style: solid;
  border-color: var(--button-color);
  border-radius: 0.5em;
  padding: 20px;
  background-color: var(--background-li1);
  text-decoration: none;
  list-style: none;
}

/*deze code heb ik genomen en aangepast van een codepen
over de hovers*/
#mydialog section button {
  margin: 1%;
  padding-block: 0.5em;
  padding-inline: 1em;
  border-width: 0.1em;
  border-style: solid;
  border-radius: 1.5em;
  transition: 0.5s;
}

#mydialog button:hover {
  transition: 0.3s;
  color: white;
  background-color: var(--button-hover);
}

#mydialog button:active {
  background-color: Var(--button-active);
}

#mydialog button:focus {
  background-color: Var(--button-active);
}

dialog::backdrop {
  /*background-color: gainsboro;*/
  backdrop-filter: blur(5px);
}

#open-dialog {
  font-family: worldDisco;
  font-size: 20px;
  background-color: Var(--color-pink);
  border: 0.1em solid black;
  border-radius: 0.5em;
  padding: 0.5em 1em;
  margin: 10px;
}


#open-dialog:hover {
  transform: scale(1.15);
}

details {
  text-align: center;
  text-decoration: none;
  background-color: var(--backdrop-dialog);
}

#mydialog details a {
  font-size: inherit;
  padding: 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
  line-height: normal;
  display: inline;
  color:  var(--font);
  text-decoration: underline;
}

#mydialog h1 {
  font-family: worldDisco;
  font-size: 40px;
}
/* hier had ik hva voor gebruikt*/
#mydialog p {
  padding-left: 10px;
  font-size: 20px;
  line-height: 1.4;
}

body :focus-visible {
  color: var(--focus-state);
  outline: .60em dashed var(--focus-state);
  /* voor de opaqueness van de achtergrond kleur heb ik chatgpt gevraagt*/
  background-color: rgb(179 59 114 / 30%);
}