:root {
	--app-height: 100vh;
	--dark: rgba(2, 9, 25, 1);
	--dark0: rgba(2, 9, 25, 0);
	--light: rgba(203, 205, 208, 1);
	--light0: rgba(203, 205, 208, 0);
}

*,
body {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	color: var(--light);
	font-family: "JetBrains Mono", monospace;
	font-weight: 400;
	text-transform: uppercase;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

body {
	background-color: var(--dark);
	overflow: hidden;
}

#title {
	width: 100%;
	text-align: center;
	margin-bottom: -8rem;
	font-size: 2.5rem;
	color: white;
	line-height: 0;
}

#title span {
	font-size: 1rem;
	color: var(--light);
	display: block;
	margin: 3rem 0 -1.5rem 0;
}

button {
	display: none;
	background-color: var(--light);
	color: var(--dark);
	border: none;
	font-size: 1.2rem;
	padding: 0.2rem 0.8rem 0.3rem 0.8rem;
	cursor: pointer;
	transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
	margin: 0 0 1.5rem 0;
}

button:hover {
	transform: scale(1.05);
}

button:active {
	transform: scale(0.97);
	transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#container {
	width: 100vw;
	height: var(--app-height);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}

#wrapper {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#number_outer {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#number_wrapper {
	display: flex;
	height: calc(9rem + 6px);
	cursor: grab;
	overflow: hidden;
}

#number_wrapper:active {
	cursor: grabbing;
}

.number_container {
	display: flex;
	flex-direction: column;
	font-size: 2rem;
	transition: transform 0.4s cubic-bezier(0.2, 1.5, 0.5, 1);
	padding: 0 0.5rem;
}

.number_container:active {
	transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.number {
	width: 2rem;
	height: 0;
	padding: 0.1rem 0 2.9rem 0;
	margin: 0 0 -2px 0;
	text-align: center;
	border-top: 1px solid var(--light);
	border-bottom: 1px solid var(--light);
}

.overlay {
	width: 100%;
	height: 4rem;
	position: relative;
	z-index: 10;
	pointer-events: none;
}

#overlay_top {
	background: linear-gradient(0deg, var(--dark0) 0%, var(--dark) 50%);
	transform: translateY(3.5rem);
}

#overlay_bottom {
	background: linear-gradient(0deg, var(--dark) 50%, var(--dark0) 100%);
	transform: translateY(-3.5rem);
}

#operation_wrapper {
	margin: -2.5rem 0 5rem 0;
}

#operation_wrapper span {
	display: inline-block;
	font-size: 2rem;
	padding: 0 0.4rem;
	margin: 0;
	transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
	cursor: pointer;
}

#name {
	text-align: center;
	font-size: 1rem;
	margin: 1rem;
	opacity: 0.9;
}

#credits {
	text-align: center;
	font-size: 0.5rem;
	margin: 1rem;
	opacity: 0.6;
}
