body {
	min-width: 1280px;
	min-height: 720px;
	overflow: hidden;
	background: #ccc;
	margin: 0;
	padding: 0;
	font-family: "Helvetica", "Segoe-UI", sans-serif;
}

#splash {
	position: fixed;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	width: 100%;
	background-color: #678;
	z-index: 1000000;
	font-family: "Roboto Slab";
}

#splash em {
	display: block;
	position: fixed;
	width: 70%;
	left: 15%;
	bottom: 50%;
	text-align: center;
	font-size: 30px;
}

#splash span {
	display: block;
	position: fixed;
	width: 100%;
	bottom: 40%;
	text-align: center;
	font-size: 16px;
}

#splash h1 {
	position: fixed;
	color: #fff;
	bottom: 60%;
	width: 100%;
	text-align: center;
	display: block;
	font-size: 70px;
}

#splash button {
	width: 300px;
	height: 100px;
	font-size: 50px;
	position: fixed;
	bottom: 20%;
	left: calc(50% - 150px);
	font-family: "Roboto Slab";
	background-color: #fff;
	border: 2px solid #999;
	cursor: pointer;
}

.game-board {
	width: 1232px;
	height: 572px;
	margin: 24px auto;
	background: #eee;
}

.card {
	float: left;
	box-sizing: border-box;
	margin: 0;
	width: 16.6667%;
	height: 25%;
	padding: 12px;
	background: #fff;
	box-shadow: 1px 1px 4px 0px;
	position: relative;
	cursor:pointer;
	transition: all 500ms cubic-bezier(0.680, -0.550, 0.265, 1.550); /* bounce style */
}

.card:hover, .card:focus, .card.remove {
	z-index: 100;
	transform: perspective(500px) translate3d(0px,0px,50px);
}

.card:nth-child(2n) {
	/*background: #0f0;*/
}

.card.remove {
	box-shadow: 0 0 0px 8px red;
	z-index: 50;
}

.card.removed {
	transition: all 500ms cubic-bezier(0.310, 0.440, 0.445, 1.650); /* Gravity style */
	transform: translateY(100vh) rotate(60deg);
	z-index: 1000;
}

.card .faction-points {
	position: absolute;
	bottom: 0;
	left: 0;
	display: flex;
	width: 100%;
	height: 50%;
	font-size: 150%;
}

.card .faction-points div {
	flex: 1;
	text-align: center;
    color: #d55;
    font-size: 70%;
    font-weight: bold;
}

.card .faction-points div:first-of-type {
    color: #08e;
}

.network-badge {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 100px;
	height: 100px;
	text-align: center;
	box-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.network-badge .network-name {
	position: absolute;
	top:0;
	width:100%;
	height: 55px;
	background: #fff;
	color: #f00;
	border-top: 20px solid #f00;
	font-size: 200%;
	font-weight: bolder;
	line-height: 50px;
}

.network-badge .clock {
	position: absolute;
	bottom:0;
	width:100%;
	height: 25px;
	background: #000;
	color: #fff;
	line-height: 25px;
}

.players {
	position: absolute;
	height: 100px;
	bottom: 12px;
	left: 12px;
	right: 124px;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	z-index: 10000;
}

.player {
	/*width: 25%;*/
	flex: 4;
	height: 100%;
	position: relative;

	transition: all 500ms cubic-bezier(0.680, -0.550, 0.265, 1.550);

	color: #555;
	overflow: hidden;
}

.player .breaking-news {
	position: absolute;
	top: 0;
	background: #f00;
	left: 0;
	transform: translateX(-150%);
	padding-right: 180px;
	padding-left: 20px;
	height: 20px;
	line-height: 20px;
	font-size: 14px;
	color: #fff;
	font-style: italic;
}

.player.active {
	/*height: 100%;*/
	border-left: 4px solid #f00;
	color: #f00;
	flex: 5;
}

.player-stats {
	position: absolute;
	top: 20px;
	bottom: 0;
	left: 0;
	right: 0;
}

.player.active .player-stats {
	background: #fff;
}

.player.active .breaking-news {
	transform: translateX(0);
	transition: all 600ms cubic-bezier(0.250, 0.460, 0.450, 0.940); /* easeOutQuad */
}

.player-name {
	position: absolute;
	bottom: 0;
	left: 20px;
	right: 20px;
	box-sizing: border-box;
	height: 35px;
	line-height: 35px;
	font-weight: bold;
}

.player-1 {

}
.player-2 {

}
.player-3 {

}
.player-4 {

}

.faction-scores {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 35px;
	height: 40px;
}

.player.active .faction-scores {

}

.faction-scores .faction {
	position: absolute;
	box-sizing: border-box;
	width: 23%;
	margin: 0 1%;
    bottom: 0;
    /*border-left: 16px solid #555;*/
	color: #555;
}

.faction-scores .faction:nth-child(1) {
	left: 0;
}
.faction-scores .faction:nth-child(2) {
	left: 25%;
}
.faction-scores .faction:nth-child(3) {
	left: 50%;
}
.faction-scores .faction:nth-child(4) {
	left: 75%;
}

.card .faction-points .faction-edu {
    background: url(book.png);
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center 35px;
}

.card .faction-points .faction-mil {
    background: url(cannon.png);
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center 30px;
}

.card .faction-points .faction-agr {
    background: url(wheat.png);
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center 30px;
}

.card .faction-points .faction-bus {
    background: url(briefcase.png);
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center 30px;
}
