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

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

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

:root {
  --goud: gold;
  --roze: pink;
  --blauw: #0074d9;
  --silver: #c0c0c0;
  --black: black;
  --text: light-dark(black, white);
}

.achtergrond {
  justify-content: center;
}

html {
  color-scheme: light dark;
  --whitespace-s: 1rem;
  --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, #0074d9);
  --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;
}

/*met mijn fotots duidelijk neerzetten, en de teksten verschuiven heeft Sanne mij bij gehulpen*/
/*ik kwam niet mijn display-grid, en Sanne had mij geholpen met code om de
fotos en de tekst zo te lijnen*/
main {
  margin: auto;
  display: grid;

  @media (width > 32em) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: dense;
    column-gap: 1em;
  }
}

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%;
}

img {
  max-width: 100%;
  padding: 0.5px;
}

H1 {
  font-family: Discodreams;
  font-size: 5vw;
  line-height: 60px;
  text-wrap: balance;
  text-align: center;
  color: Var(--font);
}

h2 {
  font-family: Discodreams;
  font-size: 2.5vw;
  line-height: 0.1;
  text-wrap: balance;
  align-items: top;

  @media (width > 32em) {
    grid-column: 1/-1;
  }
}

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

  @media (width > 32em) {
    grid-column: 1/-1;
  }
}

p:nth-of-type(1) {
  font-family: learners;
  color: var(--text);

  @media (width > 32em) {
    grid-column: 1/2;
  }
}

p:nth-of-type(2) {
  color: var(--font);
  font-family: learners;
  @media (width > 32em) {
    grid-column: 2/3;
  }
}

/* iemand van ICT had mij hierbij geholpen*/
@media (max-width: 670px) {
  p:nth-of-type(1) {
    font-family: learners;
    font-size: 2.5vw;
    line-height: 0.9;
  }
}

.button1 {
  display: inline-block;
  border: 4px solid #000;
  font-family: Discodreams;
  font-size: 12px;
  padding-left: 30px;
  padding-right: 30px;
  color: black;
  border-radius: 70%;
  line-height: 90px;
  background-image: linear-gradient(var(--roze), var(--silver));
  text-decoration: none;
  margin: 20px;
}

.button1:hover {
  transform: scale(1.05);
}

.button2 {
  display: inline-block;
  border: 4px solid #000;
  font-family: Discodreams;
  font-size: 15px;
  padding-left: 20px;
  padding-right: 20px;
  color: black;
  border-radius: 70%;
  text-wrap: balance;
  line-height: 100px;
  background-image: linear-gradient(var(--blauw), var(--goud));
  text-decoration: none;
  margin: 20px;
}

.button2:hover {
  transform: scale(1.05);
}


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

li {
  list-style-type: none;
  font-size: 10px;
}

video {
  max-width: 100%;
  padding: 2%;
}

/*bron: hva.ia*/
a {
  font-family:  Discodreams;
  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;
}

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: Discodreams;
  font-size: 15px;
  border-width: 0.1em;
  border-style: solid;
  border-color: var(--button-color);
  border-radius: 0.5em;
  margin: 1%;
  padding: 10px;
  background-color: var(--background-summary);
  color: white;
}

/* 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;
  background-color: var(--background-li1);
  text-decoration: none;
  font-size: 15px;
}

/*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: Discodreams;
  font-size: 15px;
  background-color: Var(--color-pink);
  border: 0.1em solid black;
  border-radius: 0.5em;
  padding: 0.5em 1em;
  margin: 20px;
}

#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: Discodreams;
  font-size: 50px;
  line-height: 50px;
}
/* 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%);
}