@import url("https://fonts.cdnfonts.com/css/samsung-sharp-sans");

*::before,
*::after {
  box-sizing: border-box;
}
* {
  font-family: "Samsung Sharp Sans", sans-serif;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}
body {
  background-color: black;
  color: white;
}
.card_container {
  perspective: 1000px;
  width: 450px;
  height: 300px;
  margin: 100px auto;
}
.card {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
}
.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, 0.2);
  background-size: 300% 300%;
}
.frontcard {
  background-color: white;
  padding: 20px;
}
.frontcard img {
  height: 100px;
  width: 200px;
  margin: 65px auto;
  display: block;
  max-width: 80%;
  font-size: 20px;
}
.backcard {
  position: relative;
  padding: 2px;
  border-radius: 15px;
  background: linear-gradient(
    90deg,
    rgb(112, 9, 180) 0%,
    rgba(253, 29, 29, 1) 50%,
    rgb(231, 149, 34) 100%
  );
  transform: rotateY(180deg);
  animation: flow-border 3s linear infinite;
}
.backcard_content {
  color: white;
  border-radius: 13px;
  padding: 16px 20px 12px 20px;
  font-weight: 100;
  background: radial-gradient(
    circle,
    rgb(71, 77, 107) 0%,
    rgb(139, 69, 83) 100%
  );
  overflow-y: auto;
  height: 100%;
  text-align: left;
}
.name {
  font-size: 15px;
  letter-spacing: 2px;
  color: #00d4cd;
  text-transform: uppercase;
  font-weight: 300;
}
.title {
  font-weight: 20px;
  font-size: 700;
  margin: 8px 0;
}
.description {
  color: #d8cccc;
  margin-bottom: 10px;
  font-size: 15px;
}
.btn {
  padding: 6px 12px;
  border: 1px solid #4caf50;
  background-color: #00ffff;
  color: black;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 10px;
  text-decoration: none;
  display: inline-block;
  margin-top: 5px;
}
strong {
  color: aqua;
}
.btn:hover {
  background-color: blue;
  color: white;
  border-color: #43a047;
}
@keyframes flow-border {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
