/*  Santa Claus walking in the header
    ---------------------------------------------------------------------------------
    The stage covers the whole header. It clips Santa on the left and right edges
    only, so he can leave the header completely and come back from the other side,
    while still being allowed to overflow above or below it.
*/

.santaclaus-stage {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	pointer-events: none;
	-webkit-clip-path: inset(-1000px 0 -1000px 0);
	clip-path: inset(-1000px 0 -1000px 0);
}

.santaclaus-walker {
	position: absolute;
	left: 0;
	/* Off-screen on the left until the script takes over */
	-webkit-transform: translate3d(-100%, 0, 0);
	transform: translate3d(-100%, 0, 0);
	will-change: transform;
	pointer-events: auto;
}

.santaclaus-sprite {
	display: block;
	width: 100%;
	height: 100%;
	background: url("./images/santawalk.gif") no-repeat center bottom;
	background-size: contain;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.santaclaus-walker:hover .santaclaus-sprite {
	transform: translateY(-10px) scale(1.08);
	filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.6));
}

.santaclaus-hidden {
	display: none;
}

/* Test mode (administrators only) */
.santaclaus-test {
	outline: 2px dashed #e53935;
	outline-offset: -2px;
}

.santaclaus-test .santaclaus-walker {
	outline: 1px dotted #ffeb3b;
}

.santaclaus-test-label {
	position: absolute;
	top: 4px;
	left: 50%;
	transform: translateX(-50%);
	max-width: calc(100% - 16px);
	padding: 3px 8px;
	border-radius: 4px;
	background: rgba(183, 28, 28, 0.9);
	color: #fff;
	font: bold 11px/1.4 Verdana, Helvetica, Arial, sans-serif;
	text-align: center;
	white-space: normal;
}

.santaclaus-test-info {
	display: block;
	font-weight: normal;
	font-family: Consolas, Menlo, monospace;
}
