/* The 2015 stylesheet, with a few 2026 additions at the end. */
body {
  margin: 0 auto;
  max-width: 600px;
  padding-top: 32px;

  color: #333;
  background-color: rgb(79, 76, 76);

  -webkit-font-smoothing: antialiased;
  font-size: 1.125em;
  line-height: 1.5em;
  font-family: 'Helvetica Neue', Verdana, Helvetica, Arial, sans-serif;
}

h1, h2, h3 {
  color: #000;
}

h1 {
  font-size: 2.5em
}

h2 {
  font-size: 2em
}

h3 {
  font-size: 1.5em
}

.score {
  text-align: center;
}

table {
  margin: 0 auto;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1);
}

table, th, td {
  user-select: none;
  border: 1px solid black;
  background-color: rgb(22, 168, 9);
}

.piece {
  cursor: pointer;
  height: 40px;
  width: 40px;
  border-radius: 50px;
}

.black {
  background-color: #000;
}
.white {
  background-color: #dbdbdb;
}

.buttons {
  display: flex;
  justify-content: center;

  padding-top: 30px;
  padding-bottom: 30px;
}

.button {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  flex-grow: 1;
  cursor: pointer;
  background-color: #fff;
  display: inline-block;

  width: 120px;
  margin-left: 10px;
  margin-right: 10px;

  line-height: 38px;
  text-align: center;
  font-weight: 600;
}

.tooltip {
    display: inline;
    position: relative;
}

.tooltip:hover:after{
    color: #fff;
    background: rgba(0,0,0,.8);
    border-radius: 5px;

    content: attr(title);

    width: 28px;
    bottom: 26px;
    z-index: 98;
    padding: 5px 15px;
    transform: translateX(30px) translateY(-10px);
    position: absolute;
}

/* 2026 */
* { box-sizing: border-box; }
body { padding: 24px 16px 32px; }
h2.score { color: #000; margin: 0 0 16px; }
.status { text-align: center; color: #eee; min-height: 1.5em; margin: 16px 0 0; }
.piece { width: min(40px, calc((100vw - 64px) / 8)); height: min(40px, calc((100vw - 64px) / 8)); }
.button { touch-action: manipulation; }
td { touch-action: manipulation; }
.about { color: #bbb; font-size: 13px; line-height: 1.5; text-align: center; }
.about a { color: #9fd4ff; }
@media (max-width: 480px) {
  .button { width: auto; margin: 0 4px; font-size: 15px; white-space: nowrap; }
}
