﻿
@media print {
    @page {
        size: 210mm 297mm;
        margin: 10mm;
    }

    /* target the first page only */
    @page :first {
        margin-top: 12mm;
    }

    /* target left (even-numbered) pages only */
    @page :left {
        margin-right: 12mm;
    }

    /* target right (odd-numbered) pages only */
    @page :right {
        margin-left: 12mm;
    }

    body {
        padding: 0 !important;
        margin: 0 !important;
        color: #000;
        background-color: #fff;
    }

    .print-only {
        display: block;
    }

    .normal-main-container, .container, .normal-footer {
        max-width: 1080px;
        width: 1080px;
    }

    .normal-main-container {
        border: none !important;
    }

    .share-website-buttons {
        display: none;
    }

    header, footer, aside, nav, iframe, .menu, .hero, .adslot, .PageHeader {
        display: none;
    }

    img.dark {
        filter: invert(100%) hue-rotate(180deg) brightness(120%) contrast(150%);
    }

    /*a[href^="http"]::after {
        content: " (" attr(href) ")";
    }*/

    main::after {
        content: "Copyright Mingzhi Lin";
        display: block;
        text-align: center;
    }

    h1 {
        page-break-before: auto;
        break-before: auto;
    }

    table {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}
