.content {
	transform: translateY(100%);
	opacity: 1;
	transition: transform 1s cubic-bezier(0.165, 0.840, 0.440, 1.000), opacity 0.5s ease-in;

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

.content h1 {
	font-size: min(20vh, 12vw);
	margin: -10vh 0 0 0;
	text-shadow: black 0 0 1vh;
}

.fjWrap {
	position: absolute;
	top: 0;
	left: 0;

	font-family: 'Frank Ruhl Libre', serif;
	color: var(--yellow);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;

	transform: translateY(100%);
	opacity: 1;
	transition: transform 1s cubic-bezier(0.165, 0.840, 0.440, 1.000), opacity 1s ease-in;
}

.fjWrap::before {
	background: linear-gradient(to top, var(--blue), var(--red) 20%);
	width: 100%;
	height: 125%;
	z-index: -5;
	content: '';
	display: block;
	position: absolute;
	top: -125vh;
	left: 0;
}

.fjWrap.active::before {
	top: 0;
	transition: top 30s ease-in;
}

.fjWrap .num {
	font-size: min(50vh, 70vw);
	margin: 0;
	position: fixed;
	top: 50vh;
	left: 50vw;
	transform: translate(-50%, -50%) scale(5);
	opacity: 0;
	user-select: none;
	font-family: 'Cantata One', serif;

	transition: transform 0.2s ease-out, opacity 0.2s ease-out;

	color: white;
	z-index: -3;
}

.fjWrap .title {
	font-size: min(20vh, 12vw);
	margin: -10vh 0 0 0;
	text-shadow: black 0 0 1vh;
}

.fjWrap p {
	position: relative;
	font-size: min(7vh, 4.2vw);
	margin: 0;
	padding: min(1vh, 0.6vw) min(3vh, 1.8vw);
}

.fjWrap input {
	font-size: min(7vh, 4.2vw);
	color: var(--yellow);
	border: none;
	border-bottom: 5px var(--yellow) solid;
	font-family: 'Frank Ruhl Libre', serif;
	background: none;

	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;

	transition: color 0.3s ease-in-out;
}

.fjWrap p.done {
	color: black;
	transition: color 0.3s ease-in-out;
}

.fjWrap p::before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(6, 12, 233, 0.5);
	z-index: -2;
	border-radius: min(1vh, 0.6vw);

	transition: background 0.1s ease-in-out;
}

.fjWrap p.flash::before {
	background: rgba(229, 20, 79, 0.5);
}

.fjWrap p::after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--yellow);
	z-index: -1;

	transform: scaleX(0);
	transform-origin: left center;

	transition: transform 0.3s ease-out;
}

.fjWrap p.done {
	pointer-events: none;
}

.fjWrap p.done::after {
	transform: scaleX(1);
}

.fjWrap p.done input {
	color: black;
}

.wager {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.wager h1 + p {
	font-size: min(3.5vh, 3vw);
	margin: 0;
}

.wager form {
	font-size: min(7vh, 4.2vw);
	color: var(--yellow);
}

.wager form p {
	margin: 2vh 0 0 0;
}

.wager input[type="number"] {
	font-size: min(7vh, 4.2vw);
	color: var(--yellow);
	border: none;
	border-bottom: 5px var(--yellow) solid;
	font-family: 'Frank Ruhl Libre', serif;
	background: none;

	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;

	transition: color 0.3s ease-in-out;
}

.wager input[type="submit"] {
	font-size: min(7vh, 4.2vw);
	background: none;
	border: none;
	cursor: pointer;
}

.ringer h1.active {
	background: white;
	color: black;
	width: 100%;
	text-align: center;
	text-shadow: none;
}

.ringer button {
	font-family: 'Frank Ruhl Libre', serif;
	color: var(--blue);
	background: var(--yellow);

	margin-top: 2vh;
	padding: min(2vh, 1vw) min(4vh, 2vw);
	cursor: pointer;
	border: 5px black solid;

	transition: box-shadow 0.1s ease-in-out, background 0.5s ease-in-out, color 0.5s ease-in-out;
	box-shadow: none;
}

.ringer button p {
	margin: 0;
}

.ringer button p:first-child {
	font-size: min(7vh, 4.2vw);
	font-weight: bold;
}

.ringer button p:last-child {
	font-size: max(2vh, 15px);
}

.ringer button:hover, .ringer button:focus {
	box-shadow: black 0 0 5px 5px;
}

.ringer button:active {
	box-shadow: white 0 0 5px 5px;
}

.ringer button:disabled {
	background: black;
	color: white;
	pointer-events: none;
}

.fjResponses h1 {
	font-size: min(10vh, 6vw);
}

.fjResponses p {
	font-size: min(7.5vh, 4vw);
	margin: 0;

	opacity: 0;
	user-select: none;
	transition: opacity 0.5s ease-out;
}

.fjResponses p:last-child {
	font-family: 'Arial Black', 'Helvetica Black Condensed', sans-serif;
	margin-top: 3vh;
}


@media (max-aspect-ratio: 5/6) {

	.fjResponses h1 {
		font-size: 7.5vw;
	}

	.fjResponses p {
		font-size: 5vw;
	}

	.fjResponses p:last-child {
		margin-top: 2vw;
	}
}


header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;

	transform: translateY(0);
	transition: transform 1s ease-in-out;
}

header.hidden {
	transform: translateY(calc(-100% - 10px));
}

header div {
	flex: 1 0;
	overflow-x: hidden;
	text-align: center;
	border-bottom: 1px white solid;
	border-right: 1px white solid;

	margin: 0 5px 0 5px;
	padding: 0 5px;
	border-left: 1px white solid;
	border-bottom-left-radius: 1vw;
	border-bottom-right-radius: 1vw;
	box-shadow: white 0 0 5px 3px;

	transform: translateY(0);
	transition: transform 0.5s ease-out, background 0.5s ease-in-out, color 0.5s ease-in-out;
}

header div.hidden {
	transform: translateY(calc(-100% - 10px));
	transition: transform 0.25s ease-in, background 0.5s ease-in-out, color 0.5s ease-in-out;
}

header div.selected {
	background: white;
	color: black;
}

header h2 {
	overflow-x: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	margin: 1vh 0 0 0;
	font-size: 2.5vw;
}

header p {
	font-size: 2vw;
	font-family: 'Arial Black', 'Helvetica Black Condensed', sans-serif;
	margin: 0 0 1vh 0;
}

.content {
	position: absolute;
	top: calc(4vh + 6vw);
	height: calc(96vh - 6vw);
	width: 100%;
}

@media (max-aspect-ratio: 5/6) {
	header {
		flex-direction: column;
		width: 25%;
		height: 100%;
		max-height: 100%;
	}

	header div {
		width: 100%;
		max-width: 100%;
		margin: 5px 0;
		border-top-right-radius: 1vw;
		border-bottom-left-radius: 0;

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

	header div h2 {
		max-width: 100%;
		font-size: 4vw;
	}

	header p {
		font-size: 2vh;
	}

	header.hidden {
		transform: translateX(calc(-100% - 15px));
	}

	header div.hidden {
		transform: translateX(calc(-100% - 15px));
	}

	.content {
		top: 0;
		width: calc(75vw - 10px);
		left: calc(25vw + 10px);
		height: 100%;
	}
}