html,
body {
    margin: 0;
    overflow: hidden;
    height: 100%;
    color: #fff;
    font-family: sans-serif;
    cursor: crosshair;
}

a {
  text-decoration: none;
}

/* Scale canvas with resize attribute to full size */
canvas {
    width: 100%;
    height: 100%;
  /*  background: #0000FF; /* For browsers that do not support gradients */
  /*  background: -webkit-linear-gradient(#0000FF, #FF0000); /* For Safari 5.1 to 6.0 */
  /*  background: -o-linear-gradient(#0000FF, #FF0000); /* For Opera 11.1 to 12.0 */
  /*  background: -moz-linear-gradient(#0000FF, #FF0000); /* For Firefox 3.6 to 15 */
  /*  background: linear-gradient(#325dbf, #3ae6d6);  Standard syntax */
  /*background: rgb(130,134,165); /* Old browsers */
/*background: -moz-linear-gradient(top, rgba(130,134,165,1) 0%, rgba(204,157,120,1) 42%, rgba(255,248,176,1) 68%, rgba(204,165,132,1) 88%, rgba(130,134,165,1) 100%); /* FF3.6-15 */
/*background: -webkit-linear-gradient(top, rgba(130,134,165,1) 0%,rgba(204,157,120,1) 42%,rgba(255,248,176,1) 68%,rgba(204,165,132,1) 88%,rgba(130,134,165,1) 100%); /* Chrome10-25,Safari5.1-6 */
/*background: linear-gradient(to bottom, rgba(130,134,165,1) 0%,rgba(204,157,120,1) 42%,rgba(255,248,176,1) 68%,rgba(204,165,132,1) 88%,rgba(130,134,165,1) 100%);*/
  background-image: url('../images/bg.jpg');
  background-size: 100% 100%;
}

/* Scale canvas with resize attribute to full size */
#zencanvas {
  background-image: url('../images/zenmode-bg.jpg');
}

canvas[resize] {
    width: 100%;
    height: 100%;
}




#instructionscreen.active {
  width: 100%;
  height: 100%;
  /*  background: #0000FF; /* For browsers that do not support gradients */
  /*  background: -webkit-linear-gradient(#0000FF, #FF0000); /* For Safari 5.1 to 6.0 */
  /*  background: -o-linear-gradient(#0000FF, #FF0000); /* For Opera 11.1 to 12.0 */
  /*  background: -moz-linear-gradient(#0000FF, #FF0000); /* For Firefox 3.6 to 15 */
  /*  background: linear-gradient(#325dbf, #3ae6d6);  Standard syntax */
  background-image: url('../images/bg-start.jpg');
  background-size: 100% 100%;
  z-index: 102;
}

#instructionscreen.inactive {
  position: absolute;
  left: -999em;
}

#credits.active {
  width: 100%;
  height: 100%;
  /*  background: #0000FF; /* For browsers that do not support gradients */
  /*  background: -webkit-linear-gradient(#0000FF, #FF0000); /* For Safari 5.1 to 6.0 */
  /*  background: -o-linear-gradient(#0000FF, #FF0000); /* For Opera 11.1 to 12.0 */
  /*  background: -moz-linear-gradient(#0000FF, #FF0000); /* For Firefox 3.6 to 15 */
  /*  background: linear-gradient(#325dbf, #3ae6d6);  Standard syntax */
  background-color: #044156;
  opacity: 0.8;
  background-size: 100% 100%;
  z-index: 100;
  transition-duration: 0.5s;
  text-align: center;
  padding-top: 200px;
  font-size: 20px;
  font-weight: 200;
}

#credits.inactive {
  opacity: 0;
  text-align: center;
  transition-duration: 0.5s;
}

#exit-credits {
    background-image: url('../../../images/icons/X.png');
    background-size: cover;
    width: 50px;
    height: 50px;
    position: absolute;
    right: 20;
    top: 80;
    cursor: hand;
    position: absolute;
    display: none;
}

#credits-toggle {
  position: absolute;
  right: 20;
  bottom: 20;
  font-weight: 800;
  cursor: hand;
  width: 100px;
  height: 40px;
  line-height: 40px;
  border-radius: 20px;
  border: 1px solid #fff;
  text-align: center;
}

#gameoverscreen.active {
  width: 100%;
  height: 100%;
  /*  background: #0000FF; /* For browsers that do not support gradients */
  /*  background: -webkit-linear-gradient(#0000FF, #FF0000); /* For Safari 5.1 to 6.0 */
  /*  background: -o-linear-gradient(#0000FF, #FF0000); /* For Opera 11.1 to 12.0 */
  /*  background: -moz-linear-gradient(#0000FF, #FF0000); /* For Firefox 3.6 to 15 */
  /*  background: linear-gradient(#325dbf, #3ae6d6);  Standard syntax */
  background-image: url('../images/bg-start.jpg');
  background-size: 100% 100%;
  z-index: 101;
}

#gameoverscreen.inactive {
  position: absolute;
  left: -999em;
}

#gameover{
  width: 500px;
  height: 200px;
  display: block;
  background: url('../images/gameover.svg') no-repeat bottom;
  background-size: 500px 100px;
  margin: auto;
}

#titlescreen.active {
  width: 100%;
  height: 100%;
  /* background: #0000FF; /* For browsers that do not support gradients */
  /* background: -webkit-linear-gradient(#0000FF, #FF0000); /* For Safari 5.1 to 6.0 */
  /*   background: -o-linear-gradient(#0000FF, #FF0000); /* For Opera 11.1 to 12.0 */
  /* background: -moz-linear-gradient(#0000FF, #FF0000); /* For Firefox 3.6 to 15 */
  /*   background: linear-gradient(#325dbf, #3ae6d6); /* Standard syntax */
  z-index: 100;
  background-image: url('../images/bg-start.jpg');
  background-size: 100% 100%;
}

#titlescreen.inactive {
  position: absolute;
  left: -999em;
}

#gamelogo {
  color: white;
  font-size: 72px;
  font-weight: 100;
  padding: 0;
  margin: auto;
  width: 400px;
  display: block;
}

button {
  background-color: #423429;
  border: 0;
  color: white;
  height: 40px;
  width: 160px;
  line-height: 40px;
  border-radius: 20px;
  margin: auto;
  display: block;
}

button:hover {
  background-color: #4993bc;
  transition-duration: 0.5s;
  cursor:crosshair;
}

#gameheader.inactive {
  opacity: 0;
  transition-duration: 1s;
  z-index: -1;
  display: none;
}
#gameheader.active {
  opacity: 1;
  transition-duration: 1s;
  z-index: 100;
  display: block;
}

.score {
    color: #fff;
    font-size: 24px;
    font-weight: 100;
    position: absolute;
    padding: 0 20px 0 20px;
    top: 20;
    right: 20;
    height: 40px;
    width: 120px;
    line-height: 30px;
    float: left;
    /*background-color: rgba(0,0,0,0.1);*/
    border-radius: 20px;
}

#current-score {
    float: right;
    font-weight: 800;
}

#multiplier {
  position: absolute;
  top: 60;
  right: 40;
  font-weight: bold;
  background-color: #42dcb6;
  color: #fff;
  border-radius: 10px;
  height: 20px;
  width: 50px;
  line-height: 23px;
  text-align: center;
  opacity: 0;
}

.balance {
  padding: 0 12px 0 0px;
  position: absolute;
  height: 40px;
  width: 420px;
  line-height: 40px;
  float: left;
  /*background-color: rgba(0,0,0,0.1);*/
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
  top:17;
  left: 130;
}

#full-balance {
    float: right;
    width: 400px;
    margin-top: 10px;
    height: 20px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 10px;
}

#current-balance {
    float: left;
    width: 400px;
    height: 20px;
    background-color: #42dcb6;
    border-radius: 10px;
    transition-duration: 1s;
}

.water {
  padding: 0 12px 0 0px;
  position: absolute;
  height: 40px;
  width: 280px;
  line-height: 36px;
  float: left;
  /*background-color: rgba(0,0,0,0.1);*/
  border-radius: 20px;
  font-size: 14px;
  font-weight: 100;
  top:40;
  left: 0;
  right: 0;
  margin: auto;
  display: none;
}

#full-water {
    float: right;
    width: 200px;
    margin-top: 10px;
    height: 14px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 7px;
    display: none;
}

#current-water {
    float: left;
    width: 200px;
    height: 14px;
    background-color: #0077DD;
    border-radius: 7px;
    display: none;
}

.life {
  position: absolute;
  top: 20;
  left: 20;
}

.lives {
margin-right: 10px;
float: left;
height: 30px;
width: 30px;
background: url('../images/ohmwhite.svg') no-repeat top left;
background-size: 30px 30px ;
}

.empty-lives {
margin-right: 10px;
float: left;
height: 30px;
width: 30px;
/* border-radius: 20px; */
background: url('../images/ohmdark.svg') no-repeat top left;
opacity: 0.5;
background-size: 30px 30px ;
}

#finalscore {
  padding-bottom: 10px;
  width: 960px;
  margin: auto;

}

#final-score {
  padding: auto;
  background: url('../images/final-score.png') no-repeat;
  height: 60px;
  width: 140px;
  line-height: 55px;
  font-size: 34px;
  font-weight: 800;
  padding-left: 170px;
  margin: auto;
}

#final-bonus {
  padding: auto;
  background: url('../images/water-bonus.png') no-repeat;
  height: 60px;
  width: 140px;
  line-height: 55px;
  font-size: 34px;
  font-weight: 800;
  padding-left: 170px;
  margin: auto;
}

#sound {
  width: 30px;
  height: 30px;
  position: absolute;
  bottom: 20;
  left: 20;
  cursor: hand;
}

#sound.sound-on {
background: url('../images/soundon.svg') no-repeat;
background-size: 30px 30px;
}

#sound.sound-off {
background: url('../images/soundoff.svg') no-repeat;
background-size: 30px 30px;
}

#game-left-vs-right {
  margin: auto;
  width: 180px;
  line-height: 30px;
  margin-bottom: 20px;
}

#game-handToggle {
    background-color: rgba(0,0,0,0.2);
    height: 80px;
    width: 180px;
    border-radius: 40px;
}

#game-lefty {
  background: url('../images/lefty.svg') no-repeat bottom left;
  background-size: 70px 70px;
  width: 80px;
  height: 80px;
  border-radius: 40px;
  float: left;
  cursor: hand;
}

#game-righty {
  background: url('../images/righty.svg') no-repeat bottom right;
  background-size: 70px 70px;
  width: 80px;
  height: 80px;
  border-radius: 40px;
  float: right;
  cursor: hand;
}

#game-righty.active{background-color: #423429; }
#game-lefty.active{background-color: #423429; }
#game-righty:hover{background-color: #423429 transition-duration: 1s;}
#game-lefty:hover{background-color: #423429; transition-duration: 1s;}

#preloaded-images {
   position: absolute;
   overflow: hidden;
   left: -9999px;
   top: -9999px;
   height: 1px;
   width: 1px;
}



.pro-tips {
    width: 800px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
}

.pro-tip {
    height: 40px;
    line-height: 40px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 20px;
    margin-bottom: 10px;
}

#zenmode {
  margin-top: 10px;
  background-color: rgba(0,0,0,0);
  border: 1px solid #423429;
  color: #423429;
  }
