* {
	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(242, 242, 242, 1);
	--approved:			rgba(232, 252, 242, 1);
	--invalid:			rgba(252, 242, 242, 1);
	--registered:		rgba(252, 236, 227, 1);
	--partpaid:			rgba(234, 241, 249, 1);
}

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

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

::-webkit-scrollbar-thumb {
	background: black;
	border-radius: 1em;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 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: black;
	}
}

html {
	font-family: 'Montserrat', sans-serif;
	font-size: calc(2vh + 1vw);
	line-height: calc(3vh + 2vw);
	color: black;
	background-color: white;
	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-position: center calc((5vh + 3vw) + (30vh + 20vw) / 2);
	-webkit-mask-size: calc(30vh + 20vw);
	mask-image: url('/images/PATTERN.png');
	mask-repeat: repeat;
	mask-position: center calc((5vh + 3vw) + (30vh + 20vw) / 2);
	mask-size: calc(30vh + 20vw);
	z-index: -1;
	pointer-events: none;
}

body {
	margin: 0 auto;
	width: calc(30vh + 20vw);
	padding: calc(5vh + 3vw) 0;
}

b {
	font-weight: bold;
}

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

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 {
	margin-bottom: -2em;
	max-width: 100%;
	height: auto;
}

img {
	width: 100%;
	border-radius: 1em 1em 0 1em;
}
img.qr {
	image-rendering: pixelated;
}

.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;
	border-radius: 0 0 1em 1em;
	width: 100%;
	padding: 0.5em;
	background-color: black;
	color: white;
	font-size: 1em;
	text-transform: uppercase;
	cursor: pointer;
}
label.button.ok,
label.button:not(.disabled):hover {
	background-color: green;
}
label.button.rounded {
	border-radius:1em;
}
p:has(+ label.button) {
	margin-bottom: 0;
	border-bottom: 0;
	border-radius: 1em 1em 0 0;
	border-color: var( --pattern-color, var(--pre-registered) );
	background-color: white;
}
.condition,
label.button + button,
label.button + label.label,
label.button + p {
	margin-top: 1.5em;
}
label.button.label {
	border-radius: 1em 1em 0 0;
	font-size: 0.7em;
	line-height: 1.4em;
}

input {
	display: block;
	width: 100%;
	padding: 0.5em;
	border: 1px solid var(--pattern-color, var(--pre-registered));
	border-top: 0;
	border-radius: 0 0 1em 1em;
	background-color: white;
	color: black;
}
p.error,
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: black;
	color: white;
	border: 1px solid var(--pattern-color, var(--pre-registered));
	border-radius: 1em;
	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;
	border-radius: 0 0 1em 1em;
	padding: 0.5em;
	width: 100%;
	background-color: white;
	color: black;
}

input[type="checkbox"],
input[type="radio"] {
	display: inline-block;
	vertical-align: middle;
	margin: .5em;
	width: 1em;
	height: 1em;
	border: .1em solid black;
	background-color: white;
	cursor: pointer;
	border-radius: 1em;
}
input[type="checkbox"]:checked,
input[type="radio"]:checked {
	background-color: green;
}
input[type="checkbox"] + label,
input[type="radio"] + label {
	cursor: pointer;
	vertical-align: middle;
}
input[type="checkbox"] {
	border-radius: 0;
}
.radio-area {
	display: block;
	margin-top: 0;
	border: 1px solid var(--pattern-color, var(--pre-registered));
	border-top: 0;
	border-radius: 0 0 1em 1em;
	padding: 0.5em;
	background-color: white;
	text-align: left;
}

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

#footer {
	text-transform: uppercase;
	margin: calc(2vh + 1vw) 0;
}

#footer #date {
	font-weight: bold;
	font-size: 1.2em;
}

#footer #address {
	font-size: 0.7em;
	line-height: 0.7em;
}

#footer #icon {
	max-width: 6em;
}

label#portrait {
	margin-top: -1px;
}
label#portrait.has-image {
	padding: 0;
	overflow: hidden;
}
label#portrait img {
	display: block;
	border-radius: 0;
}
