:root {
    --bg-color: #ffffff;
    /* Plain White background */
    --text-color: #d32f2f;
    /* Red text */
    --yes-color: #2ecc71;
    /* Green Yes button */
    --no-color: #ff3b30;
    /* Red No button */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100vw;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cleaner/Flatter Layout - No Card Background */
.card {
    background: transparent;
    box-shadow: none;
    border: none;
    text-align: center;
    max-width: 600px;
    width: 90%;
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    margin-bottom: 1rem;
}

.character-img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    /* Slightly bigger character */
    display: block;
    margin: 0 auto;
}

.intro-img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    /* Increased size significantly */
    display: block;
    margin: 0 auto -60px;
    /* Large Negative margin to pull text closer */
}

.share-icon-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff0f3;
    border: 2px solid #ffccd5;
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ff4d6d;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 30;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.share-icon-btn:hover {
    background: #ffccd5;
    transform: scale(1.05);
}

#nameInput {
    padding: 10px 20px;
    font-size: 1.2rem;
    border: 3px solid #ffccd5;
    /* Soft pink border */
    border-radius: 50px;
    /* Fully rounded */
    outline: none;
    width: 60%;
    margin: 0 auto 10px;
    /* Centered horizontally */
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    text-align: center;
    color: #d32f2f;
    background-color: #fff0f3;
    /* Very light pink bg */
    box-shadow: 0 4px 10px rgba(255, 77, 109, 0.1);
}

#nameInput::placeholder {
    color: #ff8fa3;
    opacity: 0.8;
}

#nameInput:focus {
    border-color: #ff4d6d;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
    transform: scale(1.02);
}

.question {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    /* Reduced from 1rem to 10px for tighter fit */
    line-height: 1.3;
    z-index: 20;
    /* Ensure on top if overlap */
    position: relative;
}

.buttons {
    display: flex;
    flex-wrap: nowrap;
    /* Keep buttons on same row */
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    width: 100%;
    margin-top: 10px;
}

/* Base Button Style */
.btn {
    padding: 10px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.creation-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80%;
    margin-top: 15px;
    animation: popIn 0.3s ease;
}

.action-btn {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100%;
    border-radius: 50px;
    font-weight: 600;
}

.view-btn {
    background-color: #6c5ce7;
    box-shadow: 0 4px 6px rgba(108, 92, 231, 0.3);
}

.view-btn:hover {
    background-color: #5b4cc4;
}

.whatsapp-btn {
    background-color: #25D366;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background-color: #1ebc59;
}

.copy-btn {
    background-color: #ff9ff3;
    color: #fff;
    /* or dark text? keeping white */
    box-shadow: 0 4px 6px rgba(255, 159, 243, 0.3);
}

.copy-btn:hover {
    background-color: #f368e0;
}

.yes-btn {
    background-color: var(--yes-color);
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.3);
    z-index: 50;
    /* transition: width 0.3s, height 0.3s, font-size 0.3s; Handled by JS mostly */
}

/* New Responsive Full Screen Class */
.yes-full-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Use fixed coverage to ensure it hits edges */
    font-size: 12rem !important;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.yes-btn:hover {
    background-color: #27ae60;
}

.no-btn {
    background-color: var(--no-color);
    box-shadow: 0 4px 6px rgba(255, 59, 48, 0.3);
    z-index: 40;
}

.no-btn:hover {
    background-color: #d32f2f;
}

/* Success Overlay */
#successOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    /* Plain white background for success as well, or keep light pink */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#successOverlay.visible {
    opacity: 1;
    pointer-events: all;
}

#successOverlay .content {
    text-align: center;
    padding: 20px;
}

.success-img {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    animation: popIn 0.8s ease;
}

#successOverlay h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 20px;
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hidden {
    display: none;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Floating Hearts */
.heart {
    position: absolute;
    color: #ff4d6d;
    opacity: 0.7;
    animation: floatUp 4s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) scale(1.5);
        opacity: 0;
    }
}

/* MEDIA QUERIES FOR MOBILE */
@media (max-width: 768px) {
    .question {
        font-size: 1.2rem;
        /* Smaller question text */
        padding: 0 10px;
    }

    .character-img {
        max-height: 200px;
        /* Smaller image */
    }

    .btn {
        padding: 12px 25px;
        font-size: 1.1rem;
        /* Smaller normal buttons */
    }

    .buttons {
        gap: 10px;
        margin-top: 15px;
    }

    /* Giant yes button on mobile shouldn't be 12rem */
    .yes-full-screen {
        font-size: 4rem !important;
        /* Adjusted for mobile screen */
    }

    .success-img {
        max-width: 80%;
        /* Ensure success image doesn't overflow */
    }
}

@media (max-width: 480px) {
    .question {
        font-size: 1rem;
    }

    .yes-full-screen {
        font-size: 3rem !important;
        /* Even smaller for very small phones */
    }
}