@charset "utf-8";

body {
  background-color: #dbdbdb;
  margin: 0;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: opacity 0.25s ease;
  overflow-x: hidden;
} 

.containerx {
  display: flex;
  flex-direction: row;
  position: relative;
  justify-content: space-around;
  height: calc(95vh - 68px);
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
  /*   */
  
  /* position: absolute;
  top: 8vh;
  right: 2vw; */
  
}
.section_ {
  width: 30%;
  margin-top: 20px;
  padding: 30px;
  background-color: rgb(255, 255, 255);
  border-radius: 15px;
  box-shadow: 2px 5px 14px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}


.section_02_ {
  flex: 1;
  width: 90%;
  margin-top: 20px;
  padding: 20px;
  background-color: white;
  border-radius: 30px;
  box-shadow: 2px 5px 14px rgba(0, 0, 0, 0.1);
  max-height: 88vh;
  overflow-y: auto;
  margin-left: 5vw;
} 

.contact-button {
  width: 100%;
  height: 10vh;
  background-color: rgb(90, 90, 90);
  font-size: 1.6rem;
}

.contact-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.button-container {
  display: flex;
  justify-content: center;
}

button {   
  width: 29%;
  height: 6vh;
  background-color: rgb(106, 106, 106);
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  border-radius: 8px;
  margin: 0 5px;
  border: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-left: 4vw;
  margin-right: 4vw;
}

button:hover {
  background-color: rgb(124, 124, 124);
}


.button-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  justify-items: center;
}

.project-button {
  position: relative;
  overflow: hidden;
  border: 4px;
  background: none;
  cursor: pointer;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}



.project-button::after {
  content: '';
  display: block;
  padding-bottom: 100%;
}

.project-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.project-button:hover .project-image,
.project-button.active .project-image {
  transform: scale(1.1);
}

.title-bar {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 5px 0;
  font-weight: bolder;
}

.info-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgb(126, 126, 126);
  color: white;
  text-align: center;
  padding: 10px;
  height: 30%;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.project-button:hover .info-bar {
  transform: translateY(0);
  height: 30%;
}

.project-button.active .info-bar {
  transform: translateY(0);
  height: 30%;
}

.full-width {
  width: 100%;
  margin: 10px 0;
}

/* Media queries voor responsiviteit */

@media (max-width: 1200px) {
  .button-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Twee knoppen naast elkaar bij <1200px */
  }
}

@media (max-width: 800px) {
  .button-grid {
    grid-template-columns: 1fr;
    /* Één knop per rij voor smalle schermen */
  }

  .project-button {
    padding-bottom: 100%;
    /* Houdt de knoppen vierkant */
  }
}