body {
    color: #000;
    background-color: #ddd;
    cursor: default;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 2em;
    -webkit-user-drag: none;
    -webkit-user-select: none;
}
a {
    color: #666666;
    text-decoration: none;
    -webkit-transition-property: color;
    -webkit-transition-duration: .3s;
}

h1, h2{
    margin: 0;
    padding: 0;
    text-shadow: 0 1px #fff;
    text-align: center;
    font-size: 2.5em;
}
h2 {
    font-size: 2em;
}
h3 {
    text-shadow: 0 1px #fff;
    font-size: 1.5em;
    text-align: center;
}

div {
    vertical-align: top;
}

#full iframe {
    border: 0;
    width: 100%;
    height: 650px;
}
#copy {
    padding: 20px;
    text-align: center;
}
#board {
    width:450px;
    height:486px;
}

#side {
    height: 486px;
}
#board canvas {
    background-color: #c0c0c0;
    cursor: pointer;
    -webkit-touch-callout: none;
    -ms-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -ms-touch-action: none;
    touch-action: none;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
}

#board canvas:active {
    cursor: pointer;
}

#info {
    display: inline-block;
    width: 450px;
    height: 60px;
    background-color: #c0c0c0;
    margin-bottom: 10px;
    line-height:60px;
}

#score {
    display: inline-block;
    min-width: 50px;
    height: 100%;
    padding-left: 20px;
}

#logo {
    height: 56px;
}
#logo div {
    position: absolute;
    top: 0;
    bottom: 0;
    left:0;
    right: 0;
    margin: auto;
    height: 38px;
    width:197px;;
    background: url("images/logo.png") 0 76px;
}


#preview, div.colors {
  /*position: absolute;*/
  /*content: '';*/
  /*z-index: -1;*/
  width: 260px;
  height: 40px;
  background-image: url(images/ada-ss.png);
  background-size: 260px auto;
}

#settings {
    height: 100%;
    display: none;
    z-index: 10;
}

#settings p {
    text-align: center;
    padding: 4px;
}

#scores {
    height: 100%;
}

#full {
    display: none;
}

#fs {
    width: 740px;
}

#fs td {
    vertical-align: top;
}

table .os {
    width: 100%;
    font-size: 13px;
}
table .os thead {
    background-color: #bbb;
}
table .os td {
    padding: 2px;
    border-bottom: 1px #bbb dotted;
    border-spacing: 0;
}

#b11 {
    display: block;
    width: 150px;
    margin-left: 2px;
}
.rnd {
    position: relative;
    display: inline-block;

    padding: 10px;
    background-color: #c0c0c0;
    border: 1px solid #ccc;
    border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: 1px 1px #fff, inset 0 -20px 60px -20px #999;
    -webkit-box-shadow: 1px 1px #fff, inset 0 -20px 60px -20px #999;
    -moz-box-shadow: 1px 1px #fff, inset 0 -20px 60px -20px #999;
}

.o {
    display: none;
    margin-top: 10px;
    padding:10px;
    border: 2px solid red;
}

p.h {
    margin-top: 0;
    text-align: center;
}

.bottom {
    position: absolute;
    bottom: 0;
    margin: 0;
    width:260px;
}

.r {
    float: right;
}
.right {
    width: 260px;
    margin-left: 10px;
}

.scores table {
    border-spacing: 0;
    width: 100%;
    word-wrap: break-word;
}
.scores table th {
    border-bottom: 1px black solid;
    border-spacing: 0;
    font-weight:bold;
    padding: 2px;
}

.scores table tbody {
    display: block;
    width: 260px;
    overflow: auto;
    max-height: 260px;
}

#gs {display: none}
.scores td {
    width: 60px;
    text-align: center;
    border-bottom: 1px #a9a9a9 dotted;
}
.scores td:first-child {
    width: 120px;
    text-align: left;
}
.scores td:last-child {
    width: 80px;
    text-align: right;
}

.scores span {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    border-top: 1px solid black;
}
#over {
    position: relative;
    width: 200px;
    height: 40px;
    margin: auto;
    z-index: 10;
    top: -60%;
    display: none;
}

#name {
    display: none;
    position: relative;
    width: 200px;
    margin: auto;
    z-index: 11;
    top: -70%;
}

#timer {
    display: none;
    position: relative;
    width: 300px;
    height: 120px;
    margin: auto;
    z-index: 12;
    top: -70%;
}

#name input {
    display: block;
    width: 100%;
    margin: 15px auto;
    font-size: 16px;
    text-align: center;
    border-radius: 5px;
    -moz-border-radius: 5px;
}

#screen {
    position: absolute;
    top :10px;
    background-color: gray;
    opacity: 0.7;
    z-index: 5;
    display: none;
}
#screen-timer {
    position: absolute;
    top :10px;
    background-color: gray;
    opacity: 0.7;
    z-index: 5;
    display: none;
}

 /* buttons */
button {
    outline: none;
    width: 75%;
    background-color: #e8e8e8;
    display: inline-block;
    position: relative;
    color: black;
    font-weight:bold;
    margin: 2px 2px 8px 12%;

    height: 25px;
    line-height: normal;
    border: 1px solid #999;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-box-align: center;
}
button:hover {
    background-color: white;
}

button:disabled, button:disabled:active  {
    background-color: #e6e6e6;
    color: gray;
}
button::-moz-focus-inner { border: 0; }

button:active, button.selected {
    background-color: #999;
    color: white;
    box-shadow: 0 0 , inset 0 -20px 20px -20px #ddd;
    -webkit-box-shadow: 0 0 , inset 0 -20px 20px -20px #ddd;
    -moz-box-shadow: 0 0 , inset 0 -20px 20px -20px #ddd;
}

button.selected:hover {
    background-color: #777;
}

.radiogroup button {
    width: 25%;
    margin-left: 2px;
    margin-right: -6px;
    outline: 0 !important;
    -moz-border-radius: 0;
    border-radius: 0;
}
.radiogroup button:first-child {
    margin-left: 12%;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-bottomleft: 5px;
}
.radiogroup button:last-child {
    margin-right: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    -moz-border-radius-topright: 5px;
    -moz-border-radius-bottomright: 5px;
}
.preview button {
    width: 37.5%;
}