* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.cardT-box {
  position: relative;
  width: 100%;
  perspective: 10000px;
  transform-style: preserve-3d;
  transform-origin: center center -500px;
  animation: rotateBox 20s linear infinite;
  height: 400px;
}

.cardT-box a {
  text-decoration: none;
}

@keyframes rotateBox {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

.cardT {
  background-color: white;
  transform-style: preserve-3d;
  perspective: 10000px;
  transform-origin: center center -500px;
  margin: 20px 0;
  position: absolute;
  top: 0;
  left: 50%;
}
.cardT::after {
  position: absolute;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 255);
  top: 0;
  left: 0;
  transform: translateZ(-2px);
}

.cardT:nth-child(1) {
  transform: translate(-50%, 0) rotateY(0deg);
}

.cardT:nth-child(2) {
  transform: translate(-50%, 0) rotateY(72deg);
}

.cardT:nth-child(3) {
  transform: translate(-50%, 0) rotateY(144deg);
}

.cardT:nth-child(4) {
  transform: translate(-50%, 0) rotateY(216deg);
}
.cardT:nth-child(5) {
    transform: translate(-50%, 0) rotateY(288deg);
  }
  
.cardT-img {
  width: 300px;
  height: 400px;
  background-size: cover;
}

.cardT-name {
  padding: 10px;
  font-size: 20px;
  color: rgb(76, 76, 77);
}

.cardT-author {
  padding: 10px;
  font-size: 18px;
  color: rgb(18, 5, 43);
}

@media (max-width: 400px) {
  .cardT-img {
    width: 200px;
    height: 280px;
  }
  .cardT-box {
    height: 280px;
  }
}
