@font-face {
  font-family: "dunkinregular";
  src: url("../Fonts/Dunkin/dunkin-webfont.woff2") format("woff2"),
    url("../Fonts/Dunkin/dunkin-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "dunkinbold";
  src: url("../Fonts/Dunkin/dunkin_bold-webfont.woff2") format("woff2"),
    url("../Fonts/Dunkin/dunkin_bold-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
/* https://www.fontsquirrel.com/tools/webfont-generator */

/**************/
/* CSS REMEDY */
/**************/
*,
*::after,
*::before {
  box-sizing: border-box;
}

/*********************/
/* CUSTOM PROPERTIES */
/*********************/
:root {
  /* startje */
  --color-text: #000;
  --color-gray-txt: rgb(155, 155, 155);
  --color-white: #ffffff;
  --color-white-txt: #ffffff;
  --color-gray: #f0f0f0;
  --color-bg: rgb(247, 247, 247);
  --color-dunkinorange: #ff671f;
  --color-dunkinpink: deeppink;
  --color-dunkinpink2: rgb(255, 91, 178);
  --color-dunkinblue: deepskyblue;
  --color-red: red;
  --color-blue: blue;
  --color-peru: peru;
  --color-burlywood: burlywood;
  --color-saddlebrown: saddlebrown;
  --fs-h1: 3em;
  --fs-p: 1em;
  --fs-bttn: 1em;
}

@media (min-width: 576px) {
  :root {
    --fs-h1: 2em;
    --fs-p: 0.75em;
    --fs-bttn: 0.75em;

    /* https://youtu.be/wARbgs5Fmuw?si=V7YRlJTYqOrUXZ_F&t=151 */
  }
}
/* aangepaste fontsizes voor groot scherm */

/****************/
/* JOUW STYLING */
/****************/
body {
  font-family: "dunkinregular", "dunkinbold";
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  width: 100%;
  background-color: var(--color-bg);
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

/* MAIN ******************************************************************************************/

main {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1em;
  justify-items: stretch;
  margin: 1em 0 0 0;
  transition: 1s;
}

main > section {
  display: grid;
  grid-column: 1fr;
  grid-auto-rows: 50vw;
  gap: 1em;
}

@media (min-width: 576px) {
  main > section {
    grid-template: 5em 5em 5em 5em 5em 5em 5em 5em 5em 5em 5em 5em/1fr 1fr 0.5fr 0.5fr 1fr 1fr;
    max-width: 60em;
  }
}

main > section > section {
  border-radius: 1em;
  display: inline-block;
  transition: 0.5s;
}

main > section > section:nth-of-type(1) {
  grid-area: 1 / 1 / 3 / 2;
  /* 1 tot -1 */
  background-image: radial-gradient(var(--color-burlywood) 25%, transparent),
    repeating-conic-gradient(
      from -5deg,
      var(--color-peru) 0 10deg,
      var(--color-burlywood) 0 30deg,
      var(--color-peru) 0 35deg,
      var(--color-burlywood) 0 60deg
        /* https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/radial-gradient */
    );
  /* Gradient voor WE LOVE COFFEE achtergrondje */
  text-align: center;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  height: 100%;
}

@media (min-width: 576px) {
  main > section > section:nth-of-type(1) {
    grid-area: 1/1/6/5;
  }
}

main > section > section:nth-of-type(1) > h1 {
  color: var(--color-white-txt);
  text-transform: uppercase;
  font-size: 3em;
  word-spacing: -0.35em;
  line-height: 1em;
  height: fit-content;
  width: 6em;
  margin: 5%;
}

main > section > section:nth-of-type(1) > img {
  position: absolute;
  top: 55%;
  width: auto;
  height: 60%;
}

main > section > section:nth-of-type(1) > img:nth-of-type(1) {
  left: 5%;
}

main > section > section:nth-of-type(1) > img:nth-of-type(2) {
  height: 100%;
  top: 40%;
  z-index: 1;
}

main > section > section:nth-of-type(1) > img:nth-of-type(3) {
  right: 5%;
}
/* positioneren van de Koffieglazen */

main > section > section:nth-of-type(2) {
  grid-area: 3 / 1 / 4 / 2;
  display: grid;
  grid-template: 1fr 0.5fr 1fr/1fr 1fr;
  background-color: var(--color-dunkinpink);
  height: 100%;
}

@media (min-width: 576px) {
  main > section > section:nth-of-type(2) {
    grid-area: 1/5/3/7;
  }
}

main > section > section:nth-of-type(2) > h1 {
  grid-area: 1/1/2/3;
  color: var(--color-white-txt);
  text-transform: uppercase;
  text-align: center;
  font-size: var(--fs-h1);
  word-spacing: -0.35em;
  line-height: 1em;
  padding: 0;
  width: 100%;
  margin: 5% auto;
}

main > section > section:nth-of-type(2) > p {
  grid-area: 2/1/3/3;
  color: var(--color-white-txt);
  font-size: var(--fs-p);
  padding: 0 5%;
  margin: auto 0;
}
main > section > section:nth-of-type(2) > button {
  background-color: var(--color-white);
  color: var(--color-dunkinpink);
  border-radius: 0.5em;
  font-family: "dunkinregular";
  font-size: var(--fs-bttn);
  text-transform: uppercase;
  grid-area: 3/1/4/2;
  border: none;
  margin: auto;
  padding: 0;
  width: 80%;
  height: 60%;
}

main > section > section:nth-of-type(2) > button:nth-of-type(2) {
  grid-area: 3/2/4/3;
  color: var(--color-white-txt);
  background-color: var(--color-dunkinpink2);
}

main > section > section:nth-of-type(3) {
  grid-area: 4 / 1 / 6 / 2;
  background-color: var(--color-dunkinblue);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  position: relative;
}

main > section > section:nth-of-type(3) > h1 {
  color: var(--color-white-txt);
  text-transform: uppercase;
  font-size: var(--fs-h1);
  word-spacing: -0.35em;
  line-height: 1em;
  text-align: center;
  width: 5em;
  margin-top: 5%;
}

main > section > section:nth-of-type(3) > img {
  position: absolute;
  width: 120%;
  height: auto;
  top: 1em;
}

@media (min-width: 576px) {
  main > section > section:nth-of-type(3) {
    grid-area: 3/5/6/7;
  }

  main > section > section:nth-of-type(3) > img {
    top: 0;
  }
}

main > section > section:hover {
  transform: scale(0.95);
}

main > section > h1 {
  /* grid-area: 1/1/2/3; */
  display: block;
  color: var(--color-dunkinpink);
  text-transform: uppercase;
  text-align: left;
  font-size: 4em;
  word-spacing: -0.35em;
  line-height: 1em;
  height: fit-content;
  padding: 0;
  width: 4em;
  margin: 0;
}

@media (min-width: 576px) {
  main > section > h1 {
    grid-area: 6/1/12/3;
    align-self: center;
  }
}

main > section > h1 > em {
  font-style: normal;
  color: var(--color-dunkinorange);
}

main > section > section:nth-child(n + 4):nth-child(-n + 7) {
  display: grid;
  grid-template: 1fr 1fr / 1fr 3fr;
  align-items: center;
  align-self: center;
  height: 8em;
  background-color: var(--color-white);
}

@media (min-width: 576px) {
  main > section > section:nth-of-type(4) {
    grid-area: 6/5/8/7;
  }
  main > section > section:nth-of-type(5) {
    grid-area: 8/3/10/6;
  }
  main > section > section:nth-of-type(6) {
    grid-area: 10/5/12/7;
  }
}
main > section > section:nth-child(n + 4):nth-child(-n + 7) img {
  grid-area: 1/1/3/2;
  justify-self: center;
  background-color: var(--color-dunkinpink);
  height: 4em;
  padding: 0.5em;
  border-radius: 50%;
}

main > section > section:nth-of-type(5) img {
  background-color: var(--color-dunkinorange) !important;
}

main > section > section:nth-child(n + 4):nth-child(-n + 7) h2 {
  color: var(--color-dunkinpink);
  font-size: 1.5em;
  margin: 0.5em;
  text-transform: uppercase;
  word-spacing: -0.35em;
  line-height: 1em;
}
main > section > section:nth-child(n + 4):nth-child(-n + 7) p {
  font-size: 0.75em;
  margin: 0 1em;
  align-self: start;
  color: var(--color-gray-txt);
}

main > section > section:nth-of-type(6) h2 {
  grid-area: 1/2/3/3;
  justify-self: center;
  align-self: center;
  margin: auto 0;
}
