#source {
    border-top: #080 solid 1px;
    margin: 0;
    padding-top: .5em;
}

* {
    margin: 0;
    padding: 0;
}

p {
    margin-bottom: .4em;
}

table {
    width: 100%;
}

th {
    text-align: left;
}

/* MoNKey! client-specific styles */
div.monkey button {
	font-family: Georgia, Tahoma, Verdana, Arial;
    font-size: 20px;
    margin-right: .3em;
    background-color: #a06517;
    color: #ffffff;
    border: 0px;
    cursor: pointer;
}

div.monkey button:disabled {
	background-color: #cacaca;
	cursor: default;
}

div.monkey div.game ol {
    
    list-style: none;
    overflow: auto;
}

div.monkey div.game ol li {
    background: #abcbc3;
    color: #ffffff;
    float: left;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 5px;
}

div.monkey div.game ol li.current {
    background: #a06517;
    color: #ffffff;
}

div.monkey div.game ol li.open {
    background: #abcbc3;
    color: #ffffff;
}

div.monkey div.game p.rule-set-description, div.monkey div.game p.rule-set-name {
    text-align: left;
    font-weight: bold;
}

div.monkey div.game p.rule-set-name {
    margin-bottom: 0;
}

div.monkey div.game table {
    border: #a06517 solid 1px;
    border-collapse: collapse;
    width: auto;
}

div.monkey div.game tbody td.player-1.l {
    background-position: -19px 0;
}

div.monkey div.game tbody td.player-2.l {
    background-position: -19px -19px;
}

div.monkey div.game tbody td.player-3.l {
    background-position: -19px -38px;
}

div.monkey div.game tbody td.player-4.l {
    background-position: -19px -57px;
}

div.monkey div.game td {
    background: #fff url(tiles.gif) 0 21px no-repeat;
    border: #f0deb0 solid 1px;
    cursor: not-allowed;
    height: 21px;
    padding: 0;
    width: 21px;
}

div.monkey div.game td.empty {
    cursor: pointer;
}

div.monkey div.game td.player-1 {
    background-position: -38px 0;
}

div.monkey div.game td.player-2 {
    background-position: -38px -19px;
}

div.monkey div.game td.player-3 {
    background-position: -38px -38px;
}

div.monkey div.game td.player-4 {
    background-position: -38px -57px;
}

div.monkey div.game.player-1 td.hover {
    background-position: 0 0;
}

div.monkey div.game.player-2 td.hover {
    background-position: 0 -19px;
}

div.monkey div.game.player-3 td.hover {
    background-position: 0 -38px;
}

div.monkey div.game.player-4 td.hover {
    background-position: 0 -57px;
}

div.monkey div.lobby .action {
    text-align: center;
    width: 150px;
}

div.monkey div.lobby .rule-set {
    width: 60%;
}

div.monkey div.lobby tbody tr:hover {
    outline-style: solid;
    outline-width: 2px;
}

div.monkey div.lobby td {
    border-color: #eee;
    border-style: solid;
    border-width: 1px 0;
    font-size: medium;
    padding: .2em .5em;
}

div.monkey div.lobby td.no-games {
    color: #666;
    font-style: italic;
    text-align: center;
}

div.monkey div.lobby td.rule-set small {
    font-size: 14px;
}

div.monkey div.lobby td.slot {
    font-size: 14px;
    line-height: 1em;
}

div.monkey div.lobby td.slot span {
    color: #aaa;
    font-style: italic;
}

div.monkey div.lobby th {
    font-family: Georgia, serif;
}

div.monkey div.lobby tr {
    outline-color: #ccc;
}

div.monkey div.lobby tr.aborted td {
    color: #aaa;
}

div.monkey div.lobby tr.loss {
    outline-color: #c00;
}

div.monkey div.lobby tr.loss td {
    background: #fee;
    border-color: #fdd;
    color: #c00;
}

div.monkey div.lobby tr.win {
    outline-color: #080;
}

div.monkey div.lobby tr.win td {
    background: #efe;
    border-color: #dfd;
    color: #080;
}

div.monkey div.lobby tr.playing {
    outline-color: #fc0;
}

div.monkey div.lobby tr.playing td {
    background: #ffc;
    border-color: #fea;
}

div.listcontrol ul {
    border-bottom: #a06517 solid 1px;
    list-style: none;
    margin: 1em 0 .5em;
    overflow: auto;
}

div.listcontrol ul a {
    background: #abcbc3;
    color: #ffffff;
    display: block;
    outline: none;
    padding: .2em .5em;
    text-decoration: none;
}

div.listcontrol ul li {
    float: left;
    margin-left: .3em;
}

div.listcontrol.past li.past a,
div.listcontrol.play li.play a,
div.listcontrol.view li.view a {
    background-color: #a06517;
    color: #ffffff;
}

div.monkey p.player {
    color: #fff;
    font-size: medium;
    line-height: 40px;
    position: absolute;
    right: 55px;
    top: 30px;
}

div.monkey p.player a {
    color: #8f0;
}

div.monkey p.player a.alert {
    background: #8f0;
    color: #333;
}

div.monkey select {
    font-size: large;
    margin-right: .5em;
    width: 200px;
}

div.monkey table {
    margin: 0 auto 1em;
}

