/* Success Page Styles */
:root {
    --primary-color: #ff6b8b;
    --accent-color: #ff8e9e;
    --white: #ffffff;
    --text-color: #333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fff5f7 0%, #ffeef2 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.success-container {
    text-align: center;
    padding: 1rem;
    max-width: 800px;
    width: 100%;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin: 0.5rem auto;
    position: relative;
    overflow: hidden;
    transform: translateY(-20px);
}

h1 {
    font-family: 'Dancing Script', cursive;
    color: #ff4d6d;
    font-size: 2.8rem;
    margin: 0.5rem 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-out;
}

/* Caption display area */
.caption-display {
    text-align: center;
    margin: 0 auto 0.5rem;
    min-height: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: #ff4d6d;
    font-weight: 600;
    padding: 0.25rem 1rem;
    transition: all 0.3s ease;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0.5rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 77, 109, 0.2);
    height: auto;
    aspect-ratio: 4/3;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #000;
}

.slide-caption {
    display: none !important;
    position: absolute;
    bottom: 60px;  
    left: 0;
    right: 0;
    color: white;
    padding: 15px 20px;
    font-size: 1.4rem;
    text-align: center;
    z-index: 5;
    box-sizing: border-box;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    background: none;
}

.slide-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dot.active, .dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
    border-color: white;
}

/* Navigation Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: transform 0.1s ease, background-color 0.3s ease;
    border: none;
    background: rgba(255, 77, 109, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1);
    padding: 0;
    pointer-events: auto;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover:not(:active),
.next:hover:not(:active) {
    background: rgba(255, 77, 109, 1);
    transform: translateY(-50%) scale(1.1);
    transition: transform 0.2s ease 0.1s, background-color 0.3s ease;
}

.prev:active,
.next:active {
    transform: translateY(-50%) scale(0.95);
    transition: transform 0.1s ease;
}

/* Heart Container for Animations */
.heart-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Heart Animation */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.heart {
    position: absolute;
    pointer-events: none;
    animation: float 4s linear forwards;
    font-size: 24px;
    color: var(--primary-color);
    z-index: 1;
}

/* Continue Button */
.continue-btn {
    display: block;
    margin: 2rem auto 1rem;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: white;
    background: linear-gradient(45deg, #ff4d6d, #ff8fa3);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.5s;
}

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

.continue-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 77, 109, 0.3);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .success-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .slideshow-container {
        max-width: 90%;
    }
    
    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .slide-caption {
        font-size: 1.1rem;
        padding: 15px 10px;
        min-height: 60px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }
}

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