.projecten {
  width: 100%;
  height: 100%;
  margin-top: 20vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.h1Projecten {
  display: flex;
  width: fit-content;
  height: fit-content;
}

.projecten-cards {
  display: flex;
  width: 100%;
  max-width: 800px;
  height: fit-content;
  margin-top: 5vh;
  flex-direction: column;
  align-items: center;
  gap: 5vh;
  border: solid 1px white;
  border-radius: 10px;
  padding: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 50vh;
  border-radius: 10px;
  position: relative;
  align-items: center;
  padding: 5px;
}

.project-1 {
  width: 100%;
  height: 100%;
}

.background-project {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

#background-project-1 {
  background-image: url(../projecten/gijsmertens.com/afb/WhatsApp\ Image\ 2023-09-12\ at\ 12.05.47.jpg);
}

#background-project-2 {
  background-image: url(../projecten/retro-poster/poster-A3.png);
  background-size: 35% 100%;
}

#background-project-3 {
  background-image: url(../projecten/Ironreps/Ironreps.png);
}

.project-info {
  width: 98%;
  height: 50%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.673);
  opacity: 0;
  border-radius: 10px;
  transition: opacity 0.2s ease-in-out;
}

.project-1:hover ~ .project-info,
.project-info:hover {
  transition: opacity 0.2s ease-in-out;
  opacity: 1;
}

.icon-taal {
  width: 40px;
  height: 40px;
  border: solid 2px gray;
  background-color: rgba(128, 128, 128, 0.327);
  border-radius: 10px;
  padding: 5px;
}

.project-description {
  color: gray;
}

.technologies {
  display: flex;
  gap: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
  .projecten {
    margin-top: 3vh;
  }

  .projecten-cards {
    width: 80%;
    padding: 15px;
  }
  .card {
    height: 40vh;
  }

  .background-project-1 {
    background-position: right;
  }

  .project-info {
    padding: 5px;
    opacity: 1;
  }
  .project-description {
    font-size: 12px;
  }
  #background-project-2 {
    background-size: 32% 100%;
  }
}

@media (max-width: 500px) {
  .projecten {
    margin-top: 7vh;
  }

  .projecten-cards {
    width: 90%;
    padding: 10px;
  }
  .card {
    height: 35vh;
  }

  .background-project-1 {
    background-position: right;
  }

  .icon-taal {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    padding: 1px;
  }
  .project-info {
    padding: 5px;
    opacity: 1;
  }

  .project-title {
    font-size: 15px;
  }

  .project-description {
    font-size: 10px;
  }

  #background-project-2 {
    background-size: 45% 100%;
  }
}

@media (max-width: 300px) {
  .projecten {
    margin-top: 5vh;
  }
  .projecten-cards {
    width: 95%;
    padding: 5px;
  }
  .card {
    height: 30vh;
  }
  .icon-taal {
    width: 25px;
    height: 25px;
  }
  .project-info {
    padding: 5px;
    opacity: 1;
  }
  .project-description {
    font-size: 8px;
  }

  #background-project-2 {
    background-size: 50% 100%;
  }
}
