| 
									
										
										
										
											2017-04-23 16:04:23 +03:00
										 |  |  | /**************************************************** Hints screen ***/ | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | body.hints:before, | 
					
						
							|  |  |  | body.hints:after { | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | 	position: absolute; | 
					
						
							|  |  |  | 	left: 0; | 
					
						
							|  |  |  | 	top: 12.5%; | 
					
						
							|  |  |  | 	bottom: 12.5%; | 
					
						
							|  |  |  | 	z-index: 100; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | body.hints:before { | 
					
						
							|  |  |  | 	content: ""; | 
					
						
							|  |  |  | 	width: 100%; | 
					
						
							| 
									
										
										
										
											2017-04-23 15:37:43 +03:00
										 |  |  | 	border-top: dotted 0.3vmin rgba(255, 0, 0, 0.5); | 
					
						
							|  |  |  | 	border-bottom: dotted 0.3vmin rgba(255, 0, 0, 0.5); | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | } | 
					
						
							|  |  |  | body.hints:after { | 
					
						
							|  |  |  | 	content: "↺↻"; | 
					
						
							|  |  |  | 	width: 37vmin; | 
					
						
							|  |  |  | 	left: auto; | 
					
						
							| 
									
										
										
										
											2017-04-25 00:45:11 +03:00
										 |  |  | 	right: 50%; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | 	overflow: visible; | 
					
						
							| 
									
										
										
										
											2017-04-23 15:37:43 +03:00
										 |  |  | 	border-right: dotted 0.3vmin rgba(255, 0, 0, 0.5); | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	color: rgba(255, 0, 0, 0.5); | 
					
						
							| 
									
										
										
										
											2017-04-25 00:45:11 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | 	font-size: 15vmin; | 
					
						
							| 
									
										
										
										
											2017-04-23 15:37:43 +03:00
										 |  |  | 	line-height: 70vh; | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | 	white-space: pre; | 
					
						
							| 
									
										
										
										
											2017-04-25 00:45:11 +03:00
										 |  |  | 	letter-spacing: 38vw; | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | } | 
					
						
							|  |  |  | .hints .simplesnake { | 
					
						
							| 
									
										
										
										
											2017-04-23 15:37:43 +03:00
										 |  |  | 	opacity: 0.2; | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2017-04-23 15:37:43 +03:00
										 |  |  | .hints .title:before, | 
					
						
							|  |  |  | .hints .title:after { | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | 	position: absolute; | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | 	text-align: center; | 
					
						
							|  |  |  | 	width: 100vw; | 
					
						
							|  |  |  | 	color: red; | 
					
						
							|  |  |  | 	font-size: 5vh; | 
					
						
							|  |  |  | 	line-height: 10vh; | 
					
						
							|  |  |  | 	z-index: 100; | 
					
						
							| 
									
										
										
										
											2017-04-23 15:37:43 +03:00
										 |  |  | 	opacity: 0.6; | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2017-04-23 15:37:43 +03:00
										 |  |  | .hints .title:before { | 
					
						
							|  |  |  | 	content: "New level"; | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2017-04-23 15:37:43 +03:00
										 |  |  | .hints .title:after { | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | 	bottom: 0; | 
					
						
							| 
									
										
										
										
											2017-04-23 15:37:43 +03:00
										 |  |  | 	content: "Pause game"; | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2017-04-23 15:37:43 +03:00
										 |  |  | .hints .title { | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .hints .title h1:after { | 
					
						
							|  |  |  | 	content: "Touch control hints..."; | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | 	position: relative; | 
					
						
							|  |  |  | 	font-size: 4vmin; | 
					
						
							|  |  |  | 	font-weight: normal; | 
					
						
							|  |  |  | 	font-style: italic; | 
					
						
							|  |  |  | 	text-shadow: 3pt 3pt 10pt rgba(0,0,0,0.2); | 
					
						
							| 
									
										
										
										
											2017-04-23 15:42:58 +03:00
										 |  |  | 	opacity: 0.4; | 
					
						
							| 
									
										
										
										
											2017-04-23 15:37:43 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-23 16:04:23 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | /*********************************************************** Title ***/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-23 15:37:43 +03:00
										 |  |  | .title { | 
					
						
							|  |  |  | 	display: none; | 
					
						
							|  |  |  | 	position: absolute; | 
					
						
							|  |  |  | 	top: 0; | 
					
						
							|  |  |  | 	left: 0; | 
					
						
							|  |  |  | 	bottom: 0; | 
					
						
							|  |  |  | 	right: 0; | 
					
						
							|  |  |  | 	text-align: center; | 
					
						
							|  |  |  | 	z-index: 500; | 
					
						
							|  |  |  | 	color: rgba(255,0,0,0.7); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .title h1 { | 
					
						
							|  |  |  | 	position: relative; | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | 	top: 50%; | 
					
						
							|  |  |  | 	font-size: 10vmin; | 
					
						
							|  |  |  | 	margin-top: -22vmin; | 
					
						
							|  |  |  | 	font-weight: bolder; | 
					
						
							|  |  |  | 	text-shadow: 3pt 3pt 15pt rgba(0,0,0,0.2); | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2017-04-23 15:56:29 +03:00
										 |  |  | .title h1 sup { | 
					
						
							|  |  |  | 	font-weight: normal; | 
					
						
							|  |  |  | 	font-size: 5vh; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2017-04-23 15:37:43 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-16 00:19:51 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-23 16:04:23 +03:00
										 |  |  | /********************************************************* General ***/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | body { | 
					
						
							| 
									
										
										
										
											2017-04-16 00:19:51 +03:00
										 |  |  | 	background-color: rgb(253, 253, 253); | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | 	font-family: sans-serif; | 
					
						
							|  |  |  | 	overflow: hidden; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-23 16:04:23 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /************************************************************ Game ***/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | .simplesnake .field { | 
					
						
							| 
									
										
										
										
											2017-04-25 00:45:11 +03:00
										 |  |  | 	position: absolute; | 
					
						
							|  |  |  | 	left: 50vw; | 
					
						
							|  |  |  | 	top: 50vh; | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | 	margin-left: -45vmin; | 
					
						
							| 
									
										
										
										
											2017-04-25 00:45:11 +03:00
										 |  |  | 	margin-top: -45vmin; | 
					
						
							| 
									
										
										
										
											2017-04-13 14:57:31 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	width: 90vmin; | 
					
						
							|  |  |  | 	height: 90vmin; | 
					
						
							|  |  |  | 	border: solid 1px silver; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-16 00:19:51 +03:00
										 |  |  | /* show score... */ | 
					
						
							| 
									
										
										
										
											2017-04-15 16:53:13 +03:00
										 |  |  | .simplesnake[score]:after { | 
					
						
							|  |  |  | 	position: absolute; | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | 	text-align: center; | 
					
						
							|  |  |  | 	width: 100vw; | 
					
						
							|  |  |  | 	color: gray; | 
					
						
							|  |  |  | 	font-size: 2vh; | 
					
						
							|  |  |  | 	line-height: 3vh; | 
					
						
							| 
									
										
										
										
											2017-04-25 00:45:11 +03:00
										 |  |  | 	bottom: 1vh; | 
					
						
							| 
									
										
										
										
											2017-04-15 16:53:13 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	content: "Top score: " attr(snake) ": " attr(score) " " attr(state); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	opacity: 0.9; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-16 00:19:51 +03:00
										 |  |  | .simplesnake .wall { | 
					
						
							|  |  |  | 	background-color: silver; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .simplesnake .apple { | 
					
						
							|  |  |  | 	position: relative; | 
					
						
							|  |  |  | 	background-color: red; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-21 04:06:35 +03:00
										 |  |  | body:not(.hints) .simplesnake.paused:before { | 
					
						
							| 
									
										
										
										
											2017-04-20 23:46:09 +03:00
										 |  |  | 	content: "Paused..."; | 
					
						
							|  |  |  | 	position: absolute; | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | 	width: 100%; | 
					
						
							|  |  |  | 	top: 50%; | 
					
						
							|  |  |  | 	margin-top: -10vmin; | 
					
						
							|  |  |  | 	font-size: 10vmin; | 
					
						
							|  |  |  | 	font-weight: bolder; | 
					
						
							|  |  |  | 	text-align: center; | 
					
						
							|  |  |  | 	color: rgba(0, 0, 0, 0.2); | 
					
						
							|  |  |  | 	z-index: 100; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-16 00:19:51 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-23 16:04:23 +03:00
										 |  |  | /*********************************************************************/ |