html, body {
  margin: 0;
  padding: 0;
  background: #faf8ef;
  color: #776e65;
  font-family: "Comic Sans MS", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}

body {
  margin: 2rem 0;
}

.container {
    width: 61.5rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.screen {
    background-color: #faf8ef;
}

.screen.gamepad {
    display: none;
}

.grid-container {
    border-radius: 0.375rem;
    background-color: #bbada0;
    padding: 0.375rem;
}

.grid-row {
    font-size: 0;
}

.grid-row:after {
    content: " ";
    display: block;
    clear: both;
}

.grid-cell {
    float: left;
    border-radius: 0.125rem;
    margin: 0.375rem;
    text-align: center;
}

.gamepad {
    padding: 0 2rem;
}

#product .grid-cell,
.multiple .grid-cell,
#candidate .grid-cell {
    background: #cdc1b4;
    cursor: default;
}

#product .grid-cell.active,
.multiple .grid-cell.active,
#candidate .grid-cell.active {
    background: #eee4da;
}

#product .grid-cell {
    width: 6rem;
    height: 2.25rem;
    line-height: 2.25rem;
    font-size: 1.5rem;
}

.multiple .grid-cell {
    height: 4rem;
    width: 4rem;
    line-height: 4rem;
    font-size: 2.25rem;
}

#candidate .grid-cell {
    height: 6.375rem;
    width: 6.375rem;
    line-height: 6.375rem;
    font-size: 3rem;
}

#candidate .grid-cell.pointer:hover {
    cursor: pointer;
    background: #e7dcd2;
}

.gamepad .symbol {
    width: 4.375rem;
    height: 15rem;
    line-height: 15rem;
    font-size: 6rem;
}

.button {
    border-width: 0;
    border-radius: 0.25rem;
    line-height: 3rem;
    font-size: 1.25rem;
    padding: 0 2rem;
    background-color: #bbada0;
    color: #fff;
}

.button:hover {
    cursor: pointer;
    background-color: #eee4da;
}

.notes {
    margin-top: 1.25rem;
    line-height: 4rem;
    font-size: 2rem;
    text-align: center;
}

.result {
    display: none;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #eee4da;
    height: 2rem;
    line-height: 2rem;
    color: #b8b3aa;
    text-align: right;
}

.footer-inner {
    padding-right: 1rem;
}

@media screen and (max-width: 990px) {
    html, body {
        font-size: 12px;
    }
}

@media screen and (max-width: 770px) {
    html, body {
        font-size: 10px;
    }
}

@media screen and (max-width: 640px) {
    html, body {
        font-size: 8px;
    }
}

@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: portrait) {
  html {
    transform: rotate(-90deg);
    transform-origin: left top;
    width: 100vh;
    overflow-x: hidden;
    position: absolute;
    top: 100%;
    left: 0;
  }
  .footer {
      display: none;
  }
}
