@import url('https://fonts.googleapis.com/css2?family=Cantata+One&family=Frank+Ruhl+Libre:wght@400;900&display=swap');

body {
	--blue: #060CE9;
	--yellow: #ffcc00;
	--red: #e5144f;

	padding: 0;
	margin: 0;
	height: 100vh;
	background: var(--blue);
	color: white;
	font-family: 'Frank Ruhl Libre', serif;

	overflow: hidden;
}

.conn {
	width: 100%;
	height: 100%;
	display: flex;
	position: absolute;
	top: 0;
	left: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;

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

.conn.visible {
	transform: translateY(0);
}

.conn.hidden {
	opacity: 0;
	pointer-events: none;
}

.conn code {
	background: var(--yellow);
	color: var(--blue);
	border-radius: min(2vh, 1.2vw);
	padding: min(1vh, 0.6vw) min(2vh, 1.2vw);
}

.conn h1 {
	font-size: min(10vh, 12vw);
	margin: 0;
}

.conn h2 {
	margin: 0.4em 0 0 0;
	font-size: min(5vh, 6vw);
}

.conn p {
	margin: 0;
	font-size: min(2.5vh, 3vw);
	text-align: center;
}

.conn .playerList li {
	padding: 0.4em 0.8em;
	font-size: min(2.5vh, 3vw);

	background: #2c3e50;
	color: white;
}

.conn .playerList li:nth-child(even) {
	background: #ecf0f1;
	color: black;
}

.conn ul.playerList {
	list-style: none;
	padding: 0;
	min-width: min(30vh, 36vw);
}

.conn button {
	font-size: min(2.5vh, 3vw);
	margin-top: 1em;
}

.conn form {
	text-align: center;
}

.conn input {
	font-size: min(2.5vh, 3vw);
	margin-top: 1em;
	font-family: 'Frank Ruhl Libre', serif;
}

.conn input[type='text'] {
	background: none;
	border: none;
	border-bottom: 3px var(--yellow) solid;
	color: white;
	padding: 0.5em 1em;
	margin-top: 0.5em;
	text-align: center;
}

.conn input::placeholder {
	color: rgba(255, 255, 255, 0.65);
}

.conn .error {
	color: var(--red);
	font-size: min(2vh, 2.4vw);
	margin-top: 1em;
}

.bigBtn {
	padding: 0.6em 1.2em;
	cursor: pointer;
	background: #ffcc00;
	border: 5px black solid;
	color: #060CE9;
	font-family: 'Noto Serif', serif;

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

.bigBtn:hover, .bigBtn:focus {
	box-shadow: black 0 0 0.25em 0.25em;
}

.bigBtn:active {
	box-shadow: white 0 0 0.25em 0.25em;
}

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

.link {
	color: white;
	text-decoration: underline;
}

.link:hover, .link:focus {
	text-decoration: none;
}

.link:active {
	text-decoration: underline;
}