/* Settings and dependencies */
/* http://meyerweb.com/eric/tools/css/reset/
   v4.0 | 20180602
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline; }

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block; }

/* HTML5 hidden-attribute fix for newer browsers */
*[hidden] {
  display: none; }

body {
  line-height: 1; }

ol, ul {
  list-style: none; }

blockquote, q {
  quotes: none; }

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none; }

table {
  border-collapse: collapse;
  border-spacing: 0; }

/* Custom styles */
@font-face {
  font-family: 'visitorwf';
  src: url("../fonts/visitor1-webfont.woff2") format("woff2"), url("../fonts/visitor1-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal; }

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

body {
  -ms-flex-align: center;
  align-items: center;
  background: radial-gradient(#bbe6f2, #5d98a8);
  box-sizing: border-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  font-family: 'visitorwf', monospace;
  height: 100%;
  overflow: hidden;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none; }
  body:after {
    background-image: url(../images/bg-a.png);
    background-size: 250px 250px;
    bottom: 0;
    content: '';
    left: 0;
    opacity: 0.5;
    position: absolute;
    right: 0;
    top: 0; }
  .wrong-orientation body {
    background: #cdebf3; }

.orientation-cover {
  -ms-flex-align: center;
  align-items: center;
  background: #cdebf3;
  bottom: 0;
  display: none;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: center;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10; }
  .wrong-orientation .orientation-cover {
    display: -ms-flexbox;
    display: flex; }
  .orientation-cover p {
    color: #5c0522;
    font-size: 24px;
    margin-bottom: 40px;
    padding: 0 40px;
    text-align: center; }
  .orientation-cover img {
    display: block;
    margin: 0 auto;
    max-width: 200px; }

.game {
  position: relative;
  z-index: 5; }

.game canvas {
  animation: fade-in 1000ms forwards;
  background: #fff;
  opacity: 0;
  image-rendering: optimizeSpeed;
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-crisp-edges;
  image-rendering: -o-pixelated;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor; }

@keyframes fade-in {
  to {
    opacity: 1; } }
