@media print {

    /* Ensure there's no background color or outline causing the grey border */
    * {
        background: none !important;
        outline: none !important;
		border: none !important;
		float: none !important;
    }

  

    /* Hiding elements in the page */
    #header, #footer, #site-info {
        display: none;
    }
	
	
	/* Remove default margins from the page */
 @page {
        margin-top: 80px;  /* 20px margin at the top of every page */
        margin-left: 0;    /* No left margin */
        margin-right: 0;   /* No right margin */
        margin-bottom: 0;  /* No bottom margin (optional, adjust as needed) */
    }	
	
	

  /* Inject custom content at the beginning of the first page */
   body::before {
    content: "🌿 Please consider the environment before printing.\A Think twice, print wise!\A Bookmark Instead\A\A www.petervis.com | Donate to the USHMM \A\A Support The Quantum Archive";
    display: block;
    font-size: 16pt;
    font-family: Arial, sans-serif;
    color: #2c5f2d;
    background: #e0f2e9;
    border: 2px solid #2c5f2d;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    width: 80%;
    margin: 80px auto 100px auto;
    line-height: 1.5;
    white-space: pre-line;
    page-break-after: always;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
}



  
	
    body {
        font-family: Arial, sans-serif;
        font-size: 12pt;
        margin: 0;
        padding: 0;
        background: #fff;
        color: #000;
    }

    #footer-menu, #nav, #footer, #mobile-nav, #imageCounter, .responsive-ad-container, 
    .recommendation-ad-container, #consent-banner, .clear, .clear1 {
        display: none !important;
    }

    #content, #article {
        width: 85%;
        margin: 0 auto;
        padding: 20px;
        text-align: left;
    }

    header h1 {
        font-size: 18pt;
        margin-bottom: 10px;
        text-align: center;
    }

    img {
		page-break-before: always;   /* Force a page break before each image */
        max-width: 99%;
        height: auto;
        display: block;
        margin: 1em auto;
        page-break-inside: avoid;
        break-inside: avoid;
    }
	
	
	/* Prevent content (images, blocks, paragraphs) from breaking across pages */
    img, table, figure, p, .contentbox {
        page-break-inside: avoid !important;
        break-inside: avoid-column !important;  /* Modern browsers */
    }

    figure, .image-container, p {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    table th, table td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: left;
    }

    #details {
        font-size: 10pt;
        text-align: center;
        margin-top: 20px;
    }

    a {
        color: #000;
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }

    article {
        page-break-before: avoid;
        page-break-after: auto;
        break-inside: avoid;
    }
	
	
	 hr {
        border: 0;
        border-top: 2px solid #000;  /* Thickness and color */
        margin: 10px 0;              /* Space above and below */
        page-break-before: avoid;    /* Avoid breaking before the hr */
    }
	
	
    .adsbygoogle, 
    .google-auto-placed, 
    ins.adsbygoogle {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
	}
	
	
	 iframe[src*="googleads"] {
        display: none !important;
    }
	
}
