:root {
  --theme-color-1: #0084ff;
  --theme-color-2: #1c53df;
  --bg-color: #fdfdfd;
  --white-shade-1: #ffffff;
  --white-shade-2: #d0d0d0;
  --white-rgba: rgba(255, 255, 255, 0.12);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  flex-direction: column;
}

.card-title {
  text-align: center;
  font-size: 30px;
  /* Adjust font size dynamically based on viewport width */
  margin-bottom: 20px;
  color: black;
}

/* Card container styling */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.card {
  width: 40vw;
  /* Dynamic width based on viewport */
  height: calc(40vw * 609.5 / 368.5);
  /* Maintain aspect ratio */
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s;
  max-width: 400px;
  /* Max width */
  max-height: 700px;
  /* Max height */
}

.front,
.back {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  border-radius: 15px;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transition: 1s;
}

.front {
  background-image: url(/img/front.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--white-rgba);
}

.back {
  background-image: url(/img/back.jpg);
  /* Set back image */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  /* Center the image */
  border: 2px solid var(--white-rgba);
  justify-content: center;
  transform: rotateY(180deg);
  /* Initially hidden (flipped) */
}

/* Flipped state */
.card.flipped {
  transform: rotateY(180deg);
  /* Flip the card */
}

/* Download button */
.download-btn {
  padding: 10px 30px;
  /* Dynamic padding based on viewport width */
  background-color: var(--theme-color-1);
  color: var(--white-shade-1);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  /* Dynamic font size based on viewport width */
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 2vw;
  /* Dynamic margin for spacing */
  text-decoration: none;
}

.download-btn:hover {
  background-color: var(--theme-color-2);
}

@media screen and (max-width: 992px) {
  .card {
    width: 70vw;
    /* Dynamic width based on viewport */
    height: calc(70vw * 609.5 / 368.5);
    /* Maintain aspect ratio */
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
    max-width: 400px;
    /* Max width */
    max-height: 700px;
    /* Max height */
  }

  .card-title {
    text-align: center;
    font-size: 25px;
    /* Adjust font size dynamically based on viewport width */
    margin-bottom: 20px;
    color: black;
  }

  /* Download button */
  .download-btn {
    padding: 10px 25px;
    /* Dynamic padding based on viewport width */
    background-color: var(--theme-color-1);
    color: var(--white-shade-1);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    /* Dynamic font size based on viewport width */
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    /* Dynamic margin for spacing */
    text-decoration: none;
  }

}