html {
  overflow-x: hidden;
  display: static;
}
*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@import url("https://fonts.googleapis.com/css2?family=Paytone+One&display=swap");

button,
summary {
  cursor: pointer;
}

:root {
  --website-background: #f8b133;
  --text-kaders: #ececec;
  --text-color: #42210b;
  --shadows: #c18b34;

  --card-color: #333;
  --card-background: #fff;
  --card-background-accent: gold;
}

body {
  max-height: fit-content;
  /* overflow: hidden; */
  background: var(--website-background);
  position: static;
  display: inline-block;
}

a{
  text-decoration: underline;
  color: #42210b;
  font-family: monospace;
}

a[href^="mailto:"]
{ 
  text-decoration: underline;
  color: #42210b;
  font-family: monospace;
}
a[href^="mailto:"]
{ text-decoration: underline;
  color: #42210b;
  font-family: monospace;
  }


p {
  font-family: monospace;
  color: var(--text-color);
  line-height: 1.8em;
}

h1,
h2 {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: bolder;
  color: var(--text-color);
  font-size: 2em;
}

header {
  width: 100vw;
  height: 15vh;
  z-index: 100;
}

nav {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-kaders);
  transform: translateX(-100%);
  transition-duration: 0.3s;
  z-index: 100;
}

nav ul {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  list-style: none;
  text-align: center;
  z-index: 100;
}

nav a {
  text-decoration-line: none;
  font-family: "Paytone One", sans-serif;
  color: var(--text-color);
  font-size: 3em;
  line-height: 2em;
  text-transform: uppercase;
  z-index: 100;
}


nav.open {
  transform: translateX(0%);
  z-index: 100;
}

header > button {
  position: absolute;
  left: 5em;
  top: 2em;
  width: 10em;
  height: 5em;
  appearance: none;
  border-style: none;
  border-radius: 0.5em;
  box-shadow: 5px 5px 0 2px var(--shadows);
  background-color: white;
  appearance: none;
  /* visibility: hidden; */
}
header nav button { /*hidden nav buton*/
  position: absolute;
  left: 50%;
  top: 15%;
  transform: translate(-50%, -50%);

  width: 10em;
  height: 5em;
  appearance: none;
  border-style: none;
  border-radius: 0.5em;
  background-color: var(--text-color);
  color: var(--text-kaders);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1em;
}

main {
  position: static;
  width: 100vw;
  max-height: fit-content;
  margin-bottom: 10%;
}

main > img:nth-of-type(1) {
  /*****first flower**********/
  position: absolute;
  width: 20%;
  top: 60vh;
  left: 1vw;
  animation: mymove 5s infinite;
}




@keyframes mymove {
  50% {transform: rotate(180deg);}
}


main > img:nth-of-type(2) {
  /*****lollypop**********/
  position: absolute;
  width: 20%;
  top: 60vh;
  left: 70vw;
  z-index: 4;
  animation: zoom-in-zoom-out 1s ease infinite;
}



@keyframes zoom-in-zoom-out {
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.05, 1.05);
  }
  100% {
    transform: scale(1, 1);
  }
}



/********** begin introductie  ********/

#introductie {
  display: grid;
  /* grid-template-columns:1fr 1fr; */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16em), 1fr));
  grid-gap: 1em;
  grid-auto-flow: dense;
  width: 80vw;
  height: 100vh;

  margin-left: auto;
  margin-right: auto;
}

main section:first-of-type section:first-of-type {
  /* tekstje overmijzelf kader*/
  background-color: white;
  /* width: 50vh;
  height: 20vw; */
  /* position: relative;
  top: 60%;
  left: 10%; */

  grid-column-start: 1;
  grid-row-start: 2;
  aspect-ratio: 3/1;
  border-style: none;
  box-shadow: 5px 5px 0 2px var(--shadows);
  text-align: center;
  border-radius: 00.5em;
  padding: 5% 5% 5% 5%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}



main section:first-of-type section:nth-of-type(2) {
  /* contact info kader*/
  background-color: white;
  /* width: 40vh;
    height: 10vw; */

  /* position: relative;
    top: 40%;
    left: 50%; */

  grid-column-start: 2;
  grid-row-start: 2;
  aspect-ratio: 3/1;
  border-style: none;
  box-shadow: 5px 5px 0 2px var(--shadows);
  text-align: center;
  border-radius: 00.5em;
  /* padding: 5% 1% 1% 1%; */
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#grid-contact{
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
  flex-wrap: wrap;
 
}

#imgcontact{
  width: 100%;
  /* height: fit-content; */
 
}

#grid-contact a{
  width: 50%;
  height: 50%;
}

main > section img:first-of-type {
  /* position: absolute;
  left: 45%;
  top: 5%; */
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  grid-column-start: 1;
  grid-row-start: 1;
  /* justify-self: end;
align-self: start; */
}

main > section img:nth-of-type(2) {
  /* position: absolute;
  left: 45%;
  top: 5%; */
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  grid-column-start: 2;
  grid-row-start: 1;
  /* justify-self: end;
align-self: start; */
}

/****************einde introductie********************************/

#testgrid {
  display: grid;
  /* grid-template-columns:4fr 3fr 2fr; */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16em), 1fr));
  grid-gap: 1em;
  grid-auto-flow: dense;

  margin-top: 10vh;
  width: 80vw;
  margin-left: auto;
  margin-right: auto;
}

article {
  position: relative;
  background-color: var(--card-background);
  color: var(--card-color);
  padding: 1em;
  border-radius: 00.5em;
}

article > section {
  visibility: hidden;
  position: absolute;
  top: 1em;
  right: 1em;
  bottom: 1em;
  left: 1em;
  background-color: var(--card-background);
  color: var(--card-color);
  padding: 1em;
  z-index: 2;

  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction: column;
  text-align: center;
}

article:hover > section{
  visibility: visible;
  position: absolute;
  top: 1em;
  right: 1em;
  bottom: 1em;
  left: 1em;
  background-color: var(--card-background);
  color: red;
  padding: 1em;
  z-index: 3;

  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction: column;
  text-align: center;
}


article:first-child {
  /* background-color:var(--card-background-accent); */
  grid-column: 1/-1;
  text-align: center;
}

/* article:nth-of-type(4n) {
  grid-column: span 3;
}

article:nth-of-type(3n) {
  grid-column: span 2;
} */

article:nth-child(2) img {
  object-fit: cover;
  object-position: 40% 10%;
}

#testF {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

article h2 {
  margin: 0 0 0.25em;
  line-height: 1.1em;
}

article p {
  margin: 0;
}

/* main > section:nth-of-type(2) {
  position: relative;
  display: flex;
  width: 80vw;
  height: 100vh;
  flex-direction: column;
  margin-left:auto;
  margin-right: auto;
}

main section:nth-of-type(2) section:first-of-type {
  border-style: none;
  width: 100%;
  height: 20%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
} */

/* #eersteRijProjecten {
  
  width: 100%;
  height: 60%;
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  align-items: center;
  flex-direction: row;
  justify-content: space-around;
}
#eersteRijProjecten section {
  width: 20%;
  height: 40%;
  background-color: var(--text-kaders);
  border-style: none;
  border-radius: 1em;
} */

@media only screen and (max-width: 670px) {
  body {
    height: fit-content;
  }

  header {
    width: 100vw;
    height: 15vh;
    z-index: 100;
  }




  main > img:nth-of-type(1) {
    /*****first flower**********/
    position: absolute;
    width: 20%;
    top: 83vh;
    left: 1vw;
  }

  main > img:nth-of-type(2) {
    /*****first flower**********/
    
    position: absolute;
    width: 30%;
    top: 60vh;
    left: 70vw;
    z-index: 4;

  }

  #introductie {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 80vw;
    height: 130vh;
    margin-left: auto;
    margin-right: auto;
  }

  main section:first-of-type section:first-of-type {
    /* tekstje overmijzelf kader*/
    background-color: white;
    /* width: 50vh;
    height: 20vw; */
    /* position: relative;
    top: 60%;
    left: 10%; */

    width: 100%;
    /* aspect-ratio: 2/1; */
    border-style: none;
    box-shadow: 5px 5px 0 2px var(--shadows);
    text-align: center;
    border-radius: 00.5em;
    padding: 5% 5% 5% 5%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #testgrid {
    display: flex;
    justify-content: center;
    flex-direction: column;

    margin-top: 5vh;
    width: 80vw;
    margin-left: auto;
    margin-right: auto;
  }

  /* main section:first-of-type {
    
    display: block;
    width: 100vw;
    height: 150vh;
    border-style: solid;
    display: flex;
    flex-direction: column;
    background-color: lime;
}

  main section img {
    position: absolute;
    left: 30%;
    top: 20%;
    width: 50%;
  }

  main section:first-of-type section:first-of-type {
    background-color: var(--text-kaders);
    width: 50vh;
    height: 30vw;
    
    
    
    border-style: none;
    box-shadow: 5px 5px 0 2px var(--shadows);
    text-align: center;
    border-radius: 0.5em;
    display: flex;
    align-items: center;
  }




  main section:first-of-type section:nth-of-type(2){
    background-color: var(--text-kaders);
    width: 40vh;
    height: 10vw;
    
   
    border-style: none;
    box-shadow: 5px 5px 0 2px var(--shadows);
    text-align: center;
    border-radius: 00.5em;
    padding: 5% 1% 1% 1%;
    z-index: 3;
}




  main section:nth-of-type(2) {
    position: relative;
    display: flex;
    width: 100vw;
    height: 200vh;
    
    flex-direction: column;
  }

  #eersteRijProjecten  {
    
    width: 100%;
    height: 80%;
    display: flex;
    align-items: center;
    
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: space-around;
  }

  #eersteRijProjecten  section {
    width: 60%;
    height: 20%;
    background-color: var(--text-kaders);
    border-style: none;
    border-radius: 1em;
  } */
}

footer{
  background-color: white;
  width: 100%;
  height: 5vh;
  text-align: center;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
}