html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: fixed;
  background-color: #FFF;
}

canvas {
  margin: auto;
  display: block;
  position: relative;
  top: 0;
}

#hint,
#menu {
  color: #FFF;
  font-size: 35px;
  text-align: center;
  position: absolute;
  z-index: 3;
  font-family: sans-serif;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, .7);
  text-shadow: 3px 3px 5px #000;
  overflow: auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#innerhint,
#innermenu {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 100%;
}

.menuitem {
  margin-top: 20px;
  margin-bottom: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

.button:hover,
.menuitem:hover {
  color: #BBB;
}

.button:active,
.menuitem:active {
  color: #888;
}

.menutitle {
  font-size: 50px;
  cursor: default;
  margin-bottom: 50px;
}

#fade {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: none;
  z-index: 10;
  background-color: #000;
}

.leveldesc {
  font-size: 14px;
  height: 20px;
  max-width: 300px;
  margin: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#loadinglogo {
  display: block;
  position: fixed;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 55%;
  background-image: url(/firecaster.svg);
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: top;
}

#loadingbar {
  display: block;
  position: fixed;
  top: 55%;
  left: 0;
  right: 0;
  bottom: 10%;
  background-image: url(../gfx/loading-spinning-bubbles.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#title {
  display: block;
  position: fixed;
  top: 20%;
  left: 0;
  right: 0;
  font-size: 60px;
  color: #FFF;
  text-shadow: #000 5px 5px;
  text-align: center;
  z-index: 5;
  font-family: sans-serif;
}

#buttons {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  text-align: center;
  font-family: sans-serif;
  padding: 6px;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

#buttons select {
  display: none;
}

#bottom-buttons {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 5px;
}

.button {
  pointer-events: auto;
  margin-bottom: 5px;
  font-size: 6vh;
  border: 1px solid;
  color: #FFF;
  padding: 10px;
  text-shadow: 3px 3px 5px #000;
}

#restart {
  background: linear-gradient(to right, rgba(255, 0, 0, .5), rgba(255, 0, 0, .8));
  border-color: #F00;
}

#sleep {
  background: linear-gradient(to right, rgba(255, 255, 255, .5), rgba(255, 255, 255, .8));
  border-color: #FFF;
}

#drop {
  display: none;
  background: linear-gradient(to right, rgba(0, 0, 0, .5), rgba(0, 0, 0, .8));
  border-color: #000;
}

#menu-button {
  background: linear-gradient(to right, rgba(144, 144, 144, .5), rgba(144, 144, 144, .8));
  border-color: #999;
}

@media only screen and (max-width: 800px) {

  #hint,
  #menu {
    font-size: 25px;
  }

  .menutitle {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 0px;
  }
}