html,
body {
  padding: 0;
  margin: 0;
  background-color: #eeeeee;

  --primary: #007bff;
}

body {
  padding-top: 16px;
}

body > header.nes-container.is-rounded {
  margin-top: 0;
}

a:link, a:visited, a:hover {
  color: var(--primary);
}

img {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  zoom: var(--zoom, 1);
}

.x2 {
  --zoom: 2;
}

.x3 {
  --zoom: 3;
}

.center-horizontal {
  margin: 0 auto;
  display: block;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 400px);
  grid-row-gap:    40px;
  grid-column-gap: 40px;
  justify-content: center;
  justify-items: center;
  margin-top: 40px;
}

.preview {
  width: 400px;
  height: 400px;
  image-rendering: pixelated;
  overflow: hidden;
  position: relative;
}

.preview.nes-container.is-rounded {
  padding: 0;
}

.preview > * {
  position: absolute;
}

.post {
  display: inline-block;
}

body > .nes-container.is-rounded {
  margin: 16px;
}

footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 40px;
  margin-top: 80px !important;
}

footer > p {
  margin: 0;
}

.scroll-horizontal {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

@media screen and (max-width: 840px) {
  .preview-grid {
    grid-template-columns: repeat(1, 90%);
    grid-row-gap: 1em;
    margin-top: 1em;
  }

  footer {
    grid-template-columns: repeat(1, 1fr);
    grid-row-gap: 1em;
    margin-top: 1em !important;
  }

  .preview {
    max-width: 100%;
  }
}
