html {
	color: #222;
	background-color: white;
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAABg0lEQVR4Xu2aQY7DIAwAQ/L/HweoctsgrzKFHFbr6bE1IUV4GAPlPM9+HMf29Gmtbfu+38JqrdvYNoqLnh21pXEr7zK2Lb33/vTn//PvDoAzIHsKRBC8xqSUckt9+h0FY/S8iDVRXNRHFEdgKQNkQHYGpJ8BrbU+Ai+CUQSUFTBSuEX9rtjm2K8QTJ8CDkD2VYCaIIURjaMVJoUlNVDL4WHkXQWEYHYI1lr7uNdHAUXLV1qqUgNdKYc1QSF4HwFXAVcBuApQI1spm8ke3m+AnjVQU8AUgCmw4gZ/ua0pEKUAPbmlhxuzpeo3wKOzzHJYE9QEbyMgBCMIUuujsKRXX6Ln0T5mDdQZoAlqgslviUV7givgocCj+4n0XaiVuieoCWqCmuDPEQhFiB5k0H04epVm1uauPzR7bUYT1AQ1weQmGN0TpHB7O45aH4UlsU0hKASFYHII0j1BWua+bX0UePRk2YMRy2HLYcvhx3J45b4esa8rhpbcFKoU0mOcJqgJJjfBD1dnZ19T4rwCAAAAAElFTkSuQmCC);

	font-size: 16px;
	line-height: 1.6;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;

	text-size-adjust: 100%;

	font-family: Ubuntu;
}

html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
}

.footer {
	position: fixed;
	font-size: 0.8rem;
	right: 0.5rem;
	bottom: 0.5rem;
	color: #888;
}

* {
	box-sizing: border-box;
}

h1 {
	line-height: 1.3;
	font-size: 1.4rem;
	color: #222;
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
}
h2 {
	line-height: 1.3;
	font-size: 1.15rem;
	color: #333;
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
}
h3 {
	line-height: 1.3;
	font-size: 1rem;
	font-weight: 600;
	color: #444;
	margin-top: 1.25rem;
	margin-bottom: 0.5rem;
}
h4 {
	line-height: 1.3;
	font-size: 0.9rem;
	font-weight: 600;
	color: #555;
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
}
p {
	margin-top: 0;
	margin-bottom: 0.75rem;
}
p:last-child {
	margin-bottom: 0;
}
ul,
ol {
	margin-top: 0;
	margin-bottom: 0.75rem;
	padding-left: 1.5rem;
}
li {
	margin-bottom: 0.25rem;
}

.hidden {
	display: none !important;
}

a,
input[type="submit"] {
	text-decoration: none;
	color: inherit;

	transition: background 0.15s ease-out;
	box-shadow:
		inset 0 -1px 0 rgba(0, 0, 0, 0.1),
		inset 0 -4px 4px -2px rgba(0, 0, 120, 0.1);
}

a {
	word-wrap: break-word;
}

a.button {
	display: block;
	padding: 0.5rem 0.6rem;

	border: 1px solid #f0f0f0;
	border-radius: 2px;

	background: inherit;
}
a.big.button {
	font-size: 2rem;
	line-height: 2.5rem;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	text-align: center;
	font-weight: bold;
}
a.button.margin-bottom {
	margin-bottom: 0.5rem;
}
a.active,
a:hover,
input[type="submit"]:hover {
	background: #ffebcd;
}

.edit {
	text-align: center;
}
.edit:hover {
	background: #faa;
}

a:not([href]):hover {
	background: inherit;
}
a[target="_blank"]::before {
	content: "🔗 ";
}

a.no-clip[target="_blank"]::before {
	content: "";
}

.titlemenu {
	display: flex;
	align-items: center;
}
.titlemenu :first-child {
	flex: 1;
}
.titlemenu a {
	height: 0%;
	color: #666;
	margin-left: 0.5rem;
}

.highlight {
	outline: rgba(0, 0, 255, 0.5) 3px solid;
	animation: highlight-animation 1s infinite alternate;
}
@keyframes highlight-animation {
	from {
		outline: rgba(0, 0, 255, 00) 3px solid;
	}
	to {
		outline: rgba(0, 0, 255, 0.5) 3px solid;
	}
}

.important {
	font-weight: bold;
}

.randomizer {
	user-select: none;
	cursor: help;
	font-size: 1.2rem;
}
.randomizer > span {
	display: inline-block;
	transform: rotate(0deg);
}
.randomizer:hover > span,
.randomizer:active > span {
	animation: randomizer-animation 1s infinite;
}

@keyframes randomizer-animation {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* collapsible sections */

details {
	margin: 1rem 0;
}
details summary {
	cursor: pointer;
	list-style: none;
}
details summary::-webkit-details-marker {
	display: none;
}
details summary h3 {
	display: inline;
}
details summary h3::before {
	content: "\25B6\00a0";
	font-size: 0.7em;
}
details[open] summary h3::before {
	content: "\25BC\00a0";
}

/* definition lists */

dl {
	margin: 1rem 0;
	padding: 0;
}
dt {
	font-weight: 600;
}
dt:first-child {
	margin-top: 0;
}
dd {
}

/* tables */

table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}
th {
	text-align: left;
	padding: 0.5rem 0.5rem;
	padding-left: 0.1rem;
	white-space: nowrap;
}
td {
	padding: 0 0.1rem;
	font-size: 0.8rem;
	line-height: 0.8rem;
	white-space: nowrap;
	overflow: hidden;
}
tr > td {
	position: relative;
}
tr > td > * {
	display: block;
	padding: 0.35rem 0.1rem;
}
thead > tr,
tr:nth-child(even) {
	background: #f0f0f0;
}
.boxed {
	font-size: 0.7rem;
	border: 1px solid #aaa;
}
.member.unregistered {
	padding-right: 1rem;
}
tbody tr:hover {
	outline: 3px solid rgba(128, 128, 255, 0.5);
}
.boxed-indicator {
	float: right;
	padding-left: 2px;
	padding-right: 4px;
	font-size: 0.7rem;
	font-style: italic;
	background: rgba(249, 195, 147, 0.64);
}

/* page layout */

.center {
	max-width: 55rem;
	margin: 0 auto;
}

.centered-text {
	max-width: 40rem;
	margin: 0 auto;
	margin-bottom: 30vh;
}

.content {
	padding: 1rem 1rem;
}
.full-width {
	padding: 0 1rem;
}

.flashes {
	background: #f9c393;
	border-radius: 3px;
	padding: 1rem;
	margin-top: 0.5rem;
}
.flashes.errors {
	background: #fbc0c0;
}
.flashes .flash {
	margin-bottom: 0.5rem;
}
.special {
	background: #f9c393 !important;
	font-weight: bold;
	padding: 2rem 0.6rem !important;
}
.disabled {
	color: #888;
	background-image: repeating-linear-gradient(
		45deg,
		transparent,
		transparent 5px,
		#ddd 5px,
		#ddd 10px
	) !important;
}
.disabled-minimal {
	background-image: repeating-linear-gradient(
		45deg,
		transparent,
		transparent 5px,
		#f0f0f0 5px,
		#f0f0f0 10px
	) !important;
}
.disabled-pretty {
	background-image: repeating-linear-gradient(
		45deg,
		transparent,
		transparent 5px,
		#f9c393 5px,
		#f9c393 10px
	) !important;
}

/* current user */

.current-user-outer {
	font-size: 0.9rem;

	color: #666;
	box-shadow:
		0 0.5rem 1rem rgba(0, 0, 0, 0.05),
		inset 0 -1px 0 rgba(0, 0, 0, 0.1),
		inset 0 -4px 4px -2px rgba(0, 0, 120, 0.1);
}
.current-user {
	display: flex;
}
.current-user :first-child {
	flex: 1;
	border-left: 0;
}
.current-user a {
	display: block;

	text-transform: lowercase;
	padding: 1rem 1rem;
	border-left: 1px solid #888;
}
/* header */

.header-outer {
	z-index: -100;
	color: #666;
	box-shadow:
		0 0.5rem 1rem rgba(0, 0, 0, 0.05),
		inset 0 -1px 0 rgba(0, 0, 0, 0.1),
		inset 0 -4px 4px -2px rgba(0, 0, 120, 0.1);
}

.header {
	display: flex;
	align-items: center;
}
.header > .title {
	width: 14.5rem;
	flex: 1;
}
.header .theme {
	font-weight: bold;
	color: #333;
}
.header > a {
	vertical-align: center;
	display: block;
	padding: 1rem 1rem;
	font-size: 1rem;
	flex: 0;
}

.admin-outer {
	z-index: -100;
	color: #666;
}

.admin {
	display: flex;
	justify-content: flex-end;
	background: rgba(0, 0, 0, 0.1);
	border-radius: 0 0 10px 10px;
}
.admin > span {
	display: block;
	padding: 0.5rem 0.5rem;
	font-size: 0.8rem;
}
.admin > a {
	display: block;
	padding: 0.5rem 0.5rem;
	font-size: 0.8rem;
}

/* forms */

.field label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.field {
	margin-bottom: 1.5rem;
}

.input,
fieldset,
input,
select,
textarea {
	padding: 0.5rem 0.6rem;
	font: inherit;

	border: 1px solid #aaa;
	border-radius: 2px;

	box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
}

input[type="checkbox"] {
	display: inline-block;
	width: auto;
}
input[type="checkbox"] ~ label {
	display: inline-block;
}

.input {
	display: block;

	x-background: #f0f0f0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.05) 100%
	);
}

select,
input,
textarea {
	width: 100%;
}
.tight {
	margin-bottom: 0.25rem;
}
textarea {
	font-family: monospace;
}

fieldset {
	margin-bottom: 1rem;
	border: 0;
	border-top: 1px solid #888;
}

fieldset > legend {
	font-size: 1.2rem;
	font-weight: 800;
}

input[type="submit"] {
	cursor: pointer;
	background: hsla(90, 70%, 80%, 1);
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}

.aspect {
	display: flex;
}
.aspect input {
	margin-bottom: 0rem;
	padding: 0;
	box-shadow: none;
	border: 0;
}
.aspect label .tiny {
	font-size: 0.7rem;
	font-weight: 100;
}
.aspect > * {
	flex: 1;
	margin: 0.5rem;
}
.aspect-text {
	font-size: 0.8rem;
}
.aspect-text.todo {
	font-weight: bold;
	background: #fcc;
}

/* team page */

.side-by-side {
	display: flex;
}
.side-by-side > div {
	flex: 1;
	width: 0;
	margin: 0 0.5rem;
}

.comments {
	border-radius: 3px;
	margin: 0.2rem;
	padding-bottom: 0.5rem;
	margin-bottom: 1rem;
	border: 1px solid #ccc;
	box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.comments h3 {
	padding-left: 0.5rem;
	color: #333;
	font-weight: bold;
	border-bottom: 1px solid #ccc;
	margin-top: 0rem;
	padding-top: 0.5rem;
	margin-bottom: 0.5rem;
	padding-bottom: 0.5rem;
	background: #ddd;
}

.comment {
	font-size: 0.9rem;
	padding: 0.5rem 0.5rem;
	word-wrap: break-word;
	margin: 0;
}
.comment:nth-child(odd) {
	background: #f0f0f0;
}
.comment:hover {
	background: #e8e8e8;
}

.aspect-info {
	border-top: 1px solid #888;
}
.aspect-info .scroll {
	max-height: 10rem;
	overflow-y: scroll;
}
.aspect-info .scroll p {
	border-bottom: 1px solid #ccc;
}

@media (max-width: 35rem) {
	.side-by-side {
		display: block;
	}
	.side-by-side > div {
		margin: 0;
		width: auto;
	}
}

/* sign in / out */

.logins {
	width: 10rem;
	margin: 0 auto;
}
.logins a {
	display: block;
	width: 10rem;

	padding: 0.5rem 0.5rem;
	margin-bottom: 1rem;
}

.unregistered {
	position: relative;
	font-style: italic;
}
.unregistered::before {
	position: absolute;
	content: "🚫";
	font-style: normal;
	right: 0.1rem;
	text-align: center;
	vertical-align: center;
	color: rgba(0, 0, 0, 0.5);
}
.empty {
	background: #d3e3f5;
}

/* progress */

.not-submitted {
	background: #fbd2d2 !important;
	font-style: italic;
}

.progress {
	position: relative;
	background: rgba(50, 70, 56, 0.5);
	border: 1px solid #fff;
}
div.progress {
	height: 2rem;
	margin-bottom: 1.5rem;
}
.progress > div {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.progress > .pending {
	background: #e0d9b5;
}
.progress > .complete {
	background: #6aea0a;
}
.progress > .target {
	background: #c50000;
	width: 0.1rem;
	min-width: 2px;
}
.progress > .info {
	padding-left: 1rem;
	font-weight: bolder;

	text-shadow: 0 1px 2px #fff;
}

/* reveal */

.reveal {
}
.place-container {
	position: relative;
	margin-bottom: 1rem;
	border: 1px solid hsl(210, 30%, 40%);

	position: relative;
	font-size: 1.6rem;
	line-height: 2.5rem;
}

.place-number {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 7rem;
	padding: 0 1rem;
	font-size: 1.6em;
	background: #eee;
	text-align: center;

	display: flex;
	justify-content: center;
	align-items: center;
}

.place-score {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 8rem;
	background: #eee;

	display: flex;
	font-size: 1.6em;
	justify-content: center;
	align-items: center;
}
.place-info {
	position: relative;
	margin-left: 7rem;
	margin-right: 0;
	padding-bottom: 0.5rem;
	text-align: left;
}
.place-info .game {
	padding-left: 1rem;
	font-size: 2em;
	line-height: 1.5em;
	margin-right: 8rem;
	font-weight: bold;
}
.place-info .members {
	padding-left: 1rem;
	font-size: 0.6em;
	line-height: 1.5em;
	margin-right: 8rem;
	display: block;
}
.place-info .members .team {
	display: inline-block;
	margin-right: 0.5rem;
	font-size: 1.2em;
	font-weight: bold;
}
.place-info .members .member {
	display: inline-block;
	padding: 0 1rem;
	margin: 0 0.5rem;
	border-radius: 3px;
	background: #eee;
}
.place-container .overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;

	background: #ccc;
	transition:
		width 3s ease-in-out,
		background 0.2s ease-in-out;

	cursor: pointer;
}

.place-container:hover .overlay {
	background: #eee;
}
.place-container .overlay.show {
	background: #ccc;
	animation-name: overlay-show;
	animation-duration: 3s;
	animation-direction: normal;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}

@keyframes overlay-show {
	from {
		width: 100%;
	}
	to {
		width: 0%;
	}
}

/* timer */
.timer {
	display: inline-block;
	width: auto;
	background: #eee;
	line-height: 2em;
	border: 1px solid #888;
}
.timer.timer-expired {
	background: #faa;
}
.timer td,
.timer th {
	font-size: 2em;
	font-weight: normal;
	line-height: inherit;
	width: 0.5em;
	text-align: center;
	padding: 0.5rem 0.5rem;
}
.timer thead tr {
	border-bottom: 1px solid #888;
}
.timer th {
	font-weight: bold;
	font-size: 0.7em;
	line-height: 1em;
	padding-bottom: 0.1rem;
}
.timer tbody td {
	border-right: 1px solid #888;
}
