
*,
*::after,
*::before {
	box-sizing: border-box;
}

html,
body,
main,
section {
	color: #222;
	font-family: Geneva, Tahoma, Verdana, sans-serif;
	height: 100%;
}

body {
	background: #d2bfa2;
	background: -moz-radial-gradient(center, ellipse cover, #ffffff 0%, #d2bfa2 100%);
	background: -webkit-radial-gradient(center, ellipse cover, #ffffff 0%, #d2bfa2 100%);
	background: radial-gradient(ellipse at center, #ffffff 0%, #d2bfa2 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#d2bfa2', GradientType=1 );
}

h1 {
	color: #fff;
	font-size: 6vw;
	line-height: 0.8;
	margin: 0;
	margin-bottom: 1vmin;
	text-shadow: 0 0 2px #000;
	user-select: none;
}

a {
	text-decoration: none;
}

a:focus,
a:hover {
	text-decoration: underline;
}


#preload {
	display: none;
}

#options {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	background: url(/img/black.jpg) center center;
	background-size: cover;
}

#options form {
	text-align: center;
	margin: auto;
}

.row {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;

	-webkit-justify-content: space-between;
	justify-content: space-between;

	position: relative;
}

.placeholder {
	color: #fff;
	display: block;
	font-size: 16px;
	font-weight: 700;
	padding: 1vmin;
	position: absolute;
	text-align: center;
	text-shadow: 0 0 2px black;
	user-select: none;
	width: 100%;
	z-index: 1;
}

#options label {
	color: #fff;
	display: block;
	font-weight: 700;
	user-select: none;
}

#options input[type="text"],
#options .checkbox,
#options .radio,
#options button,
#options a {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	border: 0;
	border-radius: 6px;
	color: #222;
	display: block;
	-webkit-box-flex: 1;
	-webkit-flex: 1;
	-ms-flex: 1;
	flex: 1;
	font-size: 14px;
	font-weight: 700;
	margin: 0 2px 1vmin 2px;
	padding: 1vmin;
	text-align: left;
	text-shadow: 0 0 2px #fff;
	white-space: nowrap;
	width: 100%;
	z-index: 2;
}

#options .radio,
#options .checkbox {
	cursor: pointer;
	user-select: none;
	width: auto;
}

#options input[type="radio"],
#options input[type="checkbox"],
#options a {
	display: inline-block;
	height: 14px;
	vertical-align: middle;
	width: auto;
}

#options a {
	height: auto;
	user-select: none;
}

#options button {
	border: 1px solid #fff;
	cursor: pointer;
	text-align: center;
	user-select: none;
}

#options button[type=submit] {
	background: #7C0A3C;
	color: #fff;
	cursor: pointer;
	font-size: 18px;
	padding: 2vmin 1vmin;
	text-shadow: none;
	transition: 250ms;
}

#options button.master {
	background: #FDEB0C;
	border-color: #000;
	color: #000;
}

#options button.duet1 {
	background: #365A3E;
}

#options button.duet2 {
	background: #E9E895;
	border-color: #000;
	color: #000;
}

main.blue {
	background: #459fc1;
	background: -moz-radial-gradient(center, ellipse cover, #459fc1 0%, #077eab 100%);
	background: -webkit-radial-gradient(center, ellipse cover, #459fc1 0%, #077eab 100%);
	background: radial-gradient(ellipse at center, #459fc1 0%, #077eab 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#459fc1', endColorstr='#077eab', GradientType=1 );
}

main.red {
	background: #f25c59;
	background: -moz-radial-gradient(center, ellipse cover, #f25c59 0%, #eb1e2f 100%);
	background: -webkit-radial-gradient(center, ellipse cover, #f25c59 0%, #eb1e2f 100%);
	background: radial-gradient(ellipse at center, #f25c59 0%, #eb1e2f 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f25c59', endColorstr='#eb1e2f', GradientType=1 );
}

main.black {
	background: #534f4d;
	background: -moz-radial-gradient(center, ellipse cover, #534f4d 0%, #2e2c2b 100%);
	background: -webkit-radial-gradient(center, ellipse cover, #534f4d 0%, #2e2c2b 100%);
	background: radial-gradient(ellipse at center, #534f4d 0%, #2e2c2b 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#534f4d', endColorstr='#2e2c2b', GradientType=1 );
}

#custom-words {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	overflow: hidden;
	padding: 4px;
}

#custom-words.hide {
	display: none;
}

#custom-words textarea {
	margin: 0 auto;
	outline: 0;
}

#custom-words textarea.success {
	border-color: #198754;
  box-shadow: 0 0 0 9px rgba(25,135,84,.25);
}

#custom-words textarea.fail {
	border-color: #dc3545;
  box-shadow: 0 0 0 9px rgba(220,53,69,.25);
}

#board {
	overflow: hidden;
	padding: 4px;
}

#board section {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: column;
	-ms-flex-direction: column;
	flex-direction: column;

	float: left;
	padding-left: 1px;
	padding-right: 1px;
	width: 20%;
}

#board.hide section {
	display: none;
}

#board button {
	background: #D2BFA2;
	box-shadow: inset 0 0 0 0.5vmin #B89D75;
	border: 1vmin solid #D2C5AA;
	border-radius: 1vw;
	color: #222;
	cursor: pointer;

	-webkit-box-flex: 1;
	-webkit-flex: 1;
	-ms-flex: 1;
	flex: 1;

	font-size: 2.1vw;
	font-weight: 700;
	margin-bottom: 1px;
	margin-top: 1px;
	padding: 0;
	position: relative;
	text-transform: uppercase;
	user-select: none;
}

#board button::after,
#board button::before {
	background: none no-repeat 45.6% 33%;
	background-size: 100%;
	background-size: cover;
	border-radius: .8vw;
	bottom: -1vmin;
	content: "";
	left: -1vmin;
	position: absolute;
	right: -1vmin;
	top: -1vmin;
}

#board button.blue-agent-0::after {
	background-image: url(/img/blue-1.jpg);
}

#board button.blue-agent-1::after {
	background-image: url(/img/blue-2.jpg);
}

#board button.red-agent-0::after {
	background-image: url(/img/red-1.jpg);
}

#board button.red-agent-1::after {
	background-image: url(/img/red-2.jpg);
}

#board button.green-agent-0::before {
	background-image: url(/img/green-1.jpg);
}

#board button.green-agent-1::before {
	background-image: url(/img/green-2.jpg);
}

#board button.bystander-bystander-0::after,
#board button.bystander-bystander-1::before,
#board button.bystander-green-0::after,
#board button.bystander-0::after {
	background-image: url(/img/grey-1.jpg);
}

#board button.bystander-bystander-1::after,
#board button.bystander-bystander-0::before,
#board button.bystander-green-1::after,
#board button.bystander-1::after {
	background-image: url(/img/grey-2.jpg);
}

#board button.assassin::after {
	background-image: url(/img/black.jpg);
}

#board button.bystander-bystander-0::after,
#board button.bystander-bystander-1::after,
#board button.bystander-green-0::after,
#board button.bystander-green-1::after,
#board button.bystander-up::after,
#board button.bystander-down::after {
    border-radius: 2px;
	bottom: auto;
	box-shadow: 0 0 2px #000;
    height: 7vmin;
    left: auto;
    right: -.4vmin;
    text-align: left;
    top: -.4vmin;
    width: 7vmin;
}

#board button.bystander-up::after {
	-webkit-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	transform: rotate(180deg);
}

#board span {
	background: #fff;
	border-radius: 6px;
	display: inline-block;
	margin-left: -1vmin;
	margin-right: -1vmin;
	padding: 0.3vw;
	position: relative;
	text-align: center;
	min-width: 80%;
}

#board button.green-agent-0 span,
#board button.green-agent-1 span,
#board button.bystander-bystander-0 span,
#board button.bystander-bystander-1 span,
#board button.bystander-green-0 span,
#board button.bystander-green-1 span {
	display: none;
}

#board.operative span {
	border-radius: 2px 2px 6px 6px;
	margin-top: 10%;
}

#board.operative span::before {
	border-top: 0.3vw solid #B5A28E;
	color: #897B6D;
	content: attr(title);
	display: inline-block;
	font-size: 0.8em;
	font-style: italic;
	left: 0;
	line-height: 1.2;
	position: absolute;
	top: -2.6vw;
	right: 0;
	-webkit-transform: scale(-1, -1);
	-ms-transform: scale(-1, -1);
	transform: scale(-1, -1);
}

#board.master button.red {
	background: #f25c59;
	background: -moz-radial-gradient(center, ellipse cover, #f25c59 0%, #eb1e2f 100%);
	background: -webkit-radial-gradient(center, ellipse cover, #f25c59 0%, #eb1e2f 100%);
	background: radial-gradient(ellipse at center, #f25c59 0%, #eb1e2f 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f25c59', endColorstr='#eb1e2f', GradientType=1 );
	box-shadow: none;
}

#board.master button.red span {
	border: 6px solid #f49486;
	border-radius: 0;
}

#board.master button.blue {
	background: #459fc1;
	background: -moz-radial-gradient(center, ellipse cover, #459fc1 0%, #077eab 100%);
	background: -webkit-radial-gradient(center, ellipse cover, #459fc1 0%, #077eab 100%);
	background: radial-gradient(ellipse at center, #459fc1 0%, #077eab 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#459fc1', endColorstr='#077eab', GradientType=1 );
	box-shadow: none;
}

#board.master button.blue span {
	border: 6px solid #46BEE7;
	border-radius: 99px;
}

#board.master button.green {
	background: #71AC69;
	background: -moz-radial-gradient(center, ellipse cover, #71AC69 0%, #30944A 100%);
	background: -webkit-radial-gradient(center, ellipse cover, #71AC69 0%, #30944A 100%);
	background: radial-gradient(ellipse at center, #71AC69 0%, #30944A 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#71AC69', endColorstr='#30944A', GradientType=1 );
	box-shadow: none;
}

#board.master button.green span {
	border: 6px solid #9CC296;
	border-radius: 0;
}

#board.master button.black {
	background: #534f4d;
	background: -moz-radial-gradient(center, ellipse cover, #534f4d 0%, #2e2c2b 100%);
	background: -webkit-radial-gradient(center, ellipse cover, #534f4d 0%, #2e2c2b 100%);
	background: radial-gradient(ellipse at center, #534f4d 0%, #2e2c2b 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#534f4d', endColorstr='#2e2c2b', GradientType=1 );
	box-shadow: none;
}

#board.master button.black span {
	border: 6px solid #030202;
	border-radius: 12px;
}
