@media print {
	@page {
		margin: 0;
	}

	body *:not(div#the_container):not(:where(div#the_container *)):not(:has(div#the_container)) {
		display: none !important;
	}

	html,
	body,
	:has(div#the_container),
	div#the_container {
		display: block !important;
		position: static !important;
		float: none !important;
		width: 100% !important;
		max-width: none !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
		background: white !important;
		border: none !important;
		box-shadow: none !important;
	}

		div#the_container canvas {
			display: block !important;
			width: auto !important;
			max-width: 100% !important;
			height: auto !important;
			max-height: 99vh !important;
			margin: 0 auto !important;
			page-break-inside: avoid !important;
			break-inside: avoid !important;
			page-break-after: always !important;
			break-after: page !important;
		}

			div#the_container canvas:last-child {
				page-break-after: auto !important;
				break-after: auto !important;
			}

		div#the_container.fallback-iframe,
		div#the_container:has(> iframe) {
			height: 100vh !important;
		}

		div#the_container iframe {
			display: block !important;
			width: 100% !important;
			height: 100vh !important;
			border: none !important;
		}
}
