/* MARK: fonts */
@font-face {
  font-family: "Seraphs";
  src: url("font/SeraphsVF.woff2") format("woff2"); /* Modern Browsers */
}

@keyframes --stretch-left {
  0%,
  100% {
    padding-right: 0em;
  }
  50% {
    padding-right: 0.3em;
  }
}

@keyframes --stretch-right {
  0%,
  100% {
    padding-left: 0em;
  }
  50% {
    padding-left: 0.2em;
  }
}

@keyframes --bounce-animatie {
  0%,
  100% {
    bottom: 0px;
  }
  50% {
    bottom: 4px;
  }
}

@keyframes --scare-animatie {
  0%,
  100% {
    font-variation-settings:
      "wght" 120,
      "SRFS" 0;
  }
  25% {
    font-variation-settings:
      "wght" 120,
      "SRFS" 20;
  }
  50% {
    font-variation-settings:
      "wght" 120,
      "SRFS" 40;
  }
  75% {
    font-variation-settings:
      "wght" 120,
      "SRFS" 60;
  }
}

@keyframes --i-animatie {
  0%,
  100% {
    font-variation-settings:
      "wght" 120,
      "SRFS" 0;
  }
  25% {
    font-variation-settings:
      "wght" 140,
      "SRFS" 20;
  }
  50% {
    font-variation-settings:
      "wght" 120,
      "SRFS" 40;
  }
  75% {
    font-variation-settings:
      "wght" 160,
      "SRFS" 60;
  }
}

@keyframes --vanish-animatie {
  0%,
  100% {
    opacity: 100%;
  }
  50% {
    opacity: 10%;
  }
}

@keyframes --train-animatie {
  0% {
    padding-left: 0em;
  }
  50% {
    padding-left: 3em;
  }
}

/* MARK: items */
body {
  font-family: "Seraphs";
  font-size: clamp(0.5em, 2.2vw, 1.5em);
  line-height: 1.3em;
  font-variation-settings: "wght" 120;
  max-width: 40em;
  margin: auto;
}

main {
  display: grid;
  grid-template-columns: 20px 100px 50px 50px 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

strong {
  font-size: clamp(1em, 4vw, 2.5em);
  font-variation-settings:
    "wght" 120,
    "SRFS" 40;
}

em {
  letter-spacing: 3px;
  font-style: normal;
}

p:nth-of-type(1) {
  grid-column-start: 1;
  grid-column-end: 4;
  grid-row-start: 1;
}
p:nth-of-type(1) strong:nth-of-type(1) {
  color: red;
}

p:nth-of-type(1) strong:nth-of-type(2) {
  @media (prefers-reduced-motion: no-preference) {
    animation-name: --vanish-animatie;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
  }
}

/* Tweede paragraaf */
p:nth-of-type(2) span:nth-of-type(1) {
  font-variation-settings: "wght" 100;
  letter-spacing: 3px;
}

p:nth-of-type(2) span:nth-of-type(2) {
  font-variation-settings: "wght" 112;
  letter-spacing: 3px;
}

p:nth-of-type(2) span:nth-of-type(3) {
  font-variation-settings: "wght" 125;
  letter-spacing: 3px;
}

p:nth-of-type(2) span:nth-of-type(4) {
  font-variation-settings: "wght" 137;
  letter-spacing: 3px;
}

p:nth-of-type(2) span:nth-of-type(5) {
  font-variation-settings: "wght" 150;
  letter-spacing: 3px;
}

p:nth-of-type(2) span:nth-of-type(6) {
  font-variation-settings: "wght" 162;
  letter-spacing: 3px;
}

p:nth-of-type(2) span:nth-of-type(7) {
  font-variation-settings: "wght" 175;
  letter-spacing: 3px;
}

p:nth-of-type(2) span:nth-of-type(8) {
  font-variation-settings: "wght" 188;
  letter-spacing: 3px;
}

p:nth-of-type(2) strong {
  @media (prefers-reduced-motion: no-preference) {
    animation-name: --scare-animatie;
    animation-duration: 3s;
    animation-iteration-count: infinite;
  }
}

p:nth-of-type(2) {
  grid-column-start: 2;
  grid-column-end: 5;
  grid-row-start: 2;
}
/* derde paragraaf */
p:nth-of-type(3) {
  grid-column-start: 4;
  grid-column-end: 6;
  grid-row-start: 3;
}
p:nth-of-type(3) strong {
  letter-spacing: 5px;
}

/*woordje try*/
p:nth-of-type(3) span:nth-of-type(1) {
  font-variation-settings: "wght" 100;
  letter-spacing: 3px;
}

p:nth-of-type(3) span:nth-of-type(2) {
  font-variation-settings: "wght" 125;
  letter-spacing: 3px;
}
p:nth-of-type(3) span:nth-of-type(3) {
  font-variation-settings: "wght" 150;
  letter-spacing: 3px;
}
p:nth-of-type(3) span:nth-of-type(4) {
  font-variation-settings: "wght" 175;
  letter-spacing: 3px;
}
p:nth-of-type(3) span:nth-of-type(5) {
  font-variation-settings: "wght" 200;
  letter-spacing: 3px;
}

/*woordje through*/
p:nth-of-type(3) strong span:nth-of-type(1) {
  @media (prefers-reduced-motion: no-preference) {
    position: relative;
    margin-right: -28px;
    z-index: 2;
    animation-name: --stretch-left;
    animation-duration: 2s;
    animation-iteration-count: infinite;
  }
}

p:nth-of-type(3) strong span:nth-of-type(2) {
  font-size: clamp(1em, 7vw, 2.5em);
  position: relative;
  top: 5px;
  z-index: 1;
}

p:nth-of-type(3) strong span:nth-of-type(3) {
  @media (prefers-reduced-motion: no-preference) {
    position: relative;
    margin-left: -8px;
    z-index: 2;
    animation-name: --stretch-right;
    animation-duration: 2s;
    animation-iteration-count: infinite;
  }
}
/* vierde paragraaf */
p:nth-of-type(4) {
  grid-column-start: 5;
  grid-column-end: 6;
  grid-row-start: 4;
}

p:nth-of-type(4) span:nth-of-type(1) {
  @media (prefers-reduced-motion: no-preference) {
    position: relative;
    animation-name: --bounce-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
  }
}

p:nth-of-type(4) span:nth-of-type(2) {
  @media (prefers-reduced-motion: no-preference) {
    position: relative;
    animation-name: --bounce-animatie;
    animation-duration: 2s;
    animation-delay: 0.5s;
    animation-iteration-count: infinite;
  }
}

p:nth-of-type(4) span:nth-of-type(3) {
  @media (prefers-reduced-motion: no-preference) {
    position: relative;
    animation-name: --bounce-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
  }
}

p:nth-of-type(4) span:nth-of-type(4) {
  @media (prefers-reduced-motion: no-preference) {
    position: relative;
    animation-name: --bounce-animatie;
    animation-duration: 2s;
    animation-delay: 0.5s;
    animation-iteration-count: infinite;
  }
}

p:nth-of-type(4) span:nth-of-type(5) {
  @media (prefers-reduced-motion: no-preference) {
    position: relative;
    animation-name: --bounce-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
  }
}
p:nth-of-type(4) span:nth-of-type(6) {
  @media (prefers-reduced-motion: no-preference) {
    position: relative;
    animation-name: --bounce-animatie;
    animation-duration: 2s;
    animation-delay: 0.5s;
    animation-iteration-count: infinite;
  }
}

/* animatie 5de paragraaf */
p:nth-of-type(5) {
  grid-column-start: 1;
  grid-column-end: 4;
  grid-row-start: 5;
}

p:nth-of-type(5) {
  span {
    letter-spacing: normal;
    transition-duration: 0.2s;
    transition-delay: calc(sibling-index() * 0.05s);
  }
}

p:nth-of-type(5):hover {
  span {
    letter-spacing: 5px;
  }
  span:nth-child(1) {
    font-size: clamp(0.5em, 2vw, 1.5em);
  }

  span:nth-child(2) {
    font-size: clamp(0.5625em, 2.25vw, 1.625em);
  }

  span:nth-child(3) {
    font-size: clamp(0.625em, 2.5vw, 1.75em);
  }

  span:nth-child(4) {
    font-size: clamp(0.6875em, 2.75vw, 1.875em);
  }

  span:nth-child(5) {
    font-size: clamp(0.75em, 3vw, 2em);
  }

  span:nth-child(6) {
    font-size: clamp(0.8125em, 3.25vw, 2.125em);
  }

  span:nth-child(7) {
    font-size: clamp(0.875em, 3.5vw, 2.25em);
    color: red;
  }

  span:nth-child(8) {
    font-size: clamp(1em, 3.75vw, 2.5em);
    color: red;
  }
}

p:nth-of-type(6) {
  grid-column-start: 2;
  grid-column-end: 4;
  grid-row-start: 6;
}

p:nth-of-type(6) span:nth-of-type(1) {
  @media (prefers-reduced-motion: no-preference) {
    animation-name: --i-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: 0.2s;
  }
}
p:nth-of-type(6) span:nth-of-type(2) {
  @media (prefers-reduced-motion: no-preference) {
    animation-name: --i-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: 0.5s;
  }
}

p:nth-of-type(6) span:nth-of-type(3) {
  @media (prefers-reduced-motion: no-preference) {
    animation-name: --i-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: 0.3s;
  }
}

p:nth-of-type(6) span:nth-of-type(4) {
  @media (prefers-reduced-motion: no-preference) {
    animation-name: --i-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: 0.1s;
  }
}

p:nth-of-type(6) span:nth-of-type(5) {
  @media (prefers-reduced-motion: no-preference) {
    animation-name: --i-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: 0.4s;
  }
}

p:nth-of-type(7) {
  grid-column-start: 4;
  grid-column-end: 6;
  grid-row-start: 7;
}

p:nth-of-type(7) {
  span {
    letter-spacing: normal;
    transition-duration: 0.2s;
    transition-delay: calc(sibling-index() * 0.05s);
  }
}

p:nth-of-type(7):hover {
  span {
    letter-spacing: 5px;
  }
  span:nth-child(1) {
    font-size: clamp(0.5em, 2vw, 1.5em);
  }

  span:nth-child(2) {
    font-size: clamp(0.5625em, 2.25vw, 1.625em);
  }

  span:nth-child(3) {
    font-size: clamp(0.625em, 2.5vw, 1.75em);
  }

  span:nth-child(4) {
    font-size: clamp(0.6875em, 2.75vw, 1.875em);
  }

  span:nth-child(5) {
    font-size: clamp(0.75em, 3vw, 2em);
  }

  span:nth-child(6) {
    font-size: clamp(0.8125em, 3.25vw, 2.125em);
  }

  span:nth-child(7) {
    font-size: clamp(0.875em, 3.5vw, 2.25em);
    color: red;
  }

  span:nth-child(8) {
    font-size: clamp(1em, 3.75vw, 2.5em);
    color: red;
  }
  span:nth-child(9) {
    font-size: clamp(1.125em, 4vw, 2.65em);
    color: red;
  }
}

p:nth-of-type(8) {
  grid-column-start: 5;
  grid-column-end: 6;
  grid-row-start: 8;
}

p:nth-of-type(8) span {
  word-spacing: -7px;
}

p:nth-of-type(9) {
  grid-column-start: 1;
  grid-column-end: 4;
  grid-row-start: 9;
}
/*woordje take*/
p:nth-of-type(9) span:nth-of-type(1) {
  font-variation-settings: "wght" 100;
  letter-spacing: 3px;
}

p:nth-of-type(9) span:nth-of-type(2) {
  font-variation-settings: "wght" 112;
  letter-spacing: 3px;
}

p:nth-of-type(9) span:nth-of-type(3) {
  font-variation-settings: "wght" 125;
  letter-spacing: 3px;
}

p:nth-of-type(9) span:nth-of-type(4) {
  font-variation-settings: "wght" 137;
  letter-spacing: 3px;
}

p:nth-of-type(9) span:nth-of-type(5) {
  font-variation-settings: "wght" 150;
  letter-spacing: 3px;
}

p:nth-of-type(9) span:nth-of-type(6) {
  font-variation-settings: "wght" 162;
  letter-spacing: 3px;
}

p:nth-of-type(9) span:nth-of-type(7) {
  font-variation-settings: "wght" 175;
  letter-spacing: 3px;
}

p:nth-of-type(9) span:nth-of-type(8) {
  font-variation-settings: "wght" 188;
  letter-spacing: 3px;
}

/*woordje ticket*/
p:nth-of-type(9) strong span:nth-of-type(1) {
  @media (prefers-reduced-motion: no-preference) {
    position: relative;
    animation-name: --bounce-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    font-variation-settings: "wght" 120;
  }
}
p:nth-of-type(9) strong span:nth-of-type(2) {
  @media (prefers-reduced-motion: no-preference) {
    position: relative;
    animation-name: --bounce-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: 0.1s;
    font-variation-settings: "wght" 120;
  }
}
p:nth-of-type(9) strong span:nth-of-type(3) {
  @media (prefers-reduced-motion: no-preference) {
    position: relative;
    animation-name: --bounce-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: 0.2s;
    font-variation-settings: "wght" 120;
  }
}
p:nth-of-type(9) strong span:nth-of-type(4) {
  @media (prefers-reduced-motion: no-preference) {
    position: relative;
    animation-name: --bounce-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: 0.3s;
    font-variation-settings: "wght" 120;
  }
}
p:nth-of-type(9) strong span:nth-of-type(5) {
  @media (prefers-reduced-motion: no-preference) {
    position: relative;
    animation-name: --bounce-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: 0.4s;
    font-variation-settings: "wght" 120;
  }
}
p:nth-of-type(9) strong span:nth-of-type(6) {
  @media (prefers-reduced-motion: no-preference) {
    position: relative;
    animation-name: --bounce-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: 0.5s;
    font-variation-settings: "wght" 120;
  }
}

p:nth-of-type(10) {
  grid-column-start: 2;
  grid-column-end: 4;
  grid-row-start: 10;
}
/* woordje get */
p:nth-of-type(10) {
  span {
    letter-spacing: normal;
    transition-duration: 0.2s;
    transition-delay: calc(sibling-index() * 0.05s);
  }
}

p:nth-of-type(10):hover {
  span {
    letter-spacing: 5px;
  }
  span:nth-child(1) {
    font-size: clamp(0.5em, 2vw, 1.5em);
  }

  span:nth-child(2) {
    font-size: clamp(0.5625em, 2.25vw, 1.625em);
  }

  span:nth-child(3) {
    font-size: clamp(0.625em, 2.5vw, 1.75em);
  }
  span:nth-child(4) {
    font-size: clamp(0.6875em, 2.75vw, 1.875em);
    color: red;
  }

  span:nth-child(5) {
    font-size: clamp(0.75em, 3vw, 2em);
    color: red;
  }
}
/* woordje train */

p:nth-of-type(10) strong {
  @media (prefers-reduced-motion: no-preference) {
    display: block;
    text-decoration: underline;
    filter: blur(0.6px);
    transform: skew(-20deg);
    animation-name: --train-animatie;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
  }
}
p:nth-of-type(11) {
  grid-column-start: 4;
  grid-column-end: 6;
  grid-row-start: 11;
}

p:nth-of-type(11) span:nth-of-type(1) {
  font-variation-settings: "wght" 100;
  font-size: clamp(0.5em, 2.2vw, 1.5em);
  letter-spacing: 3px;
}

p:nth-of-type(11) span:nth-of-type(2) {
  font-variation-settings: "wght" 112;
  font-size: clamp(0.6em, 2.4vw, 1.6em);
  letter-spacing: 3px;
}

p:nth-of-type(11) span:nth-of-type(3) {
  font-variation-settings: "wght" 125;
  font-size: clamp(0.7em, 2.6vw, 1.7em);
  letter-spacing: 3px;
}

p:nth-of-type(11) span:nth-of-type(4) {
  font-variation-settings: "wght" 137;
  font-size: clamp(0.8em, 2.8vw, 1.8em);
  letter-spacing: 3px;
}

p:nth-of-type(11) span:nth-of-type(5) {
  font-variation-settings: "wght" 150;
  font-size: clamp(0.9em, 3vw, 1.9em);
  letter-spacing: 3px;
}

p:nth-of-type(11) span:nth-of-type(6) {
  font-variation-settings: "wght" 162;
  font-size: clamp(1em, 3.2vw, 2em);
  letter-spacing: 3px;
}

p:nth-of-type(11) span:nth-of-type(7) {
  font-variation-settings: "wght" 175;
  font-size: clamp(1.1em, 3.4vw, 2.1em);
  letter-spacing: 3px;
}

p:nth-of-type(11) span:nth-of-type(8) {
  font-variation-settings: "wght" 188;
  font-size: clamp(1.2em, 3.6vw, 2.2em);
  letter-spacing: 3px;
}

p:nth-of-type(12) {
  grid-column-start: 5;
  grid-column-end: 6;
  grid-row-start: 12;
}

p:nth-of-type(12) em {
  word-spacing: -8px;
}

p:nth-of-type(13) {
  grid-column-start: 1;
  grid-column-end: 4;
  grid-row-start: 13;
}

p:nth-of-type(13) strong {
  color: red;
}
