html, body { 
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	width: 100%;
	height: 100%;
	background-color: transparent;
}

body { 
	position: relative;
	box-sizing: border-box;
	font-family: 'Raleway', Arial, sans-serif;
	font-size: 16px;
	overflow-x: hidden;
}

/*@font-face { 
	font-family: 'Oswald-Light'; 
	src: url('../css/Oswald-Light.ttf'); 
}
@font-face { 
	font-family: 'Oswald-Bold'; 
	src: url('../css/Oswald-Bold.otf'); 
}*/

h1{
	margin: 0 0 30px 0;
	font-size: 2.3em;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 2px;
	font-family: 'Passion One', Arial, sans-serif;
}

h2{
	margin: 0 0 30px 0;
	font-size: 1.4em;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 1px;
	font-family: 'Passion One', Arial, sans-serif;
}

p{
	margin: 0;
	font-size: 0.9em;
	line-height: 1.6em;
}

/* ------------------------ */
/* START GENERAL STYLE */
/* ------------------------ */

header{
	background-color: #ececec;
	text-align: center;
	padding: 15px 0;
}

header img{
	max-width: 130px;
	height: auto;
}

section#intro{
	padding: 50px 0;
	max-width: 800px;
	width: 90%;
	margin: 0 auto;
	text-align: center;
}

/* ------------------------ */
/* START WRAPPER STYLE */
/* ------------------------ */

section#tetris{
	background-image: url('../img/gem_kerst_background_01.jpg');
	background-size: auto 100%;
	background-position: center center;
	background-color: #FFFFFF;
	background-repeat: no-repeat;
	padding: 50px 0 0 0;
}

section#tetris #wrapper{
	background-color: #eaf2ff;
	width: 900px;
	max-width: calc(100% - 40px);
	position: relative;
	margin: 120px auto 0px auto;
    box-sizing: border-box;
    padding-top: 145px;
	padding-bottom: 50px;
	-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.44);
	-moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.44);
	box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.44);
}

section#tetris #wrapper:before, section#tetris #wrapper:after
{
  z-index: -1;
  position: absolute;
  content: "";
  bottom: 12px;
  left: -5px;
  width: 50%;
  top: 80%;
  max-width:300px;
  background: #777;
  -webkit-box-shadow: 0 15px 10px rgba(0,0,0,0.2);
  -moz-box-shadow: 0 15px 10px rgba(0,0,0,0.2);
  box-shadow: 0 15px 10px rgba(0,0,0,0.2);
  -webkit-transform: rotate(-3deg);
  -moz-transform: rotate(-3deg);
  -o-transform: rotate(-3deg);
  -ms-transform: rotate(-3deg);
  transform: rotate(-3deg);
}

section#tetris #wrapper:after{
  -webkit-transform: rotate(3deg);
  -moz-transform: rotate(3deg);
  -o-transform: rotate(3deg);
  -ms-transform: rotate(3deg);
  transform: rotate(3deg);
  right: -5px;
  left: auto;
}

#wrapper h2, #wrapper p{
	text-align: center;
	max-width: 80%;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 20px;
}

#wrapper p{
	width: 890px;
	max-width: 90%;
	margin-bottom: 0px;
}

#cartoon{
	position: absolute;
	position: absolute;
    top: -170px;
    left: 50%;
    transform: translate(-50%,0);
	width: 400px;
	height: auto;
	display: block;
}

section#tetris #wrapper h1{
	margin-top: 100px;
}

section#tetris #elementswrapper{
	padding: 40px 30px 0 30px;
	display: flex;
	justify-content: center;
}

#bar{
	position: absolute;
	top: 0px;
	content: '';
	height: 20px;
	width: 100%;
	background:#FFF;
	background-color: -webkit-linear-gradient(-45deg, transparent 25%, #c3021d 25%, #c3021d 50%, transparent 50%, transparent 75%, #c3021d 75%);
	background: -moz-linear-gradient(-45deg, transparent 25%, #c3021d 25%, #c3021d 50%, transparent 50%, transparent 75%, #c3021d 75%);
	background: -o-linear-gradient(-45deg, transparent 25%, #c3021d 25%, #c3021d 50%, transparent 50%, transparent 75%, #c3021d 75%);
	background: linear-gradient(-45deg, transparent 25%, #c3021d 25%, #c3021d 50%, transparent 50%, transparent 75%, #c3021d 75%);
	background-size: 50px 50px;
	-webkit-animation: barberpole 1.5s infinite linear;
	animation: barberpole 100s infinite linear;
	box-shadow: 0 3px 2px -2px #d6d6d6;
}

@-webkit-keyframes barberpole {
	from {background-position: 0%;}
	to {background-position: 100%;}
}

.arrow_bounce {
	display: none !important;
	width: 30px; 
	height: auto; 
	position: relative;
	bottom: 0;
	left: 50%;
	margin-left: -15px;
	margin-top: 20px;
	-webkit-animation: bounce 1.5s infinite;
	animation: bounce 1.5s infinite;
}

/* ------------------------ */
/* START CUSTOM TETRIS STYLE */
/* ------------------------ */

#tetris-wrapper{
	display: none;
	color: #000000;
	background-color: #FFF;
	position: relative;
	width: 600px;
	margin-right: 10px;
	-webkit-box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.2);
	-moz-box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.2);
	box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.2);
	border-bottom: 3px solid #2681c4;
}

#tetris-wrapper{
	min-height: 750px;
}

#enterscore{
	/*display: block !important;
	z-index: 99999;
	background-color: #FFF;*/
}

section#tetris #wrapper #enterscore h1{
	margin-top: 0px;
	font-size: 2.4em;
}

h3#showscore{
	padding: 7px 10px;
	background-color: #e5f2f7;
	border: 1px solid #0083ae;
	margin-top: 3px;
}

#enterscore p.score-p{
	margin: 25px 0 20px 0;
	padding-top: 20px;
	width: auto;
	max-width: 100%;
	text-align: left;
	font-size: 13px;
	border-top: 1px solid #ececec;
}

#loginForm{
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-bottom: 25px;
}

#loginForm .form-group{
	width: calc(100% / 2 - 10px)
}

#loginForm .form-group-email{
	width: 100%;
	margin-top: 20px;
}

#loginForm input{
	box-sizing: border-box;
	width: 100%;
	font-size: 1.0em;
	padding: 10px;
	border: 1px solid #dcdcdc;
}

#loginForm button{
	margin-top: 20px;
	height: auto;
	width: 100%;
	padding: 10px 30px;
	background-color: #0083ae;
	font-size: 1.3em;
	font-weight: 600;
	color: #FFF;
	text-transform: uppercase;
	font-family: 'Passion One', Arial, sans-serif;
	cursor: pointer;
	border: none;

	background-size: 300% 100%;
	background-image: linear-gradient(to right, #e10109, #e93b41, #250188, #0083ae); 
    moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
	transition: all .4s ease-in-out;
}

#loginForm button:hover{
	background-position: 100% 0;
    moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

#loginForm label{
	font-size: 13px;
}

#loginForm label span.labelerror{
	color: red;
	margin-left: 10px;
}

#loginForm label span.labelerror{
	color: red;
	margin-left: 10px;
}

#loginForm input.formerror{
	border-color: red;
}

#wrapper p.alert{
	position: relative;
	border: 1px solid #0083ae;
	margin-top: 15px;
	color: #0083ae;
	width: 100%;
	max-width: calc(100% - 60px);
	padding: 10px 30px;
	line-height: 1.2em;
}

#wrapper p.alert:after{
	content: "";
	position: absolute;
	left: 30px;
	top: -10px;
	border-top: none;
	border-right: 10px solid transparent;
	border-left: 10px solid transparent;
	border-bottom: 10px solid #0083ae;
}

#wrapper .endgame{
	border-top: 1px solid #ececec;
	padding-top: 20px;
}

#wrapper .endgame p{
	text-align: left;
	margin: 0;
	width: 100%;
	max-width: 100%;
}

.tetris-replay{
	text-decoration: underline;
	cursor: pointer;
	display: inline-block;
	text-decoration: none;
	margin-top: 10px;
	width: auto;
	padding: 7px 20px;
	background-color: #0083ae;
	font-size: 1.1em;
	font-weight: 500;
	color: #FFF;
	text-transform: uppercase;
	font-family: 'Passion One', Arial, sans-serif;
	cursor: pointer;
	border: none;

	background-size: 300% 100%;
	background-image: linear-gradient(to right, #e10109, #e93b41, #250188, #0083ae); 
    moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
	transition: all .4s ease-in-out;
}

.tetris-replay:hover{
	background-position: 100% 0;
    moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

/* ------------------------ */
/* START SCORE STYLE */
/* ------------------------ */

#customscore{
	color: #000000 !important;
	width: 100%;
	max-width: 650px;
	background-color: #FFFFFF;
	/* border: 1px solid #000000; */
	/* padding: 30px; */
	box-sizing: border-box;
	-webkit-box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.2);
	-moz-box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.2);
	box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.2);
	border-bottom: 3px solid #2681c4;
}

#customscore #score-inner{
	padding: 30px;
}

#customscore #score-inner h2, #customscore #score-inner p{
	text-align: left;
	max-width: auto;
	margin-left: 0;
}

#customscore .score__submit{
	color: #000000;
}

#customscore .score__submit #score__insert{
	color: #000000 !important;
}

#customscore #getusers{
	/* background-color: #ececec; */
}

#customscore table{
	width: 100%;
	margin-bottom: 30px;
	font-size: 13px;
}

#customscore th, #customscore td{
	padding: 13px;
	text-align: left;
	border-right: 1px solid #ececec;
}

#customscore th:last-child, #customscore td:last-child{
	border: none;
	width: 40px;
}

#customscore th:first-child, #customscore td:first-child{
	width: 15px;
}

/* ------------------------ */
/* START SHARE STYLE */
/* ------------------------ */

#share-buttons{
	max-width: 600px;
	margin: 20px auto 30px auto;
	text-align: left;
}
#share-buttons img {
	width: 35px;
	padding: 5px;
	border: 0;
	box-shadow: 0;
	display: inline;
}

#share-buttons a{
	text-decoration: none;
}

/*::-webkit-scrollbar { 
	width: 16px;
}
::-webkit-scrollbar-track { 
	background-color: #333;
} 
::-webkit-scrollbar-thumb { 
	background-color: #424e69;
}
::-webkit-scrollbar-thumb:hover { 
	background-color: #8295d5;
}*/

/* ------------------------ */
/* START AFTER STYLE */
/* ------------------------ */

section#after{
	padding: 70px 0;
	max-width: 800px;
	width: 90%;
	margin: 0 auto;
	text-align: center;
}

.contact{
	margin-top: 30px;
	font-size: 1.2em;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 1px;
	font-family: 'Passion One', Arial, sans-serif;
}

.contact__email{
	margin-right: 20px;
	display: inline-block;
	padding: 15px 30px;
	text-decoration: none;
	
    color: #fff;
    cursor: pointer;
    border: none;
    background-size: 300% 100%;

	background-image: linear-gradient(to right, #e10109, #e93b41, #250188, #0083ae); 
    moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
	transition: all .4s ease-in-out;
}

.contact__email:hover {
    background-position: 100% 0;
    moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

.contact__phone{
	color: #000;
}

/* ------------------------ */
/* START AFTER STYLE */
/* ------------------------ */

footer{
	padding: 30px 20px;
	text-align: center;
	background-color: #ececec;
	font-size: 0.8em;
	line-height: 1.7em;
}

footer a{
	color: #000;
	transition: all .2s ease-in-out;
}

footer a:hover{
	color: #0083ae;
	transition: all .2s ease-in-out;
}

footer span{
	font-size: 0.8em;
	line-height: 1.3em;
	display: inherit;
	margin-top: 10px;
}

/* ------------------------ */
/* START RESPONSIVE STYLE */
/* ------------------------ */

@media screen and (max-width:1024px), screen and (min-device-width : 768px) and (max-device-width : 1024px) { 
	section #tetris{
		padding: 30px 0;
	}
	
	section#tetris #elementswrapper{
		flex-wrap: wrap;
	}
	
	section#tetris #wrapper #enterscore h1{
		font-size: 1.8em;
	}

	#tetris-wrapper h2{
		font-size: 1.2em;
	}

	#tetris-wrapper {
		margin-right: 0;
		width: 100%;
		min-height: 630px;
	}

	#panel, #home, #enterscore { 
		padding: 30px !important;
	}

	div#customscore {
		/* margin-top: 190px; */
		max-width: 100%;
		width: 100%;
	}
}

@media screen and (max-width: 550px), screen and (max-device-width: 550px) and (min-device-width: 320px){
	
	h2{
		font-size: 1.2em;
	}

	p{
		font-size: 0.8em;
	}
	
	#cartoon{
		width: 330px;
		max-width: 100%;
		top: -160px;
	}

	section#tetris{
		background-size: 150% auto;
		background-position: top;
	}

	section#tetris #wrapper{
		width: 100%;
		max-width: 100%;
		padding-top: 90px;
	}

	section#tetris #elementswrapper{
		padding: 30px 10px 0 10px;
	}

	h3#showscore{#
		text-align: center;
	}

	#enterscore p.score-p{
		text-align: center;
	}

	section#tetris #wrapper #enterscore h1{
		display: none;
	}

	.contact__email{
		width: calc(100% - 60px);
		margin-bottom: 20px;
		margin-right: 0px;
	}

	div#customscore{
		/* margin-top: 30px; */
	}

	div#customscore table, div#customscore thead, div#customscore tbody, div#customscore th, div#customscore td, div#customscore tr { 
		display: block; 
	}

	div#customscore th { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	div#customscore td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 40%;
		min-height: 13px; 
	}

	section#tetris #wrapper:before, section#tetris #wrapper:after{
		display: none;
	}

	#customscore th:first-child, #customscore td:first-child{ width: auto; }
	
	#customscore th, #customscore td{ padding: 5px; }
	
	div#customscore td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 3px;
		left: 3px;
		width: 20%; 
		padding-right: 10px; 
		white-space: nowrap;
		font-weight: bold;
	}

	div#customscore tr:nth-of-type(odd) { 
		background: #eee; 
		border-bottom: 1px solid #FFF;
	  }

	  div#customscore tr:nth-of-type(odd) td { 
		border-bottom: 1px solid #FFF;
	  }

	div#customscore td:nth-of-type(1):before { content: "#"; }
	div#customscore td:nth-of-type(2):before { content: "Naam"; }
	div#customscore td:nth-of-type(3):before { content: "Bedrijf"; }
	div#customscore td:nth-of-type(4):before { content: "Score"; }

	#enterscore{
		background-color: #FFF;
		z-index: 100;
	}

	.arrow_bounce {
		display: block;
	}
}

/* ------------------------ */
/* START DEFAULT TETRIS STYLE */
/* ------------------------ */

#panel, #home, #enterscore { 
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	left: 0px;
	right: 0px;
	position: absolute;
	padding: 30px;
	/* border: solid 1px #666; */
}
/*#enterscore{display: block !important;}*/
#board, #board-next { 
	width: 250px;
	height: 450px;
	/* border: solid 1px #ccc; */
	position: relative;
	padding: 1px;
	float: left;
}
#board { 
	border-left-width: 5px;
	border-right-width: 5px;
}
#board-next { 
	width: 100px;
	height: 100px;
	/* border-color: #000; */
}
#control { 
	position: absolute;
	height: 160px;
	width: 100%;
	margin: auto;
	margin-top: 633px;
	left: 0px;
	right: 0px;
	background-color: #eaf2fe;
	border: solid 0px #ccc;
	opacity: 1;
	display: none;
}
#control div { 
	width: 70px;
	height: 70px;
	position: absolute;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: cover;
	cursor: pointer;
}
#control div.move-left { 
	background-image: url('../img/move-left.png');
	top: 30px;
	right: 160px;
}
#control div.move-right { 
	background-image: url('../img/move-right.png');
	top: 30px;
	right: 20px;
}
#control div.move-down { 
	background-image: url('../img/move-down.png');
	top: 80px;
	right: 90px;
}
#control div.rotate { 
	background-image: url('../img/rotate.png');
	top: 10px;
	right: 90px;
}
#control div.pause { 
	background-image: url('../img/pause.png');
	top: 30px;
	left: 20px;
}
#control div.pause.play { 
	background-image: url('../img/play.png');
}
#control div.view-next { 
	background-image: url('../img/next.png');
	top: 30px;
	left: 100px;
}
#control div.view-next.not { 
	background-image: url('../img/next-not.png');
	top: 30px;
	left: 100px;
}
#level, #lines, #score, #next { 
	position: relative;
	width: 100%;
	height: 85px;
	text-transform: uppercase;
	font-size: 34px;
	letter-spacing: 1px;
	margin-bottom: 15px;
	border: solid 0px #999;
}

.boardscore{
	padding-left: 20px;
	float: left;
	width: 120px;
}

#level h2, #lines h2, #score h2, #next h2 { 
	font-size: 18px;
	color: #b0b0b0;
}
#next { 
	margin-bottom: 0px;
	height: 146px;
}
#level span, #lines span, #score span { 
	color: #0083ae;
	font-size: 38px;
	letter-spacing: 1px;
	/* padding-left: 15px; */
}


.github { 
	position: absolute;
	bottom: 0px;
	left: 5px;
}

.square { 
	width: 23px;
	height: 23px;
	position: relative;
	background-color: #ececec;
	border: solid 1px #FFF;
	display: inline-block;
	float: left;
	margin: 0px;
	padding: 0px;
	font-size: 12px;
	text-align: center;
}
.square.disabled { 
	background-color: #0083ae;
	transition: background-color 0.1s;
}

.piece1.erase, .piece2.erase, .piece3.erase, .piece4.erase, .piece5.erase, .piece6.erase, .piece7.erase { 
	background-color: #000;
	transition: background-color 0.2s;
}

.piece1 { 
	background-color: #270087;
}
.piece2 { 
	background-color: #112e40;
}
.piece3 { 
	background-color: #4fb89f;
}
.piece4 { 
	background-color: #f1b133;
}
.piece5 { 
	background-color: #d28ab8;
}
.piece6 { 
	background-color: #068686;
}
.piece7 { 
	background-color: #ec553b;
}

.invisible, .masked { 
	/* visibility: hidden; */
	background-color: #ececec;
}

#board .message { 
	margin: auto;
	left: 0px;
	top: 0px;
	bottom: 0px;
	right: 0px;
	height: 40px;
	width: 100%;
	position: absolute;
	text-align: center;
	background-color: #FFF;
	opacity: 0.8;
	letter-spacing: 2px;
	padding-top: 15px;
	font-size: 22px;
	text-transform: uppercase;
}

#startwrapper{
	width: 100%;
	height: 100%;
	position: relative;
	display: flex;
	align-items: center;
}

.start {
	margin: -260px auto 0px auto;
	padding-top: 0px;
	position: relative;
	/* transform: translate(-50%, -50%); */
	cursor: pointer;
	opacity: 1;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	background-color: transparent;
	border-radius: 50%;
	width: 300px;
	height: 300px;
	font-size: 24px;
	font-weight: normal;
	z-index: 99;
	display: flex;
	align-items: center;
	-webkit-transition: .2s ease-in-out;
	transition: .2s ease-in-out;
}

.start:hover {
	transform: rotate(10deg);
	font-size: 1.7em;
	transition: .2s ease-in-out;
}

.start:before {
    content: '';
	position: absolute;
	display: block;
    width: 140%;
	height: 140%;
	left: -20%;
	top: -20%;
    box-sizing: border-box;
	border-radius: 50%;
	margin: 0;
	background-color: #0083ae;
	z-index: 1;
    animation: pulse-ring 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  }
  
  .start:after {
    content: '';
	position: absolute;
	width: 110%;
	height: 110%;
	top: -5%;
	left: -5%;
    display: block;
	background-image: url('../img/gem_kerst_background_01.jpg');
	background-position: center center;
	background-color: #0083ae;
	border: 7px dashed #ececec;
	box-sizing: border-box;
	background-clip: padding-box;
    border-radius: 50%;
	box-shadow: 0 0 8px rgba(0,0,0,.3);
	z-index: 2;
    animation: pulse-dot 1.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -.4s infinite;
  }

.start__text{
	position: relative;
	z-index: 99;
	color: #FFFFFF;
	text-align: center;
	width: 100%;
	font-size: 1.3em;
	text-transform: uppercase;
	font-weight: 500;
	letter-spacing: 1px;
	font-family: 'Passion One', Arial, sans-serif;
}

  @keyframes pulse-ring {
	0% {
	  transform: scale(.33);
	}
	80%, 100% {
	  opacity: 0;
	}
  }
  
  @keyframes pulse-dot {
	0% {
	  transform: scale(.98);
	}
	50% {
	  transform: scale(1);
	}
	100% {
	  transform: scale(.98);
	}
  }

#tetris-wrapper h1 { 
	margin: 0px 0px 20px 0px;
	padding: 0px;
	font-size: 50px;
	letter-spacing: 3px;
	text-transform: uppercase;
	font-weight: bold;
	color: #0083ae;
}
#tetris-wrapper h2 { 
	margin: 1px 0px 0px 0px;
	text-align: left;
}

#home h1 { 
	font-size: 40px;
	text-align: center;
}
#home h2 { 
	font-weight: bold;
	margin: -20px 0px 0px 0px;
	font-size: 22px;
	text-align: center;
	letter-spacing: 2px;
	max-width: 100%;
}
#home h3 { 
	color: #8a6d10;
	font-weight: normal;
	margin: 0px;
	font-size: 20px;
	text-align: center;
	letter-spacing: 1px;
}

#scores { 
	display: none;
	position: absolute;
	top: 420px;
	left: 0px;
	right: 0px;
	text-align: center;
}
#scores  h2, #help h2 { 
	margin: 0px 0px 10px 0px;
	color: #d43b3b;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 26px;
}
#scores  table { 
	text-align: left;
}
#scores  table  th, #scores  table  td { 
	padding: 0px 20px 0px 20px;
	text-transform: uppercase;
	color: #f4c030;
	font-weight: bold;
	font-size: 20px;
	text-align: right;
	letter-spacing: 1px;
}
#home #scores  table  td { 
	font-weight: normal;
	color: #ffedb3;
}

.sound { 
	position: absolute;
	bottom: 0px;
	right: 10px;
	z-index: 12;
}
.sound img { 
	height: 28px;
}

.help-button { 
	position: absolute;
	bottom: 5px;
	right: 55px;
	font-size: 16px;
	font-weight: bold;
	text-transform: lowercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	color: #78abf7;
	transition: color 1.5s;
}
.help-button.yo { 
	color: #666;
}

#help { 
	position: absolute;
	width: 100%;
	bottom: 0;
	left: 0px;
	right: 0px;
	margin: auto;
	padding-top: 15px;
	padding-bottom: 15px;
	text-align: left;
	z-index: 10;
	/* background-color: #ececec; */
	text-transform: uppercase;
	display: block;
}

#help  table{
	margin: 0 50px 50px 50px;
}

#help  table  tr  td { 
	font-size: 10px;
	letter-spacing: 0px;
	padding: 5px;
}
#help  table  tr  td:first-child { 
	color: #262626;
	font-weight: bold;
	text-align: left;
}
#help  table  tr  td:last-child { 
	text-align: left;
	color: #262626;
}

#name-input { 
	z-index: 999999;
	color: #ffedb3;
	background-color: transparent;
	font-size: 20px;
	letter-spacing: 1px;
	text-transform: uppercase;
	border: solid 1px #f4c030;
    outline: none;
	padding: 1px 6px 1px 6px;
	margin: 0px;
}

.ui-mobile {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

@media screen and (max-width:1140px), screen and (min-device-width : 1024px) and (max-device-width : 1140px) { 
	#panel{
		padding: 50px 20px 50px 20px;
	}
}

@media screen and (max-width:1024px), screen and (min-device-width : 768px) and (max-device-width : 1024px) { 
	.help-button, .github { display: none; }
	#control { display: inline; } 
	#help {
		display: none;
		padding-bottom: 15px;
	}
	#help table{
		margin: 0 30px 10px 30px;
	}

	#board{
		width: 280px;
	}

	#board-next {
		width: 120px;
		height: 120px;
	}

	.square{
		width: 26px;
		height: 26px;
	}

	#level, #lines, #score, #next{
		width: 150px;
		clear: left;
	}
	.start{
		margin: -180px auto 0px auto;
	}
}

@media screen and (max-width:600px), screen and (min-device-width : 550px) and (max-device-width : 600px) { 
	#board{
		width: 230px;
	}

	#board-next {
		width: 92px;
    	height: 92px;
	}

	.square{
		width: 21px;
		height: 21px;
	}
}

@media screen and (max-width:550px) { 
	.help-button, .github { display: none; }
	#control {
		display: inline;
		width: calc(100% - 40px);
	} 
	
	h1 { 
		font-size: 30px;
		letter-spacing: 5px;
		-webkit-text-stroke-width: 1px;
	}
	
	#home h1 { 
		font-size: 30px;
		-webkit-text-stroke-width: 1px;
	}
	#home h2 { 
		margin: -5px 0px 0px 0px;
		font-size: 16px;
		letter-spacing: 1px;
	}
	#home h3 { 
		font-size: 12px;
	}
	
	#board .message { 
		font-size: 14px;
		height: 25px;
	}

	.start{
		height: 200px;
		width: 200px;
		top: 150px;
		font-size: 20px;
		margin-top: -380px;
	}
	
	#scores { 
		top: 185px;
	}
	#scores  h2, #help h2 { 
		margin: 0px 0px 10px 0px;
		font-size: 14px;
	}
	#scores  table  th, #scores  table  td { 
		padding: 0px 10px 0px 10px;
		font-size: 10px;
		text-align: right;
	}
	#name-input { 
		font-size: 10px;
		padding: 0px 4px 0px 4px;
	}
	
	#panel, #home { 
		width: 100%;
		height: 500px;
	}
	
	#board { 
		width: 240px;
		height: 252px;
	}
	#board-next { 
		width: 100px;
		height: 100px;
	}
	#level, #lines, #score, #next { 
		width: 100%;
		height: 29px;
		font-size: 10px;
	}

	.boardscore {
		width: 100px;
	}

	#panel h2 {
		font-size: 12px;
	}
	#next { 
		margin-bottom: 0px;
		height: 86px;
	}
	#level span, #lines span, #score span { 
		font-size: 14px;
		/* padding-left: 10px; */
	}

	.square { 
		width: 22px;
		height: 22px;
	}

	#control { 
		position: absolute;
		height: 40px;
		margin-top: 495px;
	}
	#control div { 
		width: 36px;
		height: 36px;
	}
	#control div.move-left { 
		top: 2px;
		right: 45px;
	}
	#control div.move-right { 
		top: 2px;
		right: 5px;
	}
	#control div.move-down { 
		top: 2px;
		right: 95px;
	}
	#control div.rotate { 
		top: 2px;
		right: 130px;
	}
	#control div.pause { 
		top: 2px;
		left: 5px;
	}
	#control div.view-next, #control div.view-next.not { 
		top: 2px;
		left: 45px;
	}
}

@media screen and (max-width:460px){ 
	#board{
		width: 180px;
		height: 352px;
	}

	#board-next {
		width: 72px;
    	height: 72px;
	}

	.square{
		width: 16px;
		height: 16px;
	}

	.boardscore {
		width: 74px;
	}

	#control {
		margin-top: 395px;
	}

	section#tetris #wrapper {
		padding-top: 90px;
	}

	.start{
		margin-top: -420px;
	}
}

@media screen and (max-width:370px){ 
	#panel{
		padding: 10px !important;	
	}

	section#tetris #wrapper {
		padding-top: 80px;
	}
}


/* -------------------- */
/* Bouncing arrow animation
/* -------------------- */

  @-webkit-keyframes bounce {
	0%,	20%, 50%, 80%, 100% {
	  -webkit-transform: translateY(0);
	  transform: translateY(0);
	  opacity: 0,5;
	}
	40% {
	  -webkit-transform: translateY(-10px);
	  transform: translateY(-10px);
	  opacity: 1;
	}
	60% {
	  -webkit-transform: translateY(-5px);
	  transform: translateY(-5px);
	}
  }
  @keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
	  -moz-transform: translateY(0);
	  -ms-transform: translateY(0);
	  -webkit-transform: translateY(0);
	  transform: translateY(0);
	  opacity: 0.5;
	}
	40% {
	  -moz-transform: translateY(-10px);
	  -ms-transform: translateY(-10px);
	  -webkit-transform: translateY(-10px);
	  transform: translateY(-10px);
	  opacity: 1;
	}
	60% {
	  -moz-transform: translateY(-5px);
	  -ms-transform: translateY(-5px);
	  -webkit-transform: translateY(-5px);
	  transform: translateY(-5px);
	}
  }