@font-face {
	font-family: "Discgent";
	src: url("../vendor/fonts/Discgent.ttf");
}

@font-face {
	font-family: "LuckiestGuy";
	src: url("../vendor/fonts/LuckiestGuy.ttf");
}

* {
	margin: 0px;
	padding: 0px;
	font-family: "Open Sans";
	--primary-color: #009c3b;
	--secondary-color: #ffdf00;
	--terciary-color: #002776;
}

html {
	background-image: url("../images/background-mobile.png");
	background-position: top;
	background-repeat: no-repeat;
	background-size: cover;
	background-color: #0d060f;
}

/* body {
	overflow: hidden;
} */

.hidden{
	display: none;
}

#confetti-canvas {
	position: fixed;
	top: 0;
	left: 0;
}

#main {
	width: 100vw;
	min-height: 100vmin;
	height: auto;
	max-height: 100vmax;
	position: relative;
	display: flex;
	flex-direction: column;
}

#center-logo {
	display: flex;
	justify-content: center;
}

#center-logo img {
	margin-top: 3%;
	width: 70%;
}

#title {
	text-align: center;
	width: 100%;
	color: #fff;
	line-height: 1;
}

.title-text {
	font-weight: bold;
	font-family: "Open Sans";
}

h1.title-text {
	font-size: 1.75em;
	font-weight: bold;
	color: #fca110;
}

h2.title-text {
	font-size: 3.5em;
}

#user-form-container {
	align-self: flex-end;
	width: 85%;
	min-width: 300px;
	text-align: center;
	margin: 5% auto 0;
	padding: 5%;
	background-image: url("../images/bg-form.png");
	background-size: contain;
	background-position: top;
	background-repeat: no-repeat;
	aspect-ratio: 458 / 436;
	display: flex;
	align-items: center;
}

#user-form-wrapper {
	display: flex;
	flex-direction: column;
	gap: 0.45em 0;
	padding: 5%;
	background-color: #fffdfa;
}

#user-form-container input {
	font-size: .8em;
	border-radius: 10px;
	padding: 0.5em;
	border: 2px solid #dcdcdc;
	transition: 0.2s;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
}

#user-form-container input::placeholder {
	text-align: center;
	font-weight: bold;
}

#user-form-container input.err-red {
	outline: 2px solid rgb(231, 49, 49);
}

.input-field {
	width: 100%;
	position: relative;
	transition: 0.2s;
	text-align: left;
}

.input-field .input-error-message {
	display: block;
	height: 10px;
	color: #e73131;
	font-weight: bold;
	font-size: 0.6em;
}

.no-code-wrapper {
	width: 100%;
	text-align: right;
}

#no-code {
	display: inline;
	color: #121212;
	font-weight: bold;
	font-size: 1em;
	position: relative;
	z-index: 1;
	margin-bottom: .6em;
}

#submit-user {
	background-color: #fca110;
	font-family: "Open Sans";
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.25em;
	border-radius: 15px;
	cursor: pointer;
	box-shadow: 0 4px 10px -5px #000;
	height: 1.5em;
	position: relative;
	z-index: 1;
}

.radio-selector-wrapper {
	display: flex;
	flex-direction: column;
	gap: 5px 0;
	max-height: 60vh;
	overflow: auto;
}

.radio-selector {
	width: 100%;
	box-sizing: border-box;
	background: #7066e0;
	color: #fff;
	font-size: 1.1em;
	border-radius: 5px;
	border: none;
	padding: 5px;
}

.radio-selector:focus {
	outline: none;
}

.terms-conditions-check {
	width: 90%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 3% auto 0;
	position: relative;
	z-index: 1;
	user-select: none;
	font-size: .8em;
}

.terms-conditions-check a {
	cursor: pointer;
}

.custom-radio-button {
	outline: 1px solid #fca110;
	background-color: #fff;
	border-radius: 100%;
	height: 2em;
	width: 2em;
	flex-shrink: 0;
	box-sizing: border-box;
}

.custom-radio-button.active {
	background-color: #fca110;
	border: 5px solid #fff;
}

.terms-text {
	text-align: left;
	padding: 0 10px;
	color: #121212;
}

.terms-text a {
	text-decoration: underline;
}

#terms-banner.closed {
	bottom: -100%;
}

#terms-banner {
	box-shadow: 0px 2px 8px -3px #000;
	position: absolute;
	width: 80%;
	border-radius: 10px;
	left: 50%;
	bottom: 0;
	background: rgb(255, 255, 255, 0.86);
	z-index: 9;
	translate: -50% -25%;
	padding: 10px 40px;
	max-width: 900px;
	transition: 0.3s;
}

.terms-banner-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	align-content: center;
	flex-wrap: wrap;
}

.terms-banner-title {
	font-size: 1.5em;
	display: inline-block;
	width: 100%;
	text-align: center;
	margin-bottom: 10px;
}

.terms-banner-content {
	line-height: 1.2;
	width: 100%;
	font-size: 0.8em;
	display: inline-block;
	text-align: justify;
}

.terms-banner-button {
	width: 30%;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	align-content: center;
	margin: 15px 0;
}

.terms-banner-button button {
	border-radius: 10px;
	padding: 5px;
	width: 100px;
	border: none;
	background: var(--terciary-color);
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	box-shadow: 0 8px 10px -5px #000;
	font-weight: bold;
	transition: 0.25s;
}

.terms-banner-button button:hover {
	background-color: var(--primary-color);
}

#footer {
	background: var(--terciary-color);
	color: #fff;
	display: none;
	align-content: center;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	padding: 20px 5%;
	line-height: 1;
	font-size: 1em;
	background-image: radial-gradient(
		circle at top,
		rgba(255, 255, 255, 0.15) 0%,
		rgba(80, 80, 80, 0.3) 80%
	);
}

.footer-title {
	font-size: 1.5em;
	display: block;
	width: 100%;
	text-align: center;
	margin-bottom: 10px;
}

.footer-content {
	line-height: 1.2;
}

.loading #submit-user {
	display: none;
}

.success #submit-user {
	display: none;
}

.loading-gif {
	display: none;
	margin: 0 auto;
	height: 40px;
}

.success-message {
	display: none;
	font-size: 1.2em;
	margin-bottom: 15px;
	font-family: "LuckiestGuy";
	color: #00031e;
	font-size: 2em;
}

.success .success-message {
	display: block;
}

.loading .loading-gif {
	display: block;
}

#bottom-images {
	position: fixed;
	bottom: 0;
	display: flex;
	width: 100%;
	justify-content: space-between;
}

#bottom-images img {
	width: 25%;
}

@media screen and (max-width: 480px) {
	body {
		overflow: auto;
	}

	#main {
		box-sizing: border-box;
	}

	#footer {
		display: flex;
		padding: 10px 5%;
	}
}

@media screen and (min-width: 720px) {
	html {
		background: url("../images/background.png");
		background-position: center;
		background-repeat: no-repeat;
		background-size: cover;
	}

	h1.title-text {
		font-size: 4em;
		color: #fca110;
	}

	h2.title-text {
		font-size: 8em;
	}

	#user-form-container input {
		font-size: 1.2em;
		padding: 0.5em;
	}

	.terms-text {
		font-size: 0.8em;
	}

	#user-form-container {
		padding: 15px;
		flex-grow: 1;
		background-size: cover;
		background-position: top;
		background-repeat: no-repeat;
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 500px;
		width: 600px;
		aspect-ratio: initial;
	}

	#user-form-container input{
		font-size: 1em;
		margin: 5px 0;
	}

	#user-form-container input.err-red {
		outline: 4px solid rgb(231, 49, 49);
	}

	.input-field .input-error-message{
		font-size: 15px;
	}

	#user-form-wrapper {
		gap: 0.75em;
		width: 80%;
	}

	#no-code {
		cursor: pointer;
		font-size: 1.2em;
	}

	#submit-user{
		font-size: 2em;
	}

	.terms-conditions-check{
		font-size: 1em;
		margin: 0 auto;
	}

	#bottom-images {
		display: none;
	}

	#center-logo img {
		margin-top: 5%;
		width: 450px;
	}
}
