html, body {
  height: 100%;
  min-width: 320px;
}

body {
  width: 100%;
  margin-bottom: 60px;
  background-color: #5A7;
}

header,
main,
footer {
  max-width: 1024px;
  margin: auto;
}

main {
  margin-top: 56px;
  min-height: 100%;
  margin-bottom: 56px;
}

i.fa {
  margin-right: 10px;
  margin-left: 10px;
}

a:hover {
  text-decoration: none;
}

footer {
  display: inline-block;
  position: fixed !important;
  bottom: 0;
  right: 0;
  left: 0;
  padding: .5rem 1.5rem;
  z-index: 50;
  height: 56px;
}

input {
  background-color: #222;
  background-color: transparent;
}

#main-header {
  padding: 15px 0 15px 0;
  font-family: 'Permanent Marker', cursive;
}

#clock {
  width: 320px;
  border-radius: 20px;
  padding: 10px;
  background: #222;
  background: #222 -webkit-radial-gradient(20% 80%, 60% 60%, rgba(255,255,255,.12), rgba(0,0,0,.2));
  box-shadow: 0px 2px .7px 1px #777, inset 0 -7px rgba(0,0,0,.4);
}

#display {
  width: 100%;
  height: 250px;
  margin-top: 20px;
  border-radius: 10px;
  margin: auto;
  padding: 20px;
  color: #DDD;
  background: #111;
  background: linear-gradient(to top left,  #000 20%, #444 100%);
  box-shadow: inset 3px 3px 4px #111;
}

.board-cell {
  width: 80px;
  height: 70px;
  margin: 0 -4px 0 0;
  border: 0;
  color: #CCC;
  background-color: transparent;
}

.board-cell:focus {
  outline: none;
}

/* Fixes issus with FontAwesome resizing buttons */
.board-cell i.fa {
  display: inline;
}

#statusdisplay {
  font-family: 'Permanent Marker', cursive;
}

.winner {
  color: limegreen;
}

.loser {
  color: red;
}


#buttons {
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
  display:flex;
  justify-content:center;
}

#buttons .btn {
  padding: 0.4rem 0.4rem;
}

#buttons label.active {
  background-color: #DDD;
  color: #222;
}

#buttons label i {
  font-size: 0.8em;
}

#buttons label.active i,
#reset-i {
  font-size: 1.33em !important;
}

#buttons .btn-group {
  padding-left: 0;
  padding-right: 0;
}

#buttons .btn-row {
  padding-top: 10px;
  padding-left: 5px;
  padding-right: 5px;
}




/* Utility Styles */
.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

.display-5 {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.1;
}

.white-shadow {
  color: #DDD;
}
.white-shadow:hover,
.white-shadow:focus {
  color: #FFF;
  text-shadow: 0 0 8px #FFF;
}

.disabled {
  pointer-events: none;
}

/* Borders for game board */
.bt {
  border-top: 2px solid #666 !important;
}
.br {
  border-right: 2px solid #666 !important;
}
.bb {
  border-bottom: 2px solid #666 !important;
}
.bl {
  border-left: 2px solid #666 !important;
}



/* Display size adjustments */
@media only screen and (max-width: 768px){
  footer {
    text-align: center;
  }

  .display-3 {
    font-size: 2.8rem;
  }

}