* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f2debd;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Scalable 9:16 Container using temphery.png */
.mobile-container {
  width: 90vw;
  height: calc(90vw * 16 / 9);
  max-height: 90vh;
  max-width: calc(90vh * 9 / 16);
  background: url("carddesign/temphery.png") center/cover no-repeat;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  /* Entrance Animation */
  opacity: 0;
  animation: slideFadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Position the QR code over the placeholder */
.qr-wrapper {
  position: absolute;
  /* Adjust these values to perfectly align with the placeholder */
  bottom: 13.4%;
  left: 12.3%;
  width: 24%; /* Size of the QR code relative to the card */
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  /* QR Entrance Animation (delayed slightly) */
  opacity: 0;
  animation: fadeInScale 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
  /* Optional: uncomment if the placeholder is empty and needs a background */
  /* background-color: #044246; */
  /* padding: 2%; */
  /* border-radius: 5%; */
}

#qrcode svg,
#qrcode canvas {
  width: 100% !important;
  height: 100% !important;
}

/* --- ANIMATIONS --- */
@keyframes slideFadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
