/* tekst in banner op homepag */
.welkom-text {
  position: absolute;
  top: 50%; /* Plaats de tekst in het midden van de afbeelding verticaal */
  left: 50%; /* Plaats de tekst in het midden van de afbeelding horizontaal */
  transform: translate(-50%, -50%);
}

/* tekst onder titel in banner op homepag */
.hometekst {
  font-size: 2.125rem;
  color: var(--background-color);
  font-family: var(--alternate-fonts-type);
}
.hoofd {
  font-family: var(--alternate-fonts-type);
  font-size: 3.125rem;
}
@media screen and (max-width: 400px) {
  .hometekst {
    font-size: 1.3rem;
  }
  .hoofd {
    font-size: 2.5rem;
  }
}
@media screen and (max-width: 350px) {
  .hometekst {
    font-size: 1.1rem;
  }
  .hoofd {
    font-size: 1.8rem;
  }
}
@media screen and (max-width: 600px) {
  #workshops-container {
    grid-template-columns: repeat(
      auto-fit,
      300px
    ); /* Ensure at least 300px wide, but fill the available space */
  }

  /* Limit maximum columns to 4 */
  @media (min-width: 1200px) {
    #workshops-container {
      grid-template-columns: repeat(auto-fit, 300px, 1fr);
      max-width: 1200px; /* Limit container width to ensure at most 4 columns */
    }
  }
}

/* categorieblokjes op homepagina */
.categoriën-home,
.bonnen-home {
  display: flex;
  flex-wrap: wrap;
}
#workshops-container,
.pijlers-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px);
  gap: 20px; /* Adjust gap between items */
  width: 90%;
  margin: auto;
  justify-content: center; /* Center the grid items horizontally */
}
.pijlers-home {
  grid-template-columns: repeat(4, 1fr);
}

/* For smaller screens, display 2 items per row */
@media (max-width: 1200px) {
  .pijlers-home {
    grid-template-columns: repeat(2, 1fr);
    width: 70%;
  }
}

/* For very small screens, display 1 item per row */
@media (max-width: 700px) {
  .pijlers-home {
    grid-template-columns: 1fr;
    width: 90%;
  }
}
.categorie {
  position: relative;
}
.workshop-card img {
  width: 90%;
  height: 60%;
  object-fit: cover;
}
.workshop-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  
}
.workshop-card,
.pijler {
  text-align: center;
  padding: 20px;
  border: 1px solid #ccc;
  position: relative;
  max-width: 300px;
  transition: transform 0.3s, border-image 0.3s;
}
.workshop-card {
  padding: 0;
}
.categorie,
.bon,
.pijler {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 1px solid #ccc;
  height: 400px;
  display: flex; /* Maak de div een flex container */
  flex-direction: column; /* Stapel de elementen in de div verticaal op */
  align-items: center; /* Centreer de elementen horizontaal */
  position: relative;
  font-family: var(--fonts-type);
  margin: 15px;
  border: none;
  background-size: cover;
  transition: transform 0.3s, border-image 0.3s;
}
.cadeaubon {
  background-color: var(--alternate-background-color);
}
#initiatie {
  background-image: url("../img/initiatie5.jpg"),
    linear-gradient(rgba(109, 17, 5, 0), rgba(109, 17, 5, 0));
  background-blend-mode: overlay;
}
#lessenreeks {
  background-image: url("../img/verf.webp"),
    linear-gradient(rgba(109, 17, 5, 0), rgba(109, 17, 5, 0));
  background-blend-mode: overlay;
}
#meerdaagse {
  background-image: url("../img/Klei_gezellig.JPG"),
    linear-gradient(rgba(109, 17, 5, 0), rgba(109, 17, 5, 0));
  background-blend-mode: overlay;
}
#creatiefmetklei {
  background-image: url("../img/kleibollen4.JPG"),
    linear-gradient(rgba(255, 0, 0, 0), rgba(255, 0, 0, 0));
  background-blend-mode: overlay;
}
.categorie:hover {
  border-image: fill 1
    linear-gradient(rgba(109, 17, 5, 0.5), rgba(109, 17, 5, 0.5));
  transform: scale(1.05);
}
@media (hover: none) {
  .categorie {
    border-image: fill 1 linear-gradient(rgba(0, 0, 0, 0.3), rgb(0, 0, 0, 0.3));
  }
}
.titel-vakje {
  color: var(--background-color);
  font-family: var(--alternate-fonts-type);
  font-size: 1.5rem;
  margin: 10px 0;
}
/*
.categorie:hover .titel-vakje {
    color: var(--background-color);
    font-family: var(--alternate-fonts-type);
    font-size: 1.5rem;
}*/
/* .uitleg-vakje {
    display: none;
    color: var(--alt-text-color);
    font-size: 1rem;
} */
/*
.categorie {
    width: 100%;
    height: 400px;*/ /* hoogte van de div */
/* background-size: cover;*/ /* past de afbeelding in de div zonder bijsnijden */
/* background-position: center; 
}*/
.bon {
  width: 100%;
  height: 400px; /* hoogte van de div */
  background-size: cover; /* past de afbeelding in de div zonder bijsnijden */
  background-position: center;
}
@media screen and (max-width: 275px) {
  #workshops-container,
  .pijlers-home {
    grid-template-columns: repeat(auto-fit, 100%);
  }
}
