@font-face {
  font-family: Tutbury;
  src: url(/fonts/TUTBUR__.TTF);
}

.bg-game,.bg-messages {
  font-family: 'Tutbury';
}

/* The panel is fluid and only capped at the old 434px (432 of board plus
   1px of border each side). A fixed width made every phone from 361px to
   about 463px wide (375, 390, 412, 428...) miss both media-query steps below
   and keep the 434px board, which then stuck out past the navbar and the
   footer. */
.panel {
  padding-left: 0px;
  padding-right: 0px;
  width: 100%;
  max-width: 434px;
  font-size: 16px;
  border-color: #fff;
  box-shadow: none;
}

/* The board is fluid: the picture stretches to the panel and each of the 81
   squares is one ninth of it, so the two always agree at any width. The cap
   is the artwork size the old fixed rules gave it. */
.bg-board {
    margin-right: 0px;
    margin-left: 0px;
    width: 100%;
    max-width: 432px;
    background-size: 100% 100%;
    background-image: url(/4/board-game-vertical-432.png);
    background-repeat: no-repeat;
    /* The nine squares of a row sit next to each other with no space between
       them in the template. nowrap keeps the row on one line when the ninth
       square's sub-pixel rounding would otherwise push it to the next one. */
    white-space: nowrap;
}
.bg-board img {
    width: calc(100% / 9);
    height: auto;
}

@media (max-width: 361px) {
  .col-xs-12,.board {
    margin-left: 0px;
    padding-left: 0px;
  }
}

/* The board and the panel are fluid (see .panel and .bg-board above), so
   there are no more fixed-size steps here. The old rules pinned the panel to
   360px and then 320px and the squares to 40px and 35px, which is what left
   every phone between those widths with a board wider than the page. The
   .bg-chat pins went with them: a fixed 360px chat would overflow a 340px
   phone just like the board did. */

/* Below 464px the container's 15px padding would hold the board under its
   434px cap, so the game page drops that padding and the board runs edge to
   edge, at the same width as the navbar and the footer. 464px is the width at
   which the capped panel first fills the padded container (434 + 2 x 15), so
   the board size does not jump at the breakpoint. */
@media (max-width: 464px) {
  .bg-pagebody {
    padding-left: 0px;
    padding-right: 0px;
    margin-left: 0px;
    margin-right: 0px;
  }
}

/* The 288px artwork is the same drawing as the 432px one at less than half
   the bytes, and a small phone gets the small download. The fluid sizing
   above scales either picture to the board. */
@media (max-width: 321px) {
  .bg-board {
    background-image: url(/4/board-game-vertical-288.png);
  }
}

.panel-body {
    padding-left: 0px;
    padding-top: 0px;
    padding-right: 0px;
}

.panel-title {
    font-size: 30px;
}
.panel-footer {
    font-size: 20px;
    background-color: #fff;
    border-color: #fff;
}

.list-group {
    width: 100%;
    padding-right: 0px;
    padding-left: 0px;
}
.list-group-item {
    width: 100%;
    padding: 3px;
    margin-right: 0px;
    margin-left: 0px;
}

p {
    padding-left: 5px;
    padding-right: 5px;
}

/* 1 - #000
   2 - #827f00
   3 - #b2b2b2
   4 - #3f3f85 */

.bg-4-white { color: white; }

.autumn {
    background-image: radial-gradient(27% 185%, #F9F6F1 0%, #D7D0C5 100%);
}

.bg-game-header {
  width: 100%;
  height: auto;
}
.bg-game-header td {
    margin-right: 0px;
    margin-left: 0px;
    padding-right: 2px;
    padding-left: 0px;
}

/*
#bg-chat-screen {
    width: 434px;
}
#bg-chat-input {
    width: 434px;
}
*/
