* {
    box-sizing: border-box;
}

html,
body {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	height: 100vh;
	flex-direction: column;
}

.board {
    background-color: grey;
    position: relative;
    height: 504px;
    width: 504px;
}

.board .cell {
    width: 50px;
    height: 50px;
    padding: 0;
    position: absolute;
    background: #FFF;
    border: 2px solid grey;
	z-index: 1;
}

.btn-leave {
	margin: 1em;
}


.player {
	position: absolute;
	width: 50px;
	height: 50px;
	padding: 5px;
    transition: all 0.2s ease;
}
.player .player-skin {
	width: 100%;
	height: 100%;
	border-radius: 25px;
	background: #aaa;
	color: #666;
	cursor: pointer;
}
.player .player-name {
	position: absolute;
	display: none;
	top: -1.4em;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.2em 0.5em;
	background: rgba(255, 90, 90, 0.85);
	border-radius: .5em;
	color: white;
	font-family: sans-serif;
	font-size: 1.5em;
	font-weight: bold;
}
.player .player-skin:hover + .player-name {
	display: inline-block;
}

.board .pos-0-0 { margin: 2px 0 0 2px; }

.board .pos-1-0 { margin: 2px 0 0 52px; }

.board .pos-2-0 { margin: 2px 0 0 102px; }

.board .pos-3-0 { margin: 2px 0 0 152px; }

.board .pos-4-0 { margin: 2px 0 0 202px; }

.board .pos-5-0 { margin: 2px 0 0 252px; }

.board .pos-6-0 { margin: 2px 0 0 302px; }

.board .pos-7-0 { margin: 2px 0 0 352px; }

.board .pos-8-0 { margin: 2px 0 0 402px; }

.board .pos-9-0 { margin: 2px 0 0 452px; }

.board .pos-0-1 { margin: 52px 0 0 2px; }

.board .pos-1-1 { margin: 52px 0 0 52px; }

.board .pos-2-1 { margin: 52px 0 0 102px; }

.board .pos-3-1 { margin: 52px 0 0 152px; }

.board .pos-4-1 { margin: 52px 0 0 202px; }

.board .pos-5-1 { margin: 52px 0 0 252px; }

.board .pos-6-1 { margin: 52px 0 0 302px; }

.board .pos-7-1 { margin: 52px 0 0 352px; }

.board .pos-8-1 { margin: 52px 0 0 402px; }

.board .pos-9-1 { margin: 52px 0 0 452px; }

.board .pos-0-2 { margin: 102px 0 0 2px; }

.board .pos-1-2 { margin: 102px 0 0 52px; }

.board .pos-2-2 { margin: 102px 0 0 102px; }

.board .pos-3-2 { margin: 102px 0 0 152px; }

.board .pos-4-2 { margin: 102px 0 0 202px; }

.board .pos-5-2 { margin: 102px 0 0 252px; }

.board .pos-6-2 { margin: 102px 0 0 302px; }

.board .pos-7-2 { margin: 102px 0 0 352px; }

.board .pos-8-2 { margin: 102px 0 0 402px; }

.board .pos-9-2 { margin: 102px 0 0 452px; }

.board .pos-0-3 { margin: 152px 0 0 2px; }

.board .pos-1-3 { margin: 152px 0 0 52px; }

.board .pos-2-3 { margin: 152px 0 0 102px; }

.board .pos-3-3 { margin: 152px 0 0 152px; }

.board .pos-4-3 { margin: 152px 0 0 202px; }

.board .pos-5-3 { margin: 152px 0 0 252px; }

.board .pos-6-3 { margin: 152px 0 0 302px; }

.board .pos-7-3 { margin: 152px 0 0 352px; }

.board .pos-8-3 { margin: 152px 0 0 402px; }

.board .pos-9-3 { margin: 152px 0 0 452px; }

.board .pos-0-4 { margin: 202px 0 0 2px; }

.board .pos-1-4 { margin: 202px 0 0 52px; }

.board .pos-2-4 { margin: 202px 0 0 102px; }

.board .pos-3-4 { margin: 202px 0 0 152px; }

.board .pos-4-4 { margin: 202px 0 0 202px; }

.board .pos-5-4 { margin: 202px 0 0 252px; }

.board .pos-6-4 { margin: 202px 0 0 302px; }

.board .pos-7-4 { margin: 202px 0 0 352px; }

.board .pos-8-4 { margin: 202px 0 0 402px; }

.board .pos-9-4 { margin: 202px 0 0 452px; }

.board .pos-0-5 { margin: 252px 0 0 2px; }

.board .pos-1-5 { margin: 252px 0 0 52px; }

.board .pos-2-5 { margin: 252px 0 0 102px; }

.board .pos-3-5 { margin: 252px 0 0 152px; }

.board .pos-4-5 { margin: 252px 0 0 202px; }

.board .pos-5-5 { margin: 252px 0 0 252px; }

.board .pos-6-5 { margin: 252px 0 0 302px; }

.board .pos-7-5 { margin: 252px 0 0 352px; }

.board .pos-8-5 { margin: 252px 0 0 402px; }

.board .pos-9-5 { margin: 252px 0 0 452px; }

.board .pos-0-6 { margin: 302px 0 0 2px; }

.board .pos-1-6 { margin: 302px 0 0 52px; }

.board .pos-2-6 { margin: 302px 0 0 102px; }

.board .pos-3-6 { margin: 302px 0 0 152px; }

.board .pos-4-6 { margin: 302px 0 0 202px; }

.board .pos-5-6 { margin: 302px 0 0 252px; }

.board .pos-6-6 { margin: 302px 0 0 302px; }

.board .pos-7-6 { margin: 302px 0 0 352px; }

.board .pos-8-6 { margin: 302px 0 0 402px; }

.board .pos-9-6 { margin: 302px 0 0 452px; }

.board .pos-0-7 { margin: 352px 0 0 2px; }

.board .pos-1-7 { margin: 352px 0 0 52px; }

.board .pos-2-7 { margin: 352px 0 0 102px; }

.board .pos-3-7 { margin: 352px 0 0 152px; }

.board .pos-4-7 { margin: 352px 0 0 202px; }

.board .pos-5-7 { margin: 352px 0 0 252px; }

.board .pos-6-7 { margin: 352px 0 0 302px; }

.board .pos-7-7 { margin: 352px 0 0 352px; }

.board .pos-8-7 { margin: 352px 0 0 402px; }

.board .pos-9-7 { margin: 352px 0 0 452px; }

.board .pos-0-8 { margin: 402px 0 0 2px; }

.board .pos-1-8 { margin: 402px 0 0 52px; }

.board .pos-2-8 { margin: 402px 0 0 102px; }

.board .pos-3-8 { margin: 402px 0 0 152px; }

.board .pos-4-8 { margin: 402px 0 0 202px; }

.board .pos-5-8 { margin: 402px 0 0 252px; }

.board .pos-6-8 { margin: 402px 0 0 302px; }

.board .pos-7-8 { margin: 402px 0 0 352px; }

.board .pos-8-8 { margin: 402px 0 0 402px; }

.board .pos-9-8 { margin: 402px 0 0 452px; }

.board .pos-0-9 { margin: 452px 0 0 2px; }

.board .pos-1-9 { margin: 452px 0 0 52px; }

.board .pos-2-9 { margin: 452px 0 0 102px; }

.board .pos-3-9 { margin: 452px 0 0 152px; }

.board .pos-4-9 { margin: 452px 0 0 202px; }

.board .pos-5-9 { margin: 452px 0 0 252px; }

.board .pos-6-9 { margin: 452px 0 0 302px; }

.board .pos-7-9 { margin: 452px 0 0 352px; }

.board .pos-8-9 { margin: 452px 0 0 402px; }

.board .pos-9-9 { margin: 452px 0 0 452px; }

.player.pos-0-0 { z-index: 10; }

.player.pos-1-0 { z-index: 10; }

.player.pos-2-0 { z-index: 10; }

.player.pos-3-0 { z-index: 10; }

.player.pos-4-0 { z-index: 10; }

.player.pos-5-0 { z-index: 10; }

.player.pos-6-0 { z-index: 10; }

.player.pos-7-0 { z-index: 10; }

.player.pos-8-0 { z-index: 10; }

.player.pos-9-0 { z-index: 10; }

.player.pos-0-1 { z-index: 20; }

.player.pos-1-1 { z-index: 20; }

.player.pos-2-1 { z-index: 20; }

.player.pos-3-1 { z-index: 20; }

.player.pos-4-1 { z-index: 20; }

.player.pos-5-1 { z-index: 20; }

.player.pos-6-1 { z-index: 20; }

.player.pos-7-1 { z-index: 20; }

.player.pos-8-1 { z-index: 20; }

.player.pos-9-1 { z-index: 20; }

.player.pos-0-2 { z-index: 30; }

.player.pos-1-2 { z-index: 30; }

.player.pos-2-2 { z-index: 30; }

.player.pos-3-2 { z-index: 30; }

.player.pos-4-2 { z-index: 30; }

.player.pos-5-2 { z-index: 30; }

.player.pos-6-2 { z-index: 30; }

.player.pos-7-2 { z-index: 30; }

.player.pos-8-2 { z-index: 30; }

.player.pos-9-2 { z-index: 30; }

.player.pos-0-3 { z-index: 40; }

.player.pos-1-3 { z-index: 40; }

.player.pos-2-3 { z-index: 40; }

.player.pos-3-3 { z-index: 40; }

.player.pos-4-3 { z-index: 40; }

.player.pos-5-3 { z-index: 40; }

.player.pos-6-3 { z-index: 40; }

.player.pos-7-3 { z-index: 40; }

.player.pos-8-3 { z-index: 40; }

.player.pos-9-3 { z-index: 40; }

.player.pos-0-4 { z-index: 50; }

.player.pos-1-4 { z-index: 50; }

.player.pos-2-4 { z-index: 50; }

.player.pos-3-4 { z-index: 50; }

.player.pos-4-4 { z-index: 50; }

.player.pos-5-4 { z-index: 50; }

.player.pos-6-4 { z-index: 50; }

.player.pos-7-4 { z-index: 50; }

.player.pos-8-4 { z-index: 50; }

.player.pos-9-4 { z-index: 50; }

.player.pos-0-5 { z-index: 60; }

.player.pos-1-5 { z-index: 60; }

.player.pos-2-5 { z-index: 60; }

.player.pos-3-5 { z-index: 60; }

.player.pos-4-5 { z-index: 60; }

.player.pos-5-5 { z-index: 60; }

.player.pos-6-5 { z-index: 60; }

.player.pos-7-5 { z-index: 60; }

.player.pos-8-5 { z-index: 60; }

.player.pos-9-5 { z-index: 60; }

.player.pos-0-6 { z-index: 70; }

.player.pos-1-6 { z-index: 70; }

.player.pos-2-6 { z-index: 70; }

.player.pos-3-6 { z-index: 70; }

.player.pos-4-6 { z-index: 70; }

.player.pos-5-6 { z-index: 70; }

.player.pos-6-6 { z-index: 70; }

.player.pos-7-6 { z-index: 70; }

.player.pos-8-6 { z-index: 70; }

.player.pos-9-6 { z-index: 70; }

.player.pos-0-7 { z-index: 80; }

.player.pos-1-7 { z-index: 80; }

.player.pos-2-7 { z-index: 80; }

.player.pos-3-7 { z-index: 80; }

.player.pos-4-7 { z-index: 80; }

.player.pos-5-7 { z-index: 80; }

.player.pos-6-7 { z-index: 80; }

.player.pos-7-7 { z-index: 80; }

.player.pos-8-7 { z-index: 80; }

.player.pos-9-7 { z-index: 80; }

.player.pos-0-8 { z-index: 90; }

.player.pos-1-8 { z-index: 90; }

.player.pos-2-8 { z-index: 90; }

.player.pos-3-8 { z-index: 90; }

.player.pos-4-8 { z-index: 90; }

.player.pos-5-8 { z-index: 90; }

.player.pos-6-8 { z-index: 90; }

.player.pos-7-8 { z-index: 90; }

.player.pos-8-8 { z-index: 90; }

.player.pos-9-8 { z-index: 90; }

.player.pos-0-9 { z-index: 100; }

.player.pos-1-9 { z-index: 100; }

.player.pos-2-9 { z-index: 100; }

.player.pos-3-9 { z-index: 100; }

.player.pos-4-9 { z-index: 100; }

.player.pos-5-9 { z-index: 100; }

.player.pos-6-9 { z-index: 100; }

.player.pos-7-9 { z-index: 100; }

.player.pos-8-9 { z-index: 100; }

.player.pos-9-9 { z-index: 100; }