.flip-card {
  background-color: transparent;
  width: 300px;
  height: 400px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: #ffffff;
  color: #333;
}

.flip-card-back {
  background-color: #D1E5FA;
  color: #333;
  transform: rotateY(180deg);
}

.bottom-text {
  position: absolute;
  bottom: 0;
  right:0;
  padding:10px
}

@media (max-width: 768px) {
  .flip-card {
    width: 90vw; /* Occupy 90% of viewport width */
    height: 60vw; /* Maintain aspect ratio */
    margin: 10px auto; /* Center the card and add spacing */
  }

  /* For touch devices, consider using JavaScript to toggle a class on click/tap
     instead of :hover, as hover behavior can be inconsistent. */
  .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
  }
}

#myBackgroundElement {
  background-image: url("https://author-p98764-e1152732.adobeaemcloud.com/content/dam/design-elements/oa-com/background-test-2.svg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg?ch_ck=1759331409000"); /* Replace with your image path */
  background-size: cover; /* Adjusts the image to cover the entire element */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  background-position: center center; /* Centers the image */
  height: 100%; /* Example height, adjust as needed */
  width: 100%; /* Example width, adjust as needed */
}

