body {
	background-color: #111;
	color: #ddd;
	font-family: monospace;
	font-size: 1.7em;
	margin-top: 0;
}
div#container {
	max-width: 1000px;
	width: 90%;
	margin: 0 auto;
	padding: 10px;
	background-color: #222;
}
header {
	text-align: center;
}
header > h1 {
	margin-top: 0;
}
#top {
	text-align: center;
	background-color: #111;
}
table#grid {
	margin: 0 auto;
	table-layout: fixed;
}
td {
	background-color: #aaa;
	color: #222;
	width:  1.4em;
	height: 1.4em;
	max-width:  20%;
	max-height: 20%;
	margin: 2px;
	text-align: center;
	user-select: none;
	border-radius: 8px;
	border: 2px solid rgba(0,0,0,0);
	font-size: 1.8em;
}
td.good, #history>li.histwin {
	background-color: green;
	color: #ddd;
}
td.bad {
	background-color: red;
	color: #ddd;
}
td.cur {
	border-color: yellow;
}
td.curfirst {
	color: yellow;
}
td.desaturate.good {
	background-color: #4a4;
	color: #333;
}
td.desaturate.bad {
	background-color: #c66;
	color: #333;
}
.desaturate {
	filter: grayscale(100%);
}
p#bottom {
	margin: .5em .5em;
	font-size: 1.5em;
	text-align: right;
}
#enter {
	padding: 10px;
	font-size: 40px;
	background-color: #aaa;
}
#history {
	padding: 0;
}
#history > li {
	width: 10em;
	margin: 1px auto;
	background-color: #333;
	list-style-position: inside;
}
a, span.findmatches {
	text-decoration: underline dashed;
}
a:not(:visited) { color: orange; }
a:visited  { color: darkorange; }
div#bottombutts {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5em;
}
button {
	font-size: 0.7em;
}
button#randomize, button#shareagain, button#togglecolours {
	visibility: hidden;
}
div#endframebg {
	position: absolute;
	top: 0;
	margin: 0 auto;
	height: 100%;
	width: 100%;
	display: flex;
	justify-content : space-around;
	align-items: center;
}
div#endframe {
	max-width: 75vw;
	max-height: 75vh;
	border: solid 1px white;
	background-color: #333;
	padding: 1vh 5vw;
}
#crossline {
	text-align: right;
	margin-top: -0.5vh;
	margin-right: -2.5vw;
	margin-bottom: -0.5vh;
}
div#endframe > h1 {
	text-align: center;
}
div#rules {
	display: none;
}
div#rulesframe {
	max-height: 60vh;
	overflow-y: scroll;
}
p#langline {
	line-height: 2em;
}
#loading_msgs > li {
	display: none;
	color: #777;
	font-size: 0.8em;
}
