@font-face {
  font-family: Butler_Black;
  font-weight: 700;
  src: url(./asset/font/Agatho_Bold.otf) format("truetype");
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: Butler_Ultra_Light;
  font-weight: 700;
  src: url(./asset/font/Agatho_Regular.otf) format("truetype");
  text-rendering: optimizeLegibility;
}

* {
  padding: 0;
  margin: 0;
}

body{
  background: linear-gradient(to right,#D8584D,#F0907C);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold!important;
}

.description {
  position: relative;
  top: 0;
  width: 100%;
  height: 100vh;
  background-color: linear-gradient(to right,#D8584D,#F0907C);
}
.content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20%;
  height: 25%;
}

.cards-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  left: 35%;
  
  width: 60%;
  top: 0vh;
  position: relative;
  background: linear-gradient(to right, #e06c5d, #F0907C);

}

.card-box {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  top: 100px;
  width: 100%;


  background:transparent;

}

.ins-mem {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.75rem;
  font-weight: bold;
  background: #c6494e;
  color: wheat;
  width: 35%;
  height: 50px;
  margin-top: 10px;
  border-radius: 5px;
}

.card {
  perspective: 500px;
  background-color: #f0907c;

  border-radius: 10px;
  position: relative;
  flex: 1;
  display: block;
  margin: 0 2% 0 2%;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}


.card-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.info {
  width: 100%;
  height: 86%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.head-sculpture {
  margin: 0;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}

.head-sculpture img {
  max-width: 95%;
  /* 图片的最大宽度为父元素宽度 */
  max-height: 75%;
  /* 图片的最大高度为父元素高度 */
  width: auto;
  /* 图片宽度自适应 */
  height: auto;
  /* 图片高度自适应 */
  margin: 0;
  border-radius: 5%;
  position: relative;
  top: -2%;
}

.card .card-content .info .rief-introduction {
  text-align: center;
  width: 100%;
}

.card .card-content .info .rief-introduction .name {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1.5vw;
  display: normal;
  color: wheat;
}

.card .card-content .info .rief-introduction .job {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2vw;
  display: block;
}

.card .front {
  opacity: 1;
  position: absolute;
  z-index: 1;

  transition: 0.5s;

  backface-visibility: hidden;
}

.card:hover .front {
  transform: rotateY(-180deg);
}


.card .opposite {
  transform: rotateY(180deg);
  backface-visibility: hidden;
  transition: 0.5s;
  opacity: 1;
  position: absolute;
  z-index: 1;

}

.card:hover .opposite {
  transform: rotateY(0deg);

}



.opposite .head-sculpture img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
}


.btn {
  width: 70%;
  height: 13%;
  border: 2px solid #000;
  border-radius: 50px;

  cursor: pointer;
  background-color: rgb(183, 211, 232);
  font-size: 3vw;
  font-family: Butler_Black;
  transition: 0.5s;
}

.btn:hover {
  background-color: rgb(200, 229, 252);
}

.flip-left {
  animation: flip-left 0.5s linear both;
}

.flip-right {
  animation: flip-right 0.5s linear both;
}

@keyframes flip-left {
  0% {
    transform: translateX(0) rotateY(0) scale(1);
    transform-origin: 0% 50%;
  }

  50% {
    transform: translateX(-50%) rotateY(90deg) scale(1.1);
    transform-origin: 50% 50%;
  }

  100% {
    transform: translateX(-100%) rotateY(180deg) scale(1);
    transform-origin: 100% 50%;
  }
}

@keyframes flip-right {
  0% {
    transform: translateX(0) rotateY(0) scale(1);
    transform-origin: 100% 50%;
  }

  50% {
    transform: translateX(50%) rotateY(-90deg) scale(1.1);
    transform-origin: 50% 50%;
  }

  100% {
    transform: translateX(100%) rotateY(-180deg) scale(1);
    transform-origin: 0% 50%;
  }
}

.bigcardbox {

  width: 27%;
  height: auto;
  position: absolute;
  left: 3%;
  top: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;


}

.bigcard {
  position: absolute;
  height: 100%;
  opacity: 0;
  border-radius: 2%;
  display: flex;
  background-color: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
  z-index: 1;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.backpic {

  z-index: 1;
  flex: 0;
  display: flex;
  justify-content: center;
  align-items: center;

}

.backpic img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
}

.people {

  z-index: 2;
  top: 8%;
  position: absolute;
  width: 100%;
  height: 65%;
  display: flex;
  justify-content: center;
  align-items: center;

}





.bigcard .people img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 5%;
  padding: 10px;
  background-color: transparent;
  flex: 0;

}

.bigcard-name {
  z-index: 2;
  font-family: Arial, Helvetica, sans-serif;
  font-weight:unset;
  font-size: 1.8vw;
  background-color: transparent;
  border-radius: 3%;
  position: absolute;
  left: 2%;
  top: 1.5%;
  flex: 0;
  height: 6.5%;
  color: rgb(232, 90, 78);
}

.bigcard-job {
  width: 62%;
  position: absolute;
  border-radius: 10px;
  padding: 1%;
  top: 69%;
  flex: 0;
  z-index: 222;
  font-size: 2vw;
  height: 2vw;
  background: #f0907c;;
  color: wheat;
  text-align: center;
}
.bigcard-job p{
  position: relative;
  top: -15%;
}
.bigcard-job img {
  float: right;
  height: 150%;
  position: relative;
  top: -30%;
  width: auto;
  background-color: transparent
}

.bigcard-intro {
  width: 80%;
  flex: 0;

  margin: 1%;
  height: 22%;
  padding: 5px;
  z-index: 22222;
  text-align: justify;
  text-align-last: left;
  position: absolute;
  font-size: 1vw;
  color: rgb(232, 90, 78);
  background-color: transparent;
  border-radius: 5px;
  top: 75%
}
