/* 2015.08.20 Cs*/
*{
	margin: 0;
	padding: 0;
}

body {
	font-size: 14px;
	color: #666666;
	font-family: 'Roboto Regular', 'Arial';
}

/*******************************/
/* SIZES */
/*******************************/

#newGameContainer{
	width:960px;
	height:570px;
	margin:auto;
	position: relative;
	overflow: hidden;
}

#newGameContainer #loadScreen{
	display: block;
	position: absolute;
	width: 100% !important;
	height: 50px !important;
	top:50%;
	text-align: center;
}

#startScreen{
	width:100%;
	height:100%;
	position: relative;
}
#startScreen #openImgCont{
	position: absolute;
	width: 100%;
	height: 100%;
}
#startScreen .openImg{
	width: 100%;
	height: 100%;
	background-size: auto;
	background-repeat: no-repeat;
	background-position: center center;
}

.openOrderTab{
	border-collapse:collapse;
	border-spacing:0px;
	width: 100%;
	height: 100%;
}

.openContent{
	text-align:center;
	vertical-align:top;
	border-collapse:collapse;
	border-spacing:0px;
	margin:0px 0px 0px 0px;
	padding:0px 0px 0px 0px;
}

.openContent #tutorialContainer img{
	margin-top: 0px;
}

.openLeft{
	width:60px;
	height:60px;
	padding-left:40px;
}

.openRight{
	width:60px;
	height:60px;
	padding-right:40px;
}

.openCenter{
	height:60px;
	padding:0px 15px 0px 15px;
	text-align:center;
}

#startSound{
	display:none;
	width:80px !important;
	height:80px !important;
	background-position: center 0;
	background-repeat:no-repeat;
}

#startNext{
	display: table-cell;
	float: none;
	background-image: none!important;
	vertical-align: middle;
}
#startNext span{
	background-position: center -50px !important;
	background-repeat:no-repeat;
	background-image: url('../images/sprite_ja_5.png?t=1') !important;
	display: inline-block;
	width: 20px;
	height: 30px;
}
#startTextContainer{
	position: absolute;
	bottom: 20px;
	display: block;
	width: 70%;
	text-align: center;
	left: 15%;
}
#startText{
	display:table-cell;
	font-family: "Roboto Regular";
	font-size: 16px;
	line-height: 120%;
	background-color: rgba(0,0,0,0.8);
	padding: 15px 10px;
	width: 90%;
}

/* tutorial */
#tutorialContainer{
	position: absolute;
	width: 600px;
	height: 284px;
	left: 50%;
	margin-left: -320px;
	top: 50%;
	margin-top: -162px;
	border-radius: 7px;
	padding: 20px;
	background-color: rgba(0,0,0,0.8);
}
#tutorialScreen #tutorialContainer img{
	float: left;
	width: 280px;
	height: 100%;
}
#tutorialScreen #tutorialContainer span{
	font-size: 15px;
	font-weight: normal;
	text-align: justify;
	height: auto;
	color: #FFFFFF;
	line-height: 110%;
	float: right;
	width: 300px;
}

#tutorialPrev{
	display:inline-block;
	width:80px;
	height:80px;
	background-position:center -161px;
	float: none;
}

#tutorialNext{
	display:inline-block;
	background-position:center -32px;
	float: none;
	position: absolute;
	right: 10px;
	top: 50%;
	margin-top: -45px;
}

/* gamenav */
.gameNav{
	background-image: url('../images/sprite_ja_5.png?t=1') !important;
	background-repeat: no-repeat;
	cursor: pointer;
	height: 65px;
	width: 75px;
	display: block;
	float: left;
	background-color: rgba(0,0,0,0.8)!important;
}

#gameFunctions {
	background-color: transparent;
	border: none;
	width: 75px;
	position: absolute;
	right: 40px;
	top: 30%;
	z-index: 511;
}

#gameCounters{
	/*height:195px;*/
	height:auto;
	vertical-align: top;
	display: table-cell;
}

#gameFuncCont{
	/*margin:0px 10px 10px 10px;*/
	text-align:right;
}

.funcButt{
	display:inline-block;
	width:50px;
	height:50px;
	background-repeat:no-repeat;
	background-position:center center;
	margin:8px;
}

#gameHelp{
	background-position: center -320px;
	width: 40px;
	height: 40px;
}

#gameSound{
	display:none;
	background-position: center 0px;
}

#gameSound.gameSoundOff, #startSound.startSoundOff{
	background-position: center -560px;
}

#gameClose{
	background-position: center -238px;
	width: 40px;
	height: 40px;
}
#gameHistory{
	width: 40px;
	height: 40px;
	text-align: center;
	color: #ffffff;
	text-decoration: none;
	line-height: 40px;
	background-image: none!important;
}

#settingsContainer{
	display: block!important;
	width: auto;
	position: absolute;
	z-index: 511;
	right: 10px;
	background-color: rgba(0,0,0,0.8)!important;
}
#settingsContainer .border{
	height: 24px;
	display: inline-block;
	border-right: 1px solid #FFFFFF;
	float: left;
	margin: 8px 0;
}
#settingsContainer .gameNav{background-color: transparent!important;}

#gameSettings{
	display: block;
	background-position: center -134px;
}

.counterBoxBig{
	margin-bottom:10px;
}

.counterBoxBig .counterNumbers{
	padding:5px;
	font-size:37px;
	font-weight:bold;
	height:36px;
	line-height: 100%;
	text-align:center;
}

.counterBoxBig .counterLabel{
	font-size:30px;
	font-weight:normal;
	height:36px;
	line-height: 100%;
	margin-bottom:4px;
}

.counterBox{
	padding: 10px 0;
	width: 75px;
	height: 75px;
	background: rgba(0,0,0,0.8);
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	line-height: 120%;
	margin-bottom: 4px;
	position: relative;
}

.counterLabel{
	color: #FFFFFF;
	font-size: 9px;
	font-family: 'Roboto Regular';
	text-transform:uppercase;
	text-align: center;
	position: absolute;
	width: 100%;
	top: 43px;
}
.counterNumbers{
	color: #FFFFFF;
	font-size: 25px;
	font-family: 'Roboto Regular';
	background: transparent !important;
	text-align: center;
	z-index: 100;
	position: absolute;
	width: 100%;
	top: 22px;
}
.counterNumbers.warning{
	color: red;
	-webkit-animation: pulsate 1s ease-out;
	-o-animation: pulsate 1s ease-out;
	animation: pulsate 1s ease-out;
	-webkit-animation-iteration-count: infinite;
	-moz-animation-iteration-count: infinite;
	-o-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
}
@-webkit-keyframes pulsate {
	0% {
		-webkit-transform: scale(0.1, 0.1);
		-moz-transform: scale(0.1, 0.1);
		-ms-transform: scale(0.1, 0.1);
		-o-transform: scale(0.1, 0.1);
		transform: scale(0.1, 0.1);
		opacity: 0.0;
	}
	50% {opacity: 1.0;}
	80% {opacity: 1.0;}
	100% {
		-webkit-transform: scale(1.2, 1.2);
		-moz-transform: scale(1.2, 1.2);
		-ms-transform: scale(1.2, 1.2);
		-o-transform: scale(1.2, 1.2);
		transform: scale(1.2, 1.2);
		opacity: 0.0;
	}
}
@-moz-keyframes pulsate {
	0% {
		-webkit-transform: scale(0.1, 0.1);
		-moz-transform: scale(0.1, 0.1);
		-ms-transform: scale(0.1, 0.1);
		-o-transform: scale(0.1, 0.1);
		transform: scale(0.1, 0.1);
		opacity: 0.0;
	}
	50% {opacity: 1.0;}
	80% {opacity: 1.0;}
	100% {
		-webkit-transform: scale(1.2, 1.2);
		-moz-transform: scale(1.2, 1.2);
		-ms-transform: scale(1.2, 1.2);
		-o-transform: scale(1.2, 1.2);
		transform: scale(1.2, 1.2);
		opacity: 0.0;
	}
}
@-o-keyframes pulsate {
	0% {
		-webkit-transform: scale(0.1, 0.1);
		-moz-transform: scale(0.1, 0.1);
		-ms-transform: scale(0.1, 0.1);
		-o-transform: scale(0.1, 0.1);
		transform: scale(0.1, 0.1);
		opacity: 0.0;
	}
	50% {opacity: 1.0;}
	80% {opacity: 1.0;}
	100% {
		-webkit-transform: scale(1.2, 1.2);
		-moz-transform: scale(1.2, 1.2);
		-ms-transform: scale(1.2, 1.2);
		-o-transform: scale(1.2, 1.2);
		transform: scale(1.2, 1.2);
		opacity: 0.0;
	}
}
@-ms-keyframes pulsate {
	0% {
		-webkit-transform: scale(0.1, 0.1);
		-moz-transform: scale(0.1, 0.1);
		-ms-transform: scale(0.1, 0.1);
		-o-transform: scale(0.1, 0.1);
		transform: scale(0.1, 0.1);
		opacity: 0.0;
	}
	50% {opacity: 1.0;}
	80% {opacity: 1.0;}
	100% {
		-webkit-transform: scale(1.2, 1.2);
		-moz-transform: scale(1.2, 1.2);
		-ms-transform: scale(1.2, 1.2);
		-o-transform: scale(1.2, 1.2);
		transform: scale(1.2, 1.2);
		opacity: 0.0;
	}
}
@keyframes pulsate {
	0% {
		-webkit-transform: scale(0.1, 0.1);
		-moz-transform: scale(0.1, 0.1);
		-ms-transform: scale(0.1, 0.1);
		-o-transform: scale(0.1, 0.1);
		transform: scale(0.1, 0.1);
		opacity: 0.0;
	}
	50% {opacity: 1.0;}
	80% {opacity: 1.0;}
	100% {
		-webkit-transform: scale(1.2, 1.2);
		-moz-transform: scale(1.2, 1.2);
		-ms-transform: scale(1.2, 1.2);
		-o-transform: scale(1.2, 1.2);
		transform: scale(1.2, 1.2);
		opacity: 0.0;
	}
}
#countDownContainer{
	position: absolute;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	background-color: rgba(0,0,0,0.4);
}
#countDownContainer .table{
	height: 100%;
	display: table;
	width: 100%;
}
#countDownContainer .table .tableCell{
	vertical-align: middle;
	display: table-cell;
}
#countDown{
	font-size: 150px;
	text-shadow: 3px 3px 10px black;
	-webkit-animation: pulsate 1s ease-out;
	-o-animation: pulsate 1s ease-out;
	animation: pulsate 1s ease-out;
	-webkit-animation-iteration-count: infinite;
	-moz-animation-iteration-count: infinite;
	-o-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
}

/* endscreen */
#endScreen{
	position: absolute;
	width: 600px;
	height: 284px;
	left: 50%;
	margin-left: -320px;
	top: 50%;
	margin-top: -162px;
	border-radius: 7px;
	padding: 20px;
	background-color: rgba(0,0,0,0.8);
}
#endImage{
	float: left;
	width: 280px;
	height: 100%;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: auto;
}
#endData{
	float: right;
	width: 300px;
	color: #FFFFFF;
}
#endData h2{
	font-family: "Roboto Medium";
	font-size: 22px;
	font-weight: normal;
	margin: 0;
	padding: 0;
	text-align: center;
}
#endData h1{
	font-family: "Roboto Bold";
	font-size: 32px;
	font-weight: normal;
	margin: 0 0 10px 0;
	padding: 0;
	text-align: center;
}

#endData .endMessage{
	font-size: 15px;
	font-weight: normal;
	text-align: justify;
	height: auto;
	color: #FFFFFF;
	line-height: 110%;
}

#endFunctions{
	text-align:center;
}

#endRestart{
	width: 65px;
	display:inline-block;
	background-position:center -398px;
	margin:20px 5px 0px 5px;
	float:none;
}

#endStat{
	width: 65px;
	display:inline-block;
	background-position:center -511px;
	margin:20px 5px 0px 5px;
	float:none;
}

.funcButtBig{
	display:inline-block;
	width:114px;
	height:114px;
	background-repeat:no-repeat;
	background-position:center center;
}

/*******************************/
/* COLORS */
/*******************************/

#gameContainer{
	background:#028002;
}

#gameHeader{
	background:#666666;
}

#gameHome{
	background-color:#000000;
	border:6px solid #666666;
}

#startScreen{
	border:0px solid #FF0000;
}

#startImage img{
	border:6px solid #666666;
}


#startFooterTable{
	background-color:#000000;
	border:6px solid #666666;
}

#startFooterTable .left{
	border-right:6px solid #666666;
}

#startFooterTable .right{
	border-left:6px solid #666666;
}

#startSound{
	background-color:#000000;
}

#startNext{
	background-color:#000000;
}

#startText{
	color:#FFFFFF;
}

#tutorialFooterTable{
	background-color:#000000;
	border:6px solid #666666;
}

#tutorialFooterTable .left{
	border-right:6px solid #666666;
}

#tutorialFooterTable .right{
	border-left:6px solid #666666;
}

#tutorialFooterTable .center{
	background-color:#666666;
}

#tutorialPrev{
	background-color:#000000;
}

#tutorialNext{
	background-color:#000000;
}

#tutorialContainer{
	color:#FFFFFF;
}

.funcButt{
	background-color:#000000;
	border:6px solid #666666;
}

#endTable{
	color:#FFFFFF;
}

.funcButtBig{
	background-color:#000000;
	border:6px solid #666666;
}

#endText{
	color:#FFFFFF;
}

.counterBoxBig{
	border:0px solid #FF0000;
}

.counterBoxBig .counterNumbers{
	border:3px solid #666666;
	background:#CCCCCC;
}

/*.counterBox .counterNumbers{*/
/*border:3px solid #666666;*/
/*background:#CCCCCC;*/
/*}*/

#gameMessage{
	position:absolute;
	width:980px;
	height:570px;
	z-index:600;
}

#msgTd{
	position:relative;
	display:table-cell;
	width:980px;
	height:570px;
	text-align:center;
	vertical-align:middle;
	font-size:30px;
	padding:0px 100px;
}

#msgTd .inf{
	display:inline-block;
	background:rgba(0,0,0,0.8);
	padding:15px 50px 15px 50px;
}

#gameAlert{
	position:absolute;
	width:100%;
	height:100%;
	z-index:600;
}

#alertTd{
	position:relative;
	display:table-cell;
	width:780px;
	height:570px;
	text-align:center;
	vertical-align:middle;
	font-size:17px;
	font-weight:normal;
	padding: 0px 200px;
	color:#FFFFFF;
	font-family: "Roboto Medium";
}
#alertTd div{
	background-color: rgba(0,0,0,0.8);
}

#alertTd h1{
	font-size: 60px;
	font-weight: bold;
	font-family: 'Roboto Bold';
	margin-bottom: 0;
	color: #FFFFFF;
	text-transform: uppercase;
}

#alertTd a{
	display:inline-block;
	width:110px;
	height:28px;
	padding:7px 7px 4px 7px;
	margin:6px 6px 20px;
	color:#FFFFFF;
	text-decoration:none;
	background-color: rgba(0,0,0,0.6);
	font-family: 'Roboto Medium';
}

.clra{
	clear: both;
}
.clra:after {
	clear: both;
	content: ".";
	display: block;
	height: 0;
	visibility: hidden;
}

/* uj dolgok */

.openHeader{
	display:none;
}

/* uj dolgok vege */

/* wrong orientation */
#newGameContainer.wrongOrientation{
	display: none;
}
#wrongOrientationContent{
	display: none;
	width: 100%;
	height: 100%;
	position: absolute;
}
#wrongOrientationContent .content{
	margin-top: 50%;
	padding: 0 20px;
}
#wrongOrientationContent span{
	display: block;
	font-size: 22px;
	color: #ffffff;
	text-align: center;
	line-height: 120%;
	margin-bottom: 25px;

}
#wrongOrientationContent #landscapePhone{
	width: 112px;
	height: 110px;
	margin: auto;
	margin-top: 70px;
	background-image: url(../images/landscape_phone.png);
}
.pulsate{
	-webkit-animation: myPulsate 0.5s; /* Chrome, Safari, Opera */
	-webkit-animation-fill-mode: forwards;
	animation: myPulsate 0.5s;
	animation-fill-mode: forwards;
}
/* Chrome, Safari, Opera */
@-webkit-keyframes myPulsate
{
	0% {opacity: 1;}
	16% {opacity: 0.3;}
	32% {opacity: 1;}
	48% {opacity: 0.3;}
	66% {opacity: 1;}
	82% {opacity: 0.3;}
	100% {opacity: 1;}
}

/* Standard syntax */
@keyframes myPulsate
{
	0% {opacity: 1;}
	16% {opacity: 0.3;}
	32% {opacity: 1;}
	48% {opacity: 0.3;}
	66% {opacity: 1;}
	82% {opacity: 0.3;}
	100% {opacity: 1;}
}

.historyScreen{
	position: absolute;
	width: 100%;
	height: 100%;
}
#historyBack{
	position: absolute;
	bottom: 1%;
	display: inline-block;
	text-align: center;
	left: 50%;
	font-size: 20px;
	text-transform: uppercase;
	background-color: rgba(0,0,0,0.6);
	padding: 10px 0;
	width: 100px;
	margin-left: -50px;
	cursor: pointer;
}
#historyPrev, #historyNext{
	display:inline-block;
	background-position:center -32px;
	float: none;
	position: absolute;
	right: 10px;
	top: 50%;
	margin-top: -45px;
}
#historyPrev{
	left: 10px;
	-webkit-transform: rotate(180deg);
	-moz-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	-o-transform: rotate(180deg);
	transform: rotate(180deg);
}

@media only screen and (min-width: 480px) and (max-width: 799px) {
	#newGameContainer{
		width: 100%;
		height: 100%;
		position: absolute;
	}

	/*BASIC SETTINGS*/
	/*load screen*/
	#newGameContainer{
		width: 100%;
		height: 100%;
	}
	#newGameContainer #loadScreen{
		display: block;
		position: absolute;
		width: 100% !important;
		height: 50px !important;
		top:50%;
	}

	/*start screen*/
	#startNext{
		margin-top: -25px;
	}
	#startText{
		font-size: 12px;
		margin: 0 70px;
	}

	/*alert screen*/
	#gameAlert{
		height: 100%;
		width: 100%;
		display: table;
	}

	#alertTd{
		height: 100%;
		font-size: 15px;
		padding: 0 100px;
	}

	#alertTd h1{
		font-size: 40px;
	}

	/*tutorial*/
	#tutorialContainer {
		width: 380px;
		height: 160px;
		left: 50%;
		margin-left: -200px;
		top: 50%;
		margin-top: -90px;
		border-radius: 7px;
		padding: 10px;
	}
	#tutorialScreen #tutorialContainer img{
		width: 42%;
		background-size: contain;
	}
	#tutorialScreen #tutorialContainer span{
		width: 52%;
		font-size: 10px!important;
		height: 100%!important;
	}
	#tutorialNext{
		background-position: center -12px !important;
		margin-top: -25px;
	}

	/*end*/
	#endScreen {
		width: 380px;
		height: 210px;
		left: 50%;
		margin-left: -200px;
		top: 50%;
		margin-top: -115px;
		border-radius: 7px;
		padding: 10px;
	}
	#endScreen #endImage{
		width: 45%;
		background-size: contain;
	}
	#endScreen #endData{
		width: 52%;
	}

	#endData h2{
		font-size: 16px;
	}

	#endData h1{
		font-size: 23px;
		margin-top: 0;
		margin-bottom: 5px;
	}

	#endText{
		font-size: 12px!important;
		height: 100%!important;
	}

	#endFunctions{
		margin-top: 5px;
	}
	#endStat{
		margin: 0;
		background-position: center -277px;
	}
	#endRestart{
		margin: 0;
		background-position: center -215px;
	}

	/*message*/
	#gameMessage{
		width: 100%;
		height: 100%;
		overflow: hidden;
	}

	#msgTd{
		height: 265px;
		/*padding-top: 50px;*/
		vertical-align: middle;
		font-size: 25px;
	}
	/*BASIC SETTINGS END*/

	/*game*/
	#gameFunctions{/*m*/
		position: absolute;
		margin-left: 0;
		right: 10px;
		width: 50px;
		top: 18%;
	}

	#gameCounters{/*m*/
		margin: 0;
		/*height: 150px;*/
		height: auto;
	}

	.counterBox{
		width: 50px;
		height: 50px;
	}
	.counterLabel{
		top: 30px;
		font-size: 8px;
	}
	.counterNumbers{
		font-size: 16px;
		top: 10px;
	}
	#gameSettings{
		width: 50px;
		height: 50px;
		background-position: center -69px;
	}

	#gameFuncCont{/*m*/
		height: 50px;
		margin: 0;
	}

	.gameInstruction{
		font-size: 24px;
	}
	.gameNav{
		height: 50px;
		width: 50px;
		background-size: 50px auto;
	}
	#gameHelp {
		background-position: center -171px;
		width: 25px;
	}
	#gameClose {
		background-position: center -127px;
		width: 25px;
	}

	#historyBack{
		font-size: 15px;
		bottom: 4%;
		padding: 5px 0;
	}
	#historyPrev, #historyNext{background-position: center -12px!important;}
}

@media only screen and (min-width: 480px) and (max-width: 799px) and (max-height: 260px) {

	#startScreen #startText{
		font-size: 10px;
		padding: 10px;
	}
	#gameScreen #gameFunctions{
		width: 50px;
		top: 30px;
	}
	#gameScreen #gameFunctions #gameFuncCont{
		height: 50px;
	}
	#gameHelp{
		width: 25px;
		height: 25px;
		background-position: center -178px;
	}
	#gameClose{
		width: 25px;
		height: 25px;
		background-position: center -133px;
	}
	/*#gameScreen #gameStage{*/
	/*height: 250px;*/
	/*}*/
	#endScreen #endData #endMessage{
		font-size: 10px;
	}
	#tutorialScreen .openContent {
		height: 190px;
	}
	#alertTd h1 {
		font-size: 40px;
		margin-bottom: 10px;
	}
	#endText{
		font-size: 11px!important;
	}
	#tutorialContainer {
		width: 340px;
		margin-left: -180px;
	}
	#tutorialScreen #tutorialContainer span{
		font-size: 10px!important;
	}
	#settingsContainer .border{height: 10px;}
}