/* --- ROMANTIC THEME --- */
body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%);
    font-family: 'Nunito', sans-serif;
    overflow: hidden;
    color: #4a4a4a;
}

/* Floating Hearts Background */
.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    bottom: -50px;
    background-color: rgba(255, 255, 255, 0.6);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 50% 80%, 18% 100%, 0% 38%);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* Card Containers */
.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.8s ease-out;
}

.hidden {
    display: none !important;
}

h1 {
    font-family: 'Dancing Script', cursive;
    color: #d63384;
    font-size: 3rem;
    margin-bottom: 10px;
}

h2 {
    color: #d63384;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

/* --- BUTTONS --- */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 30px; /* Space between Yes and No */
    align-items: center;
    margin-top: 20px;
    position: relative;
    min-height: 60px; /* Ensures height doesn't collapse when No jumps */
}

button {
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

#yesBtn, #openLetterBtn, .primary-btn {
    background: #ff6b81;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.4);
}

#yesBtn:hover, .primary-btn:hover {
    background: #ff4757;
    transform: scale(1.05);
}

#noBtn {
    background: #e1e1e1;
    color: #333;
    position: relative; /* Starts side by side */
}

/* Trap Section Layout */
.trap-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

#exitBtn {
    background: transparent;
    border: 1px solid #ccc;
    color: #999;
    font-size: 0.9rem;
    padding: 8px 20px;
}

/* The Letter */
.love-letter {
    text-align: left;
    background: #fff0f6;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #ff6b81;
    color: #444;
}

.highlight {
    color: #d63384;
    font-weight: bold;
    margin-top: 15px;
    display: block;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #d63384;
    text-align: right;
    margin-top: 20px;
}

/* Slideshow */
.container-slideshow {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    position: relative;
    background: rgba(0,0,0,0.6);
}

.container-slideshow h1 {
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slider-frame {
    width: 90%;
    max-width: 600px;
    height: 400px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    background: white;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-delayed {
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
    opacity: 0;
}