/* New Theme Styles for Main Invitation Screen */
.new-theme {
    /* Background handled by .screen in style.css */
    color: #800000;
    /* Dark Red text for contrast */
}

.new-theme .content-wrapper {
    justify-content: center;
    align-items: center;
    z-index: 5;
}

/* Side Vines (replacing corners) */
.floral-corner {
    position: absolute;
    width: 150px;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 10;
    pointer-events: none;
    top: 0;
}

.top-left-decor {
    left: 0;
    background-image: url('../assets/images/floral_vine_side.svg');
}

.top-right-decor {
    right: 0;
    background-image: url('../assets/images/floral_vine_side.svg');
    transform: scaleX(-1);
    /* Mirror for right side */
}

/* Video Arch */
.video-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    /* Distribute space evenly */
    /* gap: 1rem; */
    position: relative;
    height: 100%;
    padding: 1rem 0;
    overflow: hidden;
    /* Prevent scrolling */
}

.video-arch-container {
    position: relative;
    width: auto;
    height: 55vh;
    /* Responsive height */
    aspect-ratio: 0.7;
    /* Maintain arch proportions roughly 320/480 */
    max-height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-mask {
    width: 85%;
    /* Slightly smaller than container to fit inside floral frame */
    height: 85%;
    border-radius: 150px 150px 20px 20px;
    /* Arch shape */
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    background: #000;
    margin-top: 20px;
    /* Push down slightly to align with arch frame */
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in, visibility 0s 0.3s;
}

.main-video.loaded {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease-in, visibility 0s 0s;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Floral Arch Decoration */
.floral-arch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/floral_arch_vector.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 5;
    /* On top of video */
    pointer-events: none;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1));
}

/* Mantra */
.mantra-container {
    text-align: center;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.sanskrit-mantra {
    font-size: 1.4rem;
    color: #d50000;
    font-weight: bold;
    line-height: 1.6;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    font-family: 'Noto Serif Gujarati', serif;
}

.divider {
    width: 200px;
    height: auto;
    opacity: 0.8;
}

.top-divider {
    margin-bottom: 5px;
}

.bottom-divider {
    margin-top: 5px;
    transform: scaleY(-1);
    /* Mirror bottom divider */
}

/* Peacock */
.peacock-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background-image: url('../assets/images/peacock_placeholder.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    z-index: 4;
    transform-origin: bottom center;
    animation: peacockSway 5s infinite ease-in-out;
}

@keyframes peacockSway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(2deg);
    }
}

/* Birds */
.birds-container {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bird {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url('../assets/images/bird_placeholder.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}

/* Scroll Indicator Next */
.scroll-indicator-next {
    position: relative;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d50000;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    padding-bottom: 1rem;
}

/* Responsive */
@media (max-width: 480px) {
    .floral-corner {
        width: 150px;
        height: 150px;
    }

    .video-arch-container {
        height: 45vh;
        /* Smaller on mobile to fit everything */
        width: auto;
    }

    .sanskrit-mantra {
        font-size: 1.2rem;
    }

    .peacock-container {
        width: 150px;
        height: 150px;
    }
}