html, body {
	margin: 0;
	padding: 0;
}

body {
	width: 100vw;
	height: 100vh;
	background: #aaa;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: Verdana;
}

#js-blocks figure { margin: 0; padding: 0; }

#js-blocks label { display: inline-block; }

#js-blocks h1, h2, h3, h4, h5, h6 { margin: 0; }

#js-blocks p { margin: 0; }

#js-blocks h2, .h2 { font-size: 26px; }

#js-blocks button, .btn {
	background: #fff;
    border: 2px solid #aaa;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 2px;
	transition: 0.25s;
}
#js-blocks button:hover, .btn:hover {
	background: #d5d5d5;
}

#js-blocks {
	width: 1000px;
	height: 600px;
	background: #fff;
	display: flex;
}

#js-blocks #board {
	width: 800px;
	height: 600px;
	background: #ddd;
	position: relative;
}

#js-blocks #board .block {
	width: 46px;
	height: 46px;
	position: absolute;
	border: 2px solid rgba(0,0,0,0.5);
	font-family: "Times New Roman";
	transition: 0.33s;
	cursor: pointer;
}
#js-blocks #board .block.selected:before {
	content: '';
	display: block;
	width: 38px;
	height: 38px;
	position: absolute;
	top: 2px;
	left: 2px;
	border: 2px solid #000;
	opacity: 0.52;
	z-index: 8;
}
#js-blocks #board .block:after {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: #fff;
	opacity: 0;
	transition: 0.18s;
	z-index: 6;
}
#js-blocks #board .block.highlighted:after {
	opacity: 0.45502;
}
#js-blocks #board .block .content:before {
	content: '';
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	color: #000;
	font-size: 26px;
	z-index: 12;
}
#js-blocks #board .block.selected .content:before {
	animation: bubbling 1.66s infinite;
}

#js-blocks #board .block.hidden {
	opacity: 0.33;
}
#js-blocks #board .block.removed {
	opacity: 0;
}

#js-blocks #labels .block-counter { display: block; }
#js-blocks #labels .block-counter.hidden { display: none; }

#js-blocks #board .block.type-1,
#js-blocks #labels .block-counter.type-1 .symbol
	{ background: #0c0; }
#js-blocks #board .block.type-1 .content:before,
#js-blocks #labels .block-counter.type-1 .symbol:before
	{ content: 'A'; }

#js-blocks #board .block.type-2,
#js-blocks #labels .block-counter.type-2 .symbol
	{ background: #c00; }
#js-blocks #board .block.type-2 .content:before,
#js-blocks #labels .block-counter.type-2 .symbol:before
	{ content: 'B'; }

#js-blocks #board .block.type-3,
#js-blocks #labels .block-counter.type-3 .symbol
	{ background: #09c; }
#js-blocks #board .block.type-3 .content:before,
#js-blocks #labels .block-counter.type-3 .symbol:before
	{ content: 'C'; }

#js-blocks #board .block.type-4,
#js-blocks #labels .block-counter.type-4 .symbol
	{ background: #cc0; }
#js-blocks #board .block.type-4 .content:before,
#js-blocks #labels .block-counter.type-4 .symbol:before
	{ content: 'D'; }
	
#js-blocks #board .block.type-5,
#js-blocks #labels .block-counter.type-5 .symbol
	{ background: #5cb; }
#js-blocks #board .block.type-5 .content:before,
#js-blocks #labels .block-counter.type-5 .symbol:before
	{ content: 'E'; }

#js-blocks #board .block.type-6,
#js-blocks #labels .block-counter.type-6 .symbol
	{ background: #c6b; }
#js-blocks #board .block.type-6 .content:before,
#js-blocks #labels .block-counter.type-6 .symbol:before
	{ content: 'F'; }

#js-blocks #board .block.type-7,
#js-blocks #labels .block-counter.type-7 .symbol
	{ background: #d82; }
#js-blocks #board .block.type-7 .content:before,
#js-blocks #labels .block-counter.type-7 .symbol:before
	{ content: 'G'; }

#js-blocks #board .block.type-8,
#js-blocks #labels .block-counter.type-8 .symbol
	{ background: #766; }
#js-blocks #board .block.type-8 .content:before,
#js-blocks #labels .block-counter.type-8 .symbol:before
	{ content: 'H'; }

@keyframes bubbling {
	0% { transform: scale(1); }
	50% { transform: scale(1.266); }
	100% { transform: scale(1); }
}


#js-blocks #labels {
	max-width: 188px; /* 200px - 2 * 6px */
	max-height: 600px;
	padding: 6px;
	display: flex;
	flex-wrap: wrap;
	align-content: space-between;
	order: 2;
}
#js-blocks #labels > div { width: 100%; }

#js-blocks #labels .block-stats {
	margin-top: 10px;
}

#js-blocks #labels .block-counter .symbol {
	width: 20px;
	height: 20px;
	display: inline-flex;
    align-items: center;
    justify-content: center;
	margin-bottom: 6px;
}

#js-blocks #new-game-options .board-sizing {
	border: 1px solid #aaa;
	margin-top: 17px;
}

#js-blocks #new-game-options .board-sizing h4 {
	position: relative;
    background: #fff;
    display: inline;
    top: -10px;
    left: 6px;
    border: 1px solid #aaa;
    padding: 2px 6px;
}

#js-blocks #new-game-options .board-sizing > div { padding: 4px 8px;}
#js-blocks #new-game-options .board-sizing > div label { width: 62px; }
#js-blocks #new-game-options .board-sizing > div input { width: 40px; }

#js-blocks #new-game-options button {
	margin: 10px 0 0 0;
    float: right;	
}
#js-blocks #new-game-options button.alt { float: left; }


#zaslaniacz {
	width: 100vw;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	opacity: 1;
	transition: 2s;
	z-index: 20;
}

#zaslaniacz .string {
	height: 200px;
	background: rgba(0,0,0,0.72);
	margin-top: calc(50vh - 100px);
	color: #fff;
	text-align: center;
	display: flex;
	flex-wrap: wrap;
}

#zaslaniacz .string p {
	width: 100%;
	display: block;
}
#zaslaniacz .string p.h2 {
	margin-top: 20px;
}

#zaslaniacz .string .scores {
	width: 100%;
	max-width: 260px;
	margin: 0 auto;
	text-align: right;
}
#zaslaniacz .string .scores .changable {
	width: 70px;
	display: inline-block;
}

#zaslaniacz.hidden {
	opacity: 0;
	z-index: -1;
}