button, .btn {
  border: 2px solid #999;
  border-radius: 4px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s;
  outline: none;
}
button:hover, .btn:hover {
  transform: scale(1.03);
}
button:active:hover, .btn:active:hover {
  transform: scale(0.98);
}
button.primary, .btn.primary {
  background: #6622cc;
  color: white;
  border: 2px solid #6622cc;
}
button.warning, .btn.warning {
  background: #ff9966;
  color: white;
  border: 2px solid #ff9966;
}
button:disabled, .btn:disabled {
  background: #aaa;
  cursor: default;
  transform: none;
}

@keyframes setup-player-color-scale {
  0% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(0.9);
  }
}
#setup-player-list {
  list-style: none;
  padding: 0;
}
#setup-player-list li {
  padding: 12px;
  padding-left: 42px;
  position: relative;
}
#setup-player-list li:nth-child(even) {
  background: #ddd;
}
#setup-player-list li:not(:first-child) {
  border-top: 1px solid #aaa;
}
#setup-player-list li .color-marker {
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 18px;
  border-radius: 17px;
  animation: setup-player-color-scale 2s infinite;
}
#setup-player-list li .color-marker.connected {
  background: green;
}
#setup-player-list li .color-marker.disconnected {
  background: red;
}

#loadgame-info {
  display: none;
}
#loadgame-info.visible {
  display: block;
}

html, body {
  height: 100%;
}

.game-header {
  position: fixed;
  width: 100%;
  height: 64px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  z-index: 1;
  background-color: #6622cc;
  color: white;
}
.game-header h1 {
  text-align: center;
  line-height: 64px;
  margin-top: 0;
}

#game-canvas {
  margin: 4px 0 0 4px;
  position: fixed;
  top: 64px;
}

.game-sideboard {
  float: right;
  border-left: 2px solid #666;
  display: flex;
  flex-direction: column;
  padding-top: 64px;
  min-height: 100%;
  width: 35%;
  max-width: 450px;
}

.game-scoreboard {
  padding: 0 16px;
}

.game-misc {
  padding: 24px;
  flex-grow: 1;
}

.game-main-actions {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.game-main-actions button {
  flex-grow: 1;
}
.game-main-actions button:not(:last-child) {
  margin-right: 24px;
}

#scoreboard {
  list-style: none;
  padding: 0;
}
#scoreboard li {
  padding: 12px;
  position: relative;
  padding-left: 42px;
}
#scoreboard li.turn {
  font-weight: bold;
}
#scoreboard li:nth-child(even) {
  background: #ddd;
}
#scoreboard li:not(:first-child) {
  border-top: 1px solid #aaa;
}
#scoreboard .color-marker {
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 18px;
  border-radius: 17px;
}
#scoreboard .color-marker.connected {
  background: green;
}
#scoreboard .color-marker.disconnected {
  background: red;
}

#warning-box {
  background: #ff9966;
  padding: 16px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
#warning-box.visible {
  opacity: 1;
}

#loadgame-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.2);
}
#loadgame-popup.visible {
  display: block;
}
#loadgame-popup #loadgame-modal {
  z-index: 10000;
  position: fixed;
  background: white;
  top: 50%;
  left: 50%;
  margin-left: -250px;
  width: 500px;
  padding: 16px;
  height: 200px;
  margin-top: -100px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}
#loadgame-popup #loadgame-modal .buttons {
  position: absolute;
  bottom: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
}

.remote-piece {
  margin: 12px 0;
  height: 64px;
}
.remote-piece canvas {
  display: block;
  margin: 0 auto;
}
.remote-piece.selected {
  background: #ccc;
}

.game-header-remote {
  height: 64px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  z-index: 1;
  background-color: #6622cc;
  color: white;
  padding-top: 20px;
}
.game-header-remote h1 {
  text-align: center;
  margin: 0;
  font-size: 20px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  font-size: 16px;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: #eee;
}

.centered {
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  padding: 16px;
}

.center {
  text-align: center;
}

fieldset {
  border: 1px solid rgba(0, 0, 0, 0.3);
}

a {
  color: #6622cc;
}
a:visited {
  color: #6622cc;
}


/*# sourceMappingURL=style.css.map*/