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


html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Pacifico";
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  touch-action: none;
}




body {
  background-color: rgb(6,27,65);
  min-height: 100vh;
  min-width: 100vw;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
}

.canvas-wrapper {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
}

canvas {
  display: block;
  touch-action: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  pointer-events: auto;
  -webkit-touch-callout: none;
  position: relative;
  max-width: 100%;
  height: auto;
  /* Background image: local fond.png first, fallback to remote */
  background-image: url('fond.png'), url('http://s2js.com/img/etc/flappyback.png');
  background-size: cover;
  background-position: flex-start;
  background-repeat: no-repeat;
}

@media (min-width: 900px) {
  .canvas-wrapper {
    width: 100vw;
    height: 100vh;
    margin: 0 auto;
  }
  canvas {
    max-height: 95vh;
    max-width: 100vw;
    display: block;
  }
}