/* Content protection for visitors (includes/protection.php; behaviour in protect.js). */

/* ----- No selection, no image saving ----- */
body {
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

input,
textarea,
select,
[contenteditable="true"],
.pc-allow-copy {
	-webkit-user-select: text;
	user-select: text;
}

img {
	-webkit-user-drag: none;
	-webkit-touch-callout: none;
	pointer-events: auto;
}

/* ----- Blur while the window is not in focus ----- */
html.pc-shield body > * {
	filter: blur(14px);
	transition: filter .15s;
}

@media (prefers-reduced-motion: reduce) {
	html.pc-shield body > * {
		transition: none;
	}
}

/* ----- Printing shows a notice, not the page ----- */
@media print {
	body {
		visibility: hidden;
	}

	body > * {
		display: none;
	}

	body::before {
		visibility: visible;
		content: "This page from pitaloandco.com cannot be printed. Visit the website to see it.";
		display: block;
		padding: 40px;
		font: 16px/1.5 sans-serif;
	}
}
