/* Import Google Font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

.card-con {
  position: relative;
  background-image: url("images/b36b8cfdf3d9016e2da450e2eb43ed74.jpg");
  background-size: cover;
  padding: 25px;
  border-radius: 28px;
  max-width: 380px !important;
  width: 100%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.card-header,
.card-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-logo img {
  width: 48px;
  margin-right: 10px;
}

.card-h5 {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}

.card-header .card-chip {
  width: 60px;
}

.bg-light {
  height: 265px;
}

.card-h6 {
  color: #fff;
  font-size: 10px;
  font-weight: 400;
}

.card-h5.card-number {
  margin-top: 4px;
  font-size: 18px;
  letter-spacing: 1px;
}

.card-h5.card-name {
  margin-top: 20px;
}

.card-con .card-details {
  margin-top: 7px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.logo {
  margin-left: auto;
  margin-right: 1%;
}

@media (min-width: 576px) {
  /* .logo {
    margin-right: 7% !important;
  } */
}

.flip-card {
  perspective: 1000px;
  /* Creates the 3D effect */
  position: relative;
  /* Ensures correct positioning of child elements */
  cursor: pointer;
  /* width: 300px;  Set a fixed width for the card */
  height: 250px;
  /* Set a fixed height for the card */
  overflow: hidden;
  /* Prevents any content overflow */
  transform-style: preserve-3d;
  /* Required for 3D transformations */

  margin-top: 20px;
}

.flip-card__front-side,
.flip-card__back-side {
  position: absolute;
  /* Ensures both sides overlap completely */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  /* Hides the back side when not visible */
  transition: transform 0.5s ease-in-out;
  margin-top: 20px;
}

.flip-card__front-side {
  transform: rotateX(0deg);
  /* Default front side position */
  background-color: transparent;
  /* Example background for testing */
}

.flip-card__back-side {
  transform: rotateX(-180deg);
  /* Default back side position */
  background-color: transparent;
  /* Example background for testing */
}

.flip-card:hover .flip-card__front-side {
  transform: rotateX(180deg);
  /* Flip to show back side */
}

.flip-card:hover .flip-card__back-side {
  transform: rotateX(0deg);
  /* Flip to show back side */
}

.flip-card__front-side,
.flip-card__back-side {
  will-change: transform;
  /* Hint the browser to optimize 3D transforms */
}