@font-face {
  font-family: "AdvoCut";
  src: url('fonts/AdvoCut.ttf');
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  overflow: hidden;
}

body {
  font-family: AdvoCut;
  color: white;
  text-shadow: black -1px -1px, black 1px -1px, black -1px 1px, black 1px 1px;
  font-size: 20px;
  background-image: url('images/background.jpg');
  background-size: cover;
}

p {
  margin-left: 80px;
  margin-right: 80px;
}

p.hidden,
span.hidden {
  display: none;
}

a {
  text-decoration: none;
  color: #fff8a2;
  padding: 0 6px;
  margin-left: -6px;
  margin-right: -6px;
}

a:hover {
  border-radius: 6px;
  background-color: rgba(255, 248, 162, 0.4);
}

span.key {
  border-radius: 6px;
  border: 2px solid black;
  box-shadow: -2px 2px grey;
  background: -webkit-gradient(linear, 0 0, 100% 100%, from(#fffcea), to(#e3d692));
  background: linear-gradient(to bottom, #fffcea, #e3d692);
  background-color: #fffcea;
  padding: 3px 6px 0;
}

span.key:hover {
  box-shadow: inset -2px 2px grey;
  background: -webkit-gradient(linear, 0 0, 100% 100%, from(#e3d692), to(#afa15a));
  background: linear-gradient(to bottom, #e3d692, #afa15a);
  background-color: #e3d692;
}

div.rootContainer {
  position: relative;
  width: 1024px;
  height: 100%;
  display: inline-block;
}

div.container {
  position: absolute;
  top: 0;
  left: 0;
  width: 1024px;
  height: 100%;
  display: table;
}

div.container > div {
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

div.container > div.visible {
  opacity: 1;
  pointer-events: auto;
}

div.container > div,
div.container > canvas {
  display: table-cell;
  vertical-align: middle;
}

#gameContainer {
  position: relative;
  width: 1024px;
  height: 600px;
}

#actionhint > p {
  padding-top: 300px;
}

#scoreContainer {
  position: absolute;
  bottom: 0;
  right: 0;
  margin-right: 8px;
  font-size: 48px;
  box-shadow: none;
}

#gasContainer > img,
#scoreContainer > img {
  margin-right: 8px;
}

#gasContainer {
  position: absolute;
  bottom: 0;
  left: 0;
  margin-left: 8px;
  font-size: 48px;
  box-shadow: none;
}

#gasContainer span.super {
  font-size: 24px;
  padding-bottom: 24px;
  vertical-align: top;
}

#logo1 {
  position: absolute;
  top: 0;
  left: 0;
  margin: 8px;
  z-index: 1;
  transition: opacity 0.5s;
}

#logo2 {
  position: absolute;
  top: 0;
  right: 0;
  margin: 12px 8px;
  z-index: 1;
  transition: opacity 0.5s;
}

#logo2 a {
  padding: 0;
  margin: 0;
}

#logo2 a:hover {
  background-color: transparent;
}

#logo1.hidden,
#logo2.hidden {
  opacity: 0;
  pointer-events: none;
}

#gameCanvas {
  width: 1024px;
  height: 600px;
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#9eb7ff), to(#d4ebff));
  background: linear-gradient(to bottom, #9eb7ff, #d4ebff);
  background-size: 100% 192px;
  background-repeat: no-repeat;
  background-color: #d4ebff;
}

#gameover-overlay {
  width: 1024px;
  height: 600px;
  opacity: 0;
  -webkit-transition: opacity 0.5s;
  transition: opacity 0.5s;
  background-image: url('images/oil-splat.png');
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
}

.visible #gameover-overlay {
  opacity: 0.92;
  -webkit-animation: splat 1s;
  animation: splat 1s;
}

#gameover-text {
  font-size: 32px;
}

#survey-para {
  margin-top: 40px;
  margin-bottom: 40px;
}

@-webkit-keyframes splat {
  from {-webkit-transform: scale(1,0);}
  to {-webkit-transform: scale(1,1);}
}

@keyframes splat {
  from {transform: scale(1,0);}
  to {transform: scale(1,1);}
}

#credit {
  position: fixed;
  text-align: right;
  white-space: nowrap;
  bottom: 0;
  right: 0;
  font-family: sans;
  font-size: 12px;
  margin: 8px;
}

#share {
  position: fixed;
  text-align: left;
  bottom: 0;
  left: 0;
  margin: 8px;
}

#share > * {
  vertical-align: bottom;
}

#loading-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: black;
  opacity: 0;
  -webkit-transition: opacity 0.5s;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 1024;
}

#loading-overlay.visible {
  opacity: 1.0;
  pointer-events: auto;
}

.loading {
  display: inline-block;
  border: 6px solid #5f5f5f;
  border-top: 6px solid #f3f3f3;
  border-radius: 100%;
  height: 25px;
  width: 25px;
  -webkit-animation: rotate .6s infinite linear;
  animation: rotate .6s infinite linear;
}

@keyframes rotate {
  from {transform: rotate(0deg);}
  to {transform: rotate(359deg);}
}

@-webkit-keyframes rotate {
  from {-webkit-transform: rotate(0deg);}
  to {-webkit-transform: rotate(359deg);}
}

@media all and (max-width: 1279px) {

}

@media all and (max-width: 1023px) {

}

@media all and (max-width: 799px) {

}
