#backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: linear-gradient(
    rgba(180, 180, 180, 0.5),
    rgba(180, 180, 180, 0.5)
  );
  z-index: 100;
  align-items: center;
  justify-content: center;
}

#backdrop.show {
  display: flex;
  -webkit-animation: fadein 0.5s; /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 0.5s; /* Firefox < 16 */
  -ms-animation: fadein 0.5s; /* Internet Explorer */
  -o-animation: fadein 0.5s; /* Opera < 12.1 */
  animation: fadein 0.5s;
}

#team-modal {
  height: 85%;
  width: 90%;
  max-width: 1300px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0px 0px 20px 0px gray;
  display: flex;
}

#team-modal .modal-image {
  width: 40%;
  max-width: 530px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#team-modal .team-modal-content {
  flex: 2;
  position: relative;
  padding: 5.5rem 6rem 6rem 2rem;
  font-family: "open sans", sans-serif;
}

#team-modal .team-modal-content > img#top-leaf {
  top: 0;
  left: 5%;
  position: absolute;
}

#team-modal .team-modal-content > img#bottom-leaf {
  bottom: 0;
  right: 0;
  position: absolute;
}

#team-modal .team-modal-content > img#close-button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  cursor: pointer;
}

#team-modal .team-modal-content > .header {
  color: white;
  font-family: "Philosopher", sans-serif;
  width: 100%;
  background-color: #9dd34a;
  border-radius: 5px;
  display: flex;
  align-items: center;
}

#team-modal .team-modal-content > .header > .user-name {
  text-transform: uppercase;
  font-size: 3rem;
  font-weight: 400;
  margin: 0 1.5rem;
  width: 50%;
}

#team-modal .team-modal-content > .header > .profile-selector {
  margin-left: auto;
  display: flex;
  padding: 0.5rem;
  width: 55%;
}

#team-modal .team-modal-content .profile-images {
  width: 100%;
  display: flex;
  justify-content: space-around;
}

#team-modal .team-modal-content .profile-images > img {
  width: 55px;
  height: 55px;
  cursor: pointer;
  filter: contrast(0.5) brightness(1.5);
}

#team-modal .team-modal-content .profile-images > img.active {
  filter: none;
}

#team-modal .team-modal-content .profile-selector .arrow {
  cursor: pointer;
}

#team-modal .team-modal-content .text-card {
  border-radius: 5px;
  background-color: #eeeeee;
  overflow: hidden;
  border-left: 1rem solid #85ca51;
  margin: 1rem 0;
  display: flex;
  padding: 1rem;
  font-style: italic;
}

#team-modal .team-modal-content .text-card > img {
  height: 2rem;
}

#team-modal .team-modal-content .text-card > #modal-quote {
  margin-left: 1rem;
}

#team-modal .team-modal-content .text-card > #modal-quote > strong {
  text-transform: capitalize;
}

#team-modal .team-modal-content #modal-text {
  overflow: auto;
  max-height: 50%;
}

/* width */
::-webkit-scrollbar {
  width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(199, 199, 199);
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgb(177, 177, 177);
}
@media (max-width: 1024px) {
  #team-modal {
    height: 95%;
  }
  #team-modal .team-modal-content {
    position: relative;
    padding: 4rem 1rem 1rem 1rem;
    background-color: #fefefe;
    margin: unset;
    border: unset;
    width: unset;
    max-width: unset;
  }
  #team-modal .modal-image{
    display:none;
  }
  #team-modal .team-modal-content > .header{
    width: 100%;
  }
  #team-modal .team-modal-content > .header > .user-name{
    font-size: 1.3rem;
  }
  #team-modal .team-modal-content .profile-selector .arrow{
    display: none;
  }
  #team-modal .team-modal-content .profile-images > img {
    width: 45px;
    height: 45px;
  }
  #team-modal .team-modal-content #modal-text {
    overflow: auto;
    max-height: 42%;
    padding-right: 5%;
    margin-top: 5%;
    margin-left: 2%;
  }
}