/* 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. */

html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}

.icon {
  -webkit-user-select: none;
  user-select: none;
  display: inline-block;
}

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


/* Offline page */

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

.offline .runner-container {
  height: 150px;
  max-width: 600px;
  overflow: hidden;
  position: absolute;
  top: 35px;
  width: 44px;
  transition: transform 250ms cubic-bezier(0.4, 0.0, 1, 1) .4s;
}

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

.offline .controller {
  background: rgba(247, 247, 247, .1);
  height: 100vh;
  left: 0;
  position: absolute;
  top: 0;
  width: 100vw;
  z-index: 1;
}

#offline-resources {
  display: none;
}

@media (max-width: 420px) {
  .suggested-left > #control-buttons, .suggested-right > #control-buttons {
    float: none;
  }
  .snackbar {
    left: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
  }
}

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



/*custom css*/

body {
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; 
}


.arcade-mode .runner-container {
  z-index: 2;
  transform-origin: top center;
  left: 0;
  margin: auto;
  right: 0;  
  image-rendering: pixelated;
  max-width: 100%;
  overflow: hidden;  
}

#intro {
  background-image: url('assets/intro.gif');
  background-size: contain;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 99;
  background-color: black; 
  /*border: 10px solid #64adff; */
  pointer-events: none;
}

.game-started #intro{
  z-index: 0;
  display: none;
}

.game-started #b-top,
.game-started #b-bottom,
.game-started #b-left,
.game-started #b-right {
  background-color: #fff;
}

#b-thin-top, #b-thin-bottom, #b-thin-left, #b-thin-right {
  background: #9c9c9c;
  position: fixed;
  z-index: 99999;
}
#b-thin-left, #b-thin-right {
  top: 0; bottom: 0;
  width: 1px;
}
#b-thin-left { left: 0; }
#b-thin-right { right: 0; }
#b-thin-top, #b-thin-bottom {
  left: 0; right: 0;
  height: 1px;
}
#b-thin-top { top: 0; }
#b-thin-bottom { bottom: 0; }

#b-top, #b-bottom, #b-left, #b-right {
  background: #64adff;
  position: fixed;
  z-index: 9999;
  transition: background .4s ease;
}
#b-left, #b-right {
  top: 0; bottom: 0;
  width: 10px;
}
#b-left { left: 0; }
#b-right { right: 0; }
#b-top, #b-bottom {
  left: 0; right: 0;
  height: 10px;
}
#b-top { top: 0; }
#b-bottom { bottom: 0; }

@media (max-width: 768px) {
  #b-left, #b-right {
    width: 5px;
  }

  #b-top, #b-bottom {
    height: 5px;
  }

}

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

