@font-face {
  font-family: 'PixelMix';
  src: url('assets/fonts/pixelmix.ttf') format('truetype');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #202124;
  color: #d7d7d7;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 40px;
}

canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  max-width: 100%;
}

.below-game {
  margin-top: 28px;
  width: 600px;
  max-width: 92vw;
  font-family: 'PixelMix', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.9;
  color: #d7d7d7;
}

.press-space {
  font-size: 15px;
  margin-bottom: 10px;
}

.try-label {
  margin-bottom: 2px;
}

.try-list {
  list-style: disc;
  padding-left: 28px;
  margin-bottom: 10px;
}

.try-list li {
  margin-bottom: 2px;
}

.err-code {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.tap-btn {
  display: none;  
}

@media (max-width: 640px) {
  .page {
    padding-top: 40px;
  }

  canvas {
    width: 100vw !important;
    height: auto !important;
  }

  .below-game {
    width: 92vw;
    font-size: 11px;
  }

  .press-space {
    font-size: 13px;
  }

  .tap-btn {
    display: block;
    margin-top: 16px;
    padding: 14px 40px;
    background: transparent;
    border: 1px solid #d7d7d7;
    color: #d7d7d7;
    font-family: 'PixelMix', 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 2px;
    touch-action: manipulation;
  }

  .tap-btn:active {
    background: rgba(255,255,255,0.08);
  }
}