@import url("https://fonts.cdnfonts.com/css/google-sans");

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Product Sans", sans-serif;
  line-height: 1.4;
}
body {
  background-color: #000000;
}
/*Container holding the card*/
.card_container {
  perspective: 1000px;
  margin: 100px auto;
  width: 300px;
  height: 300px;
}
/*flip card base*/
.card {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
}
.card_container:hover .card {
  transform: rotateY(180deg);
}
/*shared face style*/
.front_card,
.back_card {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgb(191, 235, 32);
  overflow: hidden;
}
/*Front side style*/
.front_card {
  background: #eeaeca;
  background: radial-gradient(
    circle,
    rgba(238, 174, 202, 1) 0%,
    rgba(148, 187, 233, 1) 100%
  );
  padding: 20px;
}
.front_card img {
  max-width: 80%;
  height: 150px;
  width: 450px;
  margin: 65px auto;
  display: block;
}
/*Back side with flowing gradient border only*/
.back_card {
  position: relative;
  padding: 2px;
  border-radius: 15px;
  background: #833ab4;
  background: linear-gradient(
    90deg,
    rgba(131, 58, 180, 1) 0%,
    rgba(253, 29, 29, 1) 50%,
    rgba(252, 176, 69, 1) 100%
  );
  transform: rotatey(180deg);
  animation: flow-border 60s linear infinite;
}
/*inner content with black background*/
.back_card_content {
  background-color: black;
  color: beige;
  border-radius: 13px;
  padding: 16px 20px 12px 20px;
  height: 100%;
  overflow-y: auto;
  text-align: left;
}
/*text a button styles*/
.name {
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 2px;
  color: rgb(225, 18, 244);
  margin-bottom: 8px;
}

.tagline {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0;
  color: hotpink;
}
.description {
  font-size: 0.85rem;
  color: rgb(229, 198, 41);
  margin-bottom: 10px;
}
.btn {
  padding: 6px 12px;
  border: 1px solid #4caf50;
  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;
}
.btn:hover {
  background-color: cadetblue;
  color: white;
  border-color: green;
}
@keyframes flo-border {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
