/* Split It! website: the game's colors and font (Fredoka, SIL OFL, served from here). */
@font-face {
	font-family: "Fredoka";
	src: url("fonts/Fredoka-Medium.ttf") format("truetype");
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "Fredoka";
	src: url("fonts/Fredoka-Bold.ttf") format("truetype");
	font-weight: 700;
	font-display: swap;
}

:root {
	--bg: #1f2341;
	--panel: #2a2f57;
	--text: #f1f2fb;
	--muted: #b9bde0;
	--yellow: #f9d45c;
	--orange: #ef8550;
	--blue: #2985d9;
	--green: #22a880;
	--slate: #424d85;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Fredoka", "Trebuchet MS", sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 1.55;
}

main {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 16px 24px;
}

a { color: var(--yellow); }

h1, h2, h3 { font-weight: 700; line-height: 1.2; }

h1 { font-size: 34px; margin: 0 0 8px; }
h2 { font-size: 24px; margin: 36px 0 8px; }
h3 { font-size: 19px; margin: 24px 0 4px; }

p, li { color: var(--text); }
.muted { color: var(--muted); }

.logo {
	display: inline-block;
	color: var(--yellow);
	font-weight: 700;
	font-size: 64px;
	line-height: 1;
	text-decoration: none;
	text-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
	letter-spacing: 1px;
}
.logo.small { font-size: 34px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }

.tagline { color: var(--muted); font-size: 22px; margin: 6px 0 28px; }

.hero { text-align: center; padding-top: 24px; }

.card {
	background: var(--panel);
	border-radius: 18px;
	padding: 20px 22px;
	margin: 18px 0;
}

.button {
	display: inline-block;
	min-width: 220px;
	padding: 14px 26px;
	margin: 6px;
	border-radius: 16px;
	color: #fff;
	background: var(--orange);
	box-shadow: 0 5px 0 rgba(0, 0, 0, 0.28);
	font-weight: 700;
	font-size: 20px;
	text-align: center;
	text-decoration: none;
}
.button:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28); }
.button.blue { background: var(--blue); }
.button.green { background: var(--green); }
.button.slate { background: var(--slate); }
.button.disabled { background: var(--slate); color: var(--muted); pointer-events: none; }

.code {
	display: inline-block;
	font-weight: 700;
	font-size: 44px;
	letter-spacing: 6px;
	color: var(--yellow);
	background: rgba(0, 0, 0, 0.22);
	border-radius: 14px;
	padding: 6px 18px;
	margin: 6px 0 4px;
}

nav.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
nav.top a.home { font-size: 16px; }

footer {
	max-width: 760px;
	margin: 0 auto;
	padding: 18px 16px 40px;
	color: var(--muted);
	font-size: 15px;
	text-align: center;
}
footer a { color: var(--muted); margin: 0 8px; }

table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
th { color: var(--muted); font-weight: 500; }

@media (max-width: 520px) {
	body { font-size: 17px; }
	.logo { font-size: 50px; }
	.button { width: 100%; margin: 6px 0; }
	.code { font-size: 36px; }
	table { font-size: 15px; }
}
