/* GLOBALS */

body {
	font-size: 14px;
	color: #FFFFFF;
	font-family: "Roboto Medium", "Arial";
	background:transparent;
}


/* GLOBALS END */

::selection {color:currentColor;background:transparent}

*{
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/*******************************/
/* DEFAULTS */
/*******************************/



/*******************************/
/* COLORS */
/*******************************/



/*******************************/
/* GAME */
/*******************************/

#newGameContainer.notransparent{
	background-color: #D0925C;
	background-image: url(default_images/bg.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}
#wrongOrientationContent{
	background-color: #D0925C;
}

#startScreen .openImg{
	background-size: auto;
	background-position: center 70%;
}

#gameStage{
	/*width:800px;*/
	/*height:520px;*/
	width:90%;
	height:100%;
	position: absolute;
	display:none;
}
.gameTable{
	display: table;
	vertical-align: middle;
	height: 100%;
	margin: auto;
	padding: 70px 40px;
}
#gameTableCell{
	background-color: #E4E4E4;
	display: table-cell;
	vertical-align: middle;
	padding: 0 20px;
}

.gameInstruction{
	font-size:28px;
	text-align:left;
	margin-bottom:20px;
	height: 120px;
}
#allBag{
	margin: auto;
	display: table-cell;
	vertical-align: middle;
}
.etalonContainer{
	display: table-cell;
	vertical-align: middle;
}
.allBag4x5{
	width: 412px;
}
.allBag4x5 .bagContainer:nth-child(5n+0){
	margin-right: 0;
}
.allBag4x6{
	width: 495px;
}
.allBag4x6 .bagContainer:nth-child(6n+0){
	margin-right: 0;
}
.allBag5x6{
	width: 495px;
}
.allBag5x6 .bagContainer:nth-child(6n+0){
	margin-right: 0;
}
.allBag5x7{
	width: 578px;
}
.allBag5x7 .bagContainer:nth-child(7n+0){
	margin-right: 0;
}
.allBag6x7{
	width: 578px;
}
.allBag6x7 .bagContainer:nth-child(7n+0){
	margin-right: 0;
}
.allBag6x8{
	width: 661px;
}
.allBag6x8 .bagContainer:nth-child(8n+0){
	margin-right: 0;
}
#etalon_div{
	width: 90px;
	height: 90px;
	padding: 22px 10px;
	background-color: #9A9A9A;
	margin-left: 20px;
	text-align: center;
}
#etalon_div img{width: 100%}
.bagContainer{
	float: left;
	margin: 0 5px 5px 0;
	cursor: pointer;
	background-repeat: no-repeat;
	width: 60px;
	height: 49px;
	padding: 4px 6px;
}
.bagContainer img{
	width: 100%;
}
.rotate_90 img{
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	-o-transform: rotate(90deg);
	-ms-transform: rotate(90deg);
	transform: rotate(90deg);
}
.rotate_180 img{
	-webkit-transform: rotate(180deg);
	-moz-transform: rotate(180deg);
	-o-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	transform: rotate(180deg);
}
.rotate_270 img{
	-webkit-transform: rotate(270deg);
	-moz-transform: rotate(270deg);
	-o-transform: rotate(270deg);
	-ms-transform: rotate(270deg);
	transform: rotate(270deg);
}
.animate{
	-webkit-animation-duration: 4s;
	animation-duration: 4s;
	/*-webkit-animation-delay: 1s;*/
	/*animation-delay: 1s;*/
	-webkit-animation-name: myfirst;
	animation-name: myfirst;
	-webkit-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
	-webkit-animation-direction: alternate;
	animation-direction: alternate;
	-webkit-animation-timing-function: ease-in;
	animation-timing-function: ease-in;
}
/* Chrome, Safari, Opera */
@-webkit-keyframes myfirst
{
	0% {opacity: 100}
	70% {opacity: 0}
}

/* Standard syntax */
@keyframes myfirst
{
	0% {opacity: 100}
	70% {opacity: 0}
}

@media only screen and (min-width: 480px) and (max-width: 799px) {

	#startScreen .openImg{
		background-size: auto 40%;
		background-position: center 30%;
	}

	/*game*/
	#gameStage{/*m*/
		margin-top: 0;
	}

	.gameTable{/*m*/
		width: auto;
		height: 100%;
		padding: 20px 10px;
	}
	#gameTableCell{padding: 0 10px;}
	.bagContainer{
		background-size: contain;
		width: 35px;
		height: 32px;
		padding: 3px;
	}

	#etalon_div{
		width: 35px;
		height: 35px;
		background-size: contain;
		padding: 10px 15px;
	}

	.allBag4x5{
		width: 225px;
	}
	.allBag4x6{
		width: 275px;
	}
	.allBag5x6{
		width: 275px;
	}
	.allBag5x7{
		width: 320px;
	}
	.allBag6x7{
		width: 320px;
	}
	.allBag6x8{
		width: 365px;
	}

}

@media only screen and (min-width: 480px) and (max-width: 799px) and (max-height: 260px) {

	#startScreen .openImg{
		background-size: 220px auto;
	}
	.gameTable{padding: 5px;}
	.bagContainer{
		width: 28px;
		height: 28px;
		margin: 0 3px 3px 0;
	}
	#etalon_div{
		width: 30px;
		height: 30px;
		background-size: contain;
	}
	.allBag4x5{
		width: 185px;
	}
	.allBag4x6{
		width: 220px;
	}
	.allBag5x6{
		width: 220px;
	}
	.allBag5x7{
		width: 260px;
	}
	.allBag6x7{
		width: 260px;
	}
	.allBag6x8{
		width: 295px;
	}
}