* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #707070;
}


/* ==========================================
   MAIN PAGE
========================================== */

.page {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 32px 8px 35px;
}


/* ==========================================
   MAIN CARD
========================================== */

.card {
    width: 100%;
    max-width: 405px;

    background: #f8f9fa;

    border: 1px solid #eeeeee;

    border-radius:
        6px
        6px
        25px
        25px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.055);

    padding:
        65px
        18px
        35px;
}


/* ==========================================
   HEADING
========================================== */

.heading {
    width: 100%;
    max-width: 335px;

    margin: 0 auto 27px;

    text-align: center;
}


.heading h1 {
    margin:
        0 0 9px;

    color: #707070;

    font-size: 27px;
    font-weight: 400;

    line-height: 1.2;
}

.heading p {
    margin: 0;

    color: #707070;

    font-size: 18px;
    font-weight: 400;

    line-height: 1.4;
}


/* ==========================================
   REPORT SHELL
========================================== */

.report-shell {
    width: 100%;

    /*
        This is the narrow window.

        The PDF itself can be wider than
        this shell.
    */

    max-width: 335px;

    margin: 0 auto;

    background: #ffffff;

    border: 1px solid #dddddd;

    box-shadow:
        0 1px 5px rgba(0, 0, 0, 0.07);

    overflow: hidden;
}


/* ==========================================
   REPORT VIEWER
========================================== */

.report-viewer {
    position: relative;

    width: 100%;

    height: 640px;

    background: #ffffff;

    /*
        Both directions are scrollable.
    */

    overflow-x: auto;
    overflow-y: auto;

    /*
        Smooth scrolling on iPhone.
    */

    -webkit-overflow-scrolling: touch;

    overscroll-behavior: contain;

    /*
        Allows one-finger horizontal
        and vertical scrolling.
    */

    touch-action: pan-x pan-y;

    scrollbar-width: thin;
}


/* ==========================================
   REPORT CANVAS
========================================== */

.report-canvas {
    position: relative;

    /*
        IMPORTANT:

        This is deliberately wider than
        the report viewer.

        The viewer acts as a window.
    */

    width: 450px;

    min-height: 100%;

    background: #ffffff;

    transform-origin: top left;

    transform: scale(1);
}


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

.report-page {
    display: block;

    width: 450px;

    max-width: none;

    height: auto;

    margin: 0;
    padding: 0;

    background: #ffffff;
}


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

.footer {
    width: 100%;

    padding:
        22px
        12px
        28px;

    background: #ffffff;

    text-align: center;
}

.footer-links {
    display: flex;

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

    gap: 18px;

    flex-wrap: wrap;
}

.footer-links a {
    color: #777777;

    font-size: 11px;

    font-weight: 400;

    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 13px;

    color: #888888;

    font-size: 10px;
}


/* ==========================================
   DESKTOP / LAPTOP
========================================== */

@media (min-width: 601px) {

    .page {
        padding-top: 65px;
    }

    .card {
        max-width: 425px;

        padding:
            95px
            20px
            38px;
    }

    .heading {
        max-width: 335px;

        margin-bottom: 32px;
    }

    .heading h1 {
        font-size: 29px;
    }

    .heading p {
        font-size: 18px;
    }

    .report-shell {
        max-width: 335px;
    }

    .report-viewer {
        height: 720px;
    }

    .report-canvas {
        width: 500px;
    }

    .report-page {
        width: 500px;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .page {
        padding:
            32px
            8px
            28px;
    }

    .card {
        width: 100%;

        /*
            Slim main card
        */

        max-width: 355px;

        padding:
            55px
            15px
            32px;

        border-radius:
            6px
            6px
            24px
            24px;
    }


    /* --------------------------------------
       MOBILE HEADING
    -------------------------------------- */

    .heading {
    width: 100%;
    max-width: 260px;

    margin: 0 auto 27px;

    text-align: left;
}

    /*
        Your requested mobile size.
    */

    .heading h1 {
        font-size: 19px;
    }

    .heading p {
    width: 100%;

    margin-right: 0;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.4;

    color: #707070;
}


    /* --------------------------------------
       MOBILE REPORT
    -------------------------------------- */

    .report-shell {
        width: 100%;
        max-width: 250px;
        margin-left: auto;
        margin-right: 0 auto;
    }

    .report-viewer {

        /*
            Visible report window.
        */

        height: 640px;

        overflow-x: auto;
        overflow-y: auto;

        -webkit-overflow-scrolling: touch;

        overscroll-behavior: contain;

        touch-action: pan-x pan-y;
    }

    /*
        PDF remains wider than shell.
    */

    .report-canvas {
        width: 450px;
    }

    .report-page {
        width: 450px;
    }
}


/* ==========================================
   SMALL PHONES
========================================== */

@media (max-width: 380px) {

    .card {
        max-width: 365px;

        padding-left: 13px;
        padding-right: 13px;
    }


    .heading h1 {
        font-size: 19px;
    }

    .heading p {
        font-size: 16px;
    }


    .heading {
        max-width: 325px;
    }


    .report-shell {
        max-width: 325px;
    }


    .report-viewer {
        height: 590px;
    }


    .report-canvas {
        width: 430px;
    }

    .report-page {
        width: 430px;
    }
}