/* Container for volunteers presentation with group photo and information */
.volonteers-presentation {
  max-width: 1450px;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 50px;
  gap: 50px;
  perspective: 1000px; /* Perspective effect */
}

/* Styles for team information */
.teamInfos {
  width: 450px;
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-style: preserve-3d; /* Children elements respect 3D transformation */
  opacity: 0;
  transform: translateX(-100%) rotateY(-180deg); /* Initial animation */
  animation: slideInFromLeft 1s ease forwards; /* Animation to reveal information */
  border: 1px solid var(--green-);
}

/* Hover animation for team information */
.teamInfos:hover {
  transform: scale(1.05); /* Enlargement on hover */
}

/* Transition animation */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%) rotateY(-180deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotateY(0);
  }
}

/* Styles for team picture */
.teamPicture {
  width: 100%;
  height: auto;
  box-shadow: 2px 2px 1px var(--pink-);
  transition: filter 0.3s ease, opacity 0.3s ease; /* Transition for filter and opacity */
  border: 1px solid var(--green-);
}

/* Styles for textual information */
.teamInfosTxt {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 14px;
  color: var(--greenContrast-);
  font-weight: 700;
  padding: 10px;
  background: rgba(15, 15, 15, 0.7);
  text-align: center;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Background for textual information */
.teamInfos::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  background: rgba(15, 15, 15, 0.7);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

/* Hover animation for textual information */
.teamInfos:hover .teamInfosTxt {
  opacity: 1;
  transform: translateY(0);
}

/* Hover animation for background */
.teamInfos:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Desaturation effect on hover for team picture */
.teamInfos:hover .teamPicture {
  filter: grayscale(100%);
}

/* Media Queries */

/* Adjustments for screens up to 1600px */
@media screen and (max-width: 1600px) {
  .volonteers-presentation {
    max-width: 1000px;
  }
  .teamInfos {
    width: 300px;
    height: auto;
  }
}



/* Adjustments for screens up to 800px */
@media screen and (max-width: 800px) {
  .volonteers-presentation {
    width: 750px;
  }
  .teamInfos {
    width: 300px;
    height: auto;
  }
}

/* Adjustments for screens up to 500px */
@media screen and (max-width: 500px) {
  .volonteers-presentation {
    width: 300px;
    gap: 30px;
  }
 
}
