* {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	vertical-align: baseline;
	list-style-type: none;
	outline: none;
	text-decoration: none;
	border-collapse: collapse;
	background: none;
	color: inherit;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	letter-spacing: inherit;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	text-align: center;
	transition: all 0s linear;
}

:root {
	--pre-registered:	rgba(21, 21, 21, 1);
	--approved:			rgba(8, 34, 8, 1);
	--invalid:			rgba(34, 8, 8, 1);
	--registered:		rgba(34, 21, 21, 1);
	--partpaid:			rgba(8, 8, 34, 1);
	--weekend:			rgba(8, 8, 34, 1);


	--logo:		calc(30vh + 20vw);
	--tile-w:	calc(var(--logo) * 681 / 531);
	--tile-h:	calc(var(--tile-w) * 945 / 681);
	--offset-y:	calc(-1 * (5vh + 3vw));
	--align-y:	calc(var(--offset-y) + var(--logo) / 2 - var(--tile-h) / 2);
}

::-webkit-scrollbar {
	background: transparent;
	width: calc(0.8vh + 0.5vw);
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: white;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

@keyframes errorBlink {
	0%, 49% {
		color: red;
	}
	50%, 100% {
		color: inherit;
	}
}

@keyframes warningBlink {
	0%, 49% {
		color: orange;
	}
	50%, 100% {
		color: inherit;
	}
}

@keyframes successBlink {
	0%, 49% {
		color: green;
	}
	50%, 100% {
		color: inherit;
	}
}

@keyframes noticeBlink {
	0%, 9% {
		background-color: green;
	}
	10%, 100% {
		background-color: white;
	}
}

html {
	font-family: 'Montserrat', sans-serif;
	font-size: calc(2vh + 1vw);
	line-height: calc(3vh + 2vw);
	color: white;
	background-color: black;
	min-height: 100vh;
	position: relative;
}

html::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--pattern-color, var(--pre-registered));

	-webkit-mask-image: url('/images/PATTERN.png');
	-webkit-mask-repeat: repeat;
	-webkit-mask-size: var(--tile-w) var(--tile-h);
	-webkit-mask-position: center var(--align-y);

	mask-image: url('/images/PATTERN.png');
	mask-repeat: repeat;
	mask-size: var(--tile-w) var(--tile-h);
	mask-position: center var(--align-y);

	z-index: -1;
	pointer-events: none;
}

body {
	margin: 0 auto;
	width: var(--logo);
	margin-top: var(--offset-y);
}

b {
	font-weight: bold;
}

p {
	display: block;
	border: 1px solid var(--pattern-color, var(--pre-registered));
	width: 100%;
	padding: 0.5em;
	background-color: black;
}

p,
small,
.FAILURE,
.SUCCESS {
	display: block;
	font-size: 0.7em;
	line-height: 1.2em;
}

a {
	text-decoration: underline;
	font-weight: bold;
}

h1,
h2,
h3 {
	display: block;
	width: 100%;
	margin-bottom: 1em;
	font-size: 1em;
	line-height: 1.3em;
}

h2.green {
	color: green;
	font-weight: bold;
}

#logo {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
	margin-bottom: calc(3vh + 2vw);
	filter: brightness(0) invert(1);
}

.arrow-down {
	width: calc( 3vh + 1.5vw );
	fill: none;
}

.hidden,
.hided,
.disabled-container {
	display: none !important;
}

.SUCCESS {
	color: green;
}
.WARNING {
	color: orange;
}
.FAILURE {
	color: red;
}

#page.loading {
	cursor: wait;
}
#page.loading * {
	pointer-events: none;
}

label.button {
	display: block;
	border: 1px solid var(--pattern-color, var(--pre-registered));
	border-top: 0;
	width: 100%;
	padding: 0.5em;
	background-color: white;
	color: black;
	font-size: 1em;
	text-transform: uppercase;
	cursor: pointer;
}
label.button.ok,
label.button:not(.disabled):hover {
	background-color: green;
}
p:has(+ label.button) {
	margin-bottom: 0;
	border-bottom: 0;
	border-color: var( --pattern-color, var(--pre-registered) );
	background-color: black;
}
label.button + button,
label.button + label.label,
label.button + p {
	margin-top: 1.5em;
}
label.button.label {
	font-size: 0.7em;
}

input {
	display: block;
	width: 100%;
	padding: 0.5em;
	border: 1px solid var(--pattern-color, var(--pre-registered));
	border-top: 0;
	background-color: black;
	color: white;
	margin-bottom: 1em;
}
select.invalid,
input.invalid {
	font-size: 0.7em;
	color: red;
}
input::placeholder {
	color: red;
}

button {
	width: 100%;
	padding: 0.5em;
	display: block;
	cursor: pointer;
	background-color: white;
	color: black;
	border: 1px solid var(--pattern-color, var(--pre-registered));
	line-height: 1em;
	margin-bottom: 1em;
}
button:hover {
	background-color: green;
}

select {
	display: block;
	margin-bottom: 1em;
	border: 1px solid var(--pattern-color, var(--pre-registered));
	border-top: 0;
	padding: 0.5em;
	width: 100%;
	background-color: black;
	color: white;
}

span {
	display: block;
	width: 100%;
	padding: 0.5em;
	border-left: 1px solid white;
	border-right: 1px solid white;
}

#footer {
	align-self: center;
	margin: 0 auto;
	display: block;
	fill: white;
	height: calc( 8vh + 5vw );
	margin: calc( 5vh + 3vw ) auto;
}

label#portrait {
	margin-top: -1px;
}
