#about {
  margin: 0 0 5em 0;
  padding: 0;
  overflow: hidden;
}
#about > div {
  width: 100%;
  max-width: 60em;
  height: 20em;
  background-color: var(--color-burlywood);
  padding: 0 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* eerste bruine vlak op de pagina */

@media (min-width: 576px) {
  #about > div {
    border-radius: 1em;
    margin: 1em;
    align-items: start;
    justify-content: center;
  }
}

/* Styling voor groot scherm */

#about > div > h1,
#about > div > h3 {
  color: var(--color-saddlebrown);
  text-transform: uppercase;
}

#about > div > h1 {
  font-size: 3em;
  max-width: 6em;
  margin: 0;
}

#about > div > img {
  height: 12em;
  width: auto;
  align-self: end;
  position: absolute;
  bottom: -5em;
  right: -2em;
}

/* Styling voor dunkin mannetje */

@media (min-width: 576px) {
  #about > div > img {
    height: 20em;
  }
}

/* Styling voor groot scherm */

#about > section:first-of-type {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* main section stylig voor klein scherm */

@media (min-width: 576px) {
  #about > section:first-of-type {
    display: grid;
    grid-template: 1fr 1fr 1fr/1fr 1fr;
  }
}

/* main section styling voor groot scherm */

#about img {
  width: 20em;
  height: auto;
  margin: 3em 0;
  border-radius: 1em;
  justify-self: center;
  align-self: center;
}

@media (min-width: 576px) {
  #about > section:first-of-type > img:first-of-type {
    grid-area: 1/1/2/2;
    width: 25em;
    animation: rotate 1s linear infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -1s);
  }

  #about > section:first-of-type > img:nth-of-type(2) {
    grid-area: 1/2/2/3;
    animation: skew 1s linear infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -1s);
  }

  #about > section:first-of-type > img:nth-of-type(3) {
    grid-area: 2/1/3/3;
    height: 15em;
    width: auto;
    animation: move 1s linear infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -1s);
  }
}

/*  De verschillende geanimeerde images voor groot scherm*/

#about > section:first-of-type > h2:first-of-type {
  grid-area: 1/1/3/3;
  align-self: center;
  justify-self: center;
  color: var(--color-saddlebrown);
  transform: rotate(-20deg);
  font-size: 7em;
  width: 5em;
  margin: 0;
  padding: 0;
  line-height: 0.7em;
  text-align: center;
  font-family: Brush Script MT;
  z-index: 10;
}

/* tekstje in het midden */

#about > section:first-of-type > h2,
#about section:nth-of-type(3) > h2 {
  color: var(--color-dunkinpink);
  font-size: 2em;
  line-height: 1.2em;
  width: 100%;
  max-width: 15em;
  margin: 0.5em 0;
  padding: 0.5em;
  text-align: start;
}

#about > section:first-of-type > h2:nth-of-type(2) {
  grid-area: 3/2/4/3;
  align-self: start;
  z-index: 2;
}

#about p:first-of-type {
  margin: 0;
  padding: 0 1em;
  color: var(--color-gray-txt);
  max-width: 30em;
  grid-area: 3/2/4/3;
  align-self: center;
  z-index: 2;
}

#about > section:nth-of-type(2) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
  text-align: center;
  height: 36em;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 5em 0;
  position: relative;
}
#about > section:nth-of-type(2) > h2 {
  color: var(--color-dunkinpink);
  text-align: center;
  text-wrap: nowrap;
  font-size: 3em;
  line-height: 1em;
  word-spacing: -0.5em;
  margin: 0;
  text-transform: uppercase;
  animation: slide 1s linear infinite;
  animation-play-state: paused;
  animation-delay: calc(
    var(--scroll) * -1s
  ); /* https://css-tricks.com/books/greatest-css-tricks/scroll-animation/ */
}

@media (min-width: 576px) {
  #about > section:nth-of-type(2) > h2 {
    font-size: 5em;
  }
}

#about > section:nth-of-type(2) > h2:nth-of-type(1) {
  color: var(--color-dunkinorange);
  animation: slide 1s linear reverse infinite;
  animation-play-state: paused;
  animation-delay: calc(var(--scroll) * -1s);
}

#about > section:nth-of-type(2) > h2:nth-of-type(3) {
  color: var(--color-dunkinorange);
  animation: slide 1s linear reverse infinite;
  animation-play-state: paused;
  animation-delay: calc(var(--scroll) * -1s);
}

/* schuivende letters */

#about > section:nth-of-type(3) {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 576px) {
  #about > section:nth-of-type(3) {
    display: grid;
    grid-template: 1fr/1fr 1fr;
  }

  #about > section:nth-of-type(3) > h2 {
    grid-area: 1/2/2/3;
    align-self: start;
    margin-top: 1em;
  }

  #about > section:nth-of-type(3) > p {
    grid-area: 1/2/2/3;
    align-self: end;
  }
}

/* onderste plaatje en tekst voor groot scherm */

@keyframes slide {
  0% {
    transform: rotate(6deg) translate(0);
  }

  100% {
    transform: rotate(6deg) translate(5em);
  }
  /* Keyframes voor de schuivende letters */
}

@keyframes rotate {
  0% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(18deg);
  }
  /* Keyframes voor de draaiende gif van het meisje */
}

@keyframes skew {
  0% {
    transform: rotate3d(1, 1, 0, 20deg);
  }
  50% {
    transform: rotate3d(1, 1, 0, 60deg);
  }
  /* https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/rotate3d */
  /* Keyframes voor de verkoper in de winkel */
}

@keyframes move {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20em) translateX(-15em) rotate(-15deg);
  }
  100% {
    transform: translateY(20em) translateX(-15em) rotate(-15deg);
  }
  /* Keyframes voor de dansende man die naar beneden meebeweegt */
}
