* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #ffeef7 0%, #ffd6e8 50%, #ffc0d9 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '💕';
    position: fixed;
    font-size: 2rem;
    opacity: 0.1;
    animation: floatHeart 20s infinite ease-in-out;
    left: 10%;
    top: 20%;
}

body::after {
    content: '❤️';
    position: fixed;
    font-size: 1.5rem;
    opacity: 0.1;
    animation: floatHeart 15s infinite ease-in-out reverse;
    right: 15%;
    top: 60%;
}

@keyframes floatHeart {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

.container {
    text-align: center;
    z-index: 10;
    position: relative;
}

h1 {
    font-size: 3rem;
    color: #d63384;
    margin-bottom: 3rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(214, 51, 132, 0.2);
    letter-spacing: 1px;
}

.button-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    position: relative;
    min-height: 60px;
}

button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    background: white;
}

#yesBtn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4081 100%);
    color: white;
    border-color: #ff6b9d;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

#yesBtn:hover {
    background: linear-gradient(135deg, #ff5a8a 0%, #ff2d6e 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
    transform: translateY(-2px);
}

#noBtn {
    background: white;
    color: #666;
    border-color: #ddd;
    position: relative;
    transition: all 0.2s ease;
}

@keyframes nervous {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

#noBtn.moving {
    position: fixed;
    animation: spinAway 0.3s ease-out !important;
}

@keyframes spinAway {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(0.7);
    }
    100% {
        transform: rotate(360deg) scale(0.85);
    }
}

#noBtn:hover {
    background: #f5f5f5;
    transform: scale(0.9);
    animation: none;
}

#noBtn.evading {
    transform: scale(0.8) rotate(5deg);
    animation: none;
}


.message {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: #d63384;
    min-height: 3rem;
    animation: fadeIn 0.3s ease-in;
    font-weight: 300;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.final-message {
    margin-top: 2rem;
    font-size: 2rem;
    color: #333;
    font-weight: 300;
    animation: fadeIn 0.3s ease-in;
}

.celebration-message {
    margin-top: 1.5rem;
    font-size: 2rem;
    color: #d63384;
    font-weight: 500;
    animation: fadeIn 0.5s ease-in;
}

.gif-container {
    margin-top: 0.5rem;
    animation: fadeIn 0.7s ease-in;
}

.gif-container img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(214, 51, 132, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.love-message {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    color: #d63384;
    font-weight: 400;
    animation: fadeIn 0.9s ease-in;
}


@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    .message {
        font-size: 1rem;
    }
}
