﻿:root {
    --festival-bg: #250735;
    --festival-bg-secondary: #4b1266;
    --festival-bg-third: #6a1b7b;
    --festival-text: #ffffff;
    --festival-primary: #ffd54f;
    --festival-secondary: #ff9800;
    --festival-accent: #fff3a3;
    --festival-heading-color: #ffd54f;
    --festival-title-color: #ffffff;
    --festival-overlay: rgba(0, 0, 0, 0.32);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient( 135deg, #f5f5f5, #eeeeee );
}

.festival-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    background: var(--festival-overlay);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    overflow: hidden;
    isolation: isolate;
} 

    .festival-overlay.show,
    .festival-overlay.active,
    .festival-overlay.open {
        display: flex !important;
    }
     

.festival-modal {
    position: relative;
    z-index: 1000000 !important;
    width: 100%;
    max-width: 850px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    border-radius: 5px;
    color: var(--festival-title-color);
    background: radial-gradient( circle at 10% 0%, rgba(255, 193, 7, 0.22), transparent 38% ), radial-gradient( circle at 90% 100%, rgba(255, 152, 0, 0.16), transparent 40% ), linear-gradient( 145deg, var(--festival-bg), var(--festival-bg-secondary) );
    border: 1px solid rgba(255, 213, 79, 0.45);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.60);
    opacity: 0;
    visibility: hidden;
    transform: translateY(35px) scale(0.86);
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.60s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.60s;
    will-change: opacity, transform;
    isolation: isolate;
}

    .festival-modal.show,
    .festival-overlay.show .festival-modal,
    .festival-overlay.active .festival-modal,
    .festival-overlay.open .festival-modal {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.60s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
    }

    .festival-modal::-webkit-scrollbar {
        width: 6px;
    }

    .festival-modal::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }

    .festival-modal::-webkit-scrollbar-thumb {
        background: var(--festival-primary);
        border-radius: 10px;
    }

.festival-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 65px 5px 20px;
    text-align: center;
    color: var(--festival-heading-color);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-sizing: border-box; 
}

.festival-flourish {
    color: var(--festival-accent);
    font-size: 20px;
    white-space: nowrap;
}

.btn-close-festival {
    position: absolute;
    top: 5px;
    right: 15px;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 20px;
    line-height: 30px;
    cursor: pointer;
    text-align: center;
    z-index: 1000001;
    transition: all 0.25s ease;
}

    .btn-close-festival:hover {
        background: rgba(255, 255, 255, 0.20);
        border-color: rgba(255, 255, 255, 0.75);
        transform: rotate(90deg) scale(1.05);
    }

.festival-hero {
    position: relative;
    padding: 15px 10px 8px;
    text-align: center;
    background: radial-gradient( circle at center, rgba(255, 213, 79, 0.10), transparent 65% );
    box-sizing: border-box;
}

.festival-main-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.festival-main-image {
    display: block;
    max-width: 100%;
/*    filter: drop-shadow(0 -5px 8px rgba(0, 0, 0, 0.35));*/
        animation: festivalFloat 3s ease-in-out infinite;
}

.festival-emoji-image {
    width: 100%;
    height: 300px;
    display: block; 
    object-position: center;
    margin: 0 auto;
    border-radius: 5px;
    box-sizing: border-box;
}
@keyframes festivalFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.festival-title {
    margin-top: 15px;
    font-family: 'Playfair Display', serif; 
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--festival-heading-color);
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
}

.festival-subtitle {
    max-width: 650px;
    margin: 11px auto 15px;
    color: var(--festival-title-color);
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.7;
    opacity: 0.95;
}

.festival-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 15px;
    font-size: 25px !important;
    line-height: 1;
}
    .festival-decoration span {
        display: inline-block;
        animation: decorationFloat 2.5s ease-in-out infinite;
    }

        .festival-decoration span:nth-child(1) {
            animation-delay: 0s;
        }

        .festival-decoration span:nth-child(2) {
            animation-delay: 0.25s;
        }

        .festival-decoration span:nth-child(3) {
            animation-delay: 0.50s;
        }

        .festival-decoration span:nth-child(4) {
            animation-delay: 0.75s;
        }

        .festival-decoration span:nth-child(5) {
            animation-delay: 1s;
        }


@keyframes decorationFloat {

    0%, 100% {
        transform: translateY(0);
        opacity: 0.75;
    }

    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}
.festival-footer {
    position: relative;
    padding: 10px 20px 10px;
    text-align: center;
    color: var(--festival-heading-color);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
}
 
.festival-footer-message {
    margin: 0 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}
 
.festival-quote-divider {
    margin-top: 6px;
    color: var(--festival-accent);
    font-size: 14px;
    opacity: 0.85;
}
 
.festival-reopen-btn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9998;
}
 
.festival-overlay.show,
.festival-overlay.active,
.festival-overlay.open {
    pointer-events: auto;
}
 
@media (min-width: 768px) {

    .festival-modal {
        width: calc(100% - 20px);
    }
} 
@media (max-width: 767px) {

    .festival-overlay {
        padding: 10px;
        align-items: center;
        justify-content: center;
    }


    .festival-modal {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 17px;
    }


    .festival-header {
        gap: 6px;
        padding: 15px 50px 15px 15px;
        font-size: 25px;
        letter-spacing: 1.5px;
    }


    .festival-flourish {
        font-size: 14px;
    }


    .btn-close-festival {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        line-height: 28px;
    }


    .festival-hero {
        padding: 20px 15px 15px;
    }


    .festival-main-image-wrapper {
        min-height: 115px;
    }


    .festival-emoji-image {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 5px;
    }


    .festival-title {
        font-size: 35px;
    }


    .festival-subtitle {
        font-size: 12px;
        line-height: 1.6;
    }


    .festival-decoration {
        gap: 14px;
        font-size: 22px;
    }


    .festival-footer {
        padding: 10px 10px;
    }


    .festival-footer-message {
        font-size: 10px;
    }


    .festival-quote-divider {
        font-size: 12px;
    }


    .festival-reopen-btn {
        right: 15px;
        bottom: 15px;
    }
}
 
@media (max-width: 400px) {

    .festival-overlay {
        padding: 7px;
    }


    .festival-modal {
        max-height: 96vh;
        border-radius: 15px;
    }


    .festival-header {
        padding: 12px 45px 12px 10px;
        font-size: 9px;
        letter-spacing: 1px;
    }


    .festival-title {
        font-size: 24px;
    }


    .festival-subtitle {
        font-size: 11px;
        margin: 8px auto 12px;
    }


    .festival-decoration {
        gap: 9px;
        font-size: 19px;
    }


    .festival-footer-message {
        font-size: 9px;
        letter-spacing: 0.5px;
    }


    .festival-quote-divider {
        font-size: 11px;
    }
}
 
@media (max-width: 320px) {

    .festival-header {
        padding: 10px 42px 10px 8px;
        font-size: 13px;
    }


    .festival-flourish {
        font-size: 11px;
    }


    .festival-emoji-image {
        height: 125px;
    }


    .festival-title {
        font-size: 25px;
    }


    .festival-decoration {
        gap: 6px;
        font-size: 17px;
    }


    .festival-footer-message {
        font-size: 10px;
    }
}
