@font-face {
	font-family: 'Charter';
	src: url('/charter_regular.woff') format('woff'),
		 url('/charter_bold.woff') format('woff'),
		 url('/charter_italic.woff') format('woff'),
		 url('/charter_bold_italic.woff') format('woff');
}

body {
	background: #111;
	color: #ccc;
	max-width: 120ex;
	margin: 0 auto;
	padding: 0 10px;
	font-family: Charter, Helvetica, Arial, sans-serif;
	line-height: 1.5;
}

a {
	color: #69f;
}

body > textarea {
	max-width: 100%;
	width: 100%;
	height: 20em;
	box-sizing: border-box;
}

h1 {
	font-weight: normal;
}

button {
	font-variant: small-caps;
	font-family: sans-serif;
	cursor: pointer;
	background: #343444;
	border: 1px solid #444;
	border-radius: 2px;
	padding: 3px 10px;
	color: #ddd;
	margin: 0 5px;
	transition: background 0.1s ease-in-out;
}

button:hover {
	background: #444466;
}

button:active {
	filter: invert(100%);
}

input[type="text"], textarea {
	background: #333;
	color: inherit;
	border: 1px solid #666;
	padding: 5px;
}

button.delete {
	border: none;
	padding: 5px;
	margin: 0 5px;
	border-radius: 2px;
	color: #a00;
	background: #171717;
}

button.delete:hover {
	background: #a00;
	color: #fff;
}

#players {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 20px;
}

@media (max-width: 120ex) {
	#players {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 85ex) {
	#players {
		grid-template-columns: 1fr;
	}
}

#players > div {
	display: flex;
	flex-direction: column;
	padding: 10px;
	justify-content: space-between;
}

#players > div > button {
	width: 100%;
	align-self: flex-end;
}

#players h2 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: normal;
	margin: 0;
}

#players ul {
	flex-grow: 1;
}

#players li {
	margin-bottom: 10px;
}

.result {
	font-size: 1.5em;
	margin-bottom: 20px;
	margin-top: 0;
	padding: 5px;
	background: #222;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}

#pcForm {
	padding: 10px 0;
	display: flex;
	align-items: stretch;
	justify-content: center;
	margin-top: 10px;
	border-top: 1px solid #444;
}

.caption {
	font-family: sans-serif;
	font-size: 0.75em;
	color: #aaa;
	text-transform: lowercase;
	margin-top: 10px;
	margin-bottom: 0;
}