/* Base Styles */
:root {
    --primary-color: #ff6b8b;
    --secondary-color: #ff8e9e;
    --accent-color: #ff4d6d;
    --text-color: #333;
    --light-pink: #ffd6e0;
    --white: #fff9fb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html, body {
    height: 100%;
    overflow: hidden;
    touch-action: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-pink);
    color: var(--text-color);
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Container */
.container {
    text-align: center;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Valentine Card */
.valentine-card {
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(255, 105, 140, 0.2);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    pointer-events: none;
}

/* Hearts Animation */
.hearts {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.heart {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

.heart:nth-child(1) { animation-delay: 0s; }
.heart:nth-child(2) { animation-delay: 0.5s; }
.heart:nth-child(3) { animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Typography */
h1 {
    font-family: 'Dancing Script', cursive;
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p.question {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 600;
}

/* Buttons Container */
.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    width: 100%;
    pointer-events: auto;
    position: relative;
    min-height: 50px;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.yes-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
    position: relative;
    z-index: 1;
}

.yes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.4);
}

.yes-btn:active {
    transform: translateY(0);
}

.no-btn {
    background-color: #f0f0f0;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    margin: 0;
}

.no-btn.moved {
    position: fixed;
    transition: transform 0.3s ease-out, left 0.3s ease-out, top 0.3s ease-out;
}

/* Success Message */
#success {
    display: none;
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(255, 105, 140, 0.2);
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

#success h2 {
    color: var(--accent-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

#success p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .valentine-card, #success {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    p.question {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
        min-height: 120px;
    }
    
    .no-btn {
        position: absolute;
    }
}

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

.hidden {
    display: none !important;
}

/* Heart Background */
.heart-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ff6b8b' fill-opacity='0.2' fill-rule='evenodd'%3E%3Cpath d='M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.78 7.77L10 18.78l8.39-8.4a5.5 5.5 0 0 0-7.78-7.77l-.61.61z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Confetti container */
.confetti-container {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}
