/* Reset */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Dice */

.dice{
    position:fixed;
    width: 160px;
    height: 100px;
    top: 10px;
    right: 10px;
    border:1px solid #000;
    box-sizing: border-box;
}
.die {
    border-top: 1px solid #f1f1f1;
    width: 50px; height: 50px;
    border-radius: 10px;
    position: relative;
    margin: 10px;
    font-size: 6px;
    display: inline-block;
    box-shadow: 0px 5px 0 #CCC, 0 6px 3px #444, 0 10px 5px #999;
    background-image: linear-gradient(top, #fefefe, #f1f1f1 80%);
    position:absolute;
}
#die-1{
    top: 10px;
    left: 10px;
}
#die-2{
    top: 10px;
    left: 75px;
}

.dot {
    width: 20%;
    height: 20%;
    left: 50%;
    top: 50%;
    margin: -10%;
    background: #345;
    border-radius: 50%;
    display: block;
    position: absolute;
}

.die.one .dot {
    box-shadow: 0 .2em 0 #FFF
}
.die.two .dot {
    background: transparent;
    box-shadow: -2.3em -2.3em 0 #345,
             2.3em  2.3em 0 #345,
            -2.3em -2.3em 0 #FFF,
             2.3em  2.4em 0 #FFF
}
.die.three .dot {
    box-shadow: -2.3em -2.3em 0 #345,
             2.3em  2.3em 0 #345,
            -2.3em -2.3em 0 #FFF,
             2.3em  2.4em 0 #FFF,
                 0   .2em 0 #FFF
}
.die.four .dot {
    background: transparent;
        box-shadow: -2.3em -2.3em 0 #345,
                 2.3em  2.3em 0 #345,
                -2.3em  2.3em 0 #345,
                 2.3em -2.3em 0 #345,
                -2.3em -2.3em 0 #FFF,
                 2.3em  2.4em 0 #FFF,
                -2.3em  2.4em 0 #FFF,
                 2.3em -2.3em 0 #FFF
}
.die.five .dot {
    box-shadow: -2.3em -2.3em 0 #345,
             2.3em  2.3em 0 #345,
            -2.3em  2.3em 0 #345,
             2.3em -2.3em 0 #345,
            -2.3em -2.2em 0 #FFF,
             2.3em -2.2em 0 #FFF,
             2.3em  2.4em 0 #FFF,
            -2.3em  2.4em 0 #FFF,
                 0   .2em 0 #FFF
}
.die.six .dot {
    background: transparent;
    box-shadow: -2.3em -2.3em 0 #345,
            -2.3em      0 0 #345,
            -2.3em  2.3em 0 #345,
             2.3em -2.3em 0 #345,
             2.3em      0 0 #345,
             2.3em  2.3em 0 #345,
            -2.3em -2.1em 0 #FFF,
            -2.3em   .2em 0 #FFF,
            -2.3em  2.4em 0 #FFF,
             2.3em  2.4em 0 #FFF,
             2.3em   .2em 0 #FFF,
             2.3em -2.1em 0 #FFF
}


/* Tables */

#player-info, #property-info{
    position:fixed;
    top: 160px;
    right: 10px;
    width:500px;
    min-height:100px;
    border:1px solid #000;
}
#property-info {
    top: 300px;
    font-size: 8px;
}
#player-info table, #property-info table {
    width: 100%;
    border-collapse: collapse;
}
#player-info table tr td, #property-info table tr td{
    padding:4px 0px;
    margin:0;
    border-bottom: 1px solid #ccc;
    position: relative;
}
#player-info table tr:last-child td, #property-info table tr:last-child td{
    border-bottom: none;
}
#player-info table tr.active td {
    background-color: yellow;
}

#property-info table tr td span.owned-by{
    position: absolute;
    display: block;
    width:6px;
    height: 6px;
    right:0px;
    bottom:0;
}

/* actions */

#actions{
    position: fixed;
    width: 300px;
    height: 100px;
    right: 200px;
    border:1px solid #000;
    padding: 10px;
    box-sizing: border-box;
}


/* board */

#board{
    position: relative;
    margin: 10px 0 0 10px;
}

#board .space{
    position:absolute;
    display:block;
    border: 1px solid #000;
    box-sizing: border-box;
    font-size: 8px;
    text-align: center;
}

#board .space span{
    position: relative;
    display: block;
    top:50%;
    transform: translateY(-50%);
    text-shadow: 0px 0px 2px rgba(255,255,255,.9);
}

#message{
    position:fixed;
    width:500px;
    height:20px;
    top: 125px;
    right: 10px;
    text-align:right;
}


/* Players */


.player{
    position:absolute;
    width: 16px;
    height: 16px;
    z-index: 100;
}

#player-0{
    margin-top:-20px;
    margin-left:-20px;
}
#player-1{
    margin-top:-20px;
    margin-left:20px;
}

#player-2{
    margin-top:20px;
    margin-left:-20px;
}

#player-3{
    margin-top:20px;
    margin-left:20px;
}

/* dialog */

#dialog{

    position: absolute;
    width: 530px;
    height: 530px;
    left: 120px;
    top: 120px;
    border:1px solid #000;
    display: none;

}

#dialog table{
    width:50%;
    float:left;
    margin-top:10px;
}

#dialog table td{
    padding:2px;
}
