/* =========================================================
   MOUNTAIN VETERAN MINISTRIES
   PDF.JS VIEWER
========================================================= */

.mvm-pdf {
    width: 100%;
    margin: 35px auto;
}

.mvm-pdf-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    background: #ffffff;

    border: 1px solid #d8d8d8;
    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 10px 35px
        rgba(0, 0, 0, 0.08);
}


/* =========================================================
   HEADER
========================================================= */

.mvm-pdf-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 25px;

    padding: 24px 28px;

    background: #1a2b28;
}


.mvm-pdf-heading {
    min-width: 0;
}


.mvm-pdf-kicker {
    display: block;

    margin-bottom: 5px;

    color: #d4ae4b !important;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.5px;
}


.mvm-pdf-heading h2 {
    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-family: Georgia, serif !important;

    font-size: clamp(
        25px,
        3vw,
        34px
    ) !important;

    font-weight: 700 !important;

    line-height: 1.2 !important;
}


/* =========================================================
   OPEN BUTTON
========================================================= */

.mvm-pdf-open {
    display: inline-block;

    flex-shrink: 0;

    padding: 11px 19px;

    background: #d4ae4b;

    color: #142421 !important;

    border-radius: 6px;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.3;

    text-decoration: none !important;
}


.mvm-pdf-open:hover {
    background: #ffffff;

    color: #142421 !important;
}


/* =========================================================
   TOOLBAR
========================================================= */

.mvm-pdf-toolbar {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 13px 20px;

    background: #fdf8ef;

    border-bottom: 1px solid #d6d6d6;
}


.mvm-pdf-navigation,
.mvm-pdf-tools {
    display: flex;

    align-items: center;

    gap: 9px;
}


/* =========================================================
   TOOLBAR BUTTONS
========================================================= */

.mvm-pdf-toolbar button {
    appearance: none !important;

    min-height: 38px;

    padding: 8px 13px !important;

    margin: 0 !important;

    background: #1a2b28 !important;

    color: #ffffff !important;

    border: 0 !important;
    border-radius: 5px !important;

    box-shadow: none !important;

    font-family: Arial, sans-serif !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    line-height: 1.2 !important;

    cursor: pointer;
}


.mvm-pdf-toolbar button:hover {
    background: #8b6914 !important;

    color: #ffffff !important;
}


.mvm-pdf-toolbar button:disabled {
    opacity: 0.4;

    cursor: default;
}


/* =========================================================
   PAGE NUMBER
========================================================= */

.mvm-pdf-page {
    display: flex;

    align-items: center;

    gap: 5px;

    color: #2c3532 !important;

    font-size: 15px;
    font-weight: 600;
}


.mvm-pdf-page-number {
    width: 58px !important;

    min-height: 38px;

    margin: 0 3px !important;

    padding: 5px !important;

    background: #ffffff !important;

    color: #2c3532 !important;

    border: 1px solid #aaa !important;
    border-radius: 4px !important;

    box-sizing: border-box;

    text-align: center;

    font-size: 15px !important;
}


/* =========================================================
   ZOOM
========================================================= */

.mvm-pdf-zoom-level {
    min-width: 54px;

    color: #2c3532 !important;

    text-align: center;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   PDF DISPLAY AREA
========================================================= */

.mvm-pdf-stage {
    position: relative;

    width: 100%;
    height: 800px;

    padding: 20px;

    overflow: auto;

    box-sizing: border-box;

    background: #e7e7e7;

    text-align: center;
}


/* =========================================================
   PDF PAGE
========================================================= */

.mvm-pdf-canvas {
    display: inline-block !important;

    max-width: none !important;

    margin: 0 auto;

    background: #ffffff;

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.22);
}


/* =========================================================
   LOADING
========================================================= */

.mvm-pdf-loading {
    padding: 100px 20px;

    color: #2c3532 !important;

    text-align: center;

    font-size: 17px;
}


.mvm-pdf-spinner {
    width: 38px;
    height: 38px;

    margin: 0 auto 15px;

    border: 4px solid #cccccc;

    border-top-color: #1a2b28;

    border-radius: 50%;

    animation:
        mvmPdfSpin
        0.8s linear infinite;
}


@keyframes mvmPdfSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   ERROR
========================================================= */

.mvm-pdf-load-error {
    max-width: 500px;

    margin: 0 auto;

    padding: 30px;

    background: #ffffff;

    border-radius: 8px;
}


.mvm-pdf-load-error strong {
    display: block;

    margin-bottom: 10px;

    color: #1a2b28;

    font-size: 20px;
}


.mvm-pdf-load-error a {
    display: inline-block;

    margin-top: 10px;

    padding: 10px 18px;

    background: #1a2b28;

    color: #ffffff !important;

    border-radius: 5px;

    text-decoration: none !important;

    font-weight: 700;
}


/* =========================================================
   FOOTER
========================================================= */

.mvm-pdf-footer {
    padding: 12px 20px;

    background: #ffffff;

    border-top: 1px solid #dddddd;

    text-align: center;
}


.mvm-pdf-footer a {
    color: #1a2b28 !important;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none !important;
}


.mvm-pdf-footer a:hover {
    text-decoration: underline !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .mvm-pdf-toolbar {
        flex-direction: column;

        align-items: stretch;
    }


    .mvm-pdf-navigation,
    .mvm-pdf-tools {
        justify-content: center;
    }


    .mvm-pdf-stage {
        height: 700px;

        padding: 15px;
    }

}


/* =========================================================
   PHONE
========================================================= */

@media (max-width: 600px) {

    .mvm-pdf-shell {
        border-radius: 6px;
    }


    .mvm-pdf-header {
        flex-direction: column;

        align-items: stretch;

        padding: 20px;
    }


    .mvm-pdf-open {
        width: 100%;

        box-sizing: border-box;

        text-align: center;
    }


    .mvm-pdf-navigation,
    .mvm-pdf-tools {
        flex-wrap: wrap;
    }


    .mvm-pdf-toolbar {
        padding: 12px 10px;
    }


    .mvm-pdf-toolbar button {
        padding: 8px 10px !important;

        font-size: 13px !important;
    }


    .mvm-pdf-stage {
        height: 600px;

        padding: 10px;
    }

}