<p>Натисни на екран, щоб змінити фон.</p>
* {
	padding: 0;
	margin: 0;
}
	
body {
	height: 100vh;
	display: grid;
	user-select: none;
	align-items: center;
	justify-content: center;
}

p {
	font-size: 24px;
	font-family: monospace;
	line-height: 1;
	font-weight: 700;
	text-shadow: 1px 1px 0px #4f4f4f;
}
window.onclick = function() {
	randomColor = '#' + ( Math.random() * 0xFFFFFF << 0 ).toString(16);
	document.body.style.background = randomColor;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.