@import 'https://fonts.googleapis.com/css?family=Raleway:100,600';
@import 'https://fonts.googleapis.com/css?family=Open+Sans:300';
html,
body {
  width: 100%;
  height: 100%;
}

/* body {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: #999;
  background-color: #fff;
} */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 20px 0;
  text-transform: none;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.5;
}

a:link,
a:active,
a:visited{
  /* color:rgba(255,255,255,1); */
}

a:hover{
  /* color:rgba(255,255,255,0.6); */
}

.gray {
  color: #a5a5a5;
}

.team{
  margin:40px;
}

.team-member {
  padding: 0;
}

.team-member figure {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.team-member-block {
  width: 100%;
display: flex;
flex-direction: row;
justify-content: space-around;
}




.team-member h4 {
  margin: 10px 0 0;
  padding: 0;
}

@media only screen and (min-width: 563px) {
  .team-member-size-adjust {
    height: 100vh;
  }
}
.team-member figcaption {
  padding: 10px;
  color: transparent;
  background-color: transparent;
  position: absolute;
  z-index: 996;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.team-member figure:hover figcaption {
  visibility: visible;
  color: #fff;
  background: rgba(231, 225, 224, 0.9);
  /* Primary color, can be changed via colors.css */
  
  height: 30%;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.team-member figure:hover figcaption ul li a:hover {
  color: rgba(49, 49, 49, .97);
}

.team-member figure img {
  -webkit-transform: scale(1) rotate(0) translateY(0);
  -moz-transform: scale(1) rotate(0) translateY(0);
  -o-transform: scale(1) rotate(0) translateY(0);
  -ms-transform: scale(1) rotate(0) translateY(0);
  transform: scale(1) rotate(0) translateY(0);
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.team-member figure:hover img {
  -webkit-transform: scale(1.1) rotate(1deg) translateY(12px);
  -moz-transform: scale(1.1) rotate(1deg) translateY(12px);
  -o-transform: scale(1.1) rotate(1deg) translateY(12px);
  -ms-transform: scale(1.1) rotate(1deg) translateY(12px);
  transform: scale(1.1) rotate(1deg) translateY(12px);
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.card {
  margin: 10px 10px;
  padding: 10px;
}
.card:hover .team-member{
  transform: rotateY(180deg);
}

.card:hover .team-member-back{
  transform: rotateY(0deg);
}


.team-member-back,.team-member{
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;	/* Chrome 和 Safari */
  -moz-backface-visibility:hidden; 	/* Firefox */
  -ms-backface-visibility:hidden;
  transform-style: preserve-3d;
  transition: ease-in-out 600ms;
  transform: perspective(1000px);
}

.team-member-back {

  padding: 20px 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #b6c7d9;
  transform: rotateY(-180deg);
}

.team-member-back p {
  font-size: 16px;
  color: black;
  margin-top: 5px;
}

.team-member-back div {
  font-size: 15px;
  text-align: center;
}
.team-member-right {
  padding-top: 40px;
  display: flex;
  justify-content: center;
}
.team-member-left p {
  text-align: justify;
}
