html {
  color-scheme: light dark;

  --background-full: light-dark(#b3e4e9, #2e4057);
  --background-ul: light-dark(#ffe32a, #fce762);
  --text: light-dark(#354c6a, #ddbdd5);
  --text-ul: light-dark(#000000, #fff08e);
  --hover: light-dark(rgb(232, 44, 76), rgb(235, 98, 98));
  --active: light-dark(#3d5574, #92b9bd);
  --cookie: light-dark(rgb(143, 241, 234), rgb(3, 150, 140));
  --button: light-dark(#c9b010, #fce762);
  --buttonhover: light-dark(rgb(3, 59, 150), #96830b);
}

/* border kleuren ook in de custom proper */

html:has([value="light"]:checked) {
  color-scheme: light;
  background-color: var(--background);
}

html:has([value="dark"]:checked) {
  color-scheme: dark;
  background-color: var(--background);
}

body {
  background-color: var(--background-full);
}

h1,
h2,
h3 {
  color: var(--text);
  text-align: center;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0 5rem;
  overflow: hidden;
  background-color: var(--background-ul);

  li {
    a {
      display: block;
      color: white;
      padding: 16px 17px;
      text-decoration: none;
      float: left;
    }
  }
}

ul li a:hover {
  background-color: var(--hover);
}

ul li a.active {
  /* border-radius: 17px; */
  background-color: var(--active);
}

form {
  color: var(--text-ul);
  text-align: center;
  padding: 0.5em;
}

section {
  justify-self: center;
}

button {
  background-color: var(--button);
  border-color: black;
  border-width: 4px;
}

button:hover {
  background-color: var(--buttonhover);
}

dialog {
  margin: auto;
  text-align: center;
  max-width: 20em;

  background-color: var(--cookie);
  color: var(--text);

  &::backdrop {
    background-color: var(--backdrop-dialog);
    backdrop-filter: blur(2px);
  }
}

/* selections */

main h2 {
  background-color: white;
  padding: 15px;
  max-width: 18em;
  margin: 0 auto;
  border-radius: 20px;
}

main p:nth-of-type(1) {
  background-color: white;
  border: 3px solid red;
  border-radius: 10px;
  padding: 15px;
  color: green;
  max-width: 25em;
  text-align: left;
  margin: 0 auto;
  /* margin -> niet meer aan left side https://stackoverflow.com/questions/21245541/min-and-max-width-mess-up-text-align-center */
}

main a {
  background-color: green;

  p {
    color: pink;
  }

  img {
    width: 200px;
  }
}

/* end */

footer p {
  text-align: center;
}

/* HOME PAGE */
/* main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
} */
