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






/*********************/
/* CUSTOM PROPERTIES */
/*********************/
:root {
    /* startje */
    
    --color-background-pag2-pink:#E9C3B0;
    --color-background-pag2-darkyellow:#E7B956;
    --color-background-pag2-lightgreen:#D8DED7;
    --color-background-pag2-lightbrown:#DFBC9C;
    --color-background-pag2-lightyellow:#F3DAA5;

    --color-background-yellow:#FFDB05;
    --color-background-red:#CB500A;
    --color-background-blue:#057BC0;
    --color-background-green:#06853E;

    --color-background-white:#FFFFFF;
    --color-background-black:#000000;
    --color-background-darkgray:#4D4D4D;
    --color-background-lightgray:#F5F4F4;

    --color-background-sb:#F5F4F4;
--color-background-hover-sb-btn:#DFDFDF;
--color-background-hover-link: #F5F4F4;

--color-text-darkgray:#4D4D4D;
--color-text-black:#000000;
--color-text-white:#FFFFFF;

--font-size-normaal:0.7em;
--font-size-h2:0.9em;
--font-size-h3:0.9em;
--font-size-h1:1.2em;
--font-size-links:10px;

    
}

@font-face {
  font-family: "ikea font";
  src: url("../fonts/noto-ikea-700.woff2");
  font-weight: 700;
}

@font-face {
  font-family: "Ikea font";
  src: url("../fonts/noto-ikea-400.woff2");
  font-weight: 400;
}

/****************/
/* JOUW STYLING */
/****************/

/* jouw code */

/* main stuk hier beneden */

main {
margin-inline: auto;
width:min( 85em, 100% - 4em ); /* bron sanne */
}

main h2{
  margin-bottom: 0;
}
main img:nth-of-type(1){
  width: 100%;
  height: auto;

}

main video:nth-of-type(1){
  width: 100%;
  height: auto;
}



main section:nth-of-type(1) img video{
  display: flex;
  justify-content: space-between;
  align-items:center;

}

@media (width > 40em) {
  main section:nth-of-type(1) {
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:1em;
  }

  main section:nth-of-type(1) h1,
  main section:nth-of-type(1) h2,
  main section:nth-of-type(1) p {
    grid-column:1/-1; 
  }

}
main section:nth-of-type(1) p {
  line-height: 18px
}


/* swipe funtie met "nu bij IKEA"*/

main section:nth-of-type(2) ul {
  margin:0;
  padding:0;
  list-style-type:"";
  margin-top: 2em;

  display:flex;
  overflow-x:auto;
  gap:1em;
  
  scroll-snap-type:x mandatory;
  
  overscroll-behavior-x:contain; /* bron sanne */
}

main section:nth-of-type(2) li {
  scroll-snap-align:center;
  
  width:min(80%, 24em);
  flex-shrink:0;
  background: #027ABE;
  
  display:flex;
  flex-direction:column;
}

main section:nth-of-type(2) li:nth-of-type(1){
background-color: var(--color-background-yellow);
}

main section:nth-of-type(2) li img {
  width:100%;
  order:-1;
}

main section:nth-of-type(2) li h3 {
  margin:0;
  padding:2rem 2rem 0 2rem;
 font-size: var(--font-size-h3);
}

main section:nth-of-type(2) li p {
  margin:0;
  margin-bottom:auto;
  line-height: 1.7em;
  padding:0 2rem 0 2rem;
}

main section:nth-of-type(2) li a {
  padding:0 2rem 2rem 2rem;
}
main section:nth-of-type(2) {
  margin-bottom: 10em;
  font-family: "Ikea font";
}



main section:nth-of-type(2) a {
background-color: var(--color-background-black);
margin: 0;
font-family: "Ikea font";
font-weight: bold;
text-decoration: none;
color: white;
  width: 70px; 
  height: 70px; 
  line-height: 70px; 
  text-align: center; 
  border-radius: 50%;
  margin: 2em;
}
main section:nth-of-type(2) li:nth-of-type(2) {
background-color: var(--color-background-lightgray);

}

main section:nth-of-type(2) li:nth-of-type(3){
  color: var(--color-background-white);
}
main section:nth-of-type(2) li:nth-of-type(4){
  color: var(--color-background-white);
}



/* gedeelte met vrouw op de fiets */

main section:nth-of-type(3){
  margin-top: -6em;
}

main section:nth-of-type(3) article:nth-of-type(2) {
color: var(--color-text-white);
background-color: var(--color-background-green);
padding-top: 0.5em;
padding-bottom: 4em;
font-family: "Ikea font";

}


@media (width > 60em) {
  main section:nth-of-type(3) {
    display:grid;
    grid-template-columns: 1fr 1fr;
  }
}


main section:nth-of-type(3) a {
  text-decoration: none;
  background-color: var(--color-background-white);
  padding: 1em;
  font-weight: bold;
  border-radius: 5em;
font-size: 8px;
  margin: 3rem;
  padding-left: 2em;
  padding-right: 2em;
}

main section:nth-of-type(3) h3{
  margin: 3rem;
}
main section:nth-of-type(3) p {
  margin: 3rem;
  font-size: 14px;
  margin-top: -3em;
}


/* section met de ruimtes scroll functie */


main section:nth-of-type(4) img {
  width:12em; 
}

main section:nth-of-type(4) {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory; /*zorgt er voor dat de scroll functie blijft op de pagina en niet naar buiten trekt (gevraagt aan chatgpt) dus bron is chat gpt*/
  gap: 20px;
  }

  main section:nth-of-type(4) a {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);   /* hier kreeg ik niet mijn link in mijn afbeelding, hier heb ik het chat gpt gevraagd, dus bron chat gpt */
  font-size: var(--font-size-links);
    background-color: var(--color-background-lightgray);
 color: var(--color-text-black);
    text-decoration: none;
    padding: 1em;
    padding-left: 2em;
    padding-right: 2em;
    font-weight: 600;
    border-radius: 40em;
  }

main section:nth-of-type(4){
  display: flex;
}

main section:nth-of-type(4) article {
  position: relative;
}

/* section met dit mag je niet missen */

main section:nth-of-type(5) img {
  width:12em; 
}

main section:nth-of-type(5) {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory; /*zorgt er voor dat de scroll functie blijft op de pagina en niet naar buiten trekt (gevraagt aan chat gpt)*/
  gap: 20px;
  }

  main section:nth-of-type(5) a {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
   font-size: var(--font-size-links);
    background-color: var(--color-background-lightgray);
   color: var(--color-text-black);
    text-decoration: none;
    padding: 1em;
    padding-left: 2em;
    padding-right: 2em;
    font-weight: 600;
    border-radius: 40em;
  }

  main section:nth-of-type(5){
    display: flex;
  }
  
  main section:nth-of-type(5) article {
    position: relative;
  }



  /* belangrijke mededelingn stukje section */


main section:nth-of-type(6) p {
  color: rgb(85, 85, 85);
font-size: var(--font-size-normaal);
  line-height: 18px;
}

main section:nth-of-type(6) ul{
  color: rgb(85, 85, 85);
font-size: var(--font-size-normaal);
  line-height: 30px;
}


main section:nth-of-type(6) {
  display: grid;
  grid-template-columns: 1fr;
}




@media (width > 40em) {
  main section:nth-of-type(6) {
    grid-template-columns: 1fr 1fr;
  }
  main section:nth-of-type(6) h2, main section:nth-of-type(6) p, main section:nth-of-type(6) ul {
grid-column: 1/2;
  }
  main section:nth-of-type(6) img{
    grid-column: 2/3;
    grid-row: 1;
  }
}


/* powerbank melding stukje div, Ik heb er een div van gemaakt omdat de section niet werkt. Als ik een section aan roep in mijn main dan verspringt mijn section 4 in de main  dus ik doe het nu even met divs*/


main section:nth-of-type(7) {
 background-color: var(--color-background-darkgray);
color: var(--color-text-white);
  padding: 1em;
  padding-bottom: 5em;
 
}


main section:nth-of-type(7) a {
font-size: var(--font-size-links);
background-color: var(--color-background-lightgray);
  color: black;
  text-decoration: none;
  padding: 1em;
  padding-left: 2em;
  padding-right: 2em;
  margin-left: 1em;
  font-weight: 600;
  border-radius: 40em;}


main section:nth-of-type(7) li {
  color: #eee;
font-size: var(--font-size-normaal);
  margin: 2em;
  padding-bottom: 2em;

}


main section:nth-of-type(7) li b {
  font-weight: bold;
  text-decoration: underline;
}


/* gedeelte van de ideeen op basis van producten */



main section:nth-of-type(8) img {
  width: 300px;
  object-fit: cover;  
}


main section:nth-of-type(8) svg {
  width: 20px;
}

main section:nth-of-type(8) ul{
  display: flex;
  gap: 2em;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-left: -2.5em;
}


main section:nth-of-type(8) li {
list-style: none;
position: relative;
} 


main section:nth-of-type(8) div {
  display: flex;
  background-color: rgb(219, 219, 219, 0.8);
  width: fit-content;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 100px;
  gap: 5px;
  position: absolute;
  bottom: 20px;
  left: 10px;
}


main section:nth-of-type(8) div p {
  font-size: 10px;
}

main section:nth-of-type(8) ul li > svg:first-of-type{  /* ik kreeg de eerste svg niet aangesproken dus ik had aan chat gpt gevraagf heo ik dat het beste kan doen, dus bron is chat gpt */
position: absolute;
top: 10px;
left: 10px;
background-color: rgb(219, 219, 219, 0.8);
border-radius: 100px;
width: 30px;
padding: 5px;
}


  /* gedeelte service van IKEA De services */

main section:nth-of-type(9) img {
  width:15em;
  height: auto; 
  margin-top: 1em;

}
  
main section:nth-of-type(9) {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory; /*zorgt er voor dat de scroll functie blijft op de pagina en niet naar buiten trekt (gevraagt aan chat gpt)*/
  gap: 15px;

}


main section:nth-of-type(9) a {
  position: absolute;
  top: 80%;
  left:50%;
  transform: translate(-50%, -50%);
font-size: var(--font-size-links);
  color: black;
  background-color: rgb(251, 251, 251);
  text-decoration: none;
  padding: 1em;
  padding-left: 2em;
  padding-right: 2em;
  font-weight: 600;
  border-radius: 40em;
}

main section:nth-of-type(9){
  display: flex;
}

main section:nth-of-type(9) article {
  position: relative;
}


      /* button gedeelte */


main section:nth-of-type(10) {
  display: flex;
  overflow-x: auto; 
  scroll-snap-type: x mandatory; /*zorgt er voor dat de scroll functie blijft op de pagina en niet naar buiten trekt (gevraagt aan chat gpt)*/
  gap: 15px;
  margin-top: 1em;
  }

main section:nth-of-type(10)  a {
    font-size: var(--font-size-links);
    align-items: center;
    display: flex;
   background-color: var(--color-background-lightgray);
color: var(--color-text-black);
    text-decoration: none;
    padding-left: 2em;
    padding-right: 2em;
    padding-top: 0.3em;
    padding-bottom: 0.3em;
    font-weight: 600;
    border-radius: 5em;
    border: none;
    
  }
  main section:nth-of-type(10) a:hover {
    background-color: var(--color-background-hover-sb-btn);
  }



main section:nth-of-type(11) img {
  width: 45%;
  height: 100%;
}




main section:nth-of-type(11) img:nth-of-type(2) {
  height: 250px;
  object-fit: cover;
}


main section:nth-of-type(11){
  display: flex;
  gap: 15x;

flex-flow: row wrap;
justify-content: flex-start;
align-items: flex-start;

}



/* extra */

main a:nth-of-type(1) {
  list-style: none;
  color: black;
text-decoration: none;
border-bottom: solid 1px;
 padding-bottom: 1em;
 border-color: rgb(195, 195, 195);
 font-weight: bold;
font-size: var(--font-size-normaal);
}







main div {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto repeat(9, 1fr);
gap: 1em;
margin-top: 2em;
}


main img{
width: 100%;
}


main div img:nth-of-type(1){
  grid-column: 1/3;
  grid-row: 1/5;
}





main div img:nth-of-type(2){
  aspect-ratio: 1 / 1; 
  width: 100%; 
  height: auto; 
  object-fit: cover;
  grid-column: 3/5;
}



main div img:nth-of-type(3){
  grid-column: 1/3;
  grid-row: 3/8;
}

main div img:nth-of-type(4){
  grid-column: 3/5;
  grid-row: 2/7;
}

main div img:nth-of-type(5){
  grid-column: 1/3;
  grid-row: 7/11;
}

main div img:nth-of-type(6){
  grid-column: 3/5;
  grid-row: 6/12;
}




@media (min-width: 40em) {
  main div {
     grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: auto repeat(6, 1fr); 
      gap: 1em;
  }
}

@media (min-width: 40em) {
  main div img:nth-of-type(5) {
grid-column: 5/7;
grid-row: 1/3;
}

  }


  @media (min-width: 40em) {
    main div img:nth-of-type(6) {
  grid-column: 5/7;
  grid-row: 3/7;
  }
}