* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0a0e0b;
    /* Very dark green/black for elegance */
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    /* Ensures no scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Playfair Display', serif;
    touch-action: none;
    /* Disables all touch interactions like pinch-zoom or scroll */
}

.scene {
    width: 100vw;
    height: 100vh;
    perspective: 2000px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.card {
    position: relative;
    /* Very smooth and elegant flip animation curve */
    transition: transform 1.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    width: 100vw;
    height: 100vh;
    max-width: calc(100vh * (1749 / 2481));
    max-height: calc(100vw * (2481 / 1749));
    container-type: inline-size;
}

.card.is-flipped {
    transform: rotateY(-180deg);
}

.card__face {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: #1a221c;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
    border-radius: 0;
    overflow: hidden;
}

.card__face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.card__face--front {
    position: relative;
}

.card__face--front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card__face--back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
}

.card__face--back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* A subtle hint for the user to click */
.overlay-hint {
    position: absolute;
    bottom: 5cqi;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 0, 0, 0.9);
    /* Pale gold text */
    font-size: 2.5cqi;
    letter-spacing: 0.5cqi;
    text-shadow: 0 0.5cqi 1cqi rgba(0, 0, 0, 0.8);
    animation: pulse 2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-1cqi);
    }
}

/* Responsive adjustment for Desktop/Landscape devices */
@media (min-aspect-ratio: 1/1) {
    .card {
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    }
}

.guest-name {
    position: absolute;
    text-align: center;
    pointer-events: none;
    font-weight: 700;
    width: 90%;
    z-index: 10;
    top: 28%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5cqi; /* Skala otomatis mengikuti lebar gambar */
    color: #1a365d; /* Biru dongker gelap menyesuaikan gambar */
}