@font-face {
    font-family: "Fredoka";
    src: url("./fonts/Fredoka-VariableFont_wdth,wght.ttf") format("truetype")
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    font-family: "Inter" , sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    scroll-behavior: smooth;
    padding-inline: 2rem;
    --background: oklch(0.477 0.204 264.471) ;
    --primaire: oklch(0.985 0 89.876)
}

h1 {font-size: calc(1.125rem * 1.5 * 1.5 * 1.5);}
h2 {font-size: calc(1.125rem * 1.5 * 1.5);}
h3 {font-size: calc(1.125rem * 1.5);}

main {
    max-width: 80rem;
    margin-inline: 0.5;
    padding-inline: 3rem;
}

body {
    margin: 0;
}

.container {
    max-width: 80rem;
    margin-inline: 0.5;
    padding-inline: 1rem;
}

header {
    background-color: var(--background);
    color: var(--primaire);
}

nav 
    ul {
        display: flex;
        flex-wrap: wrap;
        list-style-type: none;
        margin: 0;
        padding: 0;
    }
    a {
    padding-block: 1rem;
    padding-inline: 2rem;
    text-decoration: none;
    display: inline-block;
    color: inherit;
    }



main {
  nav {
    --text: oklch(0.99 0.003 325);
    --bg: oklch(0.45 0.32 40);

    a {
      color: var(--text);
      background-color: var(--bg);
      transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;

      &:hover,
      &:focus-visible {
        color: var(--bg);
        background-color: white;
      }
    }

    li:first-child {
      margin-inline-end: auto;
    }

    li:first-child a {
      font-weight: bold;
    }
  }
}

.row {
  display: flex;
  gap: 2rem;

  > * {
    border: 1px dashed oklch(62.812% 0.25748 29.198);
    padding: 1rem;
  }

  *:first-child {
    flex: 2; 
  }

  *:nth-child(2) {
    flex: 1; 
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-block: 2rem;
  padding: 0;
  list-style: none;
  justify-content: flex-start;
}

.cards li {
  flex: 1 1 18rem;
  display: flex;
  flex-direction: column;
  border: 1px solid oklch(70% 0.2 30);
  background-color: white;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  max-width: calc(33% - 2rem);
}

.cards img {
  width: 100%;
  height: 10rem;
  display: block;

}

.cards .content {
  padding: 1rem;
}

.cards h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.cards p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.cards a {
  color: oklch(0.45 0.32 40);
  text-decoration: underline;
  font-size: 0.9rem;
}

.cards .overlay-link {
  position: absolute;
  inset: 0;
  text-indent: -9999px;
}

.cards li {
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards li:hover {
  transform: translateY(-5px); 
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  transform: scale(1.05) translateY(-5px);
}

p { 
  margin-block: 1rem; 
} 

h1, h2, h3 { 
  margin-block-start: 2rem; 
  margin-block-end: 1rem; 
} 

h2 + h3 { 
  margin-block-start: 0.5rem; 
}

.metadetails { 
  font-style: italic; 
  color: oklch(40% 0.1 30); 
} 

.introduction {
font-weight: 600; color: oklch(30% 0.2 40);
}

.mylink {
  display: inline-flex;
  align-items: center;
  gap:0.5rem;
  color: oklch(30% 0.25 20);
  background-color: transparent;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: none;
  position: relative;

 > ::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-image: url(./bronbestanden/deleteicon.png);
  background-size: contain; 
  background-repeat: no-repeat; 
  background-position: center;
}

:hover.myLink:focus-visible { 
  text-decoration: underline; 
  color: oklch(20% 0.3 20); 
} 
}
.myButton { 
  display: inline-block; 
  background-color: oklch(95% 0.35 140);
  color: oklch(20% 0.1 140); 
  font-weight: 600; 
  border: none; 
  border-radius: 0.4rem;
  padding: 0.5rem 1.2rem; 
  cursor: pointer; 
  transition: background-color 0.2s ease-in-out; 

  :hover, .myButton:focus-visible { 
  background-color: oklch(85% 0.3 140); 
}
> a {
  background-color:  oklch(95% 0.35 140);
}
}