main {
  section {
    display: grid;
    padding: 5rem 2rem;
    place-content: center;

    &:nth-of-type(odd) {
      background: var(--c-bg);
      color: white;
    }

    &:nth-of-type(even) {
      background: var(--c-bg-alt);
      color: black;
    }

    &:nth-of-type(1) {
      height: 100dvh;
      place-content: center;

      h1 {
        @media (min-width: 1000px) {
          word-break: normal;
          min-width: 50rem;
        }
      }
    }

    &:nth-of-type(2) {
      min-height: 80vh;
      background-image: url(../assets/foto-staand.webp);
      background-size: cover;
      background-position: bottom;

      @media (min-width: 500px) {
        background-position: center;
      }

      @media (min-width: 700px) {
        background-image: url(../assets/foto-liggend.jpeg);
        background-position: top;
        min-height: 100vh;
      }
    }

    &:nth-of-type(3) {
      height: 80vh;
      overflow: hidden;
      gap: 1rem;
      position: relative;
      align-content: baseline;

      figure {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        pointer-events: none;
        overflow: visible;

        img {
          display: block;
          height: auto;
          will-change: transform;
          width: 100%;

          @media (min-width: 700px) {
            max-width: 40rem;
          }
        }
      }
    }

    &:nth-of-type(4) {
      border-top-left-radius: var(--br);
      border-top-right-radius: var(--br);

      p {
        padding-top: 1rem;
      }

      ul {
        display: grid;
        gap: 2rem;
        list-style: none;
        padding-top: 4rem;

        @media (min-width: 800px) {
          max-width: 40rem;
        }

        li {
          border-bottom: 1px solid black;
          padding-bottom: 1rem;
          min-height: 7rem;
          display: grid;
          gap: 0.5rem;

          grid-template-areas:
            "title title anchor anchor"
            "datum tijd tijd tijd ";

          h3 {
            grid-area: title;
            max-width: 15rem;
          }

          a {
            grid-area: anchor;
            display: flex;
            justify-content: right;
          }

          p:nth-of-type(1) {
            grid-area: datum;
          }

          p:nth-of-type(2) {
            grid-area: tijd;
            display: flex;
            justify-content: right;
          }
        }
      }
    }

    &:nth-of-type(5) {
      gap: 1.5rem;

      ul {
        display: flex;
        list-style: none;
        gap: 1rem;
      }

      svg {
        fill: white;
        width: 1.8rem;
      }
    }
  }
}

footer {
  background-color: var(--c-bg-alt);
  color: black;
  text-align: center;
  padding: 2rem;
  display: grid;
  gap: 0.5rem;
  place-content: center;
}

article.popup {
  background-color: white;
  height: 6rem;
  border-radius: 0.4rem;
  position: fixed;
  z-index: 5;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  display: flex;
  margin: 0.8rem;
  width: -webkit-fill-available;
  top: 0;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-40px);
  max-width: 25rem;
  pointer-events: none;
  border-left: 0.4rem solid lightgrey;

  ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;

    li:nth-of-type(1) {
    }

    li:nth-of-type(2) {
      p:nth-of-type(1) {
        font-weight: 500;
        cursor: pointer;
      }

      p:nth-of-type(2) {
        font-size: 100%;
      }
    }
  }

  img {
    width: 4rem;
    border-radius: 50%;
  }

  button {
    border: none;
    background: lightgrey;
    color: rgb(87, 87, 87);
    width: 2.3rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-content: center;

    svg {
      width: 1.2rem;
    }
  }
}

article.popup.is-visible {
  pointer-events: auto;
}

.show-link {
  display: inline-block;
  color: blue;
  min-width: fit-content;
  transition: opacity 0.3s;
}

.show-link:hover {
  opacity: 0.8;
}

#copy-email {
  color: white;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes letterUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
