.content {
	width: 100%;
}

.boards {
	position: relative;
	overflow: hidden;
	top: -75px;
	z-index: 5;
}

.playername {
	box-sizing: border-box;
	width: 100%;
	font-size: 1em;
	text-align: center;
	border: none;
	background-color: transparent;
}

.board.small {
	position: absolute;
	top: 15px;
	font-size: 2em;
	width: 205px;
}

.board td {
	background-size: cover;
	background-repeat: no-repeat;
}

.board.player0 {
	left: 15px;
}

.board.player1 {
	right: 15px;	
}

.player0 table {
	float: left;
}

.active table {
	background-color: rgba(255, 255, 0, 0.3);
	outline: 5px solid rgba(255, 255, 0, 0.3);
}

.player1 table {
	float: right;
}

.board.big {
	margin: auto;
	margin-top: 100px;
	text-align: center;
}

.board td {
	padding: 0.4em;
}

.board.big table {
	margin: auto;
	font-size: 3em;
}

.player-sign {
	background-repeat: no-repeat;
	background-size: cover;
	width: 50px;
	height: 50px;
	position: absolute;
	top: -5px;
	cursor: pointer;
}

.player0 .player-sign {
	right: -55px;
}

.player1 .player-sign {
	left: -55px;
}

.sign-x {
	background-image: url('images/ttt_cross_blue.png');
}

.sign-o {
	background-image: url('images/ttt_circle_red.png');	
}

.keyboard {
	width: calc( 53px * 9);
	box-sizing: border-box;
	background-color: white;
	display: flex;
	flex-wrap: wrap;
	margin: 5px auto 0 auto;
	position: relative;
	z-index: 10;
}
.keyboard .btn {
	width: 45px;
	text-align: center;
	padding: 4px 2px;
	margin: 2px;
	background-color: #73a973;
	display: inline-block;
	cursor: pointer;
}

.keyboard .btn:hover {
	background-color: #73a973
}

.btn.single {
	background-color: #93c993;
}

.btn.double {
	background-color: #76a976;
}

.btn.triple {
	background-color: #588a58;
}

#del {
	background-color: #c49090;
}

.throws {
	text-align: center;
}

.throw {
	display: inline-block;
	box-sizing: border-box;
	font-size: 0.7em;
	width: 28%;
	border: 1px solid gray;
	padding: 1px 3px;
	text-align: center;
}

.check-1 {
	background-image: url('images/board_small_1.png');
}

.check-2 {
	background-image: url('images/board_small_2.png');
}

.check-3 {
	background-image: url('images/board_small_3.png');
}

@media (max-width: 1023px) {
	.boards {
		top: 0;
		font-size: 0.9em;
	}
}

@media (max-width: 767px) {
	.board.big {
		font-size: 0.5em;
	}

	.board.small {
		width: 101px;
	}

	.playername {
		font-size: 0.6em;
	}

	.board.small table {
		font-size: 0.5em;
	}

	.throw {
		font-size: 0.35em;
	}

	.keyboard {
		font-size: 0.8em;
		width: calc( 53px * 6);
	}
	
	.keyboard.btn {
		width: 35px;
	}

	.player0 .player-sign {
		right: -45px;
	}

	.player1 .player-sign {
		left: -45px;
	}
}

@media (max-width: 424px) {
	.player0 .player-sign {
		right: -30px;
	}

	.player1 .player-sign {
		left: -30px;
	}
	
	.throws {
		font-size: 20px;
	}

	.throw {
		width: 55%;
		font-size: 12px;
	}
}