*, *: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;
  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;
}

#main_wrapper{
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  padding-top: 56%;
  min-width: 375px;
  min-height: 230px;
}
.wrapper {
  height: 100%;
  width: 100%;
  top:0;
  left:0;
  position: absolute;
  overflow: hidden;
  /* top: 50%; */
  /* left: 50%; */
  /* margin-top:-280px; */
  /* margin-left: -500px; */
}

#menu {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  text-align: center;
  overflow: hidden;
}

.screen{
  display: none;
  z-index: +9999999;
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  top: 0;
  left:0;
  background-color: #B24275;
}

#main {
  background-size: cover;
}

  #main .cover {
    width: 100%;
    position: absolute;
    height: 100%;
    left:0;
    top:0;
    background-size: 100%;
    background-repeat: no-repeat;
  }
  #main .main_bg{
    background-image: url(../imgs/title/bg.jpg);
    z-index: 0;
  }
  #main .main_doctor{
    z-index: 1;
    margin-top: 3%;
    left: -1.5%;
    background-image: url(../imgs/title/doctor.png);
    animation-name: tossing;
    -webkit-animation-name: tossing;
    animation-duration: 2.5s;
    -webkit-animation-duration: 2.5s;
    animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite;
  }


@keyframes tossing {
  0% {
    transform: rotate(-1deg); 
  }
  50% {
    transform: rotate(1deg);
  }
  100% {
    transform: rotate(-1deg); 
  }           
}

@-webkit-keyframes tossing {
  0% {
    -webkit-transform: rotate(-1deg); 
  }
  50% {
    -webkit-transform: rotate(1deg);
  }
  100% {
    -webkit-transform: rotate(-1deg); 
  }       
}


  #main .main_title{
    background-image: url(../imgs/title/title.png);
    z-index: 2;
    /* z-index: 10; */
  }
  #main .actual_title{
    background-image: url(../imgs/title/actual_title.png);
    width: 40%;
    height: 55%;
    position: absolute;
    top: 4%;
    left: 7%;
    background-size: 100%;
    background-repeat: no-repeat;
  }
  #main .main_monster{
    background-image: url(../imgs/title/monster.png);
  }

  #main h1{
    display: none;
  }

  #main .mainplay{
    position: absolute;
    left: 2%;
    top: 63%;
    color: transparent;
    background-image: url(../imgs/title/buttons/play.png);
    z-index: 100;
    background-repeat: no-repeat;
  }
    #main .mainplay:hover{
      background-image: url(../imgs/title/buttons/play_hover.png);
    }

  #main .guide{
    position: absolute;
    left: 10%;
    top: 72%;
    color: transparent;
    background-image: url(../imgs/title/buttons/guide.png);
    z-index: 100;
    background-repeat: no-repeat;
  }
    #main .guide:hover{
      background-image: url(../imgs/title/buttons/guide_hover.png);
    }

  #main .leaderboard{
    position: absolute;
    left: 18%;
    top: 81%;
    color: transparent;
    background-image: url(../imgs/title/buttons/board.png);
    z-index: 100;
    background-repeat: no-repeat;
  }
    #main .leaderboard:hover{
      background-image: url(../imgs/title/buttons/board_hover.png);
    }



#guide {
  background-image: url('../imgs/screens/guide_bg.jpg');
}


#leaderboard{
  background-image: url(../imgs/screens/leaderboard_bg.jpg);
  width: 100%;
  height: 100%;
  position: absolute;
}



#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 {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20%;
  height: 10%;
  cursor: pointer;
  z-index: 3;
  background-size: auto 100%;
}
.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: 100%;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  overflow: hidden;
}
#main h1 {
  color: white;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
#main .menu{
  z-index: 2;
}
#main .menu li a span{
  display: none;
}
.button {
  display: inline-block;
  cursor: pointer!important;
  width: 21%;
  height: 19%;
  background-repeat: no-repeat;
  background-size: 100%;
}
#main .button{
  transform: rotate(-12deg);
  background-size: 100%;
}

.button:hover {
  /* background-color: #eaeaea; */
}

#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;
}


#facts{
  background-image: url(../imgs/screens/facts.jpg);  
}


#submit{
  background-image: url(../imgs/screens/score_bg.jpg);
}

#game-over {
  display: none;
  text-align: center;
  background-image: url(../imgs/screens/game_over.png);
  z-index: 1;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: +999999999;
  padding-top: 50px;
}

#game-over-message {
  display: none;
  text-align: center;
  background: #333;
  z-index: 1;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: +999999999;
  padding-top: 50px;
}
  .submitscreen{
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    position: absolute;    
    background-image: url(../imgs/gameover.png);
  }


#score{
      font-size: 120px;
    font-family: "Open Sans";
    position: absolute;
    top: 30%;
    width: 100%;
    left: 0;
    text-align: center;
    color: #1b3c53;
}

#leaderboard table {
    width: 28%;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin: 11% auto 0 auto;
}

#leaderboard td{
    width: 50%;
    text-align: center;
    padding-bottom: 5px;
    font-size: 15px;
    color: #236b9e;
    font-family: "Open Sans";
    font-weight: 600;
}

@media (min-width:700px){ #leaderboard td{ font-size: 18px; padding-bottom: 5px;} }
@media (min-width:1000px){ #leaderboard td{ font-size: 25px;} }
@media (min-width:1250px){ #leaderboard td{ font-size: 35px; padding-bottom: 12px;} }
@media (min-width:1600px){ #leaderboard td{ font-size: 40px; padding-bottom: 12px;} }
@media (min-width:2000px){ #leaderboard td{ font-size: 45px; padding-bottom: 24px;} }


.hidden,
.submitscore span,
.restart span, .submit span,
.homebutton span, .button.play span,
.next span{
  display: none;
}
.homebutton{
  position: absolute;
  bottom: 2%;
  left: 0%;
  width: 36%;
  background-image: url(../imgs/screens/home.png);
}
  .homebutton:hover{
    background-image: url(../imgs/screens/home_hover.png);
  }

.button.play{
  position: absolute;
  bottom: 2%;
  right: 0%;
  width: 36%;
  background-image: url(../imgs/screens/play.png);
}
  .button.play:hover{
    background-image: url(../imgs/screens/play_hover.png);
  }



.button.next{
  position: absolute;
  bottom: 3%;
  right: 2%;
  width: 24%;
  height: 23%;
  background-image: url(../imgs/screens/next.png);
}
  .button.next:hover{
    background-image: url(../imgs/screens/next_hover.png);
  }





.button.submitscore{
  position: absolute;
  bottom: 2%;
  right: 0%;
  width: 36%;
  background-image: url(../imgs/screens/submitscore.png);
}
  .button.submitscore:hover{
    background-image: url(../imgs/screens/submitscore_hover.png);
  }



.button.restart{
  position: absolute;
  bottom: 2%;
  right: 0%;
  width: 36%;
  background-image: url(../imgs/screens/retry.png);
}
  .button.restart:hover{
    background-image: url(../imgs/screens/retry_hover.png);
  }


.button.submit{
  position: absolute;
  bottom: 11%;
  left: 32%;
  width: 36%;
  background-image: url(../imgs/screens/submit.png);
}
  .button.submit:hover{
    background-image: url(../imgs/screens/submit_hover.png);
  }




#minigame1, #minigame2, #minigame3{
  background: #CD4B51;
}

#handle{
  position: absolute;
  text-align: center;
  width: 28%;
  left: 36%;
  top: 45%;
  display: block;
  font-size: 55px;
  border: transparent;
  background: #bcf5ff;
  padding: 12px 5%;
  font-family: "Open Sans";
  -webkit-box-shadow: inset 10px 10px 63px -12px rgba(0,0,0,0.29);
  -moz-box-shadow: inset 10px 10px 63px -12px rgba(0,0,0,0.29);
  box-shadow: inset 10px 10px 63px -12px rgba(0,0,0,0.29);
  text-transform: uppercase;
}


.fact {
    font-size: 40px;
    font-family: "Open Sans";
    font-size: 18px;
    line-height: 1.4;
    width: 48%;
    left: 34%;
    position: absolute;
    top: 27%;
    color: #D9EDF4;
}
@media (min-width:700px){ .fact{ font-size: 20px; }}
@media (min-width:900px){ .fact{ font-size: 25px;} }
@media (min-width:1250px){ .fact{ font-size: 30px; } }
@media (min-width:1600px){ .fact{ font-size: 40px; } }
@media (min-width:2000px){ .fact{ font-size: 45px;} }


#menucover{
  position: absolute; top:0; left:0; width: 100%; height: 100%; background: #000; display: none; z-index: +999999
}


#loading, #loadinginner{
  position:fixed;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  background: #333;
  z-index: +9999999999999;
}
#loadinginner{
  background: url(../imgs/spikes.png) no-repeat center center;
  -moz-animation: bounce 2s infinite;
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
  background-size: auto 20%;
}




@-moz-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -moz-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -moz-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -moz-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}
@-webkit-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -moz-transform: translateY(-30px);
    -ms-transform: translateY(-30px);
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -moz-transform: translateY(-15px);
    -ms-transform: translateY(-15px);
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}