:root {
	--appWidth: 3840px;
	--appHeight: 2160px;

	--videoWidth: 1080px;
	--videoHeight: 607px;
}

html, head, body {
	padding: 0;
	margin: 0;
	overflow: hidden;
}

#app {
	position: fixed;
	left: 0;
	top: 0;
	width: var(--appWidth);
	height: var(--appHeight);
	overflow: hidden;
}

#page {
	width: var(--appWidth);
	height: var(--appHeight);
	display: block;
}

#page5-form {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 12;
	pointer-events: none;
}

#page5-form input {
	position: fixed;
	pointer-events: auto;
	border: 2px solid transparent;
	background: rgba(255, 255, 255, 0.02);
	color: #1f2a66;
	font-size: 64px;
	padding: 8px 20px;
	box-sizing: border-box;
	outline: none;
}

#page5-form input.active {
	border: none;
	border-bottom: 3px solid cyan;
}

#page5-form input.invalid {
	border-color: #ff4d4f;
}

#page5-consents {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 11;
	pointer-events: none;
}

#page5-consents .page5-consent {
	position: fixed;
	border: none;
	background: transparent;
	padding: 0;
	pointer-events: auto;
}

#page5-consents .page5-consent .consent-overlay-image {
	position: absolute;
	left: 0;
	top: 0;
}

#page5-consents .page5-consent.invalid {
	outline: 4px solid #ff4d4f;
	outline-offset: 0;
}

body.debug #page5-form input {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 0, 0, 0.7);
	color: #111111;
}

body.debug #page5-form input.active {
	border-color: #00e5ff;
	box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.35);
}

body.debug #page5-form input.invalid {
	border-color: #ff1744;
	box-shadow: 0 0 0 4px rgba(255, 23, 68, 0.35);
}

body.debug #page5-consents .page5-consent {
	background: rgba(255, 0, 0, 0.08);
	outline: 2px dashed rgba(255, 0, 0, 0.4);
}

#onscreen-keyboard {
	display: none;
	position: fixed;
	padding: 20px;
	background: #000000;
	border-radius: 24px;
	z-index: 13;
}

#onscreen-keyboard .kb-row {
	display: grid;
	gap: 12px;
	margin-bottom: 12px;
}

#onscreen-keyboard .kb-row:last-child {
	margin-bottom: 0;
}

#onscreen-keyboard .kb-row-letters {
	grid-template-columns: repeat(10, minmax(0, 1fr));
}

#onscreen-keyboard .kb-row-actions {
	grid-template-columns: 1.1fr 1.1fr 1.2fr 3fr 1.2fr 1.2fr;
}

#onscreen-keyboard .kb-key {
	height: 96px;
	width: 100%;
	min-width: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 12px;
	background: #ffffff;
	color: #1f2a66;
	font-size: 40px;
	font-weight: 700;
}

#onscreen-keyboard .kb-key.is-active {
	background: #1f2a66;
	color: #ffffff;
}

#onscreen-keyboard .kb-key.key-wide {
	min-width: 0;
}

#onscreen-keyboard .kb-key.key-space {
	min-width: 0;
}

#overlays {
	position: fixed;
	top: 0;
	left: 0;
	width: var(--appWidth);
	height: var(--appHeight);
	z-index: 5;
	pointer-events: none;
}

#overlays img.page-overlay {
	position: fixed;
}

.btn {
	min-width: 20px;
	min-height: 20px;
	opacity: 0.5;
	position: fixed;
	z-index: 10;
}

.btn.selectable.active {
	outline: 10px solid rgba(255, 255, 255, 0.65);
	outline-offset: -8px;
	border-radius: 999px;
}

body.debug .btn {
	background-color: red;
}

.btn.pulsating {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}


.btn.arrow::before {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	top: 42px;
	left: 5px;
	border-right: 4px solid black;
	border-bottom: 4px solid black;
	transform: rotate(-45deg);
	animation: bounce 1s infinite;
}
@keyframes bounce {
	0%, 100% {
		transform: translateX(0) rotate(-45deg);
	}
	50% {
		transform: translateX(10px) rotate(-45deg);
	}
}


table {
	width: 100%;
}

#video {
	width: var(--appWidth);
	height: var(--appHeight);

	display: none;
	position: fixed;
	top: 0;
	left: 0;
	z-index: -1;
	background-color: rgba(0, 0, 0, 0.75);
}

#video video {
	width: var(--videoWidth);
	height: var(--videoHeight);

	position: absolute;
	top: calc( calc(var(--appHeight) / 2) - calc(var(--videoHeight) / 2) );
}

#video #close {
	position: absolute;
	right: 50px;
	bottom: calc( calc(var(--appHeight) / 2) + calc(var(--videoHeight) / 2) + 50px ) ;

	font-size: 60px;
	font-family: arial;
	color: #fff;
	padding: 10px 20px;
}

#video #controls {
	position: absolute;
	width: var(--videoWidth);

	top: calc( calc(var(--appHeight) / 2) + calc(var(--videoHeight) / 2) + 50px ) ;
	font-size: 100px;
	text-align: center;
	color: #fff;
}

