body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
}

#site-wrapper {
  min-height: calc(100% - 40px);
  display: grid;
  grid-template-rows: auto 1fr auto;

  background-image: url('../img/multi-color-background.png');
  background-repeat: no-repeat;
  background-size: cover;
}

h1, h2 {
  margin: 0;
}

header hgroup {
  display: flex;
  gap: 1em;
  padding: 1em;
}

header h1 img {
  width: 62px;
}

header h2 img {
  max-width: 230px;
  width: 100%;
}

main {
  align-self: center;
}

#game-container {
  width: 80vw;
  min-width: 256px;
  max-width: 1200px;
  height: calc(80vw * 9 / 16);
  min-height: calc(256px * 9 / 16);
  max-height: calc(1200px * 9 / 16);
  margin: 15px auto 80px;
  display: block;
  border: none;
  outline: none;
  overflow: hidden;
  border: 0.5em solid #FFFFFF;
  background-color: #FFFFFF;
}

footer {
  background-color: #BF7DFF;
  min-height: 100px;
  display: grid;
  grid-template-areas:
    "links links"
    "producer-credits funding-credits"
    "fine-print fine-print"
  ;
  justify-content: center;
  align-items: flex-start;
  row-gap: 1em;
  padding: 1em;
  color: #FFFFFF;
  font-family: Arial;
  font-size: 12px;
  line-height: 1.2em;
  text-align: center;
}

.links {
  grid-area: links  ;
  list-style: none;
  padding: 0;
  font-size: 16px;
}

.producer-credits {
  grid-area: producer-credits;
}

.funding-credits {
  grid-area: funding-credits;
}

.fine-print {
  grid-area: fine-print;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .logos {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2em;
}

footer .logos a {
  display: flex;
}

footer .logos a.primal-screen-logo {
  margin-bottom: 3px;
}

.hidden {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media screen and (max-width: 700px) {
  footer {
    grid-template-areas:
      "links"
      "producer-credits"
      "funding-credits"
      "fine-print"
    ;
    row-gap: 3em;
  }
}

@media screen and (max-width: 600px) {
  #game-container {
    border-width: 0.25em;
  }
}
