﻿@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: local('Material Icons'), local('MaterialIcons-Regular'), url(MaterialIcons-Regular.woff) format('woff');
}

/* latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'), url(roboto-regular.woff2) format('woff2');
}
/* latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: local('Roboto Bold'), local('Roboto-Bold'), url(roboto-bold.woff2) format('woff2');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
i.material-icons {
  font-family: 'Material Icons';
  font-size: 1em;
  direction: ltr;
  display: inline-block;
  padding-top: .25rem;
  vertical-align: top;
  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;
  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;
  /* Support for IE. */
  font-feature-settings: 'liga';
  pointer-events: none;
}
::-webkit-scrollbar {
  width: .6rem;
  height: 10px;
}
::-webkit-scrollbar-button {
  width: 0px;
  height: 0px;
}
::-webkit-scrollbar-thumb {
  background: #e1e1e1;
  border: 2px solid #000;
  border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}
::-webkit-scrollbar-thumb:active {
  background: #bababa;
}
::-webkit-scrollbar-track {
  background: transparent;
  border: 0px none #ffffff;
  border-radius: 50px;
}
::-webkit-scrollbar-track:hover {
  background: transparent;
}
::-webkit-scrollbar-track:active {
  background: transparent;
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* General */
@-ms-viewport {
  user-zoom: fixed;
}
html {
  font-size: 1em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
body {
  font-size: 1em;
  margin: 0;
  background: #000;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  /*background-image: url('bg.jpg');*/
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  color: #FFF;
  -webkit-touch-callout: none;
}
body, span, a, p, div, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', 'Trebuchet MS', 'Microsoft Yahei', 'Hiragino Sans GB', sans-serif;
}

span.rank-score {
  color: #ffabab;
}

div.has-replay:hover span {
  text-decoration: underline;
  cursor: pointer;
}

a.btn i {
  float: left;
}

a.btn.btn-inline i {
  float: none;
}

#stats tbody tr:not(:last-of-type) {
  margin: 1rem 0;
}
#stats tbody tr th:not(:first-child) {
  font-size: 1.3rem;
}

a.link {
  text-decoration: underline;
}
a.btn {
  display: block;
  padding: 0.22rem 0.6rem 0.4rem;
  margin: .7rem auto;
  width: 75%;
  height: 2rem;
  box-shadow: 0 0 0 .1rem #999, 0 0 .3rem .2rem rgba(0, 0, 0, .5);
  border-radius: 1px;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.6rem;
  color: #FFF;
  background-color: #000;
  cursor: pointer;
  transition: background-color .5s ease;
  box-sizing: border-box;
}
a.btn:hover {
  background-color: #222;
  box-shadow: 0 0 0 .1rem #fff;
  transition: background-color .1s ease;
}
a.btn.highlight {
  // box-shadow: 0 0 1rem #fff;
  // background: #444;
  box-shadow: 0 0 0 0.2rem #3fc5ff, 0 0 1rem #21a3d8;
}
a.btn.btn-inline {
  display: inline-block;
  margin: 0;
}
a.btn.btn-inline:not(:first-child) {
  margin-left: .7rem;
}
div.btn-line {
  margin: .7rem auto;
}
div.btn-container {
  margin: 1rem auto;
}
div.btn-container.btn-container-bottom {
  position: absolute;
  width: 100%;
  bottom: 0;
}
#msg {
  text-shadow: #000 0 0 10px;
}
textarea {
  resize: none;
}
textarea:focus {
  outline-color: #BFB;
}

a {
  color: #FFF;
  text-decoration: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
th {
  padding: 0;
  font-weight: normal;
}
td {
  padding: 0;
}
/* Header */
h1 {
  color: #FFF;
  font-size: 2rem;
  margin: 0.65em 0;
}
h1 {
  color: #FFF;
  font-size: 1.5rem;
  margin: 0.65em 0;
}
h3 {
  margin: 0;
  text-transform: uppercase;
  font-weight: normal;
  text-align: center;
}
nav > ul {
  margin: 0;
  padding: 0;
}
.button,
nav li {
  display: block;
}
/* Content */
#content {
  display: table;
  margin: auto;
  margin-top: 80px;
  background: rgba(0, 0, 0, 0.7);
}
/* Canvases */
#sprite {
  display: none;
}
/*#bg {
  position: fixed;
  top:0;
  left:0;
  height:100%;
  width:100%;
  z-index: -1;
  opacity: 0;
  transition: opacity .5s ease-in;
}*/
#bg {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}
#a {
  position: relative;
  overflow: hidden;
  float: left;
}
#b {
  box-shadow: 0 0 0 1px #fff, 0 0 20px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  float: left;
  z-index: 3;
}
#c {
  padding: 0 0.5em;
  position: relative;
  overflow: hidden;
  float: left;
}
#bgStack {
  background: #000;
  position: absolute;
  z-index: 2;
}
#hold,
#preview,
#stack {
  position: absolute;
  z-index: 2;
}
#active {
  position: absolute;
  z-index: 3;
}
#msgdiv {
  position: absolute;
  text-align: center;
  width: 100%;
  height: 100%;
  line-height: 642px;
  z-index: 4;
}
#msg {
  font-weight: bold;
  font-size: 4rem;
  color: #FFF;
  margin: 0;
  z-index: 4;
  display: inline-block;
  vertical-align: middle;
}
#d {
  float: left;
}
/* Stats */
#stats {
  display: block;
  position: absolute;
  padding: 0;
}
#stats tbody {
  display: block;
}
#stats tr {
  display: block;
  width: 100%;
}
#stats th {
  text-transform: uppercase;
  display: block;
  width: 100%;
  vertical-align: top;
}
#stats td {
  font-size: 220%;
  font-weight: 900;
  text-align: center;
  line-height: 1;
  display: block;
  width: 100%;
}
#level {
	font-size: 50%;
}
#time {
  text-align: center;
  display: block;
}
#time > canvas {
  width: 100%;
  height: 1.125em;
}
#score {
  text-align: center;
  font-weight: 900;
  font-size: 0.9em;
  display: block;
}
/* Menus */
.menu {
  text-align: center;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  // margin-left: -100%;
  position: absolute;
  background: rgba(0, 0, 0, 0);
  top: 0;
  z-index: 50;
  opacity: 0;
  /*-webkit-transition: opacity .4s ease-in-out;
     -moz-transition: opacity .4s ease-in-out;
       -o-transition: opacity .4s ease-in-out;*/
  transition: opacity .5s ease,
              background .2s ease,
              transform .3s ease,
              margin .2s ease;
  -webkit-transition: opacity .5s ease,
              background .2s ease,
              transform .3s ease,
              margin .2s ease;
  transform: translateX(-100%);
  -webkit-transform: translateX(-100%);
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}
.on {
  background: rgba(0, 0, 0, 0.8);
  opacity: 1;
  transform: translateX(0);
  -webkit-transform: translateX(0);
  pointer-events: auto;
  // margin-left: 0;
}
/* Controls */
#controls {
  margin: 1em auto;
}
#controls th {
  font-weight: bold;
  text-align: left;
  line-height: 1.6;
}
#controls td {
  font-weight: bold;
  cursor: pointer;
  display: block;
  margin: 0.2em 0 0.2em 1.5em;
  text-align: center;
  width: 6em;
  line-height: 1.6;
  background: #111;
  border-radius: 5px;
}
#controls td:hover {
  background: #191919;
}
#controls td:active {
  background: #1A1A1A;
}
/* Settings */
.left,
.right {
  color: #aaa;
  font-weight: normal;
  font-style: normal;
  cursor: pointer;
  -webkit-transition: all .1s ease-out;
  transition: all .1s ease-out;
}
.left:hover,
.right:hover {
  color: #fff;
}
i.left.material-icons, i.right.material-icons {
  pointer-events: all;
}
#settings {
  margin: 0 0 1em;
}
#settings > div {
  margin: 0.3em 0;
}
#settings b {
  display: inline-block;
  width: 8.5rem;
  font-size: 0.9em;
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}
#settings span {
  text-align: center;
  font-size: .9em;
  font-weight: bold;
  display: inline-block;
  width: 4rem;
}
#leader div {
  margin: 1em 0;
}
#leader span {
  text-align: right;
  font-weight: bold;
  display: inline-block;
  overflow: hidden;
}
#replay #replaydata {
  width: 85%;
  height: 50%;
  font-family: 'Lucida Console', monospace;
  font-size: 0.5em;
  word-wrap: break-word;
  word-break: break-all;
  background-color: #000;
  color: #BFB;
  margin: 1rem auto;
  display: block;
}
/* Special Menus */
#go {
  background: none;
  // background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .6) 90%);
  transition: opacity .8s ease-out .2s;
}
#go ul {
  width: 100%;
  position: absolute;
  bottom: 1em;
}
#pause {
  background: none;
  transition: opacity .8s ease-out;
}
#pause ul {
  width: 100%;
  position: absolute;
  bottom: 2em;
}
/* Touch Buttons */
.touchbutton {
  position: absolute;
  font-family: Arial, sans-serif;
  text-align: center;
  color: #FFF;
  border-radius: 5px;
  opacity: 0;
  /* padding: 0.3rem 0.6rem 0.4rem; */
  background: #444;
  z-index: 100;
}
