/* Custom animations and styling for Mother's Day Website */

/* Background Pattern */
.dot-pattern {
    background-image: radial-gradient(#d1a3b8 1.5px, transparent 1.5px), radial-gradient(#d1a3b8 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

/* Base Styles */
body {
    background: linear-gradient(135deg, #fceaf0 0%, #fae1eb 100%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Screen Transitions */
.screen {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

/* Card Reveal Animation */
.card-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen.active .card-reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

/* Envelope specific animations */
#envelope.opening #envelope-flap {
    transform: rotateX(180deg);
    z-index: 5;
}

#envelope.opening #wax-seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
    transition: all 0.3s ease-out;
}

/* Flower Card Styles and Animation */
.flower-card {
    /* Enable better flex behavior on mobile */
    min-height: 0;
}

.flower-card.picked {
    background-color: #ffffff;
    box-shadow: inset 0 0 0 2px #e83e8c, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.flower-card.picked .flower-icon {
    transform: scale(0.5) translateY(-50px);
}

@media (min-width: 768px) {
    .flower-card.picked .flower-icon {
        transform: scale(0.5) translateY(-50px);
    }
}

.flower-card.picked .flower-default-text {
    opacity: 0;
}

.flower-card.picked .flower-content {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0.3s;
}
