@import url(https://fonts.googleapis.com/css?family=Roboto:400,300);
/*@import url(https://fonts.googleapis.com/css?family=Fjalla+One);*/
/*@import url(https://fonts.googleapis.com/css?family=Nothing+You+Could+Do);*/
@import url(https://fonts.googleapis.com/css?family=Handlee);
/*@import url(https://fonts.googleapis.com/css?family=Permanent+Marker);*/
/*@import url(https://fonts.googleapis.com/css?family=Gloria+Hallelujah);*/
@import url(https://fonts.googleapis.com/css?family=Indie+Flower);
@import url(https://fonts.googleapis.com/css?family=Raleway);
body {
	font-family: 'Raleway', sans-serif;
}
@media only screen and (min-width: 850px) and (min-height: 1100px) {
	body {
		font-size:1.4em;
	}
	.playerpanel, #infobox {
		max-width:380px !important;
	}
}
h1 {
	font-size:1.2em;
	margin-top:1em;
	clear:both;
}
h2 {
	font-size:1.2em;
	white-space: nowrap;
}
h3 {
	font-size:.9em;
}
nav {
	font-size: .7em;
	margin:2px;
	padding:2px 2px 2px 2px;
	background-color:#EEE;
	border:1px solid #AAA;
	border-radius:.2em;
	box-shadow: 1px 1px #999;
}
nav a, nav a:visited {
	font-weight: bold;
	color: blue;
	text-decoration: underline;
	padding-left: .2em;
	padding-right: .2em;
}
nav a:hover {
	font-weight: bold;
	color: orange;
	text-decoration: none;
}
aside {
	margin-left: 0.4em;
	font-size: 0.7em;
	font-style: italic;
	color: #666;
}
aside strong {
	font-size: larger;
}
fieldset, .infomessage {
	margin: 1em;
	padding: .8em;
	background-color:#EEE;
	border:1px solid #CCC;
	border-radius:.3em;

	box-shadow: 1px 1px #999;
}
.error {
	background-color:#fdd;
	border:2px solid #f00;
}
legend {
	font-weight:bold;
}
label {
	white-space: nowrap;
}
form table {
	font-size: inherit;
}
form tr {
	height: 2em;
}
.playerpanel, #infobox {
	max-width:280px;
	min-width:200px;
	margin:2px;
	padding:7px 10px 7px 10px;
	background-color:#EEE;
	border:1px solid #CCC;
	border-radius:.3em;

	box-shadow: 1px 1px #999;
	flex-basis: auto;
	flex-grow: 2;
	flex-shrink: 1;
}
#cricketscore .playerpanel {
	min-width: fit-content;
}
#infobox {
	max-width:max-content;
	min-width:180px;
	font-family: 'Roboto', sans-serif;
	font-size:1.3em;
	font-weight:bolder;
	background-color:#FFF;
	flex-basis: content;
	flex-grow: 1;
	flex-shrink: 4;
}
#infobox ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
#infobox li {
	border-bottom: 1px solid #EEE;
	padding-bottom: .6em;
	margin-bottom: .6em;
}
#infobox li:last-child {
	border: none;
}
.scorepanels {
	font-size: 1em;
}
/*@media only screen and (min-width: 1000px) {
	.playerpanel, #infobox {
		max-width:300px;
		min-width:200px;
	}*/
@media only screen and (max-width: 480px) {
	nav {
		font-size: .5em;
	}
	.playerpanel, #infobox {
		font-size:0.8em;
		min-width:120px;
		max-width:230px;
		padding:.2em;
	}
	.score {
		font-size: 3em !important;
	}
	.scorepanel ul {
		font-size: 1.2em !important;
	}
}
@media only screen and (max-height: 850px) {
	h1, .formularzeile.scoreboard {
		font-size: .9em;
		margin: .2em;
	}
	.formularzeile.scoreboard {
		padding: .2em;
	}
	.score {
		line-height: 0.8em;
	}
	#cricketscore .playerpanel {
		max-width: 200px;
	}
	#scoreform, #game_setup, #userprofile, #usersettings {
		font-size: .8em;
	}
	#game_setup .formularzeile {
		padding: 5px;
	}
	#game_setup button {
		margin-top: .2em !important;
	}
	#score {
		width: 3rem !important;
	}
	#undo {
		margin-left: 4px !important;
	}
	body {
		margin: .2em;
	}
	header {
		font-size: smaller;
	}
	header button {
		padding: 0;
	}
	aside {
		font-size: .5em;
	}
	td {
		padding: 0;
	}
}
@media only screen and (max-height: 1100px) {
	.scorepanels {
		font-size: .8em;
	}
}
.tothrow {
	border:1px solid #00C;
	box-shadow: 2px 2px 4px #999;
	animation: change_border 1s infinite;
	animation-direction: alternate-reverse;
	animation-timing-function: ease-out;
}
@keyframes change_border {
	from {border-color: #CCC;}
	to {border-color: #00C;}
}
.scoreinfo {
	margin-top: .5em;
	display: flex;
	justify-content: space-between;
}
.score {
	font-family: 'Indie Flower', cursive;
	font-size:4em;
	/*line-height: 1.2em;*/
	font-weight:bold;
	color:blue;
	margin-left:2px;
	flex: 0 1 auto;
}
.scorepanel {
	width:22%;
	font-family: 'Handlee', sans-serif;
	font-size:1em;
	float:right;
	text-align:right;
}
.statspanel {
	font-family: 'Roboto', sans-serif;
	font-size:.7em;
}
.status {
	height:1.1em;
	font-size:.7em;
}
img {
	visibility: hidden;
	width: 2em;
	min-width: 1.2em;
	margin: .2em;
	flex: 0 3 40%;
}
.tothrow img {
	visibility: visible;
}
div, h2, h3, p {
	margin:0;
	padding:0;
	/*border:1px solid blue;*/
}
p {
	padding-bottom: .6em;
}
.playerpanel p {
	padding-bottom: 0;
}
table {
	font-size:.8em;
	/*border:1px solid grey;*/
}
td, th {
	/*border:1px dotted grey;*/
	text-align:left;
}
th {
	font-size:1.1em;
	padding-top:5px;
}
.value {
	text-align:right;
	font-size:1.1em;
}
.main {
	font-size:1.4em;
	font-weight:bold;
}
.hidden {
	display: none;
}
.nonvisible {
	visibility: hidden;
}
.scorepanel h3 {
	font-family: 'Roboto', sans-serif;
	font-size:.7em;
	padding-top:5px;
}
.scorepanel ul {
	list-style-type:none;
	margin:2px;
	padding:0;
}
.rest li {
	text-decoration:line-through;
}
.scorepanel ul :last-child {
	text-decoration:none !important;
}
.formularzeile {
	padding:10px;
	clear:both;
}
.label {
	width:140px;
	float:left;
}
.pflicht {
	background-image:url(../images/asterisk.gif);
	background-position:right;
	background-repeat:no-repeat;
}
.falsch {
	border:2px #F00 solid;
	/*background-color:#FAA;*/
}
.scoreboard {
	margin:10px;
}
.highlight {
	color:white;
	background-color:red;
	font-weight:bold;
}
#panels {
	display:flex;
	justify-content:flex-start;
	align-items:stretch;
}
#score {
	width:70px;
	font-weight:bold;
}
#tothrowfirst {
	color:#F00;
	padding-left:15px;
}
p[id^="standings_"], section[id^="standings_"] {
	float:right;
	font-family: 'Roboto', sans-serif;
	text-align:right;
	font-weight:bold;
}
section[id^="standings_"] ul {
	margin: 0;
	list-style-type: none;
}
select[id^="player_"] {
	font-weight:bold;
}
#undo {
	margin-left:20px;
	font-style:italic;
}
#undo[disabled] {
	color: lightgrey;
	border-radius: unset;
}
nav form {
	display: flex;
	justify-content: space-between;
}
footer {
	margin-top:3rem;
	border-top:1px solid #00f;
	font-size:.8em;
	font-style:italic;
}
fieldset section {
	border: 1px solid grey;
	margin: .4em;
	padding: .4em;
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
}
section > div {
	flex: 1 1 auto;
}
button, input, select {
	font-size: inherit;
	font-family: inherit;
}
[type=checkbox], [type=radio] {
	width: 0.9em;
	height: 0.9em;
}
#game_setup button {
	margin: 1em;
	font-size: 1.2em;
	font-weight: bold;
	padding: 0.5em;
}
#available_games button {
	width: 30%;
	min-width: 250px;
	height: 3em;
	margin: 0.4em;
	padding: 0.5em;
	font-size: 2em;
	font-weight: bold;
	display: list-item;
	list-style-type: none;
	border-color: #bbb;
	border-style: inherit;
	border-radius: .3em;
	border-width: thin;
	box-shadow: 4px 4px 10px 2px #ccc;
}
#available_games button:hover {
	color: blue;
	text-decoration: none;
	border-color: grey;
	box-shadow: 8px 8px 10px 2px #ccc;
}
pre {
	font-size:0.8em;
}
.scorepanels button {
	font-weight: bold;
	height: 2.5em;
	width: auto;
	background-color: #eee;
	border: none;
}
.scorepanels button:hover {
	background-color: #eee;
}
.tothrow button {
	border: 1px solid #aaa;
	background-color: #eaeaea;
	box-shadow: 1px 1px 3px 0px #999;
	border-radius: 0.2em;
}
button[disabled] {
	color: inherit;
	border-radius: 0.2em;
}
#cricketscore .strikeone, .striketwo, .open {
	background-image: url('../strike1.svg');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}
#cricketscore .striketwo {
	background-image: url('../strike2.svg');
}
#cricketscore table {
	width: 100%;
}
#cricketscore th {
	font-size:0.7em;
	text-align: right;
	font-weight: bold;
}
#cricketscore tr {
	font-size: 1.3em;
}
#cricketscore td {
	text-align: right;
}
#cricketscore td:last-of-type {
	min-width: 4em;
}
.multi {
	padding: 0;
}
.single {
	width: 2.5em !important;
}
.noscore {
	font-size: .5em;
	font-style: italic;
	font-weight: normal !important;
}
#cricketscore .open {
	color: green;
	font-weight: bold;
	background-image: url('../strike3.svg');
}
#cricketscore .close {
	color: red;
	background-color: #fdde;
	font-weight: bold;
	text-decoration: line-through;
	text-decoration-thickness: 3px;
}
#cricketscore .stat {
	font-size: .9em;
	font-style: italic;
}
.remaining {
	font-size: smaller;
	text-align: center;
	width: min-content;
	min-width: 2.2rem;
	color: grey;
	flex: 0 2 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.tothrow .remaining {
	color: blue;
}