/* 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;
	touch-action: none;
	-ms-touch-action: none;
}

/*******************************/
/* GAME */
/*******************************/

#newGameContainer.notransparent{
	background-color: #6B843A;
	background-image: url(default_images/bg.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}
#wrongOrientationContent{
	background-color: #6B843A;
}
#startScreen .openImg{
	background-size: auto;
	background-position: center 30%;
}
#gameStage{
	position: absolute;
	z-index: 510;
	width: 100%;
	height: 100%;
}
#gameTable {
	text-align: center;
	height: 100%;
	display: table;
	width: 100%;
}
#gameTableCell{
	display: table-cell;
	vertical-align: middle;
}
table{
	border-collapse: separate;
	padding: 20px;
	margin: auto;
	background-color: rgba(255,255,255,0.9);
}
td{
	width: 120px;
	height: 105px;
	text-align: center;
	vertical-align: middle;
	position: relative;
	font-size: 0;
}
.hex{
	-webkit-animation: show .2s linear;
	-moz-animation: show .2s linear;
	-o-animation: show .2s linear;
	animation: show .2s linear;
	cursor: pointer;
}
.hex .middle{
	display: inline-block;
	vertical-align: top;
	width: 60px;
	height: 105px;
	font-size: 35px;
	line-height: 105px;
	color: white;
}
.hex .left{
	display: inline-block;
	vertical-align: top;
	width: 0;
	border-right: 30px solid;
	border-top: 52px solid transparent;
	border-bottom: 52px solid transparent;
}
.hex .right{
	display: inline-block;
	vertical-align: top;
	width: 0;
	border-left: 30px solid;
	border-top: 52px solid transparent;
	border-bottom: 52px solid transparent;
}
.item_1 .middle{background-color: #D5A42A;} .item_1 .left{border-right-color: #D5A42A;} .item_1 .right{border-left-color: #D5A42A;}
.item_2 .middle{background-color: #8AA232;} .item_2 .left{border-right-color: #8AA232;} .item_2 .right{border-left-color: #8AA232;}
.item_3 .middle{background-color: #145924;} .item_3 .left{border-right-color: #145924;} .item_3 .right{border-left-color: #145924;}
.item_4 .middle{background-color: #042204;} .item_4 .left{border-right-color: #042204;} .item_4 .right{border-left-color: #042204;}
.item_5 .middle{background-color: #4E0505;} .item_5 .left{border-right-color: #4E0505;} .item_5 .right{border-left-color: #4E0505;}
.item_6 .middle{background-color: #E75F24;} .item_6 .left{border-right-color: #E75F24;} .item_6 .right{border-left-color: #E75F24;}
.item_7 .middle{background-color: #378B86;} .item_7 .left{border-right-color: #378B86;} .item_7 .right{border-left-color: #378B86;}
.item_8 .middle{background-color: #060E44;} .item_8 .left{border-right-color: #060E44;} .item_8 .right{border-left-color: #060E44;}
.dontTouch .middle{background-color: #646473;} .dontTouch .left{border-right-color: #646473;} .dontTouch .right{border-left-color: #646473;}

.hex.wrong{
	-webkit-animation: shake .03s linear 0s infinite alternate;
	-moz-animation: shake .03s linear 0s infinite alternate;
	-o-animation: shake .03s linear 0s infinite alternate;
	animation: shake .03s linear 0s infinite alternate;
}
@-webkit-keyframes shake
{
	from{
		-ms-transform: rotate(10deg); /* IE 9 */
		-webkit-transform: rotate(10deg); /* Safari */
		transform: rotate(10deg);
	}
	to {
		-ms-transform: rotate(-10deg); /* IE 9 */
		-webkit-transform: rotate(-10deg); /* Safari */
		transform: rotate(-10deg);
	}
}
@keyframes shake
{
	from{
		-ms-transform: rotate(10deg); /* IE 9 */
		-webkit-transform: rotate(10deg); /* Safari */
		transform: rotate(10deg);
	}
	to {
		-ms-transform: rotate(-10deg); /* IE 9 */
		-webkit-transform: rotate(-10deg); /* Safari */
		transform: rotate(-10deg);
	}
}
.hex.hide{
	-webkit-animation: hide .2s linear;
	-moz-animation: hide .2s linear;
	-o-animation: hide .2s linear;
	animation: hide .2s linear;
}
@-webkit-keyframes hide
{
	to {
		-ms-transform: scale(0); /* IE 9 */
		-webkit-transform: scale(0); /* Safari */
		transform: scale(0);
		opacity: 0;
	}
}
@keyframes hide
{
	to {
		-ms-transform: scale(0); /* IE 9 */
		-webkit-transform: scale(0); /* Safari */
		transform: scale(0);
		opacity: 0;
	}
}
@-webkit-keyframes show
{
	0%{
		-ms-transform: scale(0); /* IE 9 */
		-webkit-transform: scale(0); /* Safari */
		transform: scale(0);
		opacity: 0;
	}
	90%{
		-ms-transform: scale(1.1); /* IE 9 */
		-webkit-transform: scale(1.1); /* Safari */
		transform: scale(1.1);
		opacity: 1;
	}
	100% {
		-ms-transform: scale(1); /* IE 9 */
		-webkit-transform: scale(1); /* Safari */
		transform: scale(1);
	}
}
@keyframes show
{
	0%{
		-ms-transform: scale(0); /* IE 9 */
		-webkit-transform: scale(0); /* Safari */
		transform: scale(0);
		opacity: 0;
	}
	90%{
		-ms-transform: scale(1.1); /* IE 9 */
		-webkit-transform: scale(1.1); /* Safari */
		transform: scale(1.1);
		opacity: 1;
	}
	100% {
		-ms-transform: scale(1); /* IE 9 */
		-webkit-transform: scale(1); /* Safari */
		transform: scale(1);

	}
}

@media only screen and (min-width: 480px) and (max-width: 799px) {

	#startScreen .openImg {
		background-size: 50% auto;
		background-position-y: 20%;
	}
	#table{
		padding: 5px;
	}
	td{
		width: 68px;
		height: 60px;
	}
	.hex .left{
		border-right-width: 17px;
		border-top-width: 30px;
		border-bottom-width: 30px;
	}
    .hex .middle{
	    font-size: 22px;
	    line-height: 60px;
	    width: 34px;
	    height: 60px;
    }
    .hex .right{
	    border-left-width: 17px;
	    border-top-width: 30px;
	    border-bottom-width: 30px;
    }

}

@media only screen and (min-width: 480px) and (max-width: 799px) and (max-height: 260px) {

	td{
		width: 57px;
		height: 50px;
	}
	.hex .left{
		border-right-width: 14px;
		border-top-width: 25px;
		border-bottom-width: 25px;
	}
	.hex .middle{
		font-size: 18px;
		line-height: 50px;
		width: 29px;
		height: 50px;
	}
	.hex .right{
		border-left-width: 14px;
		border-top-width: 25px;
		border-bottom-width: 25px;
	}

}