/* =========================================================
   INSIGHT LEADERS — DIGITAL MAGAZINE READER
   Premium dark navy / black cinematic viewer
   Works with the existing HTML + PDFlipbook structure.
   ========================================================= */

:root {
    --reader-bg: #f4f7fb;
    --reader-bg-2: #ffffff;
    --navy: #102a56;
    --navy-soft: #eaf1fb;
    --blue: #1769aa;
    --blue-bright: #f28c28;
    --text: #18263b;
    --muted: #64748b;
    --line: rgba(16, 42, 86, 0.14);
    --glass: rgba(255, 255, 255, 0.92);
    --shadow: rgba(16, 42, 86, 0.16);
}

/* =========================================================
   PAGE / BACKGROUND
   ========================================================= */

.digital-magazine-page {
    position: relative;
    width: 100%;
    /* Let the document scroll naturally so the footer stays after the reader. */
    height: auto;
    min-height: calc(100vh - 130px);
    box-sizing: border-box;
    overflow: visible;

    padding: 0;

    color: var(--text);
    background:
            radial-gradient(ellipse 55% 52% at 50% 45%,
            rgba(23, 105, 170, 0.07) 0%,
            transparent 72%),
            radial-gradient(ellipse 30% 42% at 96% 47%,
            rgba(242, 140, 40, 0.06) 0%,
            transparent 72%),
            linear-gradient(135deg, #ffffff 0%, #f5f8fc 55%, #edf3fa 100%);

    isolation: isolate;
}

.digital-magazine-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background:
        /* very subtle curved-light impression without becoming busy */
            radial-gradient(
                    ellipse 75% 18% at 50% 100%,
                    rgba(56, 123, 205, 0.075),
                    transparent 70%
            ),
            linear-gradient(
                    112deg,
                    transparent 18%,
                    rgba(78, 142, 213, 0.045) 40%,
                    transparent 58%
            ),
            linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.018),
                    transparent 20%
            );
}

.digital-magazine-page::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -22%;
    width: min(900px, 90vw);
    height: 35%;
    z-index: -1;
    transform: translateX(-50%);

    background:
            radial-gradient(
                    ellipse at center,
                    rgba(48, 111, 191, 0.18) 0%,
                    rgba(29, 72, 126, 0.10) 32%,
                    transparent 70%
            );

    filter: blur(32px);
    pointer-events: none;
}

/* =========================================================
   MAIN READER
   ========================================================= */

.digital-magazine-reader {
    position: relative;
    width: 100%;
    height: auto;
    min-height: calc(100vh - 130px);
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* =========================================================
   HEADER
   ========================================================= */

.digital-magazine-header {
    position: relative;
    z-index: 100;

    flex: 0 0 auto;
    width: 100%;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    border-bottom: 1px solid rgba(16, 42, 86, 0.12);

    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,253,0.96));

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.digital-magazine-header h1 {
    margin: 0;
    padding: 0;

    color: #102a56;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.digital-magazine-header a {
    text-decoration: none;
}

/* =========================================================
   BACK BUTTON
   ========================================================= */

.back-to-magazine {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 15px;

    color: #243b5a;
    background: #f4f7fb;

    border: 1px solid rgba(16, 42, 86, 0.16);
    border-radius: 9px;

    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.05),
            0 8px 24px rgba(0, 0, 0, 0.20);

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;

    transition:
            color 0.22s ease,
            background 0.22s ease,
            border-color 0.22s ease,
            transform 0.22s ease;
}

.back-to-magazine:hover {
    color: #102a56;
    background: rgba(23, 105, 170, 0.10);
    border-color: rgba(242, 140, 40, 0.65);
    transform: translateY(-50%) translateX(2px);
}

.back-to-magazine:active {
    transform: translateY(-50%) scale(0.97);
}

/* =========================================================
   FLIPBOOK CONTAINER
   ========================================================= */

#flipbookContainer {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    height: calc(100vh - 300px);
    min-height: 520px;

    max-width: 1600px;
    margin: 0 auto;

    padding: 0px 86px 64px;

    box-sizing: border-box;

    overflow: hidden;
}

/* =========================================================
   LOADING
   ========================================================= */

#flipbookStatus {
    position: absolute;
    inset: 0;
    z-index: 80;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;

    color: #243b5a;
    font-size: 14px;
    font-weight: 500;

    pointer-events: none;

    background: transparent;
}

.flipbook-loader {
    width: 28px;
    height: 28px;

    border: 2px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--blue-bright);
    border-radius: 50%;

    animation: magazineSpin 0.8s linear infinite;
}

@keyframes magazineSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   FLIPBOOK WRAPPER
   ========================================================= */

#flipbookWrap {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;

    box-sizing: border-box;

    opacity: 1;
    transition: opacity 0.25s ease;
}

/* =========================================================
   FLIPBOOK SIZER
   ========================================================= */

#flipbookSizer {
    position: relative;

    width: min(1120px, 88vw);
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    transform-origin: center center;
}

/* =========================================================
   ACTUAL FLIPBOOK
   ========================================================= */

#flipbookViewer {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 0;

    margin: 0 auto;

    overflow: visible;

    box-sizing: border-box;
}

/* Remove browser scrollbars */
#flipbookWrap,
#flipbookSizer,
#flipbookViewer {
    scrollbar-width: none;
}

#flipbookWrap::-webkit-scrollbar,
#flipbookSizer::-webkit-scrollbar,
#flipbookViewer::-webkit-scrollbar {
    display: none;
}

/* =========================================================
   PAGE / CANVAS VISUAL POLISH
   Works with common PDFlipbook page elements.
   ========================================================= */

#flipbookViewer canvas,
#flipbookViewer img {
    box-shadow:
            0 24px 55px rgba(0, 0, 0, 0.48),
            0 8px 18px rgba(0, 0, 0, 0.32);
}

/* =========================================================
   PAGE-TURN ARROWS
   ========================================================= */

.flipbook-edge-arrow {
    position: absolute;
    top: 50%;
    z-index: 90;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 1px solid rgba(16, 42, 86, 0.18);
    border-radius: 50%;

    color: #102a56;
    background: rgba(255, 255, 255, 0.96);

    box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    cursor: pointer;

    font-size: 20px;
    line-height: 1;

    transition:
            background 0.22s ease,
            border-color 0.22s ease,
            box-shadow 0.22s ease,
            transform 0.22s ease;
}

.flipbook-edge-arrow:hover {
    background: rgba(37, 105, 184, 0.34);
    border-color: rgba(80, 165, 255, 0.62);

    box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.42),
            0 0 20px rgba(49, 135, 255, 0.16);

    transform: translateY(-50%) scale(1.06);
}

.flipbook-edge-arrow:active {
    transform: translateY(-50%) scale(0.93);
}

.flipbook-edge-arrow:focus-visible {
    outline: 2px solid rgba(74, 163, 255, 0.75);
    outline-offset: 3px;
}

.flipbook-edge-arrow.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) scale(0.82);
}

.flipbook-edge-arrow-left {
    left: 18px;
}

.flipbook-edge-arrow-right {
    right: 18px;
}

/* =========================================================
   BOTTOM TOOLBAR
   Inspired by the simple viewer reference:
   compact, centered, dark glass, not a large side panel.
   ========================================================= */

#flipbookNav {
    position: absolute;
    left: 50%;
    bottom: 16px;
    top: auto;
    right: auto;

    transform: translateX(-50%);

    z-index: 100;

    width: auto;
    min-height: 44px;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 4px 7px;

    background: linear-gradient(180deg, #ffffff 0%, #f1f5fa 100%);

    border: 1px solid rgba(16, 42, 86, 0.14);
    border-radius: 12px;

    box-shadow:
            0 14px 36px rgba(0, 0, 0, 0.48),
            inset 0 1px 0 rgba(255, 255, 255, 0.07);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    gap: 2px;

    transition:
            opacity 0.25s ease,
            transform 0.25s ease;
}

#flipbookNav button {
    width: 38px;
    height: 38px;
    min-width: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #243b5a;
    background: transparent;

    border: none;
    border-radius: 8px;

    cursor: pointer;

    font-size: 13px;

    transition:
            color 0.18s ease,
            background 0.18s ease,
            transform 0.18s ease;
}

#flipbookNav button:hover {
    color: #102a56;
    background: #e5eef9;
}

#flipbookNav button:active {
    transform: scale(0.90);
}

#flipbookNav button i {
    pointer-events: none;
}

#flipPageIndicator {
    width: auto;
    min-width: 56px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;

    box-sizing: border-box;

    color: #102a56;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;

    border-left: 1px solid rgba(255, 255, 255, 0.10);
    border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.flip-page-separator {
    margin: 0 4px;
    color: #728096;
}

.flipbook-toolbar-divider {
    width: 1px;
    height: 22px;

    margin: 0 4px;

    background: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   THUMBNAIL PANEL
   ========================================================= */

#flipThumbnailPanel {
    position: absolute;
    right: 82px;
    bottom: 70px;
    top: auto;

    width: min(760px, 70vw);
    max-height: min(620px, 72vh);

    display: none;
    flex-direction: column;

    overflow: hidden;

    z-index: 200;

    color: #102a56;

    background: linear-gradient(180deg, #ffffff, #f3f7fc);

    border: 1px solid rgba(16, 42, 86, 0.14);
    border-radius: 14px;

    box-shadow:
            0 22px 55px rgba(0, 0, 0, 0.58),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#flipThumbnailPanel.is-open {
    display: flex;
}

.flip-thumbnail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 18px;

    color: #102a56;

    font-size: 14px;
    font-weight: 600;

    border-bottom: 1px solid rgba(16, 42, 86, 0.12);
}

#flipThumbnailClose {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #dce6f2;
    background: transparent;

    border: none;
    border-radius: 7px;

    cursor: pointer;
    font-size: 16px;
}

#flipThumbnailClose:hover {
    color: #102a56;
    background: #e5eef9;
}

#flipThumbnailGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));

    gap: 14px;

    padding: 18px;

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
}

.flip-thumbnail-item {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 6px;

    color: #102a56;
    background: transparent;

    border: 1px solid transparent;
    border-radius: 8px;

    cursor: pointer;

    transition:
            border-color 0.2s ease,
            background 0.2s ease,
            transform 0.2s ease;
}

.flip-thumbnail-item:hover {
    background: #edf3fa;
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.flip-thumbnail-item.active {
    background: rgba(49, 135, 255, 0.10);
    border-color: rgba(23, 105, 170, 0.75);
    box-shadow: 0 0 18px rgba(49, 135, 255, 0.10);
}

.flip-thumbnail-item img {
    width: 100%;
    display: block;

    object-fit: contain;

    background: #ffffff;

    border-radius: 3px;

    box-shadow:
            0 8px 18px rgba(0, 0, 0, 0.35);
}

.flip-thumbnail-item span {
    margin-top: 7px;

    color: #52647c;

    font-size: 11px;
    font-weight: 600;
}

/* =========================================================
   NO PDF STATE
   ========================================================= */

.no-digital-magazine {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    box-sizing: border-box;

    color: #243b5a;

    background:
            radial-gradient(circle at center, rgba(23, 105, 170, 0.08), transparent 55%),
            var(--reader-bg);

    text-align: center;
}

.no-digital-magazine p {
    margin: 0;

    padding: 18px 24px;

    color: #52647c;
    background: #ffffff;

    border: 1px solid rgba(16, 42, 86, 0.12);
    border-radius: 10px;
}

/* =========================================================
   FULLSCREEN
   ========================================================= */

#flipbookContainer:fullscreen,
#flipbookContainer:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;

    padding: 10px 86px 62px;

    background:
            radial-gradient(circle at 50% 45%, rgba(23, 105, 170, 0.12), transparent 52%),
            linear-gradient(135deg, #f8fafc, #eaf1fb, #ffffff);

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    overflow: hidden;
}

#flipbookContainer:fullscreen #flipbookWrap,
#flipbookContainer:-webkit-full-screen #flipbookWrap {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: visible;
}

#flipbookContainer:fullscreen #flipbookNav,
#flipbookContainer:-webkit-full-screen #flipbookNav {
    position: absolute;

    left: 50%;
    right: auto;
    bottom: 16px;
    top: auto;

    transform: translateX(-50%);
}

#flipbookContainer:fullscreen #flipThumbnailPanel,
#flipbookContainer:-webkit-full-screen #flipThumbnailPanel {
    right: 82px;
    bottom: 70px;
    top: auto;

    max-height: 85vh;
}

/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1200px) {
    #flipbookSizer {
        width: min(1180px, 88vw);
    }

    #flipbookContainer {
        padding-left: 92px;
        padding-right: 92px;
    }

    .flipbook-edge-arrow-left {
        left: 24px;
    }

    .flipbook-edge-arrow-right {
        right: 24px;
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 999px) {
    .digital-magazine-header {
        height: 68px;
    }

    .back-to-magazine {
        left: 18px;
        padding: 8px 12px;
        font-size: 12px;
    }

    #flipbookContainer {
        padding: 8px 62px 62px;
    }

    #flipbookSizer {
        width: 100%;
    }

    .flipbook-edge-arrow {
        width: 44px;
        height: 44px;
    }

    .flipbook-edge-arrow-left {
        left: 8px;
    }

    .flipbook-edge-arrow-right {
        right: 8px;
    }

    #flipThumbnailPanel {
        right: 65px;
        width: min(650px, 76vw);
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .digital-magazine-page {
        height: auto;
        min-height: calc(100dvh - 120px);
        overflow: visible;
    }

    .digital-magazine-reader {
        height: auto;
        min-height: calc(100dvh - 120px);
    }

    #flipbookContainer {
        height: calc(100dvh - 230px);
        min-height: 360px;
    }

    .digital-magazine-header {
        height: 58px;
    }

    .digital-magazine-header h1 {
        font-size: 17px;
    }

    .back-to-magazine {
        left: 10px;

        width: 32px;
        height: 32px;

        justify-content: center;

        padding: 0;

        border-radius: 50%;

        font-size: 0;
    }

    .back-to-magazine::first-letter {
        font-size: 15px;
    }

    #flipbookContainer {
        padding: 4px 8px 58px;
    }

    #flipbookWrap {
        overflow: visible;
    }

    #flipbookSizer {
        width: 100%;
        max-width: 100%;
    }

    .flipbook-edge-arrow {
        width: 36px;
        height: 36px;

        font-size: 14px;
    }

    .flipbook-edge-arrow-left {
        left: 2px;
    }

    .flipbook-edge-arrow-right {
        right: 2px;
    }

    #flipbookNav {
        bottom: 9px;

        max-width: calc(100vw - 18px);

        padding: 3px 4px;

        border-radius: 10px;
    }

    #flipbookNav button {
        width: 34px;
        height: 34px;
        min-width: 34px;

        font-size: 11px;
    }

    #flipPageIndicator {
        height: 34px;
        min-width: 48px;

        padding: 0 5px;

        font-size: 10px;
    }

    .flipbook-toolbar-divider {
        height: 19px;
        margin: 0 2px;
    }

    #flipThumbnailPanel {
        position: fixed;

        top: 50%;
        left: 8px;
        right: 8px;
        bottom: auto;

        width: auto;
        max-height: 80vh;

        transform: translateY(-50%);

        border-radius: 12px;
    }

    #flipThumbnailGrid {
        grid-template-columns: repeat(3, 1fr);
        gap: 9px;
        padding: 11px;
    }

    .flip-thumbnail-header {
        padding: 11px 13px;
    }

    .flip-thumbnail-item span {
        font-size: 10px;
    }

    #flipbookContainer:fullscreen,
    #flipbookContainer:-webkit-full-screen {
        padding: 5px 5px 55px;
    }

    #flipbookContainer:fullscreen #flipbookNav,
    #flipbookContainer:-webkit-full-screen #flipbookNav {
        left: 50%;
        right: auto;
        bottom: 8px;

        transform: translateX(-50%);
    }

    #flipbookContainer:fullscreen #flipThumbnailPanel,
    #flipbookContainer:-webkit-full-screen #flipThumbnailPanel {
        left: 8px;
        right: 8px;
        bottom: auto;
    }
}

/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {
    #flipbookNav button {
        width: 31px;
        min-width: 31px;
    }

    #flipPageIndicator {
        min-width: 43px;
        padding: 0 4px;
    }

    .flipbook-edge-arrow {
        width: 31px;
        height: 31px;
        font-size: 11px;
    }

    #flipThumbnailGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   ACCESSIBILITY / MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}




/* =========================================
   MAGAZINE SIDE ADS
   Fixed to visible reader area, never over header/footer
   ========================================= */

.magazine-ad-sidebar {
    display: none !important;
}

@media screen and (min-width: 1500px) {
    .magazine-ad-sidebar {
        display: block !important;
        position: fixed !important;
        top: var(--magazine-ad-top, 130px);
        bottom: var(--magazine-ad-bottom, 0px);
        width: 180px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        z-index: 20 !important;
    }

    .magazine-ad-left {
        left: 0 !important;
        right: auto !important;
    }

    .magazine-ad-right {
        right: 0 !important;
        left: auto !important;
    }

    .magazine-ad-sidebar .magazine-ad-image-link {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        line-height: 0 !important;
    }

    .magazine-ad-sidebar .magazine-sidebar-ad-image {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        /* Preserve the supplied portrait artwork without stretching it. */
        object-fit: cover !important;
        object-position: center top !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
    }
}

@media screen and (max-width: 1499px) {
    .magazine-ad-sidebar {
        display: none !important;
    }
}

/* Centered, responsive magazine title */
.digital-magazine-reader > h1 {
    width: 100%;
    max-width: 900px;
    margin: 20px auto 24px;
    padding: 0 16px;
    box-sizing: border-box;

    text-align: center;
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.3;
    color: #102a56;

    overflow-wrap: break-word;
    text-wrap: balance;
}

/* Long titles and mobile screens */
@media (max-width: 768px) {
    .digital-magazine-reader > h1 {
        font-size: clamp(17px, 4vw, 23px);
        margin: 14px auto 18px;
        padding: 0 12px;
    }
}


/* Fix magazine reader clipping while scrolling */
.digital-magazine-page,
.digital-magazine-reader,
#flipbookWrap,
#flipbookSizer,
#flipbookViewer {
    overflow: visible !important;
}

/* Keep the reader sized to the available screen space */
#flipbookContainer {
    box-sizing: border-box;
    overflow: visible !important;
}

/* Preserve proper reader sizing on mobile */
@media (max-width: 600px) {
    #flipbookContainer {
        overflow: visible !important;
    }
}

/* France digital magazine layout */
.magazine-reader-page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.magazine-reader-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 0px;
}

.magazine-pdf-shell {
    overflow: hidden;
    border: 1px solid #dce3ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(16, 42, 86, .10);
}

.magazine-pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #dce3ed;
    color: #102a56;
    background: #fff;
}

#flipbookContainer {
    position: relative;
    width: 100%;
    height: min(78vh, 900px);
    min-height: 540px;
    padding: 20px;
    box-sizing: border-box;
    background: #edf2f8;
}

#flipbookWrap,
#flipbookSizer,
#flipbookViewer {
    width: 100%;
    height: 100%;
}

#flipbookStatus {
    color: #102a56;
}

.flipbook-loader {
    border-color: #d5dfec;
    border-top-color: #76008b;
}

@media (max-width: 768px) {
    .magazine-reader-page {
        padding: 16px 10px 32px;
    }

    .magazine-reader-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .magazine-pdf-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    #flipbookContainer {
        height: 65vh;
        min-height: 400px;
        padding: 8px;
    }
}