
/****************************************
  ==== RESETS
****************************************/

html,body,div,canvas { margin: 0; padding: 0; }
::-moz-selection { color: #333; text-shadow: none; }
::selection {  color: #333; text-shadow: none; }
.clear:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
.clear { display: inline-table; clear: both; }
/* Hides from IE-mac \*/ * html .clear { height: 1%; } .clear { display: block; } /* End hide from IE-mac */

/****************************************
  ==== LAYOUT
****************************************/

html, body { width: 100%; height: 100%; font-family: Helvetica, Verdana, Arial, sans-serif; }
body {
  background-image: url("bg_tile.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
 }
p.header, p.footer { display: none; }
div.logo { width: 204px; height: 38px; float: left; background: url(logo.png) 0 0 no-repeat; position: relative; z-index: 10; }
div.title { height: 38px; line-height: 38px; padding: 0 10px; margin: 0 1px 0 0; float: right; color: #333; text-align: right; font-size: 18px; position: relative; z-index: 10; }
.template-wrap { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }
.template-wrap canvas { margin: 0 0 10px 0; position: relative; z-index: 9; box-shadow: 0 10px 30px rgba(0,0,0,0.2); -moz-box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.fullscreen { float: right; position: relative; z-index: 10; }

#gameContainer {
    background-color: #000000 !important;
    width: 100%;
    height: 100%;
}
canvas {
    width: 100%;
    height: 100%;
    display: block;
}

div#lights {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0%;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  overflow-x:hidden;
}

div#loadingBox {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  background-color: rgba(0,0,0,1);
}

.wink-out {
    -webkit-animation: 0.5s forwards ease-in-out wink-out;
    animation: 0.5s forwards ease-in-out wink-out;
}

@-webkit-keyframes wink-out {
    0% { transform: scaleX(1) scaleY(1); }
    50% { transform: scaleX(1) scaleY(0.3); }
    100% { transform: scaleX(0) scaleY(0); }
}

@keyframes wink-out {
  0% { transform: scaleX(1) scaleY(1); }
  50% { transform: scaleX(1) scaleY(0.3); }
  100% { transform: scaleX(0) scaleY(0); }
}

.fade-bg {
    -webkit-animation: 0.5s 0.85s forwards ease-in-out fade-bg;
    animation: 0.5s 0.85s forwards ease-in-out fade-bg;
}

@-webkit-keyframes fade-bg {
    0% { background-color: rgba(0,0,0,1); }
    100% { background-color: rgba(0,0,0,0); }
}

@keyframes fade-bg {
    0% { background-color: rgba(0,0,0,1); }
    100% { background-color: rgba(0,0,0,0); }
}

div#loadingLogoContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
}

img#loadingLogo,img#outroLogo {
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.grow-shrink {
  -webkit-animation: 5s forwards ease-in-out infinite grow-shrink;
  animation: 5s forwards ease-in-out infinite grow-shrink;
}
@-webkit-keyframes grow-shrink {
    0% { transform:  scale(1) translateY(0%); opacity: 100%; }
    50% { transform: scale(0.95) translateY(2%); opacity: 80%; }
    100% { transform: scale(1) translateY(0%); opacity: 100%; }
}
@keyframes grow-shrink {
	0% { transform:  scale(1) translateY(0%); opacity: 100%; }
	50% { transform: scale(0.95) translateY(2%); opacity: 80%; }
	100% { transform: scale(1) translateY(0%); opacity: 100%; }
}

div#progressContainer {
  width: 100%;
  height: 20%;
  position: absolute;
  top: 72%;
  left: 0;
  right: 0;
}

div#progressBg {
  max-width: 40%;
  max-height: 5px;
  background-color: #aaa;
  border-radius: 3px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

div#progressBar {
  background: #fff;
  background-size: contain;
  background-repeat: no-repeat;
  width: 0%;
  height: 100%;
  border-radius: 3px;
}

div#progressFg {
  max-width: 45vh;
  max-height: 45vh;
  background-image: url("loading_4_frame.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

div#progressFgLight {
  max-width: 45vh;
  max-height: 45vh;
  background-image: url("loading_3_light.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

div#loadingInfo {
  width: 100%;
  height: 50%;
  top: 40%;
  position: absolute;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 3vh;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0.15vh 0.15vh #75070a;
  letter-spacing: 0;
  color: white;
}

div#unsupported_browser_message {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -50px;
  margin-left: -200px;
  width: 400px;
  height: 100px;
  font-family: "Monaco", sans-serif;
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  font-size: 16px;
}
