html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      background: #f7f1e3;
      color: #25302b;
      font-family: Arial, Helvetica, sans-serif;
    }

    #app {
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      background: #f7f1e3;
    }

    #stage {
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 118px;
    }

    #timeCanvas {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
    }

    #topText {
      position: absolute;
      left: 32px;
      top: 22px;
      right: 32px;
      text-align: center;
      line-height: 1.05;
    }

    #label {
      font-size: 34px;
      font-weight: bold;
      letter-spacing: 0;
      color: #2f4438;
      text-transform: uppercase;
    }

    #mainTime {
      margin-top: 6px;
      font-size: 96px;
      font-weight: bold;
      letter-spacing: 0;
      color: #17362f;
    }

    #subText {
      margin-top: 4px;
      font-size: 30px;
      color: #4d6258;
    }

    #panel {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 118px;
      background: #fff9ec;
      border-top: 4px solid #e4d7bd;
    }

    .navItem {
      position: absolute;
      top: 17px;
      height: 82px;
      border: 4px solid #d6c7a7;
      background: #fffdf6;
      color: #25302b;
      text-align: center;
      font-size: 28px;
      font-weight: bold;
      line-height: 82px;
      overflow: hidden;
      padding: 0;
      cursor: pointer;
      font-family: Arial, Helvetica, sans-serif;
    }

    #navClock { left: 2%; width: 22%; }
    #navNew { left: 26%; width: 22%; }
    #navView { left: 50%; width: 22%; }
    #navSaved { left: 74%; width: 24%; }

    .navItem.focused {
      border-color: #286a5a;
      outline: 6px solid #286a5a;
      outline-offset: -12px;
    }

    .navRed {
      border-color: #9e3b35;
      background: #bf3f37;
      color: #fffdf6;
    }

    .navGreen {
      border-color: #35723e;
      background: #438b4c;
      color: #fffdf6;
    }

    .navYellow {
      border-color: #a47a22;
      background: #d4a437;
      color: #25302b;
    }

    .navBlue {
      border-color: #2d5689;
      background: #386aa9;
      color: #fffdf6;
    }

    #overlay {
      display: none;
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 118px;
      background: rgba(247, 241, 227, 0.96);
      z-index: 5;
    }

    #overlayBox {
      position: absolute;
      left: 6%;
      top: 8%;
      right: 6%;
      bottom: 8%;
      border: 4px solid #d6c7a7;
      background: #fffdf6;
    }

    #overlayTitle {
      position: absolute;
      left: 28px;
      top: 22px;
      right: 28px;
      font-size: 44px;
      font-weight: bold;
      color: #17362f;
      text-align: center;
    }

    #overlayContent {
      position: absolute;
      left: 34px;
      top: 92px;
      right: 34px;
      bottom: 28px;
      font-size: 34px;
      color: #25302b;
    }

    .choice {
      height: 62px;
      line-height: 62px;
      border: 4px solid #d6c7a7;
      margin-bottom: 12px;
      padding-left: 20px;
      padding-right: 20px;
      background: #fff9ec;
      overflow: hidden;
      cursor: pointer;
    }

    .choice.focused {
      border-color: #286a5a;
      background: #e6f2e4;
    }

    .choiceGrid {
      overflow: hidden;
    }

    .choiceHalf {
      float: left;
      width: 44%;
      margin-right: 2%;
    }

    .fieldRow {
      text-align: center;
      margin-top: 24px;
      font-size: 40px;
    }

    .field {
      display: inline-block;
      min-width: 128px;
      height: 82px;
      line-height: 82px;
      margin: 0 10px;
      border: 4px solid #d6c7a7;
      background: #fff9ec;
      font-size: 54px;
      font-weight: bold;
      text-align: center;
      cursor: pointer;
    }

    .field.focused {
      border-color: #286a5a;
      background: #e6f2e4;
    }

    .hint {
      text-align: center;
      margin-top: 22px;
      font-size: 26px;
      color: #5d6b63;
    }

    .smallButton {
      display: inline-block;
      min-width: 86px;
      height: 62px;
      line-height: 54px;
      margin: 0 10px;
      border: 4px solid #d6c7a7;
      background: #fff9ec;
      color: #25302b;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 34px;
      font-weight: bold;
      text-align: center;
      cursor: pointer;
    }

    .startButton {
      min-width: 170px;
      background: #438b4c;
      border-color: #35723e;
      color: #fffdf6;
      font-size: 30px;
    }

@media screen and (max-height: 760px) {
  #stage {
    bottom: 96px;
  }

  #topText {
    top: 12px;
  }

  #label {
    font-size: 26px;
  }

  #mainTime {
    margin-top: 2px;
    font-size: 68px;
  }

  #subText {
    margin-top: 2px;
    font-size: 22px;
  }

  #panel {
    height: 96px;
  }

  .navItem {
    top: 12px;
    height: 68px;
    line-height: 68px;
    font-size: 23px;
    border-width: 3px;
  }

  .navItem.focused {
    outline-width: 5px;
    outline-offset: -10px;
  }

  #overlay {
    bottom: 96px;
  }

  #overlayTitle {
    top: 14px;
    font-size: 34px;
  }

  #overlayContent {
    top: 70px;
    font-size: 28px;
  }

  .choice {
    height: 52px;
    line-height: 52px;
    margin-bottom: 9px;
  }

  .fieldRow {
    margin-top: 14px;
    font-size: 32px;
  }

  .field {
    min-width: 104px;
    height: 64px;
    line-height: 64px;
    font-size: 42px;
  }

  .smallButton {
    height: 52px;
    line-height: 44px;
    font-size: 28px;
  }

  .hint {
    margin-top: 14px;
    font-size: 22px;
  }
}

@media screen and (orientation: portrait) {
  #stage {
    bottom: 160px;
  }

  #topText {
    left: 14px;
    right: 14px;
    top: 12px;
  }

  #label {
    font-size: 24px;
  }

  #mainTime {
    font-size: 58px;
  }

  #subText {
    font-size: 20px;
  }

  #panel {
    height: 160px;
  }

  .navItem {
    height: 58px;
    line-height: 58px;
    font-size: 22px;
    top: 12px;
  }

  #navClock { left: 3%; width: 45%; }
  #navNew { left: 52%; width: 45%; }
  #navView { left: 3%; width: 45%; top: 88px; }
  #navSaved { left: 52%; width: 45%; top: 88px; }

  #overlay {
    bottom: 160px;
  }

  #overlayBox {
    left: 4%;
    right: 4%;
    top: 5%;
    bottom: 5%;
  }

  #overlayTitle {
    font-size: 30px;
  }

  #overlayContent {
    left: 20px;
    right: 20px;
    top: 66px;
    font-size: 24px;
  }
}

