canvas { background: #eee; display: block;}

*, *:before, *:after {
  box-sizing: border-box;
  margin: 0px;
  transition:  transform .5s;
  transition-timing-function: cubic-bezier(.63,1.45,0,1.2);
  font-family: "Lobster Two", cursive;
  font-style: italic;
  text-shadow: 0px 0px 3px gold;
}
.wrapper {
	position: relative;
}
#layer{
	left: 50%;
    margin-left: -512px;
	height: 500px;
	width: 950px;
	position: relative;
}
#menu.main {
    height: 500px;
	width: 950px;
    background: #000b6e; /* For browsers that do not support gradients */    
    background: -webkit-radial-gradient(circle, #3097db, #000b6e ); /* For Safari 5.1 to 6.0 */
    background: -o-radial-gradient(circle, #3097db,  #000b6e); /* For Opera 11.1 to 12.0 */
    background: -moz-radial-gradient(circle, #3097db,  #000b6e); /* For Firefox 3.6 to 15 */
    background: radial-gradient(circle, #3097db,  #000b6e); /* Standard syntax (must be last) */
    left: 50%;
    margin-left: -512px;
	position: absolute;
	z-index: 10;
}
#main {
  display: none;
  height: 60%;
  overflow: hidden;
  position: relative;
  top: 20%; left: 0; bottom: 0; right: 0;
  text-align: center;
}
#name {
  color: yellow;
  //text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  text-align: center;
  font-size: 40pt;
}

.button {
  display: block;
  width: 150px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  margin-bottom: 20px;
  height: 50px;
  line-height: 30px;
  background:  #9cd9ff;
  background-image: -webkit-linear-gradient(top,  #9cd9ff, #6987ff);
  background-image: -moz-linear-gradient(top,  #9cd9ff, #6987ff);
  background-image: -ms-linear-gradient(top,  #9cd9ff, #6987ff);
  background-image: -o-linear-gradient(top,  #9cd9ff, #6987ff);
  background-image: linear-gradient(to bottom,  #9cd9ff, #6987ff);
  -webkit-border-radius: 17;
  -moz-border-radius: 17;
  border-radius: 17px;
  font-family: Arial;
  color: #000861;
  font-size: 20px;
  padding: 10px 20px 10px 20px;
  border: solid #b5e3ff 2px;
  text-decoration: none;
  text-align: center;
}
.button:hover {
  background: #6987ff;
  background-image: -webkit-linear-gradient(top, #6987ff,  #9cd9ff);
  background-image: -moz-linear-gradient(top, #6987ff,  #9cd9ff);
  background-image: -ms-linear-gradient(top, #6987ff,  #9cd9ff);
  background-image: -o-linear-gradient(top, #6987ff,  #9cd9ff);
  background-image: linear-gradient(to bottom, #6987ff,  #9cd9ff);
  transition: background-image 2s;
  text-decoration: none;
}

.game-over {
  display: none;
  text-align: center;
  top: 92px;
  z-index: 10;
  width: 600px;
  height: 360px;
  overflow: auto;
  position: absolute;
  left: 50%;
  margin-left: -300px;
  background-color: rgba(94, 126, 255, 0.5);
}

#game-over h2 {
	color: yellow;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
	margin: auto;
}

#credits h1{
 	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  font-size: 30pt;
}


#credits .actor {
  color: #46FF17;
}


#credits {
  display: none;
  margin-left: -512px;
  position: absolute;
  top: 0px;
  height: auto;
  width: 1023px;
  left: 50%;
  background-color: rgba(0,0,0,0.95);
  color: white;
  padding-bottom: 30px;
  z-index: 11;
}
#credits>div>a:hover {
	cursor: pointer;
	text-decoration: none;
}
#credits>div>a>h1:nth-of-type(2):hover {
	color: white;
	text-shadow: 0px 0px 10px orange;
}
#credits>div {
	background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto 100% ;
}
#credits>div:nth-of-type(1) {
	height: 100px;
	line-height: 100px;
	font-size: 30px;
	text-align: center;
}
#credits>div:nth-of-type(2) {
	width: 80%;
	margin: auto;
	height: 400px;
	background-image: url("media/san.jpg");
}
#credits>div:nth-of-type(3) {
	height: 100px;
}
#credits>div:nth-of-type(4) {
	width: 80%;
	margin: auto;
	height: 400px;
	background-image: url("media/vit.jpg");
}
#credits>a {
	text-align: left;
	position: absolute;
	bottom: 10px;
	right: 10px;
}
#credits>a:hover {
	text-decoration: none;
}
#credits>a>span:before {
	content: "<< ";
	margin-left: -10px;
	opacity: 0;
	transition: opacity .5s;
}

#credits>a:hover>span:before {
	content: "<< ";
	opacity: 1;
}