
body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffd6e7;
    font-family: Arial, sans-serif;
}

@keyframes falling {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.heart {
    position: fixed;
    font-size: 20px;
    color: #ff4d79;
    z-index: -1;
    animation: falling 5s linear infinite;
}

.container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 77, 121, 0.3);
    backdrop-filter: blur(5px);
    border: 2px solid #ff4d79;
    position: relative;
    overflow: hidden;
    max-height: 90vh;
    max-width: 90vw;
    z-index: 1; /* Ensure container stays below running button */
}

.title {
    color: #ff4d79;
    margin-bottom: 1rem;
}

img {
    width: 250px;
    border-radius: 15px;
    margin: 1rem 0;
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.yes-btn {
    background-color: #ff4d79;
    color: white;
}

.no-btn {
    background-color: #f2f2f2;
    color: #333;
}

.yes-btn:hover { transform: scale(1.1); }
.no-btn:hover { transform: scale(0.9); }

.running { 
    position: fixed !important; /* Force position fixed on iOS */
    transform: translate3d(0, 0, 0); /* Enable hardware acceleration */
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform, left, top; /* Optimize animations */
    touch-action: none;
    z-index: 9999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2) !important;
    background-color: #f2f2f2 !important;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    outline: none !important;
    border: 2px solid #ff4d79 !important;
}

/* Remove music-btn related styles */

/* Add these new mobile-specific styles */
@media (max-width: 768px) {
    .container {
        width: 90%;
        max-width: 400px;
        margin: 10px;
        padding: 15px;
        max-height: 80vh;
    }

    img {
        width: 200px;
        height: auto;
    }

    .title {
        font-size: 1.5rem;
    }

    .btn {
        min-width: 120px; /* Ensure minimum touch target size */
        min-height: 50px; /* iOS recommended minimum */
        padding: 15px 30px;
        font-size: 1.2rem;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .no-btn {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        touch-action: none;
    }

    .no-btn.running {
        min-width: 120px !important;
        min-height: 50px !important;
        font-size: 1.1rem !important;
        background-color: #f2f2f2 !important;
        color: #333 !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
        padding: 10px 20px !important;
        border-radius: 10px !important;
        transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    .no-btn.running:active {
        transform: scale(0.95);
    }

    /* Add spacing between buttons */
    .buttons {
        gap: 20px;
        padding: 10px 0;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}
