/**FONT**/
@font-face {
    font-family: Vazir;
    src: url(../fonts/Vazir.woff);
    font-weight: normal;
    font-style: normal
}

/**MAIN**/
* {
	font-family: 'Vazir';
}
html, body {
	height: 100%;
}

/**LEVELS**/
.seasonsContainer {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-size: 100%;
	background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #0063a6), color-stop(15%, #0072c0), color-stop(100%, #ffffff));
	background-image: -moz-linear-gradient(top, #0063a6 0%, #0072c0 15%, #ffffff 100%);
	background-image: -webkit-linear-gradient(top, #0063a6 0%, #0072c0 15%, #ffffff 100%);
	background-image: linear-gradient(to bottom, #0063a6 0%, #0072c0 15%, #ffffff 100%);
}
.grass {
	position: absolute;
	width: 100%;
	bottom: 0;
	left: 0;
	height: 5vmin;
	max-height: 62px;
	background: transparent url(../img/grassBk.png) repeat-x;
	background-size: contain;
	z-index: 1;
}
.season {
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 50%;
	display: inline-block;
	z-index: 20;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center bottom;
	-moz-transition: all 1s ease-out, opacity 0.5s ease-out;
	-o-transition: all 1s ease-out, opacity 0.5s ease-out;
	-webkit-transition: all 1s ease-out, opacity 0.5s ease-out;
	transition: all 1s ease-out, opacity 0.5s ease-out;
	text-align: center;
	cursor: pointer;
}
.season span {
	color: white;
	font-size: 70px;
	font-family: 'Vazir';
	text-shadow: 4px 4px 8px #000;
	position: relative;
	top: 40%;
	z-index: 1;
}
@media (max-width:1190px) {
	.season span{
		font-size: 60px;
		top: 35%;
	}	
}
@media (max-width:790px) {
	.season span{
		font-size: 30px;
		top: 20%;
	}	
}
.season:before, .season:after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.season.active {
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: 100;
	cursor: default;
}
.season.active span{
	display: none;
}
.season.inactive {
	opacity: 0;
	cursor: default;
}

.spring {
	background-image: url(../img/springTree.svg);
}
.spring:after {
	background: linear-gradient(to bottom, rgba(47, 219, 245, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
	-webkit-filter: saturate(1);
	filter: saturate(1);
}

/*Summer*/
.summer {
	left: 50%;
	background-image: url(../img/summerTree.svg);
}
.summer:before {
	background: url(../img/bird.svg) no-repeat center center;
	background-size: 10% 10%;
}
.summer:after {
	background-image: linear-gradient(to bottom, rgba(68, 148, 211, 0.7) 0%, rgba(243, 216, 145, 0.5) 60%, rgba(243, 216, 145, 0.3) 70%, rgba(243, 216, 145, 0.3) 80%, rgba(120, 90, 13, 0.3) 100%);
	-webkit-filter: brightness(1);
	filter: brightness(1);
}

/*Fall*/
.fall {
	left: 0;
	top: 50%;
	background-image: url(../img/fallTree.svg);
}
.fall:before {
	background: url(../img/leaves.svg) no-repeat center center;
	background-size: contain;
}
.fall:after {
	background: rgba(254, 83, 2, 0.4);
	-webkit-filter: saturate(1);
	filter: saturate(1);
}

/*Winter*/
.winter {
	left: 50%;
	top: 50%;
	background-image: url(../img/winterTree.svg);
	background-position: center 95%;
}
.winter:before {
	background-image: url(../img/snow.svg), linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, #ffffff 20%, #ffffff 100%);
	-webkit-filter: grayscale(1);
	filter: grayscale(1);
	background-repeat: no-repeat;
	background-size: 50% 50%, 100% 6%;
	background-position: center 140%, center bottom;
	-moz-transition: all 0.3s ease-out;
	-o-transition: all 0.3s ease-out;
	-webkit-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
}
.winter:after {
	background-image: linear-gradient(to bottom, rgba(238, 238, 238, 0.7) 0%, rgba(255, 255, 255, 0.1) 100%);
	-webkit-filter: grayscale(1);
	filter: grayscale(1);
}
.winter.active:before {
	background-size: 50% 25%,  100% 6%;
	background-position: center 112%, center bottom;
}

/**INTRODUCE**/
#Introduce.inactive{
	opacity: 0;
	z-index: -100;
}
#Introduce{
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	transition: .5s ease;
	opacity: 1;
	z-index: 1000;
	font-family: 'Vazir';
	color:#464646;
	background: rgba(245,245,245,0.9);
	box-shadow: 4px 4px 8px #222;
	padding: 20px 50px;
	text-align: center;
	border-radius: 10px;
}
#Introduce h1{
	font-size: 30px;
	margin-bottom: 20px;
	font-family: tahoma;
	font-weight: 700;
	color:#767575;
}
#Introduce p{
	font-size: 25px;
	margin: 20px 0;
}
#Introduce span{
	font-size: 15px;
	color: #464646;
}
@media (max-width:768px){

	#Introduce{
		padding: 10px 10px;
	}
	#Introduce h1{
		font-size: 30px;
		margin-bottom:0px;
	}
	#Introduce p{
		font-size: 20px;
		margin-bottom: 10px;
	}
	#Introduce span{
		font-size: 15px;
	}	
}
#Introduce p.linkinfo{
	cursor: pointer;
	margin-bottom: 0;
	font-size: 15px;
	margin-top: 20px;
}

/**INFO**/
#info{
	position: fixed;
	top: 50%;
	left: 0;
	opacity: 0;
	z-index: -100;
	transform: translate(-50%,-50%);
	transition: .5s ease;	
	font-family: 'Vazir';
	color:#464646;
	background: rgb(245,245,245);
	box-shadow: 4px 4px 8px #222;
	padding: 20px 50px;
	text-align: center;
	border-radius: 10px;
	min-width: 200px;
	max-height: 400px;
	direction: rtl;
	overflow: auto;
}
#info .close{
	position: absolute;
	top: 10px;
	right: 20px;
	font-weight: 700;
	cursor: pointer
}
#info h3{
	margin-bottom: 15px;
	font-size: 20px;
	line-height: normal;
}
#info h4{
	margin: 20px 0 15px;
	font-size: 20px;
}
#info p {
	margin: 10px 0; 
	line-height: normal;
}
#info button , #Introduce button{
	background-color: transparent;
	border: 1px solid rgba(52,42,181,1.00);
	cursor: pointer;
	border-radius: 10px;
	padding: 5px 15px;
	margin: 20px 0 0;
	outline: 0;
}
#info button{
	padding: 2px 15px;
	margin: 10px 0 0;
}
#info.active{
	left: 50%;
	opacity: 1;
	z-index: 10000;
}

/**Start Button**/
.start{
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
    display:block;
    width:100px;
    height:100px;
    line-height:100px;
    border: 2px solid #f5f5f5;
    border-radius: 50%;
    color:#f5f5f5;
    text-align:center;
    background: #464646;
    box-shadow: 0 0 3px gray;
    font-size:20px;
    font-weight:bold;
	cursor: pointer;
}
.start:hover{
	  background: #262626;
}
.start span {
	display: inline-block;
	font-family: 'Vazir';
}

/**TETRIS**/
#Tetris {
	opacity: 0;
	transition: 2s ease;
}

/**NEXT CHARACTER ON TOP**/
#nextChar {
	width: 40px;
	height: 40px;
	line-height: 40px;
	border-radius: 10px;
	display: inline-block; 
	text-align: center;
	vertical-align: middle;
	color: #fff;
	text-shadow: 1px 1px 2px #222;
	position: absolute;
	top: 5px;
	right: 100px;
	font-family: 'Vazir';
	
}
#nextChar.bomb{
	background-color: transparent !important;
	color: transparent !important; 
	background: transparent url(../img/bomb40.png) no-repeat;
}
#nextChar.block{
	background-color: transparent !important;
	color: transparent !important; 
	background: transparent url(../img/block40.png) no-repeat;
}

/**MENU AND BOARD**/
#board {
	opacity: 0;
	color: #fff;
	font-size: 20px;
	padding: 15px 0;
	width: 400px;
	margin-left: 50%;
	transform: translateX(-50%);
	transition: 2s ease;
	font-family: tahoma;
}
@media (max-width:768px){
	#nextChar {
		top: 5px;
		right: 60px;
	}
	#board {
		width: 320px;
	}	
}
#board .timer{
	display: inline;
	margin-right: 10px;
}
#board .point {
	display: inline;
	margin-right: 10px;
	color: 		#FFD700;
}
#board .counter {
	display: inline;
	margin-right: 10px;
}
#board .menu {
	display: inline-block;
	position: absolute;
	right: 5px;
	cursor: pointer;
}
#board .menu span{
	padding-right: 10px;
}
#menu-container{
	width: 400px;
	height: 40px;
	background-color: rgb(15,15,15);
	position: absolute;
	top: 5px;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 10px;
	transition:0.5s ease-out; 
	opacity: 0;
	z-index: -100;
}
#menu-container.active{
	opacity: 1;
	z-index: 100;
}
@media (max-width:768px){
	#menu-container{
		width: 320px;
	}
}
#menu-container .closebtn{
	float: right;
	width: 40px;
	height: 40px;
	line-height: 40px;
	background-color: rgba(219,219,219,0.13);
	color: white;
	text-align: center;
	font-size: 20px;
	cursor: pointer;
	transition: 0.5s ease-out;
	border-radius: 0 10px 10px 0;
	
}#menu-container .closebtn:hover{
	background-color: rgba(130,130,130,0.56);
}
#menu-container .btn{
	float: left;
	height: 40px;
	width: 40px;
	line-height: 40px;
	background-color: rgba(219,219,219,0.13);
	color: white;
	text-align: center;
	font-size: 20px;
	cursor: pointer;
	transition: 0.5s ease-out;
	padding: 0 5px;
}
#menu-container .btn:hover{
	background-color: rgba(130,130,130,0.56);
}
#menu-container .record{
	cursor: default;	
	float: right;
	height: 40px;
	line-height: 40px;
	color: white;
	text-align: center;
	font-size: 15px;
	transition: 0.5s ease-out;
	padding: 0 10px;
	font-family: 'Vazir';
}
#menu-container .record span{
	margin :0 5px;
}

#menu-container .btn:first-child{
	border-radius: 10px 0 0 10px;
}
#showPoint {
	opacity: 0;
	position: fixed;
	z-index: 100;
	left: 50%;
	top: 90%;
	transform: translate(-50%,-50%);
	text-align: center;
}
#showPoint #solved_word {
	color: rgb(26,217,41);
	text-shadow: 2px 2px 4px #fff;
	font-size: 60px;
	font-family: 'Vazir';
}
#showPoint #solved_word_count {
	color: rgb(31,135,40);
	text-shadow: 2px 2px 4px #fff;
	font-size: 50px;
	font-family: tahoma;
}
.showAnimate{
	-webkit-animation: showPoint 2s;
	animation: showPoint 2s;
}

@-webkit-keyframes showPoint {
    0%   {top:90%; opacity: 0;}
    25%  {top:50%; opacity: 1;}
    50%  {top:50%; opacity: 1;}
    75%  {top:50%; opacity: 1;}
    99% {top:10%; opacity: 0;}
    100% {top:90%; opacity: 0;}
}

@keyframes showPoint {
    0%   {top:90%; opacity: 0;}
    25%  {top:50%; opacity: 1;}
    50%  {top:50%; opacity: 1;}
    75%  {top:50%; opacity: 1;}
    99% {top:10%; opacity: 0;}
    100% {top:90%; opacity: 0;}
}

/**HINT**/
#hint_container{
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	font-family: 'Vazir';
	color:#464646;
	background: rgba(245,245,245,0.9);
	box-shadow: 4px 4px 8px #222;
	padding: 20px 20px;
	text-align: center;
	border-radius: 10px;
	font-size: 14px;
	opacity: 0;
	z-index: -10;
}
.showHint{
	-webkit-animation: showHint 2s;
	animation: showHint 2s;
}

@-webkit-keyframes showHint {
    0%   {top:0; opacity: 0;}
    25%  {top:50px; opacity: 1;z-index: 10}
    50%  {top:50px; opacity: 1;z-index: 10}
    75%  {top:50px; opacity: 1;z-index: 10}
    100% {top:0; opacity: 0;}
}
@keyframes showHint {
    0%   {top:0; opacity: 0;}
    25%  {top:50px; opacity: 1;z-index: 10}
    50%  {top:50px; opacity: 1;z-index: 10}
    75%  {top:50px; opacity: 1;z-index: 10}
    100% {top:0; opacity: 0;}
}

/**GAME MAIN BOARD**/
#world {
	opacity: 0;
	background-color: rgba(255,255,255,0.6);
	width: 400px;
	margin-left: 50%;
	transform: translateX(-50%);
	font-family: 'Vazir';
	transition: 2s ease;
	border-radius: 10px;
	box-shadow: 4px 4px 8px #222;
}
#world.gover{
	background-color: rgba(0,0,0,0.9);
}

.empty {
	width: 50px;
	height: 50px;
	line-height: 50px;
	display: inline-block;
	text-align: center;
	color: transparent;
	vertical-align: middle;
}

.squareShape {
	width: 50px;
	height: 50px;
	line-height: 50px;
	border-radius: 10px;
	display: inline-block; 
	text-align: center;
	vertical-align: middle;
	color: #fff;
	text-shadow: 1px 1px 2px #222;
}
.bomb{
	width: 50px;
	height: 50px;
	line-height: 50px;
	border-radius: 10px;
	display: inline-block; 
	text-align: center;
	vertical-align: middle;
	color: transparent;
	background: transparent url(../img/bomb50.png) no-repeat;
}
.block{
	width: 50px;
	height: 50px;
	line-height: 50px;
	border-radius: 10px;
	display: inline-block; 
	text-align: center;
	vertical-align: middle;
	color: transparent;
	background: transparent url(../img/block50.png) no-repeat;
}
@media (max-width:768px){
	#world {
		width: 320px;
			margin-left: 50%;
	transform: translateX(-50%);
	}
	.empty {
		width: 40px;
		height: 40px;
		line-height: 40px;
	}
	.squareShape {
		width: 40px;
		height: 40px;
		line-height: 40px;
	}
	.bomb{
		width: 40px;
		height: 40px;
		background: transparent url(../img/bomb40.png) center center no-repeat;
	}
	.block{
		width: 40px;
		height: 40px;
		background: transparent url(../img/block40.png) center center no-repeat;
	}
}
.blink {
	animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
	opacity: 0;
  }
}

/**GAMEOVER**/
#gameOver{
	opacity: 0;
	z-index: -1000;
	transition: .5s ease;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	
}
#gameOver.active{
	opacity: 1;
	z-index: 1000;
	font-family: 'Vazir';
	color:#f5f5f5;
	background: #464646;
	border: 1px solid #f5f5f5;
	padding: 20px 50px;
	text-align: center;
	border-radius: 10px;
}
#gameOver.active p ,#gameOver.active p span {
	font-size: 20px;
	margin-bottom: 20px;
	color: #fff;
}
#gameOver.active p.best-score,#gameOver.active p.best-score span{
	font-size: 15px !important;
}
#gameOver.active span{
	font-size: 15px;
	cursor: pointer;
	color: #4bffb9;
}
@media (max-width:768px){
	#gameOver.active{
		padding: 10px 10px;
	}
	#gameOver.active p,#gameOver.active p span{
		font-size: 15px;
		margin-bottom: 10px;
	}
	#gameOver.active p.best-score,#gameOver.active p.best-score span{
	font-size: 12px !important;
}
	#gameOver.active span{
		font-size: 10px;
	}	
}

/**Controllers**/
#controllers{
	opacity: 0;
	width: 450px;
	margin-left: 50%;
	transform: translateX(-50%);
	text-align: center;
	padding: 20px 0 0;
	transition: 1s;
}
@media (max-width:768px){
	#controllers{
		width: 320px;
	}	
}
#controllers i{
	cursor: pointer;
	font-size: 25px;
	background-color: rgba(255,255,255,0.8);
	margin:  0 30px;
	border-radius: 50%;
	padding: 7px;
	box-shadow: 4px 4px 8px #222;
	color: #464646;
}
