*, *:before, *:after {
  box-sizing: border-box;
}

body {
  font-family: arial, sans-serif;
  font-size: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid black;
  z-index: 1;
  width: 100%;
  height: 100%;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0
}
li {
  padding: 10px 0;
}

a {
  text-decoration: none;
  color: inherit;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 5px;
  left: 5px;
}

#menu {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid black;
  z-index: 2;
  text-align: center;
  background-color: grey;
}
#menu.main {
  background-image: url('../imgs/menu_bg1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; 
}
#menu.credits {
  background-image: url('../imgs/credits_bg.png');
  background-position: center;
  background-repeat: no-repeat; 
  background-size: cover;
}

#progress {
  height: 12%;
  margin: auto;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
}
#percent {
  color: white;
  font-weight: bold;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
#progress-bar {
  width: 200px;
}

.sound {
  display: none;
  position: absolute;
  top: 10px;
  left: 0px;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 3;
}
.sound-on {
  background-image: url('../imgs/soundOn.png');
  background-repeat: no-repeat;
}
.sound-off {
  background-image: url('../imgs/soundOff.png');
  background-repeat: no-repeat;
}

#main {
  display: none;
  height: 60%;
  overflow: auto;
  margin: auto;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
}
#main h1 {
  color: white;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.button {
  display: block;
  width: 150px;
  margin: 0 auto;
  height: 30px;
  line-height: 30px;
  border: 1px solid #AA2666;
  color: white;
  font-weight: bold;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  background-color: #FB1886;
  background-image: -webkit-linear-gradient(bottom, #FB1886 0%, #B30D5D 100%);
  background-image:         linear-gradient(to bottom, #FB1886 0%, #B30D5D 100%);
  border-radius: 5px;
}

.button:hover {
  background-color: #B30D5D;
  background-image: -webkit-linear-gradient(bottom, #B30D5D 0%, #FB1886 100%);
  background-image:         linear-gradient(to bottom, #B30D5D 0%, #FB1886 100%);
}

#credits {
  display: none;
  line-height: 30px;
  margin: auto;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
}
#credits li {
  padding: 5px 0;
}

.artwork, .music, .developer {
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.artwork {
  color: #fa8526;
}
.music {
  color: #e6e71f;
}
.developer {
  color: #13eb8a;
}

.back, .back:hover {
  margin-top: 10px;
}

#game-over {
  display: none;
  text-align: center;
  padding-top: 10%;
  z-index: 1;
  width: 100%;
  height: 100%;
  position: absolute;
  /* background-image: url('../imgs/original.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; */
}

#userdata {
 display: none;
 color: white;
 padding-top: 50px;
 padding-left: 50px;
 z-index: 1;
 width: 100%;
 height: 8%;
 position: absolute;
}

#cpanel{
position: absolute;
text-align: center;
background-color: white;
z-index: 4;
left: 0px;
width: 100%;
height: 8%;
bottom: 0;
}

#instructions{
/* width: 50%; */
/* z-index: 3; */
display: none;
height: 70%; 
overflow: auto;
margin: auto;
position: absolute; 
top: 0; 
left: 0; 
bottom: 0; 
right: 0;
}
#instructions li {
  padding: 5px 0;
}

#btnjump{
position: relative;
text-align: center;
z-index: 5;
top: 20px;
left: 0px;
width: 700px;
height:25px;
}

#btnpause{
position:relative;
text-align: center;
z-index: 5;
top: -20px;
left: 0px;
width: 600px;
height:25px;
}

#btnstart{
position:relative;
text-align: center;
z-index: 1;
top: 150px;
left: 250px;
width: 200px;
height:25px;
}

#mysubmit{
position:relative;
text-align: center;
z-index: 1;
}

#keya{
position:relative;
text-align: center;
z-index: 1;
}

#keyd{
position:relative;
text-align: center;
z-index: 1;
}

#keyw{
position:relative;
text-align: center;
z-index: 1;
}

#keys{
position:relative;
text-align: center;
z-index: 1;
}

#gameArea {
  position: absolute;
  left:     50%;
  top:      50%;
}

#statsPanel {
  position: absolute;
  width: 100%;
  height: 8%;
  bottom: 0;
  opacity: 0.8;
}