/* MAIN */

main {
    background-color: var(--color-card);
}

main section:nth-of-type(1) figure {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 600px;
    z-index: 0;
}

main section:nth-of-type(1) figure figcaption {
    z-index: 2;
}

main section:nth-of-type(1) figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--color-footer) 0%, 
    rgba(30, 57, 50, 0.0) 100%);
  pointer-events: none;
  z-index: 1;
}

main section:nth-of-type(1) img {
    display: block;
    width: 100%;
    height: auto;
}

main section:nth-of-type(1) figcaption {
    position: absolute;
    bottom: 30px;
    margin: 20px;
    text-align: left;
    color: var(--color-bg);

}

main h1 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-family: "SoDoSanslight";

}

main h3 {
    font-size: 1.3rem;
    font-family: "SoDoSans";
  color: var(--color-text);

}

main section:nth-of-type(1) button {
    display: block;
    width: 450px;
    margin: 10px auto;
    padding: 14px;
    border-radius: 30px;
    font-size: 1rem;
    font-family: "SoDoSans";
    cursor: pointer;
}

main section:nth-of-type(1) button:first-of-type {
    background: var(--color-bg);
    border: none;
}

main button:first-of-type:hover {
    background: var(--color-card);
}

main button:last-of-type {
    background: none;
    color: var(--color-bg);
    border: 1px solid var(--color-bg);
}

main button:last-of-type:hover {
    background: var(--color-shadow);
}

main article section:nth-of-type(1) {
 margin: 2em;
}

main article h2 {
 font-family: "SoDoSans";
 margin-bottom: -10px;
 margin-top: 50px;
 margin-left: 1em;
 font-size: 28px;
 color: var(--color-text);
}

main article section:nth-of-type(1) p {
 font-family: "SoDoSansLight";
 font-size: .9em;
color: var(--color-text);
}

main article section:nth-of-type(1) p span {
    color: var(--color-brand);
    text-decoration: underline;
    color: var(--color-brand);

}

/* koffie */

main article section:nth-of-type(2) ul {
  list-style: none;
  padding: 0;
  margin: 3em;
}

main article section:nth-of-type(2) h4 {
font-family: "SoDoSansRegular";
font-size: 19px; 
}

main article section:nth-of-type(2) img {
 max-width: 100%;
 height: auto;
 border-radius: 6px;

}

main article section:nth-of-type(2) button {
  color: var(--color-brand);
  font-family: "SoDoSans";
  font-size: 16px;
  border: 1px solid var(--color-brand);
  padding: .8rem 1rem;
  border-radius: 100px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 2em;

}

main article section:nth-of-type(2) button:hover {
    background-color: var(--color-hover2);
}

/* uitleg */

main hr {
  border: none;
  border-top: 1px solid var(--color-hr);
  margin: 2em;
}

main article section:nth-of-type(3) {
    padding: 2em;
}

main article section:nth-of-type(3) p {
    font-family: "SoDoSansLight";
    font-size: 14px;
}

main article section:nth-of-type(3) h3 {
    font-family: "SoDoSans";
    font-size: 18px;
}

main article section:nth-of-type(4) {
  background-image: url("../images/icon1.png");

}

main article section:nth-of-type(5) {
  background-image: url("../images/icon2.png");

}

main article section:nth-of-type(6) {
  background-image: url("../images/icon3.png");

}

main article section:nth-of-type(7) {
  background-image: url("../images/icon4.png");

}

main article section:nth-of-type(4),
main article section:nth-of-type(5),
main article section:nth-of-type(6),
main article section:nth-of-type(7) {
  background-repeat: no-repeat;
  background-size: 6em; 
  
  padding-left: 6em; 
  padding-right: 2rem;
  padding-bottom: 2rem;

}

main article section:nth-of-type(5) h4,
main article section:nth-of-type(6) h4,
main article section:nth-of-type(7) h4,
main article section:nth-of-type(4) h4 {
  font-family: "SoDoSans";
  font-size: 14px;
}    

main article section:nth-of-type(5) h5,
main article section:nth-of-type(6) h5,
main article section:nth-of-type(7) h5,
main article section:nth-of-type(4) h5 {
  font-family: "SoDoSans";
  font-size: 14px;
}    

main article section:nth-of-type(5) p,
main article section:nth-of-type(6) p,
main article section:nth-of-type(7) p,
main article section:nth-of-type(4) p {
 font-family: "SoDoSansLight";
 font-size: 14px;
}

/* Tip van Demi: Gebruik een article voor de 2de column */

@media (min-width: 700px) {
  main {
    display: grid;
    grid-template-columns: 1fr 50%;
    gap: 2rem;
    align-items: start;
  }

  main > section:first-of-type {
    position: sticky;
    top: 1rem;
    grid-column: 2;
    align-self: start;
    grid-column: 1;
    margin: -2em;
    margin-left: -5em;
    padding: 0;
    
  }

  main > article {
    grid-column: 2;
  }

  main article section img,
  main article section figure {
    display: block;
    max-width: 100%;
    margin: 0;
  }
}










