/* Universal Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --body-color: #00030fe0;
  --primary-color: #ff6ec4;
  --secondary-color: #7873f5;
  --font-color: #ffffff;
}

.card-wrapper {
  position: relative;
  background-color: var(--body-color);
  color: var(--font-color);
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  overflow: hidden;
}

.card-wrapper::before {
  content: '';
  position: absolute;
  transform: translate(-250px, -120px);
  border-radius: 50%;
  height: 280px;
  width: 280px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.card-wrapper::after {
  content: '';
  position: absolute;
  transform: translate(250px, 160px);
  border-radius: 50%;
  height: 280px;
  width: 280px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.container {
  width: 550px;
  height: 270px;
  position: relative;
  cursor: pointer;
  z-index: 100;
  transition: 0.5s;
  transform-style: preserve-3d;
}

.container:hover {
  transform: rotateY(180deg);
}

.container .card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.068);
  backdrop-filter: blur(25px);
  border-radius: 32px;
  box-shadow: 0 8px 32px 0 rgba(38, 39, 42, 0.37);
  backface-visibility: hidden; /* Ensure that the back face is hidden when not facing the viewer */
  transform-style: preserve-3d;
}

.front {
  backface-visibility: hidden;  /* Ensure that the back face is hidden when not facing the viewer */
}

.front-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.front-head>span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.front-head img {
  height: auto;
  width: 80px;
}

.front-head p {
  font-size: 22px;
  font-weight: 500;
}

.front-data {
  padding: 0 20px;
  margin: 16px 0;
}

.front-data p {
  font-size: 14px;
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.front-data .nmbr {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.front-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.front-footer h4 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 2.5px;
}

.front-footer p {
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

/* front face styles end */
.card.back {
  transform: rotateY(180deg);
  backface-visibility: hidden;  /* Ensure that the back face is hidden when not facing the viewer */
}

.back-head p {
  padding: 18px 0;
  font-size: 14px;
  text-align: center;
}

.back-head p>a {
  color: var(--font-color);
  text-decoration: none;
  font-weight: 500;
}

.back .black-bar {
  background-color: #000000e1;
  height: 50px;
  width: 100%;
}

.cvv-box {
  position: relative;
  width: 60%;
  height: 40px;
  background-color: var(--font-color);
  margin: 24px 30px 20px;
}

.sig {
  position: absolute;
  top: 50%;
  left: 106%;
  transform: translate(-50%, -50%);
  width: 16%;
  height: 30px;
  background-color: var(--font-color);
  color: var(--body-color);
  border-radius: 4px;
}

.sig .cvv {
  font-size: 18px;
  font-style: italic;
  letter-spacing: 2px;
  text-align: center;
  line-height: 1.5;
}

.back-footer {
  font-size: 14px;
  width: 100%;
  text-align: center;
  padding: 12px;
}

/* back face styles end */