* {
	margin: 0;
	padding: 0;
	box-sizing: content-box;
	text-align: center;
}

#start {
	display: inline-block;
	margin-top: 35vh;
}

#start label {
	display: block;
}

#start select {
	margin: 20px 0;
	padding: 8px 50px;
}

#start h2 {
	font-size: 28px;
	color: #888;
}

#start-game {
	padding: 6px;
}

#container {
	visibility: hidden;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: #e1e1e1;
}

#chessboard {
	width: 80vh;
	height: 80vh;
	margin: 10vh auto;
	overflow: hidden;
	box-shadow: 0 0 25px 2px #666;
	border: solid 15px #170a01;
}

.row {
	width: 100%;
	height: 10vh;
}

.square {
	width: 10vh;
	height: 100%;
	display: inline-block;
	background-repeat: no-repeat;
	background-size: 32%;
	background-position: center center;
}

.row.even .square:nth-child(even),
.row.odd .square:nth-child(odd) {
}

.square:not(.empty):hover {
	opacity: 0.8;
	background-color: #833 !important;
}

.square.active {
	background-color: #822 !important;
}

.square[possible-move=true] {
	position: relative;
}

.square[possible-move=true]:after {
	box-sizing: content-box;
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: #383;
	opacity: 0.3;
}

/* --------- Pieces --------- */
div[piece-type="empty"] {
	background-image: none;
}
div[piece-type="white-pawn"] {
	background-image: url("pieces/white-pawn.png");
	background-size: 32%;
}
div[piece-type="white-rook"] {
	background-image: url("pieces/white-rook.png");
}
div[piece-type="white-knight"] {
	background-image: url("pieces/white-knight.png");
}
div[piece-type="white-bishop"] {
	background-image: url("pieces/white-bishop.png");
}
div[piece-type="white-queen"] {
	background-image: url("pieces/white-queen.png");
}
div[piece-type="white-king"] {
	background-image: url("pieces/white-king.png");
}
div[piece-type="black-pawn"] {
	background-image: url("pieces/black-pawn.png");
	background-size: 32%;
}
div[piece-type="black-rook"] {
	background-image: url("pieces/black-rook.png");
}
div[piece-type="black-knight"] {
	background-image: url("pieces/black-knight.png");
}
div[piece-type="black-bishop"] {
	background-image: url("pieces/black-bishop.png");
}
div[piece-type="black-queen"] {
	background-image: url("pieces/black-queen.png");
}
div[piece-type="black-king"] {
	background-image: url("pieces/black-king.png");
}
div[piece-type="white-pawn-first-move"] {
	background-image: url("pieces/white-pawn.png");
	background-size: 32%;
}
div[piece-type="black-pawn-first-move"] {
	background-image: url("pieces/black-pawn.png");
	background-size: 32%;
}

#actual-turn {
	position: absolute;
	top: 2vh;
	left: 40vw;
	width: 20vw;
	text-align: center;
}

#turn-indicator {
	font-size: 24px;
	text-transform: uppercase;
	font-weight: bold;
	font-family: sans-serif;
	text-shadow: 0 0 4px #888;
}

#turn-indicator.black {
	color: #333;
}

#turn-indicator.white {
	color: #fff;
}

@media only screen and (max-device-width: 780px) and (orientation: portrait) {
	#chessboard {
		width: 80vw;
		height: 80vw;
		margin: 15vh auto;
	}

	.row {
		height: 10vw;
	}

	.square {
		width: 10vw;
	}
}