@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");
* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	font-family: "Nunito", sans-serif;
	font-size: 15px;
}

#root {
	position: relative;
	width: 100%;
	max-width: 550px;
	min-height: 300px;
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
	border-radius: 16px;
	padding: 24px;
	margin: 0 4px;
	background-color: rgba(255, 255, 255, 0.9);
	user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	overflow: hidden;
	backdrop-filter: blur(4px);
}

#root::before {
	content: "";
	position: absolute;
	left: -10%;
	top: 0;
	transform: translateY(-70%);
	z-index: -1;
	width: 120%;
	padding-top: 90%;
	background-color: lightgrey;
	border-radius: 50%;
}

header {
	text-align: center;
}

header .logo {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background-image: url("../favicon.ico");
	background-size: cover;
	margin: 60px auto 16px auto;
}

header .description {
	margin-top: 6px;
	opacity: 0.6;
	font-weight: 600;
}

.code-group {
	position: relative;
	display: flex;
	justify-content: center;
	cursor: pointer;
	padding: 40px 0;
}
.code-group::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 10;
}

.code-group input {
	width: 50px;
	height: 47px;
	margin: 0 4px;
	padding: 8px 4px;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	border: 2px solid #ccc;
	border-radius: 8px;
	outline: none;
	background-color: #ccc;
	text-transform: uppercase;
}

.code-group input:placeholder-shown {
	background-color: white;
}

.code-group input:focus {
	background-color: #eee;
}

.code-action {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.code-action button.submit-code {
	padding: 14px 12px;
	width: 200px;
	background-color: #3f9eff;
	color: white;
}
.code-action button.submit-code:disabled {
	background-color: #dfdfdf;
	color: rgb(158, 158, 158);
	pointer-events: none;
}

.code-action button.clear-code {
	margin-left: 8px;
	width: 60px;
	font-size: 20px;
	background-color: rgb(255, 199, 199);
	color: red;
}

form button {
	border-radius: 8px;
	border: none;
	outline: none;
	cursor: pointer;
	font-weight: bold;
	font-size: inherit;
	box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

form button:hover {
	filter: brightness(0.9);
}
