@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: url("../images/background-mobile.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

/* body {
	overflow: hidden;
} */

.hidden{
	display: none;
}

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

#main {
	width: 100vw;
	min-height: 100vh;
	height: auto;
	position: relative;
}

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

.title-text {
	font-weight: normal;
	font-family: "LuckiestGuy";
}

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

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

#user-form-container {
	width: 90%;
	min-width: 300px;
	text-align: center;
	margin: 30px auto 0;
	display: flex;
	flex-direction: column;
	gap: 1.5em 0;
}

#user-form-container input {
	font-size: 1.15em;
	border-radius: 10px;
	padding: 0.5em;
	border: 2px solid #dcdcdc;
	transition: 0.2s;
	box-shadow: 0 4px 6px -1px #000;
	box-sizing: border-box;
	width: 100%;
	margin: 5px 0;
	text-align: center;
}

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

#user-form-container input.err-red {
	outline: 4px 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: #fff;
	font-weight: bold;
	font-size: 15px;
}

#submit-user {
	background-color: #00bd13;
	font-family: "LuckiestGuy";
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 2em;
	border-radius: 40px;
	cursor: pointer;
	transition: 0.25s;
	box-shadow: 0 8px 10px -5px #000;
	height: 1.5em;
	position: relative;
	z-index: 1;
}

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

#no-code {
	display: inline;
	color: #fff;
	font-weight: bold;
	font-size: 1.2em;
	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: 0 auto;
	position: relative;
	z-index: 1;
	user-select: none;
}

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

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

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

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

.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: #fff;
	font-size: 2em;
}

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

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

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

	#main {
		min-height: 100vh;
		box-sizing: border-box;
	}

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

	#user-form-container{
		padding: 15px;
		background: #00000070;
		border-radius: 15px;
	}
	
}

@media screen and (min-width: 720px) {
	
	#form-wrapper{
		width: 65%;
		height: 100vh;
		margin: 0 auto;
	}

	#form-aligner{
		height: 100vh;
		width: fit-content;
	}

	html {
		background: url("../images/background.png");
		background-position: center;
		background-repeat: no-repeat;
		background-size: cover;
	}

	h1.title-text {
		font-size: 3.75em;
	}

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

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

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

	#user-form-container {
		/* max-width: 25%; */
	}

	#no-code {
		cursor: pointer;
	}

}

div#center-logo {
	display: flex;
	justify-content: center;
	padding-top: 20px;
}
