.rosterHeroImg {
  width: 100%;
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.3), 
      rgba(0, 0, 0, 0.3)), 
    url("images/roster/groupPhoto.jpeg");
  height: 75vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 40%;
}

/* moving cards */
.rosterContainer {
  /*position: relative;*/
  align-items: center;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  padding: 0px;
  margin: 0px 10px;
  z-index: 1;
}

.rosterContainer .card {
  position: relative;
  flex-basis: 22.5%;
  min-width: 300px;
  height: 215px;
  background-color: var(--clr-white);
  margin: 125px 30px 20px 30px;
  padding: 20px 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  transition: 0.3s ease-in-out;
  border-radius: 15px;
}
.rosterContainer .card:hover {
  height: 320px; /* Height of the white background when expanded */
}

.rosterContainer .card .image {
  position: relative;
  top: -50%;
  align-self: center;
  z-index: 1;
}

.rosterContainer .card .image img {
  max-width: 100%;
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.rosterContainer .card .content {
  position: relative;
  top: -160px;
  padding: 10px 15px;
  color: var(--clr-black);
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease-in-out; 
}

.rosterContainer .card:hover .content {
   margin-top: 30px;
   visibility: visible;
   opacity: 1;
   transition-delay: 0.2s;
}

@media screen and (max-width: 750px) {
  .rosterContainer {
    scale: 0.9;
    transition: 0.3s ease-in-out; 
    margin: 0px 5px;
  }
  .rosterContainer .card {
    margin: 125px 20px 20px 20px;
  }
}

@media screen and (max-width: 700px) {
  .specialRosterContainer .flex {
    flex-direction: column;
    text-align: center;
  }

  .coach {
    width: 100%;
    max-width: 350px;
    height: 400px;
    margin: 20px auto 0 auto;
    order: 2;
  }

  .rosterText {
    max-width: 100%;
    order: 1;
  }

  .ucsbLogo {
    width: 100%;
    margin: 0 auto;
  }
}

h3 {
  font-size: var(--fs-500);
  font-weight: var(--fw-bold);
}

.coach {
  width: 350px;
  height: 400px;
  margin-right: 20px;
  object-fit: cover;
  border-radius: 15px;
}

.parentCoordinator {
  width: 350px;
  height: 400px;
  margin-right: 0px;
  margin-left: 20px;
  object-fit: cover;
  border-radius: 15px;
}

.rosterText {
  max-width: 60%;
}

.specialRosterContainer {
  justify-content: space-between;
}

.ucsbLogo {
  width: 50%;
}

@media screen and (max-width: 500px) {
  .specialRosterContainer .flex {
    flex-direction: column;
    text-align: center;
  }

  .coach {
    width: 100%;
    max-width: 350px;
    height: 400px;
    margin: 20px auto 0 auto;
  }

  .rosterText {
    max-width: 100%;
  }

  .ucsbLogo {
    width: 50%;
    margin: 0 auto;
  }
}