@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  color: white;
}
section {
  position: fixed;
  height: 100vh;
  width: 100%;
  background: #121321;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}
section::before {
  content: "";
  position: fixed;
  height: 240px;
  width: 240px;
  background: linear-gradient(90deg, rgb(225, 11, 228), white);
  border-radius: 50%;
  transform: translate(-150px, -100px);
}
section::after {
  content: "";
  position: fixed;
  height: 240px;
  width: 240px;
  background: linear-gradient(90deg, rgb(225, 11, 228), white);
  border-radius: 50%;
  transform: translate(150px, 100px);
}
.container {
  height: 225px;
  width: 375px;
  position: relative;
  z-index: 100;
  transition: 0.6s;
  transform-style: preserve-3d;
}
.container .card {
  position: absolute;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(25px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  backface-visibility: hidden;
}
.container:hover {
  transform: rotateY(180deg);
}

.frontface header,
.frontface .logo {
  display: flex;
  align-items: center;
}
.frontface .logo img {
  width: 48px;
  margin-right: 10px;
}
h5 {
  font-size: 16px;
  font-weight: 400;
}
.frontface .chip {
  width: 50px;
}

.frontface header {
  justify-content: space-between;
}
.frontface .card-details {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 40px;
}
h6 {
  font-size: 10px;
  font-weight: 400;
}
h5.number {
  font-size: 18px;
  letter-spacing: 1px;
}
h5.name {
  margin-top: 20px;
}

.card.backface {
  border: none;
  padding: 15px 25px 25px 25px;
  transform: rotateY(180deg);
}
.card.card.backface h6 {
  font-size: 8px;
}

.card.backface .sign {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 80px;
  height: 40px;
  width: 85%;
  background: repeating-linear-gradient(
    #fff,
    #fff 3px,
    #efefef 0px,
    #efefef 9px
  );
  border-radius: 6px;
}
.card.backface .magneticstrip {
  position: absolute;
  top: 40px;
  left: 0;
  height: 45px;
  width: 100%;
  background: black;
}
.sign i {
  font-size: 12px;
  color: black;
  background: white;
  margin-right: -30px;
  border-radius: 4px;
  padding: 4px 6px;
  z-index: -1;
}

.card.backface h5 {
  font-size: 8px;
  margin-top: 20px;
}
