/* Tetris stack CSS 
* 
* Current author: Jeroen Ransijn (jssrdesign@gmail.com)
* Original author: Cezary Tomczak (cagret@gmail.com)
*!!!!! Cezary Tomczak has nothing to do with the customization and Tetris stack!! do not bother him
* for support: Jeroenspy.nl/tetris
*
*/

/* @group Reset div */
/* Reset all styles that may influence the Tetris container */

.reset,.reset div,.reset dl,.reset dt,.reset dd,.reset ul,.reset ol,.reset li,.reset h1,.reset h2,.reset h3,.reset h4,.reset h5,.reset h6,.reset pre,.reset form,.reset fieldset,.reset input,.reset textarea,.reset p,.reset blockquote,.reset th,.reset td
{margin:0;padding:0;}

.reset table
{border-collapse:collapse;border-spacing:0;}

.reset fieldset,.reset img
{border:0;}

.reset address,.reset caption,.reset cite,.reset code,.reset dfn,.reset em,.reset strong,.reset th,.reset var
{font-style:normal;font-weight:normal;}

.reset ol,.reset ul
{list-style:none;}

.reset caption,.reset th
{text-align:left;}

.reset h1,.reset h2,.reset h3,.reset h4,.reset h5,.reset h6
{font-size:100%;font-weight:normal;color: #000;
}

.reset q:before,.reset q:after
{content:'';}

.reset abbr,.reset acronym
{border:0;}

/* @end */

/* @group Group styling */

/* block + relative */
#tetris, #tetris #tetris-left, #tetris #tetris-left #tetris-left-info, #tetris_logo, #tetris-screen, #tetris-next-field, #tetris-nextpuzzle, #tetris-keys, #tetris	#tetris-menu a, #tetris #tetris-menu a:visited, #tetris	#tetris-left .tetris-stats, #tetris .tetris-stats, #tetris #tetris-stats-list, #tetris	.tetris-window	.tetris-top, #tetris-overlay, #tetris-overlay #tetris-start_game {
	display: block;
	position: relative;
}

/* @end */

/* @group Main layout */

#tetris	{
	width: 299px;
	height: 309px;
	background: #000;
	font: 11px Helvetica, Arial, sans-serif;
	overflow: visible;
}

#tetris	#tetris-left {
	width: 130px;
	height: 311px;
}

#tetris_logo {
	width: 130px;
	height: 40px;
	background: url(tetris_sprite.png) no-repeat 0 0;
}

/* containing everything in left menu underneath the ul */
#tetris	#tetris-left #tetris-left-info {
	background-color: #fffeff;
	width: 130px;
}

/* @end */

/* @group tetris left info */

/* containg either the keyboard functions, or the next piece display */
#tetris-screen { padding: 15px; }

#tetris-keys {
	width: 45px;
	height: 27px;
	background: url(tetris_sprite.png) -65px bottom;
	padding: 30px 25px 10px;
}

#tetris-next-field {
	width: 50px;
	height: 30px;
	padding: 30px 25px 10px;
	display: none;
	background: url(tetris_sprite.png) no-repeat right bottom;
	margin-bottom: -3px;
}

/* @group menu */

/* menu list reset */
#tetris #tetris-left ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
	display: block;
	position: relative;
}

#tetris	#tetris-left #tetris-menu	{ border-top: 1px solid #929292; }

#tetris	#tetris-menu a, #tetris #tetris-menu a:visited {	
	color: #6b7274;
	background: #f2f4f4;
	
	height: 19px;
	width: 118px;
	padding: 5px 0 0 10px;
	
	font-weight: bold;
	font-size: 12px;
	line-height: 12px;
	text-decoration: none;
	text-shadow: #fffeff 0 1px 0;
	
	border-right: 1px solid #f6f6f6;
	border-top: 1px solid #fffeff;
	border-bottom: 1px solid #acacac;
	border-left: 1px solid #fffeff;
}

#tetris #tetris-left #tetris-menu a:hover { 
	background: #fffeff;
	color: #424242;
}

#tetris #tetris-left #tetris-menu a:active {
	background-color: #eaeaea;
	color: #3a3b3b;
	text-shadow: #fffeff 0 1px 0px;
}

/* @end */

/* @group stats */

#tetris	#tetris-left .tetris-stats { text-shadow: #212121 0 1px 1px; }

#tetris .tetris-stats {
	width: 120px;
	padding: 5px;
	height: 57px;
	background: #424242 url(tetris_sprite.png) no-repeat right 0;
	color: #efefef;
}

#tetris	.tetris-stats td {
	font-size: 12px;
	padding-top: 2px;
	padding-bottom: 2px;
}

/* bold */
#tetris-stats-level, #tetris-stats-time, #tetris-stats-apm, #tetris-stats-lines, #tetris-stats-score {
	font-weight: bold;
	color: #fffeff;
}

#tetris .tetris-stats td.tetris-table-style {
	text-align: right;
	width: 50px;
	padding-right: 5px;
}

/* @group stats-list */

#tetris #tetris-stats-list {
	z-index: 7;
	color: #fffeff;
	text-shadow: #000000 0 1px 1px;
	font-size: 14px;
	width: 167px;
}

#tetris #tetris-stats-list li {
	display: inline;
	float: left;
	padding: 10px;
}

#tetris #tetris-stats-list .tetris-score { float: right; }

/* @end */

/* @end */

/* @end */



/* @group tetris area */

#tetris #tetris-area {
	position: relative;
	width: 167px;
	height:	307px;
	overflow: hidden;
	margin-left: 131px;
	padding: 0;
	margin-bottom: 0;
	bottom: 310px;
	visibility: visible;
	box-width: border-box;
	display: block;
}

#tetris-corner-fix.tetris-fix {
	width: 10px;
	height: 10px;
	background: url(tetris-corner-fix.png) no-repeat;
	position: absolute;
	z-index: 25;
	display: block;
	top: 299px;
	left: 289px;
}

#tetris-corner-fix.tetris-fix-hide {
	display: none;
}

/* @group grids */

.tetris-grid1,	
.tetris-grid2,	
.tetris-grid3,	
.tetris-grid4,	
.tetris-grid5,	
.tetris-grid6 { 
	z-index: 4; 
	position:	absolute;	
	width: 11px; 
	height: 307px;	
	background: #222;
	overflow: hidden;
	border-left: 1px solid #2e2e2e;
	border-right: 1px solid #2e2e2e;
	margin-left: -1px; /* think about border-left */
}

.tetris-grid1 { left: 14px; }
.tetris-grid2 { left: 42px; }
.tetris-grid3 { left: 70px; }
.tetris-grid4 { left: 98px; }
.tetris-grid5 { left: 126px; }
.tetris-grid6 { left: 154px; }

/* @end */


/* @group blocks */

/* pieces - dimensions */
#tetris	.block0,
#tetris	.block1,
#tetris	.block2,
#tetris	.block3,
#tetris	.block4,
#tetris	.block5,
#tetris	.block6	{
	font-size: 10px;
	line-height: 1em;
	position: absolute;
	width: 10px;
	height: 10px;
	border: 2.5px outset #575858;
	display: block;
	z-index: 5;
}

/*
	|
	---
*/
#tetris	.block1	{ background: #32a4fa;	border-color: #348bd6; }
/*
	  |
	---
*/
#tetris	.block0	{ background: #38C44F;	border-color: #268e38; }
/*
	--
   --
*/
#tetris	.block2	{ background: #FFAC1C;	border-color: #ba7f12; }
/*
	--
	 --
*/
#tetris	.block3	{ background: #FF6600; border-color: #b3470f; }
/*
	|
   ---
*/
#tetris	.block4	{ background: #CC54C4;	border-color: #8e3789;}
/*
	--
	--
*/
#tetris	.block5	{ background: #a3faa6;	border-color: #87cf88;}
/*
	----
*/
#tetris	.block6	{ background: #FF0000;	border-color: #ba1412;}

/* @end */

/* @end */

/* @group window */

#tetris	.tetris-window	{
	background: #f3f3f3;
	position: absolute;
	height: 309px;
	width: 169px;
	top: 0;
	z-index: 50000;
	display: none;
	left: 130px;
	overflow: hidden;
}

#tetris	.tetris-window	.tetris-top {
	color: #fcfeff;
	line-height: 20px;
	background-color: #424242;
	text-shadow: #000000 0px 1px 0px;
	height: 39px;
	border: 1px solid #1c1e22;
}

#tetris	.tetris-window	.tetris-top h3 {
	margin: 0;
	padding-left: 10px;
	font: 16px/25px "Helvetica", Arial, sans-serif;
	color: #fffeff;
	padding-top: 8px;
}

#tetris	.tetris-window	.tetris-top .tetris-close	{
	background: url(tetris_sprite.png) left -40px;
	color: #390202;
	
	position: absolute;
	right: 8px;
	top: 8px;
	
	cursor:	pointer;
	
	text-transform: uppercase;
	text-align: center;
	font-size: 14px;
	line-height: 14px;
	text-indent: -9999px;
	width: 23px;
	height: 23px;
}

#tetris	.tetris-window	.tetris-top .tetris-close:hover { background-position: -23px -40px;}

#tetris	.tetris-window	.tetris-top .tetris-close:active { background-position: -46px -40px;}

/* @group content styling */

#tetris	.tetris-window h3 {
	padding: 10px 5px 0;
	font-size: 14px;
	color: #2e2e2e;
	font-weight: bold;
}

#tetris	.tetris-window p {
	color: #636464;
	font-size: 12px;
	padding: 5px;
}

#tetris	.tetris-window p.tetris-author {
	padding: 2px;
	margin: 5px;
	background-color: #fffeff;
	border: 1px solid #bfc0c0;
}

#tetris	.tetris-window p strong {
	color: #3b3b3b;
	font-weight: bold;
}

#tetris	.tetris-window a:link, #tetris .tetris-window a:visited {
	color: #f9f6f9;
	text-decoration: none;
	display: block;
	padding: 5px;
	background-color: #2f333b;
	margin-top: 2px;
	text-shadow: #000000 0 1px 1px;
	border-top: 1px solid #181b20;
}

#tetris	.tetris-window a:hover { background-color: #3b404b; }
#tetris	.tetris-window a:active { 
	color: #e9e8ea;
	background-color: #464c59;
}

/* @end */

/* @end */



/* @group highscores */

#tetris-highscore-list,
#tetris-highscore-top  {
	 width: 100%; 
	 margin-bottom: 0; 
}

#tetris-highscore-top {
	background-color: #86a5de;	
	color: #313335;
	border: 1px solid #576886;
	border-top: 1px solid #a0bff5;
}

#tetris-highscore-top #tetris-top-hex, td.tetris-list-number {	text-align: center; }

#tetris-highscore-top  th {
	padding-top: 5px;
	padding-bottom: 5px;
	font-weight: bold;
}

tr.tetris-list-body {	border-bottom: 1px solid #eee; }

tr.tetris-list-body span{
	padding-top: 2px;
	padding-bottom: 2px;
	display: block;
	color: #565656;
}

tr.tetris-list-body:hover {
	background-color: #dce4f4;
	border-bottom: 1px solid #878c96;
}

tr.tetris-list-body:hover span {
	color: #242424;
	cursor: default;
}

td.tetris-list-number{ margin-left: 10px; }
td.tetris-list-score { font-weight: bold; }

/* @end */

/* @group overlays */

#tetris-overlay {
	width: 100%;
	height: 100%;
	z-index: 6;
	background-color: rgba(0,0,0,0.5);
	text-align: center;
	vertical-align: middle;
	position: absolute;
}

#tetris-loading {
	color: #fffeff;
	position: absolute;
	top: 100px;
	left: 50px;
}

#tetris-overlay #tetris-pause-mode {
	background: url(tetris_sprite.png) no-repeat left bottom;
	display: none;
	width: 65px;
	height: 66px;
	margin-top: 110px;
	margin-left: 57px;
}

#tetris-overlay #tetris-start_game button {
	margin-top: 125px;
	position: relative;
	padding-top: 5px;
	padding-bottom: 5px;
}

/* game	over */
#tetris-gameover {
	position: absolute;
	width: 100%;
	top: 80px;
	text-align:	center;
	font-weight: bold;
	display: none;
	padding-top: 15px;
	text-transform: uppercase;
	font-size: 18px;
	padding-bottom: 15px;
	text-shadow: #000000 0 1px 2px;
}

#tetris h5 { 
	margin-bottom: 0.5em; 
	display: block; 
	font-weight: bold;
	font-size: 12px;
	margin-top: 0;
	padding: 0;
}

/* @end */


/* @group CSS3, browser-specific */

/* border radius collection */
#tetris, 
#tetris	#tetris-left {
	-webkit-border-radius: 10px;
	-khtml-border-radius: 10px;	
	-moz-border-radius: 10px;
	border-radius: 10px;
}

#tetris_logo {
	-webkit-border-top-left-radius: 10px;
	-khtml-border-radius-topleft: 10px;
	-moz-border-radius-topleft: 10px;
	border-top-left-radius: 10px;
}

#tetris	#tetris-left #tetris-left-info,
#tetris .tetris-stats  {
	-webkit-border-bottom-left-radius:10px;
	-khtml-border-radius-bottomleft: 10px;
	-moz-border-radius-bottomleft: 10px;
	border-bottom-left-radius: 10px;
}

#tetris-area,
.tetris-grid6,
#tetris	.tetris-window,
#tetris-overlay {
	-webkit-border-top-right-radius: 10px;
	-webkit-border-bottom-right-radius: 10px;
		
	-khtml-border-radius-topright: 10px;
	-khtml-border-radius-bottomright: 10px;
	
	-moz-border-radius-topright: 10px;
	-moz-border-radius-bottomright: 10px;
	
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	
}

#tetris	.tetris-window	.tetris-top {
	-webkit-border-top-right-radius: 10px;
	-khtml-border-radius-topright: 10px;
	-moz-border-radius-topright: 10px;
	border-top-right-radius: 10px;
}

#tetris	.tetris-window p.tetris-author	{
	-webkit-border-radius: 5px;
	-khtml-border-radius: 5px; 
	-moz-border-radius: 5px;
	border-radius: 5px;
}

#tetris	.tetris-window a:link, #tetris .tetris-window a:visited {
	-webkit-border-bottom-right-radius: 5px;
	-webkit-border-bottom-left-radius: 5px;
	
	-moz-border-radius-bottomright: 5px;
	-moz-border-radius-bottomleft: 5px;

	-khtml-border-radius-bottomright: 5px;
	-khtml-border-radius-bottomleft: 5px;

	border-bottom-right-radius: 5px;
	border-bottom-left-radius: 5px;
}

#tetris.tetris_dropshadow {
	-webkit-box-shadow: 0px 0px 3px #000;
	-webkit-transition: -webkit-box-shadow 0.2s ease;
}

#tetris.tetris_dropshadow:hover {	-webkit-box-shadow: 0px 0px 5px #000; }

/* menu items in ul */
#tetris #tetris-left #tetris-menu a, #tetris #tetris-left #tetris-menu a:visited {
	-webkit-transition: color 0.2s ease, background 0.2s ease, background-image 0.2s ease, text-shadow 0.2s ease;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#eff1f1), to(#dfe3e3));
}

#tetris #tetris-left #tetris-menu a:hover { 
	background-image: -webkit-gradient(linear, left top, left bottom, from(#eaf0f0), to(#dbe1e1));
}

#tetris #tetris-left #tetris-menu a:active {
	background-image: -webkit-gradient(linear, left top, left bottom, from(#a9b0b0), to(#ccd3d3));
}

#tetris	.tetris-window	.tetris-top {
	background-image: -webkit-gradient(linear, left top, left bottom, from(#383b40), to(#2a2d32));
}

#tetris-highscore-top {
	background-image: -webkit-gradient(linear, left top, left bottom, from(#91abd1), to(#7d94b8));
}

#tetris-gameover {
	-webkit-animation-name: bounce;
 	-webkit-animation-duration: 0.4s;
 	-webkit-animation-iteration-count: infinite;
 	-webkit-animation-direction: alternate;
}

@-webkit-keyframes bounce {
 from {
	color: #919191;
}
 to {
   color: #fff;
 }
} 

/* @end */
/* @group POWER reset - required for certain templates */

/* Some templates for RW have backround-images for list items and margins/paddings 
 * Templates noticed this far: Autumn, Birthday, Modern Grunge, Travel, Urban,     
 * Xtreme sports
 * 3th party: Poppy | Fresh me 
 * for more, e-mail me. Jssrdesign@gmail.com
 * IF your template is not listed here, removal is possible.
 * 
 * POWER reset UPDATED on 08/06/2010
 * IF your Tetris breaks, please send me an E-mail and I will try to support it
 */

#tetris #tetris-menu, #tetris #tetris-area ul#tetris-stats-list, #tetris #tetris-left ul#tetris-menu li  {
	margin: 0;
	padding: 0;
}

#tetris #tetris-area ul#tetris-stats-list li, #tetris #tetris-left ul#tetris-menu li, #tetris #tetris-area ul#tetris-stats-list   {
	background-image: none;
}

/* @end */