body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

h1,h2,h3,a {
  color: #900000;
}

.text-center {
  text-align: center;
}

@media (pointer: none) {
  body, html {
    height: 90vh;
  }
}

body.playing {
  user-select: none; /* prevent magnifying glass in ios */
  -webkit-user-select: none;
  overflow: hidden; /* prevent scroll */
}

canvas#bevy {
  display: none;
}

button.back-home-page {
  display: none;
  cursor: pointer;
  position: absolute;
  bottom: 16px;
  left: 16px;
  border: 4px solid #808080;
  width: 36px;
  height: 48px;
  font-size: 22px;
  background-color: white;
  padding: 0px;
}

.playing canvas#bevy {
  display: block;
}

.playing button.back-home-page {
  display: block;
}

#presentation {
  display: block;
  padding: 1rem;
}

@media screen and (max-width: 600px) {
  #presentation h1 {
    font-size: 1.2rem;
  }
}

#presentation h1.title {
  max-width: 80%;
  margin-top: 0px;
}

#presentation .logo-wrapper {
  text-align: center;
}

#presentation .logo-wrapper img {
  width: 100%;
  max-width: 445px;
}

#presentation #start {
  width: 100%;
  max-width: 600px;
  padding: 8px;
  font-size: 1.8rem;
  cursor: pointer;
  background-color: #ffe8e8;
  border: 1px solid #900000;
  border-radius: 12px;
  color: #900000;
}

#presentation #start:hover {
  color: white;
  background-color: #900000;
}

#presentation footer {
  font-size: 85%;
  text-align: center;
}

.playing #presentation {
  display: none;
}

qrcode-display {
  display: block;
  width: 160px;
  margin: 0 auto;
}

/**
 * Based on https://github.com/topheman/bombs/blob/master/src/css/game.css
 */
#orientationlock {
  font-style: italic;
  font-weight: bold;
  position: absolute;
  z-index: 1000;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: #333;
  color: #fff;
  font-size: 1.2em;
  padding: 1em;
  padding-top: 30vh;
  display: none;
  text-align: center;
  background-image: url(/orientation-lock.png);
  background-repeat: no-repeat;
  background-position: 50% 70%;
}

@media screen and (orientation:landscape) {
  .is-mobile.playing #orientationlock {
      display: block;
  }
  .is-mobile.playing #bevy{
      display:none;
  }
}
@media screen and (orientation:portrait) {
  .is-mobile.playing #orientationlock {
      display: none;
  }
}

/** Loader for the game in the canvas */

.loader-wrapper {
  display: none;
}

.loader-wrapper .loader {
  margin-left: -100px;
}

.playing .loader-wrapper {
  display: block;
}

.loader {
  position: relative;
  width: 100px;
  height: 16px;
  margin: 0 auto;
}
.loader:before , .loader:after{
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #900000;
  box-shadow: 32px 0 #900000;
  left: 0;
  top: 0;
  animation: ballMoveX 1s linear infinite;
}
.loader:after {
  box-shadow: none;
  transform-origin: 40px 0;
  transform: rotate(-153deg);
  animation: rotateLoader 1s linear infinite;
}

@keyframes rotateLoader {
  0% , 10%{ transform: rotate(-153deg); }
  90%, 100% { transform: rotate(0deg); }
}
@keyframes ballMoveX {
  0% , 10%{  transform: translateX(0) }
  90%, 100% { transform: translateX(32px) }
}
/** github logo from my other sites**/
/** networks header */
.site-networks {
  z-index: 20;
  position: absolute;
  right: 20px;
  top: 10px;
  margin: 0;
  padding: 0;
}

ul.site-networks {
  list-style: none;
  text-align: center;
  padding: 0px 0px 10px 0px;
}

ul.site-networks li {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 15px;
}

ul.site-networks li a {
  display: block;
  width: 32px;
  height: 32px;
  text-decoration: none;
  padding-top: 0px;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}

ul.site-networks li a span.icon {
  position: absolute;
  display: block;
  width: 32px;
  height: 32px;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}

ul.site-networks li a span.desc {
  display: none;
}

ul.site-networks li a:hover span.icon {
  left: 0px;
  -webkit-transform: rotate(360deg);
  -moz-transform: rotate(360deg);
  -ms-transform: rotate(360deg);
  -o-transform: rotate(360deg);
  transform: rotate(360deg);
}

/** since logos are included with the css in base64, we don't bother about pixel ratio media query (everybody gets the retina version)*/
ul.site-networks li.twitter a span.icon {
  background-image: url(/twitter-retina.png);
  background-size: 32px 32px;
}

ul.site-networks li.github a span.icon {
  background-image: url(/github-retina.png);
  background-size: 32px 32px;
}

@media only screen and (max-width: 700px) and (min-width: 370px) {
  ul.site-networks {
    /* right: 70px; */
  }
  ul.site-networks li {
    margin-left: 0px;
  }
  .site-title {
    font-size: 26px;
  }
  .content {
    padding: 0 10px;
  }
  img {
    max-width: 100%;
  }
}

.hide-site-networks .site-networks {
  display: none;
}
