* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body,html {
    width: 100vw;
    height: 100vh; 
}
body {
    background-image: url(../images/background.jpg);
    background-repeat: no-repeat;
    background-size: 100%;
}

.sence {
    perspective: 2000px;
}

.cards {
    width: 200px;
    height: 300px;
    cursor: pointer;
        position: relative;
    transform-style: preserve-3d;
    animation: spin 30s linear infinite;
    text-align: center;
    margin-top: 150px;
    margin-left: auto;
    margin-right: auto;
    
}


@keyframes spin {
  from {
    transform: rotateY(0);
    }
  to {
    transform: rotateY(-360deg); }
    }
.cards:hover {
  animation-play-state: paused;
  }

.card {

  cursor: pointer;
  position: absolute;

  width: inherit;
  height: inherit;
  position: absolute;
  border-radius: 4px;
    /*background-size: contain;
    background-repeat: no-repeat;*/
  
}

.card-inner {
  width: inherit;
  height: inherit;
  position: relative;
  transition: 0.5s;
  transform-style: preserve-3d;
}
.font,.back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 6px;
  border: 1px solid DarkKhaki;
}
.font {
  background: LightGoldenrodYellow;
  transform: rotateY(180deg);
}
.back {
  background: LightGoldenrodYellow;
  transform: rotateY(0);
}

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

.img {
    position: absolute;
    width: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-left: auto;
    margin-right: auto;
}

.name {
    padding: 30px 0 0;
    font-size: 30px;
    text-align: center;
    color: LightSkyBlue;
}

.detial {
    padding: 25px;
    font-size: 16px;
    color: LightSkyBlue;
}