﻿html, body {
	margin: 0;
	font-family: 'Roboto', sans-serif;
	font-size: 30px;
	width: 100%;
	height: 100%;
}

#game_area {
	width: 100%;
	height: 100%;
	position: relative;
}

.stage-0 {
	background-color: #029BA9;
	background-image: url('../graphics/kropki.png');
}

.stage-1 {
	background-color: #029BA9;
	background-image: url('../graphics/kropki.png');
}

.stage-2 {
	background-color: #029BA9;
	background-image: url('../graphics/kropki.png');
}

.stage-3 {
	background-color: #029BA9;
	background-image: url('../graphics/kropki.png');
}

.instruction-glow {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 1000px;
	height: 560px;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	background-image: url('../graphics/glow.svg');
}

.instruction-holder {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #000000;
	width: 750px;
	height: 350px;
}

.instruction-header {
	font-size: 28px;
	font-weight: bold;
	text-align: center;
	border-bottom: 3px solid #FFFFFF;
	margin-bottom: 10px;
	padding-bottom: 10px;
}

.instruction-content {
	font-size: 22px;
}

.instruction-button {
	text-align: center;
	margin-top: 20px;
	border-radius: 10px;
	padding: 5px;
	cursor: pointer;
	background: #ffffff;
	color: #333333;
}
.instruction-button:hover {
	background: #4C3B4D;
	color: #ffffff;
}


.selection-holder {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	height: 100%;
}
.selection-filters-holder {
	width: 300px;
	flex-shrink: 0;
	flex-grow: 0;
	height: 100%;
}
.selection-filter-holder {
	overflow: auto;
	width: 100%;
	max-height: calc(100% - 162px);
	background: rgba(255,255,255,0.5);
	padding: 10px 0;
	box-sizing: border-box;
	display: none;
}
.selection-filter-holder.active {
	display: block;
}
.selection-filter-score {
	font-size: 18px;
	height: 40px;
	width: 100%;
	background: #087E8B;
	color: #ffffff;
	line-height: 40px;
	padding: 0 10px;
	box-sizing: border-box;
	font-weight: bold;
}
.selection-filter-header {
	font-size: 18px;
	height: 40px;
	width: 100%;
	background: #4C3B4D;
	color: #ffffff;
	line-height: 40px;
	padding: 0 10px;
	box-sizing: border-box;
	cursor: pointer;
}
.selection-filter-item {
	font-size: 16px;
	padding: 0 10px;
	box-sizing: border-box;
	cursor: pointer;
}
.selection-filter-item:hover {
	background: #ffffff;
}
.selection-filter-item.selected {
	background: rgba(255,255,255,0.5);
}

.selection-items-holder {
	flex-shrink: 1;
	flex-grow: 1;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	flex-wrap: wrap;
	padding: 10px;
	box-sizing: border-box;
	max-height: 100%;
	overflow: auto;
}
.selection-item {
	width: 160px;
	height: 160px;
	background-color: #FFFFFF;
	border: 1px solid #cccccc;
	box-sizing: border-box;
	margin: 5px;
	cursor: pointer;
	
	background-repeat: no-repeat;
	background-position: center; 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}
.selection-item:hover {
	box-shadow: inset 0 0 80px 80px rgba(255, 255, 255, 0.3);
}


.image-info-holder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.image-info-belt {
	width: 100%;
	background: rgba(255,255,255,0.5);
	display: flex;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	align-items: flex-end;
}
.image-info-thumb {
	border: 1px solid #ffffff;
	margin-right: 10px;
}
.image-info-thumb img {
	max-width: 300px;
	max-height: 300px;
	display: block;
}
.image-info-description {
	font-size: 12px;
}
.image-info-options {
	margin-top: 30px;
	display: flex;
	justify-content: center;
}
.image-info-option {
	width: 140px;
	height: 150px;
	background: #ffffff;
	border-radius: 10px;
	margin: 0 10px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	cursor: pointer;
}
.image-info-option:hover {
	background: #4C3B4D;
	color: #ffffff;
}

.image-info-option-number {
	font-weight: bold;
	font-size: 36px;
}



.puzzle-holder {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
}
.puzzle-holder-column {
	flex-direction: column;
}
.puzzle-image {
	flex-grow: 0;
	flex-shrink: 0;
	position: relative;
}
.puzzle-image img {
	display: block;
	width: 100%;
	height: 100%;
	opacity: 0.1;
}
.puzzle-source {
	flex-grow: 1;
	flex-shrink: 1;
	height: 100%;
	width: auto;
}
.puzzle-holder-column .puzzle-source {
	height: auto;
	width: 100%;
}
.puzzle-image-element {
	position: absolute;
	border: 1px solid #ffffff;
	cursor: pointer;
	box-shadow: 2px 2px 6px rgba(0, 0, 0, .3);
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: center;
	background-repeat: no-repeat;
}

.puzzle-image-element:hover {
	border: 1px solid #cccccc;
}
.puzzle-image-element.locked {
	box-shadow: none;
	pointer-events: none;
	border: none;
	z-index: 0;
}
.puzzle-reward {
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #FFFFFF;
	text-shadow: -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000;
	font-weight: bold;
	z-index: 10;
	pointer-events: none;
}



.btn-return {
	width: 40px;
	height: 40px;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	border-radius: 20px;
	cursor: pointer;
	margin: 10px;
	align-self: flex-end;
	background-color: #4C3B4D;
	background-image: url('../graphics/btn_back0001.svg');
	position: absolute;
	right: 0px;
	bottom: 0px;
	z-index: 5;
}
.btn-return:hover {
	background-color: #FFFFFF;
	background-image: url('../graphics/btn_back0002.svg');
}

@media all and (max-height:530px) {
	
	.return-holder {
		height: 20px;
		position: absolute;
		right: 0;
		top: 0;
	}
	
	.btn-return {
		width: 20px;
		height: 20px;
		margin: 0 5px 0 0;
	}
}