@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Poppins:wght@400;600&display=swap');

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

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.header_text {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    color: #e91e63;
    text-align: center;
    margin-bottom: 30px;
}

/* Card Container - from Sayyor-Birthday */
.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    width: 90%;
    max-width: 500px;
    margin: auto;
}

.card {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
    border: 30px solid transparent;
    border-image: url('flower_border.png') 30% round;
    border-radius: 15px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.card-face {
    position: absolute;
    /* top: 30px; */
    /* bottom: 30px; */
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .card-face.card-back {
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    width: auto;
    height: auto;
   transform: rotateY(180deg);
} */

.card-back{
    /* object-fit: contain; */
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    height: auto;
    /* position: absolute; */
}
/* Front of card - camera image */
.card-front {
    background: white;
    position: relative;
    /* top: 10px; */
    /* left: 10px; */
    /* right: 10px; */
    /* width: auto; */
    /* height: auto;  */
}

.card-front img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    padding: 10px;
    border-radius: 10px;
}

/* .bought-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4caf50;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    z-index: 10;
} */

.card-front::before {
    content: "Bought✅";
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4caf50;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    z-index: 0;
}
.card-front::after {
    content: "Click me!";
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1rem;
    color: #e91e63;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
}

/* Back of card - video */
.card-back {
    background: #000;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* padding: 10px; */
}

.card-back video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

/* Pulse animation for header */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.header_text {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    .header_text {
        font-size: 2rem;
    }
    .card-container {
        width: 100%;
    }
    .card {
        max-width: 300px;
    }
    .card-front{
        transform: scale(0.8);
        bottom: 30px;
    }
}

@media (max-width: 400px) {
    .header_text {
        font-size: 1.7rem;
    }
}