/* Copyright 2013 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */


@font-face {
  font-family: 'Nexa';
  src: url('Nexa-Light.woff') format('woff');
}

@font-face {
  font-family: 'Nexa';
  src: url('Nexa-Bold.woff') format('woff');
  font-weight:bold;
}

h1 {
    font-family: Nexa;
    margin-top: 81px;
    color: #fff;
    font-size: 20px;
}

html, body {
  padding: 0;
  font-family: 'Nexa';
  font-weight:bold;
  margin: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #242424, #000);
  color:#fff;
}

#welcomeOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 11;
}

#welcomeOverlay h1 {
  color: white;
  font-size: 48px;
  text-align: center;
}

#welcomeOverlay button {
  padding: 10px 20px;
  font-size: 24px;
}


.icon {
  -webkit-user-select: none;
  user-select: none;

      display: none;
}

.icon-offline {
  content: -webkit-image-set( url(assets/default_100_percent/100-error-offline.png) 1x, url(assets/default_200_percent/200-error-offline.png) 2x);
  position: relative;
}

.hidden {
  display: none;
}

.logo {
    padding-top:50px;
}

.logo img {
    width: 250px;
    margin: 0 auto 0 auto;
    display: block;
}

/* Offline page */

.offline .interstitial-wrapper {
  color: #2b2b2b;
  font-size: 1em;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
  overflow: visible;
}

.offline .runner-container {
height: 150px;
  max-width: 600px;
  overflow: hidden;
  position: relative;
  width: 122px;
  -webkit-box-shadow: 0px 0px 25px -8px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 0px 25px -8px rgba(0,0,0,0.75);
box-shadow: 0px 0px 25px -8px rgba(0,0,0,0.75);
    border-radius: 24px;
    border: 11px solid #000;

}

.sendmessage {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
}

.offline .runner-canvas {
  height: 150px;
  max-width: 600px;
  opacity: 1;
  overflow: hidden;
  position: absolute;
  top: 0;
  z-index: 2;
  border-radius: 12px;
}

.offline .controller {
  left: 0;
  position: absolute;
  top: 0;
  width: 100vw;
  z-index: 1;
}

#offline-resources {
  display: none;
}

@media (max-width: 470px) {
  .suggested-left > #control-buttons, .suggested-right > #control-buttons {
    float: none;
  }
  .snackbar {
    left: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
  }
  .logo img {
    width:200px;
  }
  .sendmessage .how-to {
    max-width: 305px;
    margin: 213px auto 0px auto;
    padding-left: 0px;
}
  #game-container #game-screen {
    margin-top: 100px;
  }
  .arcade-mode .runner-container {
    left: -10px !important;
  }
  body .how-to {
    display:none;
  }
  body #leaderboard {
        bottom: 50px;
  }
  h1 {
    display:none;
  }
  /*body #leaderboard {
    margin-top: 250px;
    position:relative;
    bottom:unset;
    top:unset;
    left:unset;
    right:unset;
    margin-bottom:40px;
  }
  body {
        padding-bottom: 50px;
  }*/
}

@media (max-height: 350px) {
  h1 {
    margin: 0 0 15px;
  }
  .icon-offline {
    margin: 0 0 10px;
  }
  .interstitial-wrapper {
    margin-top: 5%;
  }
  .nav-wrapper {
    margin-top: 30px;
  }
}

@media (min-width: 600px) and (max-width: 736px) and (orientation: landscape) {
  .offline .interstitial-wrapper {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (min-width: 420px) and (max-width: 736px) and (min-height: 240px) and (max-height: 420px) and (orientation:landscape) {
  .interstitial-wrapper {
    margin-bottom: 100px;
  }
}

@media (min-height: 240px) and (orientation: landscape) {
  /*.offline .interstitial-wrapper {
    margin-bottom: 90px;
  }
  .icon-offline {
    margin-bottom: 20px;
  }*/
}

@media (max-height: 320px) and (orientation: landscape) {
  .icon-offline {
    margin-bottom: 0;
  }
  .offline .runner-container {
    top: 10px;
  }
}


@media (max-width: 240px) {
  .interstitial-wrapper {
    overflow: inherit;
    padding: 0 8px;
  }
}

.arcade-mode,
.arcade-mode .runner-container,
.arcade-mode .runner-canvas {
  image-rendering: high-quality;
  max-width: 100%;
  overflow: hidden;
}

.arcade-mode #buttons,
.arcade-mode #main-content {
  opacity: 0;
  overflow: hidden;
  display: none;
}

.arcade-mode .interstitial-wrapper {
  max-width: 100%;

}

.arcade-mode .runner-container {
  left: 0;
  margin: auto;
  right: 0;
  transform-origin: top center;
  transition: transform 250ms cubic-bezier(0.4, 0, 1, 1) 400ms;
  z-index: 2;
}

#registration-form .container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    color: #000;
    z-index: 99;
    background: #fff;
    border: 2px solid #000;
    border-radius: 10px;
    color: #000;
    font-family: 'Nexa';
    width: 300px;
    font-size: 15px;
}

#registration-form input[type="submit" i] {
    border: 1px solid #cda910;
    border-radius: 4px;
    background: #e6bd12;
    font-family: 'Nexa';
    font-weight: bold;
    padding: 15px 14px 12px 14px;
    width: 100%;
}

#registration-form input[type="submit" i]:hover {
    background: #ffd31d;
}

#wallet-label {
    margin-top: 12px;
    display: block;
}

#wallet {
    margin-bottom: 10px !important;
}

#registration-form input[type="text" i] {
    width: 95%;
    padding: 0px 7px;
    height: 29px;
    font-family: 'Nexa';
    margin: 2px 0px;
    border: 1px solid #000;
    border-radius: 4px;
}


#wl-spot {
    position: absolute;
    top: -27px;
    right: 26px;
    width: 100px;
}

@media (max-width: 1023px) {
    #leaderboard {
        bottom: 27px;
        top: unset !important;
        left: 0px;
        right: 0px;
        margin: 0 auto;
    }
    .how-to {
        display:none;
    }
    h1 {
        margin-top:40px;
    }
}

@media screen and (orientation:landscape) and (max-width: 470px) {
    #leaderboard {
        display:none;
    }
    body .logo img {
        width: 138px;
    }
    body .logo {
        padding-top: 30px;
    }
    body #game-screen {
        margin-top: 37px;
    }
    h1 {display:none;}
}

.overlay {
    position: fixed;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}


#leaderboard {
    position: fixed;
    top: 4%;
    left: 2%;
    background: #f2c712;
    border: 2px solid #000;
    border-radius: 10px;
    color: #000;
    font-family: 'Nexa';
    width: 295px;
}

#leaderboard .title {
    background-color: #fff;
    border-radius: 10px 10px 0px 0px;
    padding: 21px 32px 15px 32px;
    border-bottom: 1px solid #000;
}

#leaderboard .list {
    padding: 20px 25px;
}

#leaderboard .list li {
    margin: 1px 0px;
    display: inline-flex;
    font-weight:200;
}

#leaderboard .list li span {
    width: 145px;
    overflow: hidden;
    display: inline-flex;
    font-weight:bold;
}

#leaderboard h2 {
    margin: 0 0 0px;
    font-weight:bold;
    text-align:center;
}

#leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#game-screen {
    margin-top: 110px;
    position:relative;
}

/*.how-to {
    max-width: 387px;
    margin: -11px auto 0 auto ;
    display: block;
    padding-left: 112px;
}*/

.how-to {
    max-width: 350px;
    display: none;
    margin: -5px auto 0px auto;
    padding-left: 93px;
}