body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    color: #4a4a4a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 2rem auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Intro Images Styling */
.intro-images {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.intro-img-container {
    flex: 1;
    min-width: 200px;
}

.intro-img {
    width: 100%;
    max-height: 250px;
    object-fit: contain; /* Prevents cropping */
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(219, 39, 119, 0.15);
    transition: transform 0.3s ease;
    border: 3px solid #fff;
}

.intro-img:hover {
    transform: rotate(2deg) scale(1.05);
}

.intro-img-container:nth-child(even) .intro-img:hover {
    transform: rotate(-2deg) scale(1.05);
}

/* Pwease Images Styling */
.pwease-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.pwease-img {
    max-width: 150px;
    width: 45%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.pwease-img:hover {
    transform: scale(1.1) rotate(5deg);
}


/* Confetti Effect */
.confetti {
    position: fixed;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: #f0f;
    animation: confetti-fall 3s ease-in-out infinite;
    z-index: 9999;
}

@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

h1 {
    color: #db2777; /* Deep pink */
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-weight: 300;
    color: #831843;
    font-size: 1.2rem;
    margin-top: 0;
}

.image-section img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-section img:hover {
    transform: scale(1.02);
}

.video-container {
    margin: 2rem 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    font-style: italic;
    color: #666;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.poem-text {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #db2777; /* Reverted to border-left for LTR */
    margin: 2rem 0;
    text-align: left; /* Reverted to left for LTR */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.poem-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #333;
}

.poem-text p:last-child {
    margin-bottom: 0;
}

.poem-text::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('Public/hert.jpeg');
    background-repeat: no-repeat;
    background-position: right 10% bottom 10%;
    background-size: 55% auto;
    opacity: 0.15; /* reduce transparency = a bit more visible but still subtle */
    pointer-events: none;
}

.poem-row {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.poem-copy {
    flex: 1;
    position: relative;
    z-index: 1;
}

.poem-img {
    width: 140px;
    max-width: 35%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(219, 39, 119, 0.2);
    background: white;
    padding: 8px;
}

.question-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed #e5e7eb;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    min-height: 60px; /* Ensure space for buttons */
}

button {
    font-family: 'Tajawal', sans-serif;
    padding: 12px 35px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
}

#yes-btn {
    background: linear-gradient(45deg, #db2777, #ec4899);
    color: white;
    box-shadow: 0 4px 15px rgba(219, 39, 119, 0.4);
    z-index: 10;
}

#yes-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 20px rgba(219, 39, 119, 0.6);
}

#no-btn {
    background-color: #e5e7eb;
    color: #4b5563;
    /* Initially static, JS will make it fixed/absolute */
}

#no-btn.moving {
    transform: none !important;
}

/* Celebration Overlay */
#celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    text-align: center;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

.celebration-content {
    width: 95%;
    max-width: 850px;
}

.celebration-img {
    width: 65%;
    max-width: 420px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    display: block;
    margin: 0 auto;
}

.reaction-images {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.reaction-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(219, 39, 119, 0.3);
    background: white;
    padding: 10px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.5);
}

.reaction-img:nth-child(1) {
    animation-delay: 0.2s;
    transform: rotate(-10deg);
}

.reaction-img:nth-child(2) {
    animation-delay: 0.4s;
    transform: rotate(10deg);
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1) rotate(var(--rotation, 0deg));
    }
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        width: 90%;
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .celebration-content h1 {
        font-size: 2.5rem;
    }
    
    .buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    button {
        width: 100%;
        max-width: 250px;
    }
    
    .intro-images {
        flex-direction: column;
        align-items: center;
    }

    .poem-row {
        flex-direction: column;
    }

    .poem-img {
        max-width: 100%;
        width: 100%;
        align-self: center;
    }
    
    .celebration-img {
        width: 100%;
        max-width: 100%;
    }
}
