body {
	font-family: sans-serif;
	background-color: white;
	color: black;
}
@media screen {
	body {
		max-width: 400px;
	}
}
@media print {
	@page { margin: 0; }
	html, body, .page {
		font-size: 14px;
		margin-left: 30px;
		margin-right: 30px;
	}
	body {
		text-align: center;
	}
	h2 {
		margin-bottom: 50px;
	}
	.login-link {
		font-size: 30px;
		margin-bottom: 30px;
	}
	.pin {
		font-size: 50px;
		margin-top: 30px;
		margin-bottom: 30px;
	}
	.qrpin {
		margin-bottom: 20px;
	}
	.noprint { display: none }
	.page {
		page-break-after: always;
		padding-top: 160px;  /* hack for vertical centering :-/ */
	}
}
/* {
	border: 1px solid black; 
} */
.header {
	margin-bottom: 1em;
}
.givescore {
	margin-top: 2em;
	margin-bottom: 2em;
	text-align: center;
}
.givescore a {
	text-decoration: none;
	color: black;
	background: #ddd;
	font-size: 30px;
	vertical-align: middle;
	padding: 10px 20px;
	margin: 2px;
}
.givescore a.default {
	background: #aaa;
}
.givescore a.chosen {
	background: #0d0;
}
.exceptional {
	display: none;
}
.exceptional input {
	width: 100%;
}
.summary {
	border-collapse: collapse;
	width: 100%;
}
.summary th, .summary td {
	border: 1px solid black;
}
.summary td {
	text-align: center;
	width: 60px;
	height: 30px;
}

/* For the overall score reports. See .givescore for the input sheets. */
td.score0, td.sum0, td.sum1, td.sum2 td.sum3, td.sum4, td.sum5, td.sum5, td.sum6, td.sum7 { background-color: #f00; }
td.score1, td.sum8, td.sum9 { background-color: #fcc; }
td.score2, td.sum10 { background-color: #fff; }
td.score3, td.sum11, td.sum12 { background-color: #cfc; }
td.score4, td.sum13, td.sum14, td.sum15, td.sum15, td.sum16, td.sum17, td.sum18, td.sum19, td.sum20 { background-color: #0f0; }
td.score_unknown, td.sum_unknown { background-color: #ccc; }

tr:nth-of-type(2n) td.score0, tr:nth-of-type(2n) td.sum0, tr:nth-of-type(2n) td.sum1, tr:nth-of-type(2n) td.sum2 tr:nth-of-type(2n) td.sum3, tr:nth-of-type(2n) td.sum4, tr:nth-of-type(2n) td.sum5, tr:nth-of-type(2n) td.sum5, tr:nth-of-type(2n) td.sum6, tr:nth-of-type(2n) td.sum7 { background-color: #e00; }
tr:nth-of-type(2n) td.score1, tr:nth-of-type(2n) td.sum8, tr:nth-of-type(2n) td.sum9 { background-color: #ebb; }
tr:nth-of-type(2n) td.score2, tr:nth-of-type(2n) td.sum10 { background-color: #eee; }
tr:nth-of-type(2n) td.score3, tr:nth-of-type(2n) td.sum11, tr:nth-of-type(2n) td.sum12 { background-color: #beb; }
tr:nth-of-type(2n) td.score4, tr:nth-of-type(2n) td.sum13, tr:nth-of-type(2n) td.sum14, tr:nth-of-type(2n) td.sum15, tr:nth-of-type(2n) td.sum15, tr:nth-of-type(2n) td.sum16, tr:nth-of-type(2n) td.sum17, tr:nth-of-type(2n) td.sum18, tr:nth-of-type(2n) td.sum19, tr:nth-of-type(2n) td.sum20 { background-color: #0e0; }
tr:nth-of-type(2n) td.score_unknown, tr:nth-of-type(2n) td.sum_unknown { background-color: #bbb; }

.summary .sum { border-left: 2px solid black; }

.game-list, .team-list {
	width: 100%;
	font-size: 30px;
}
.game-list td, .team-list td {
	text-align: center;
	padding-top: 10px;
	padding-bottom: 10px;
}
.game-list td.team-name, .team-list td.team-name {
	width: 100%;
}
.team-list td.team-name, .team-list td.pin {
	padding-right: 10px;
}
.team-list input {
	font-size: 30px;
	width: 100%;
}
.button, .disabled-button, .narrow-button {
	text-decoration: none;
	color: white;
	vertical-align: middle;
	padding: 3px 20px;
	margin: 2px;
	border: 1px solid black;
	display: block;
	font-size: 30px;
	padding: 10px 20px;
	text-align: center;
}
.disabled-button {
	background: #ccf;
	color: #eee;
	border: 0px;
}
.game-list a, .game-list .given-score {
	width: 80px;
}
.narrow-button {
	font-size: 22px;
}
.game-list a.narrow-button, .game-list .narrow-button {
	width: 60px;
}
select.team-list {
	width: 100%;
	font-size: 30px;
}
.game-list a, .finish-button, .add-button, .login-button {
	background: #00a;
}
.delete-button {
	background: #a00;
}
.game-list .given-score {
	background: #0a0;
}
.go-back-button {
	color: black;
	background: #ccc;
	border: 0px;
}
.pin-entry {
	font-size: 50px;
	margin-left: auto;
	margin-right: auto;
	display: block;
	margin-top: 30px;
	margin-bottom: 30px;
}
.error {
	color: red;
}
.footer {
	text-align: right;
	border-top: 1px solid #ccc;
	margin-top: 2em;
	padding-top: 5px;
	margin-left: 5px;
	margin-right: 5px;
}
.footer a {
	text-decoration: none;
}
.footer p {
	margin-top: 0;
}
ol {
	line-height: 2.0em;
}
.team-selector, .settings-selector {
	font-size: 30px;
}
.team-selector input[type=checkbox], .settings-selector input[type=checkbox] {
	zoom: 1.5;
}
ul.tournament-list {
	line-height: 2.0em;
}
a:link, a:visited {
	text-decoration: none;
}
a.intralink:link, a.intralink:visited {
	color: black;
	border-bottom: 1px dotted;
}
tr:nth-of-type(2n) {
	background: #eee;
}

/* Not used for spirit scoring, attendance only. */
.player0, .player1 {
	width: 100%;
	display: block;
	vertical-align: middle;
	padding: 0px;
	padding-top: 10px;
	padding-bottom: 10px;
	margin: auto;
	margin-top: 10px;
	text-align: center;
}

.player0 {
	background: #cce;
}
.player1 {
	background: #3d7;
}
a:link.player0, a:link.player1 {
	color: #000;
}
.playername {
	font-size: 30px;
}
.phone {
	font-size: 14px;
}

#playercounter {
	position: fixed;
	background: rgba(50%, 50%, 70%, 90%);
	color: #eee;
	font-weight: bold;
	bottom: 3px;
	width: 100%;
	max-width: 400px;
	text-align: center;
	padding-top: 10px;
	padding-bottom: 10px;
	pointer-events: none;
}

#notes {
	width: 100%;
	height: 4em;
}
#notesstatus {
	font-style: italic;
	margin-top: 0em;
	text-align: right;
	font-size: smaller;
}

:root {
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {

body {
	background: black;
	color: #eee;
}
a {
	color: #ccf;
}
a.intralink:link, a.intralink:visited {
	color: #ccc;
}
tr:nth-of-type(2n) {
	background: #151515;
}
.givescore a {
	background: #222;
	color: #ddd;
}
.givescore a.default {
	background: #333;
}
.givescore a.chosen {
	background: #0c0;
}
.disabled-button {
	background: #003;
	color: #777;
}

td.score0, td.sum0, td.sum1, td.sum2 td.sum3, td.sum4, td.sum5, td.sum5, td.sum6, td.sum7 { background-color: #900; }
td.score1, td.sum8, td.sum9 { background-color: #500; }
td.score2, td.sum10 { background-color: #000; }
td.score3, td.sum11, td.sum12 { background-color: #050; }
td.score4, td.sum13, td.sum14, td.sum15, td.sum15, td.sum16, td.sum17, td.sum18, td.sum19, td.sum20 { background-color: #080; }
td.score_unknown, td.sum_unknown { background-color: #333; }

tr:nth-of-type(2n) td.score0, tr:nth-of-type(2n) td.sum0, tr:nth-of-type(2n) td.sum1, tr:nth-of-type(2n) td.sum2 tr:nth-of-type(2n) td.sum3, tr:nth-of-type(2n) td.sum4, tr:nth-of-type(2n) td.sum5, tr:nth-of-type(2n) td.sum5, tr:nth-of-type(2n) td.sum6, tr:nth-of-type(2n) td.sum7 { background-color: #800; }
tr:nth-of-type(2n) td.score1, tr:nth-of-type(2n) td.sum8, tr:nth-of-type(2n) td.sum9 { background-color: #400; }
tr:nth-of-type(2n) td.score2, tr:nth-of-type(2n) td.sum10 { background-color: #151515; }
tr:nth-of-type(2n) td.score3, tr:nth-of-type(2n) td.sum11, tr:nth-of-type(2n) td.sum12 { background-color: #040; }
tr:nth-of-type(2n) td.score4, tr:nth-of-type(2n) td.sum13, tr:nth-of-type(2n) td.sum14, tr:nth-of-type(2n) td.sum15, tr:nth-of-type(2n) td.sum15, tr:nth-of-type(2n) td.sum16, tr:nth-of-type(2n) td.sum17, tr:nth-of-type(2n) td.sum18, tr:nth-of-type(2n) td.sum19, tr:nth-of-type(2n) td.sum20 { background-color: #070; }
tr:nth-of-type(2n) td.score_unknown, tr:nth-of-type(2n) td.sum_unknown { background-color: #222; }
.game-list a, .finish-button, .add-button, .login-button {
	background: #003;
}
.delete-button {
	background: #300;
}
.game-list .given-score {
	background: #030;
}
.go-back-button {
	color: white;
	background: #151515;
	border: 0px;
}

}
