@font-face {
  font-family: 'MicrogrammaDBolExtRegular';
  src: url("microgramma-webfont.eot");
  src: url("microgramma-webfont.eot?#iefix") format("embedded-opentype"), url("microgramma-webfont.woff") format("woff"), url("microgramma-webfont.ttf") format("truetype"), url("microgramma-webfont.svg#MicrogrammaDBolExtRegular") format("svg");
  font-weight: normal;
  font-style: normal; }

@font-face {
  font-family: cengoth;
  src: url(cengoth.ttf) format("truetype"); }

@font-face {
  font-family: cengothbold;
  src: url(cengothbold.ttf) format("truetype"); }

@-webkit-keyframes slidedown {
  from {
    margin-top: -400px; }

  to {
    margin-top: 30px; } }

@-moz-keyframes slidedown {
  from {
    margin-top: -400px; }

  to {
    margin-top: 30px; } }

@-webkit-keyframes fadeout {
  0% {
    opacity: .99; }

  100% {
    opacity: .7; } }

@-moz-keyframes fadeout {
  0% {
    opacity: .99; }

  100% {
    opacity: .7; } }

#loader {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  background-color: #111;
  background-image: url(lellebah_advance.jpg);
  background-size: cover;
  background-repeat: no-repeat; }
  #loader h1 {
    color: #221207;
    font-family: 'MicrogrammaDBolExtRegular';
    margin: -17px 15px 10px 15px;
    font-size: 28px; }
  #loader h2 {
    color: rgba(255, 255, 255, 0.28);
    font-family: 'MicrogrammaDBolExtRegular';
    margin: -17px 15px 14px 15px;
    font-size: 46px; }
  #loader #loaderbox {
    -webkit-animation-duration: .3s;
    -webkit-animation-name: slidedown;
    -webkit-animation-timing-function: ease-in;
    -moz-animation-duration: .3s;
    -moz-animation-name: slidedown;
    -moz-animation-timing-function: ease-in;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    position: relative;
    margin: 30px auto;
    width: 570px;
    height: 600px;
    background-color: #948160;
    font-family: 'cengothbold';
    text-align: center;
    overflow: hidden; }
  #loader #logo {
    margin: 10px auto; }
  #loader p {
    color: #221207;
    margin: 55px 15px 10px 15px; }
  #loader .def {
    display: inline-block;
    margin: 15px 15px 10px 15px;
    width: 100px;
    height: 100px;
    border-radius: 50px;
    background-color: #854629;
    color: #111;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 255, 255, 0.3); }
  #loader .def:hover {
    cursor: pointer;
    background-color: #5f311c;
    color: white; }
  #loader .def .d {
    margin-top: 22px;
    font-size: 25px; }
  #loader .def .s {
    font-family: 'cengoth'; }
  #loader #alpha {
    position: absolute;
    top: 41px;
    right: -124px;
    color: #854629;
    font-family: MicrogrammaDBolExtRegular;
    margin: -9px 15px 10px 15px;
    font-size: 14px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    color: #948160;
    width: 300px;
    background: #221207; }
  #loader #hider {
    -webkit-animation-duration: 17s;
    -webkit-animation-name: fadeout;
    -webkit-animation-timing-function: ease;
    -moz-animation-duration: 17s;
    -moz-animation-name: fadeout;
    -moz-animation-timing-function: ease;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    background-color: black;
    opacity: .7; }
  #loader #download-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 62px auto 14px auto;
    width: 440px; }
  #loader #download-bar .inner {
    height: 8px;
    width: 0%;
    background-color: #854629; }

/* -------------------- game css ----------------------- */
#game {
  display: none;
  background-color: #111;
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  font-family: 'MicrogrammaDBolExtRegular'; }
  #game #overlay {
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    overflow: hidden;
    z-index: 1;
    user-select: text; }
    #game #overlay #inputbuffer {
      width: 0px;
      height: 0px; }
  #game #main-canvas {
    z-index: 0; }
  #game #controls {
    display: none; }
  #game #loadingtext {
    position: absolute;
    top: 250px;
    left: 150px;
    font-size: 2em;
    color: white; }
  #game * {
    margin: 0px;
    padding: 0px;
    user-select: none; }
  #game #topbar {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 40px;
    font-size: 1em;
    color: white;
    background-color: rgba(10, 10, 10, 0.5);
    z-index: 3; }
    #game #topbar #fps {
      margin-left: 300px; }
  #game #bottombar {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 40px;
    font-size: 1em;
    color: white;
    background-color: rgba(10, 10, 10, 0.5);
    z-index: 3; }
  #game #menu {
    display: none;
    position: absolute;
    top: 45px;
    left: 0px;
    width: 200px;
    bottom: 45px;
    font-size: 1em;
    color: white;
    background-color: rgba(10, 10, 10, 0.5); }
  #game #selection {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100;
    height: 100;
    background-color: rgba(200, 200, 200, 0.3);
    z-index: 3; }
  #game .unit {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 4px;
    width: 40px;
    font-size: 1em;
    color: white; }
  #game .selected {
    border: 1px solid rgba(0, 100, 0, 0.5); }
  #game .brush {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 40px;
    width: 40px;
    font-size: 1em;
    color: white; }
  #game .there {
    border: 1px solid rgba(100, 100, 100, 0.5); }
  #game #chat {
    position: absolute;
    bottom: 55px;
    left: 10px;
    height: 400px;
    width: 230px;
    z-index: 4;
    user-select: text;
    font-size: .6em;
    color: white;
    text-shadow: 0 0 0.3em #888, 0 0 0.3em #888; }
    #game #chat .lines {
      position: absolute;
      bottom: 0; }
    #game #chat .name {
      display: inline-block;
      color: green; }
    #game #chat input {
      width: 100%;
      color: white;
      border: none;
      background-color: rgba(10, 10, 10, 0.05);
      font-size: 12px;
      font-family: 'MicrogrammaDBolExtRegular'; }
      #game #chat input:focus {
        outline: none;
        background-color: rgba(10, 10, 10, 0.5); }
  #game body {
    background: #111; }
  #game .theme, #game .window, #game .selbar, #game #req {
    background: #30313a;
    color: #cdcdcd;
    border-radius: 15px;
    overflow: hidden; }
    #game .theme h1, #game .window h1, #game .selbar h1, #game #req h1 {
      line-height: 15px; }
    #game .theme p, #game .window p, #game .selbar p, #game #req p {
      font-family: Helvetica, Arial, sans-serif;
      background: #161815;
      border-radius: 4px;
      padding: 4px; }
    #game .theme table, #game .window table, #game .selbar table, #game #req table {
      width: 100%; }
    #game .theme td, #game .window td, #game .selbar td, #game #req td {
      color: #bababa; }
    #game .theme button, #game .window button, #game .selbar button, #game #req button {
      border: none;
      background: #4a4b4d;
      border-radius: 4px;
      padding: 4px;
      margin: 3px;
      font-family: 'MicrogrammaDBolExtRegular';
      color: #cdcdcd; }
      #game .theme button:hover, #game .window button:hover, #game .selbar button:hover, #game #req button:hover {
        background: #636467;
        color: #e7e7e7; }
      #game .theme button:active, #game .window button:active, #game .selbar button:active, #game #req button:active {
        background: #313233;
        color: #b3b3b3; }
  #game .window {
    position: absolute;
    top: 100;
    left: 400;
    width: 400px;
    min-height: 247px;
    padding: 24px 10px 10px 10px; }
  #game .selbar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: none; }
    #game .selbar .selbarinner {
      width: 80%;
      margin: 0px auto;
      text-align: center; }
    #game .selbar .selbutton {
      position: relative;
      display: inline-block;
      width: 47px;
      height: 35px;
      font-size: 10px;
      background: #4a4b4d;
      border-radius: 4px 4px 0px 0px;
      margin: 0px 3px;
      text-align: center;
      padding-top: 10px;
      font-color: black; }
      #game .selbar .selbutton img {
        position: absolute;
        left: 0px;
        right: 0px; }
      #game .selbar .selbutton:hover {
        background: #636467;
        color: #e7e7e7; }
      #game .selbar .selbutton:active {
        background: #313233;
        color: #b3b3b3; }
      #game .selbar .selbutton.break {
        margin-left: 10px; }
      #game .selbar .selbutton.ability {
        background: #28616a; }
        #game .selbar .selbutton.ability:hover {
          background: #36838f; }
        #game .selbar .selbutton.ability:active {
          background: #1a3f45; }
      #game .selbar .selbutton .health {
        position: absolute;
        top: 0px;
        left: 5px;
        width: 38px;
        height: 5px;
        background: #181819; }
        #game .selbar .selbutton .health .life {
          height: 5px;
          background: #9a9a9a; }
  #game .winbar {
    position: absolute;
    top: 0;
    width: 100%;
    background: none; }
    #game .winbar .winbarinner {
      width: 700px;
      height: 27px;
      margin: 0px auto;
      text-align: center;
      background: #4a4b4d;
      border-radius: 0px 0px 4px 4px; }
    #game .winbar .winline {
      position: absolute;
      margin: 5px;
      height: 18px;
      width: 690px;
      border-radius: 4px;
      background: #181819; }
      #game .winbar .winline .win {
        height: 18px;
        border-radius: 4px;
        background: #9a9a9a; }
  #game #reqouter {
    position: absolute;
    bottom: 100px;
    height: 500px;
    width: 100%; }
  #game #req {
    position: relative;
    height: 500px;
    width: 700px;
    margin: auto; }
    #game #req .requnit {
      float: left;
      width: 124px;
      height: 100px;
      margin: 5px;
      padding: 3px;
      border-radius: 4px;
      background: #181819;
      text-align: right; }
      #game #req .requnit:hover {
        background: #510A0A;
        color: #e7e7e7; }
      #game #req .requnit:active {
        background: black;
        color: #b3b3b3; }
  #game .hidden {
    display: none; }
  #game #qprint {
    position: absolute;
    top: 100px;
    left: 20px;
    width: 800px;
    height: 700px;
    font-family: "courier";
    font-size: 10px;
    color: white; }
  #game #debugcanvas {
    position: absolute;
    top: 60px;
    right: 20px; }
  #game #directions {
    position: fixed;
    top: 0;
    background: none;
    z-index: 2;
    user-select: text;
    color: white;
    width: 700px;
    left: 50%;
    margin-left: -350px;
    padding: 4px;
    text-align: center;
    background: rgba(44, 50, 75, 0.7);
    border-radius: 0px 0px 4px 4px; }
    #game #directions h1 {
      font-size: 44px; }
    #game #directions p {
      font-family: cengoth; }
    #game #directions strong {
      color: #f86e21; }
    #game #directions a {
      color: #f86e21; }
  #game svg {
    position: fixed;
    background: rgba(0, 0, 0, 0);
    margin: 3em auto;
    width: 100%;
    height: 100%;
    display: block; }
