/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    background-color: #fdf6e3;
    /* Cream paper background */
    background-image:
        linear-gradient(#e1dace 1px, transparent 1px),
        linear-gradient(90deg, #e1dace 1px, transparent 1px);
    background-size: 20px 20px;
    /* Grid paper effect */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #2c3e50;
}

/* Paper Container */
#paper-container {
    background: #fff;
    padding: 3rem 4rem;
    max-width: 600px;
    width: 90%;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    /* Slight handcrafted tilt */
    transition: transform 0.3s ease, opacity 0.5s ease;
    position: relative;
    border: 1px solid #eee;
}

/* Tape effect */
#paper-container::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 45%;
    width: 100px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: rotate(-3deg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.handwritten {
    font-family: 'Indie Flower', cursive;
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.2;
}

.buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 2rem;
}

/* Button Styles - Interactive & Playful */
.btn {
    padding: 12px 30px;
    font-family: 'Indie Flower', cursive;
    font-size: 1.5rem;
    border: 2px solid #2c3e50;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    /* Hand-drawn fuzzy border effect */
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}

.btn-yes {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    transform: rotate(-2deg);
}

.btn-yes:hover {
    transform: scale(1.1) rotate(0deg);
    background: #ff5252;
}

.btn-no {
    background: white;
    color: #2c3e50;
    position: absolute;
    /* Allows movement */
    /* Ensure initial position is relative to flow or handled by JS for absolute logic */
    transform: rotate(2deg);
}

/* When the button moves, it becomes fixed/absolute. 
   We need to handle the initial state carefully in CSS or JS. 
   'position: absolute' in .btn-no works but might overlap "Yes".
   Let's use relative for initial layout in flexbox, then JS switches to fixed. */
.btn-no {
    position: relative;
}


/* Success Container */
.hidden {
    display: none !important;
}

#bouquet-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: #fdf6e3;
    /* Match background */
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-text {
    position: absolute;
    top: 15%;
    z-index: 20;
    font-size: 4rem;
    color: #e74c3c;
    animation: simpleFloat 3s ease-in-out infinite;
}

@keyframes simpleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Photo Bombardment Styles */
.polaroid {
    position: absolute;
    width: 200px;
    /* Slightly smaller for better fit */
    height: 240px;
    background: #fff;
    padding: 10px 10px 40px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    border: 1px solid #ddd;
}

/* Memories Button */
#memories-btn {
    margin-top: 2rem;
    font-size: 1.5rem;
    background: #ff6b6b;
    color: white;
    border: 2px solid #ff6b6b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

#bouquet-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

#memories-btn {
    pointer-events: auto;
}

.success-text {
    position: static;
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    #paper-container {
        padding: 2rem;
        width: 85%;
    }

    .handwritten {
        font-size: 2.2rem;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }
}