/* styles.css */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    font-family: 'Dancing Script', cursive;
}

.card-container {
    perspective: 1000px;
}

.card {
    width: 300px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
}

.card .front,
.card .back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card .front {
    background: linear-gradient(135deg, #f6d365, #fda085);
}

.card .back {
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    transform: rotateY(180deg);
}

.card img.image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.card h1, .card h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

.card p {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card button {
    font-family: 'Dancing Script', cursive;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #fff;
    color: #ff6f61;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.card button:hover {
    background: #ff6f61;
    color: #fff;
}

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

.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    animation: confetti-fall 5s infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.confetti::before,
.confetti::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: confetti-move 5s infinite ease-in-out;
}

.confetti::before {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.confetti::after {
    top: 30%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes confetti-move {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(200px) rotate(360deg);
    }
}
