*::before,
*::after {
  box-sizing: border-box;
}

* {
  font-family: "Times New Roman", Times, serif;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

body {
  background-color: black;
}

.card_container {
  perspective: 500px;
  height: 350px;
  width: 250px;
  margin: 100px auto;
}

.card {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s ease-in-out; /*time take to rorate*/
}

.card_container:hover .card {
  transform: rotateY(180deg);
}

.frontcard,
.backcard {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 1);
}

.frontcard {
  background-color: white;
  padding: 20px;
}

.frontcard img {
  /*descendent chlid*/
  height: 75px;
  width: 200px;
  margin: 65px auto;
  display: block;
  max-width: 80%;
}

.backcard {
  position: relative;
  padding: 2px;
  border-radius: 15px;
  background: #38cc25;
  background: linear-gradient(
    159deg,
    rgba(56, 204, 37, 1) 0%,
    rgba(9, 9, 121, 1) 43%,
    rgb(18, 44, 30) 61%,
    rgba(0, 212, 255, 1) 76%,
    rgb(33, 9, 86) 88%,
    rgb(107, 200, 20) 100%,
    rgba(0, 212, 255, 1) 100%
  );
  transform: rotateY(180deg);
  animation: flow-border 3s linear infinite;
  background-size: 300% 300%;
}

.backcard_content {
  background-color: black;
  color: white;
  border-radius: 13px;
  padding: 16px 20px 12px 20px;
  height: 100%;
  overflow-y: hidden;
  text-align: left;
}

.name {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgb(219, 230, 235);
  text-transform: uppercase;
  font-size: 300;
}

.title {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0;
}

.description {
  color: white;
  margin-bottom: 10px;
  font-size: 15px;
}

strong {
  color: #306eba;
}

.btm {
  padding: 6px 12px;
  border: 1px solid green;
  background-color: aqua;
  color: black;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 10px;
  text-decoration: none;
  display: inline-block;
  margin-top: 5px;
}

.btm:hover {
  background-color: #3f5efb;
  color: white;
  border-color: aqua;
}

/* .frontcard:hover {
  transform: rotateY(180deg);
} */

@keyframes flow-border {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
