@import "cssBS-metaBlock.css";
@import "cssBS-creditsBlock-11-10.css";
@import "cssBS-playerBlock.css";
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Libre+Baskerville&display=swap');
@import "colorScheme-11-04-25.css";

@font-face {
    font-family: Mirosa;
    src: url("Mirosa.otf");
    format: "opentype";
}

body {
    margin: 0;
}

/* #region Progressive background image loading */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-blur,
.bg-full {
    position: fixed;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
    top: 6px;
}

.bg-blur {
    filter: blur(8px);
    transform: scale(1.05);

    /* subtle zoom to hide pixelation */
}

.bg-full {
    opacity: 0;
}

.bg-full.loaded {
    opacity: 1;
}

/* #endregion Progressive background image loading */
.topPgFlex {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
}

/* === INDEX BS SPECIFIC STYLES === */
#parentBsContainter {
    margin-top: calc(var(--pgHeaderHeight) + 20px);
    padding-top: 30px;
    height: calc(100vh - var(--pgHeaderHeight) - 210px);
    background-color: var(--medSmoke);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

/* #region top of page */
.pgHeader {
    width: 100vw;
    position: fixed;
    top: 5px;
    background-color: var(--thinSmoke);
    height: var(--pgHeaderHeight);
}

.mainHeadTitle {
    font-family: Mirosa;
    color: #ecda99;
    font-size: 1.6em;
    text-align: center;

    /* text-align: center; */
    margin-top: 7px;
    font-weight: 700;
}

#mainHeadSubTitle {
    color: var(--medWarmText);
    font-size: 16px;
    text-align: center;
    font-family: "Merriweather", serif;
    position: relative;
    top: -1px;
}



/* #endregion top of page */

/* #region Top of Page 601px */
@media (min-width: 601px) {
    .parentBsContainter {
        max-width: 55% !important;
        margin-top: calc(var(--pgHeaderHeight) + 20px);
        padding-top: 30px;
        width: 85vw;
        height: calc(100vh - var(--pgHeaderHeight) - 210px);
        background-color: var(--medSmoke);
        backdrop-filter: blur(10px);
        border-radius: 12px;
    }


    /* #region Glass Frosted Buttons */
    .btn-glass {
        height: 40px;
        background: rgba(255, 255, 255, 0.15);
        color: var(--lightWarmText);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        font-size: 14px;
        cursor: pointer;
        letter-spacing: 1px;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    .btn-glass:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 215, 0, 0.6);
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.3);
        transform: translateY(-2px);
    }

    h2 {
        color: #FFF8DC;
        text-align: center;
        margin-bottom: 10px;
    }

    /* #endregion Glass/Frosted Button */

    /* #region Modal Styling */
    .modal {
        display: none;
        position: fixed;

        /* Crucial: removes it from grid flow */
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        overflow: auto;
    }

    .modal-title {
        font-family: 'Playfair Display', serif;
        font-style: normal;
        font-size: 1.4em;
        margin-bottom: 20px !important;
        color: rgb(100, 69, 23);
    }

    .modal-content {
        color: var(--lightWarmText);
        background-color: var(--darkSmoke) !important;
        margin: 10% auto;
        padding: 140px;
        border-radius: 8px;
        width: 80%;
        max-width: 600px;
        animation: fadeIn 0.8s ease-out;
        animation-fill-mode: forwards;
    }

    /* #region Modal Styling - Light Theme */
    .modal-content {
        background: linear-gradient(to bottom, #fdf6e3, #fbe4d3);
        color: #3b2f2f;
        font-family: 'Crimson Text', serif;
        border: 1px solid #d4b483;
        border-radius: 8px;
        padding: 1.5rem 2rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(255, 235, 205, 0.3);
    }

    .modal-header {
        background-color: #b76e79;
        color: #fff;
        font-variant: small-caps;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #d4b483;
    }

    /* #endregion Modal Styling - Light Theme */
    /* #endregion Modal Styling */

    .close {
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }

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

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


    .fade {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.6s ease, transform 1.3s ease;
    }

    .fade.out {
        opacity: 0;
        transform: translateX(-10px);
    }

    .vertical-center {
        margin: 0;
        position: absolute;
        top: 50%;
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }


    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid #ccc;
        border-top: 4px solid #333;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
}