/* Header image and button container*/

.home-container {
  display: grid;             /* Use CSS Grid */
  grid-template-columns: repeat(auto-fit, minmax(20vw, 0fr)); /* Automatically fit as many columns as possible */
  justify-content: center;   /* Center the grid items horizontally */
  align-content: center;     /* Center the grid items vertically */
  grid-gap: 45px;            /* Space between grid items */
  margin-top: 75px;
}

.content-border {
  padding: 15px;
  padding-bottom: 10px;
  padding-left: 30px;
  padding-right: 30px;
}

.home-content {
  display: flex;
  flex-direction: column; /* Stack the content vertically */
  justify-content: space-between; /* Space out elements from top to bottom */
  width: 16vw;
  text-align: center;
}

.home-content h3 {
  font-weight: bold;
  color: black;
  font-size: 26px;
  margin: 0;
  margin-top: -20px;
  margin-bottom: 20px;
}

.jaar-container h3 {
  margin-bottom: 7px;
  font-size: 20px;
}

.home-content img {
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.films-maken, .video-techniek, .after-effects, .rekenen {
  background-position: top center;
  background-size: contain;
  background-repeat: no-repeat;
}

.jaar-container {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center the buttons inside the container */
  margin-top: auto;        /* Push the buttons to the bottom */
  margin-left: -33.2px;
  margin-right: -33.2px;
  padding-bottom: 15px;
  padding-top: 25px;
  margin-bottom: -15px;
  border-radius: 0px 0px 5px 5px;
  margin-top: -1px;
  z-index: 0;
  border: 3.5px solid black;
  background-color: #F4D5EA;
}

.jaar-button-container {
  display: flex;
  justify-content: center; /* Center the buttons inside the container */
  margin-left: -33.2px;
  margin-right: -33.2px;
  margin-bottom: -3px;
  margin-top: -1px;
  z-index: 0;
}

.periode-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px!important;            /* Set a fixed width */
  height: 45px!important;           /* Set a fixed height to make it a circle */
  border-radius: 50%;     /* This makes the element a circle */
  text-align: center;     /* Center text inside the button */
  margin: 0 10px;          /* Add some margin between the buttons */
  font-size: 100%;        /* Adjust font size as needed */
  text-decoration: none;  /* Remove underline from links */
}



@media screen and (max-width: 1200px) {

.home-container {
  grid-template-columns: repeat(auto-fit, minmax(35vw, 0fr)); /* Automatically fit as many columns as possible */
  grid-gap: 30px;            /* Space between grid items */
  margin-bottom: 50px;
  align-content: normal;
  margin-top: 25px;
}

.home-content {
  width: 30vw;
}

}

@media screen and (max-width: 992px) {

.home-container {
  grid-template-columns: repeat(auto-fit, minmax(35vw, 0fr)); /* Automatically fit as many columns as possible */
  grid-gap: 50px;            /* Space between grid items */
  margin-bottom: 50px;
}

.home-content {
  width: 30vw;
}

}

@media screen and (max-width: 768px) {

.home-container {
  grid-template-columns: repeat(auto-fit, minmax(80vw, 1fr)); /* Automatically fit as many columns as possible */
  grid-gap: 50px;            /* Space between grid items */
}

.home-content {
  width: 70vw;
}

.periode-button {
  width: 45px;
  height: 45px;
}

}

