.chess-clear {
    clear: both;
}

.chess-lib-dragging {
    cursor: move;
    touch-action: none;
}

.chess-lib-board {
    position: relative;
}

.chess-lib-board-inner {
    border: 1px solid black;
    position: absolute;
    left: 15px;
    top: 0;
}

.chess-lib-board-cells-item {
    position: absolute;
    box-sizing: content-box;
}

.chess-lib-board-cells-item.light {
    background-image: url("/images/cells.png");
    background-position: -60px 0;
}

.chess-lib-board-cells-item.dark {
    background-image: url("/images/cells.png");
}

.chess-lib-board-cells-item.light.colored {
    background-image: url("/images/cells-colored.png");
    background-position: -60px 0;
}
.chess-lib-board-cells-item.dark.colored {
    background-image: url("/images/cells-colored.png");
}

.chess-lib-board-cells-item.active {
    border: 3px solid red;
}

.chess-lib-board-cells-item.correct {
    border: 3px solid lightgreen;
    background: url("/images/red_flag.png"), url("/images/cells.png");
    background-repeat: repeat-x, repeat;
}

.chess-lib-board-cells-item.correct.light {
    border: 3px solid lightgreen;
    background: url("/images/red_flag.png"), url("/images/cells.png");
    background-repeat: repeat-x, repeat;
    background-position: 0 0, -60px 0;
}

.chess-lib-board-cells-item.incorrect {
    border: 3px solid red;
    background: url("/images/red_mine.png"), url("/images/cells.png");
    background-repeat: no-repeat, repeat;
    background-position: 2px 2px, 0 0;
}

.chess-lib-board-cells-item.incorrect.light {
    border: 3px solid red;
    background: url("/images/red_mine.png"), url("/images/cells.png");
    background-repeat: no-repeat, repeat;
    background-position: 2px 2px, -60px 0;
}

.chess-lib-board-cells-item.threat {
    background: url("/images/red_angry.png"), url("/images/cells.png");
    background-repeat: no-repeat, repeat;
}

.chess-lib-board-cells-item.threat.light {
    background: url("/images/red_angry.png"), url("/images/cells.png");
    background-repeat: no-repeat, repeat;
    background-position: 0 0, -60px 0;
}

.chess-lib-board-cells-item.correct,
.chess-lib-board-cells-item.incorrect {
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.chess-lib-board-pieces-item {
    position: absolute;
    background-position: center !important;
    background-size: contain !important;
}

.chess-lib-board-pieces-item.movable {
    cursor: move;
    touch-action: none;
}

.chess-lib-board-targets-item {
    background: rgba(0, 255, 0, .5);
    cursor: pointer;
    position: absolute;
    z-index: 1;
}

.chess-lib-board-overlay-item {
    position: absolute;
    z-index: 3;
}

.chess-lib-board-overlay-item.chess-hover {
    background: rgba(255, 0, 128, .8);
    outline: 13px solid rgba(255, 0, 128, .8);
}

.chess-lib-board-upgrade {
    position: absolute;
    z-index: 3;
}

.chess-lib-board-upgrade-background {
    background-color: gray;
    opacity: .3;
    width: 100%;
    height: 100%;
}

.chess-lib-board-upgrade-cell {
    background-color: yellow;
    position: absolute;
}

.chess-lib-board-upgrade-panel {
    border-radius: 15px;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;

    background-color: lightblue;
    padding: 10px;
    position: absolute;
}

.chess-lib-board-upgrade-panel-item {
    cursor: pointer;
    float: left;
    margin: 3px;
}

.chess-lib-board-ai-loader {
    border-radius: 15px;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;

    background-color: lightblue;
    height: 80px;
    padding: 10px;
    position: absolute;
    width: 250px;
}

.chess-lib-board-ai-loader-label {
    font-family: sans-serif;
    text-align: center;
}

.chess-lib-board-ai-loader-progress {
    background: scroll transparent url(/images/load-progress.gif) center center no-repeat;
    height: 20px;
    margin: 15px 0 5px;
}

.chess-lib-board-delay-overlay {
    width: 482px;
    height: 482px;
    opacity: 0.3;
    display: none;
    background: #000000;
    right:-2px;
    position: absolute;
}

.chess-lib-board-labels {
    font-family: Trebuchet MS;
    font-weight: bold;
}

.chess-lib-board-labels-horz-item {
    position: absolute;
    text-align: center;
    bottom: -6px;
}

.chess-lib-board-labels-vert-item {
    position: absolute;
    left: -4px;
}

.chess-lib-piece-dragger {
    cursor: move;
    pointer-events: none;
    position: absolute;
    touch-action: none;
    z-index: 2;
    background-size: contain;
}

.chess-lib-variation-dialog {
    position: absolute;
    z-index: 3;
}

.chess-lib-variation-dialog-background {
    position: absolute;
}

.chess-lib-variation-dialog-panel {
    position: absolute;
    width: 200px;
}

.chess-lib-variation-dialog-button {
    display: block;
    width: 100%;
}

.chess-lib-history {
    font: 12px arial, helvetica, sans-serif;
}

.chess-replay-left {
    float: left;
    padding: 0;
}

.chess-replay-history-panel,
.chess-replay-best-moves-panel {
    margin-left: 500px;
}

.chess-replay-best-moves-panel {
    margin-top: 30px;
    border: 1px solid #000000;
    height: 360px;
}

.chess-dev-recording-panel-best-moves-panel {
    border: 1px solid #000000;
    height: 500px;
    width: 515px;
}

.chess-lib-best-moves-panel-best-moves-box {
    margin-left: 10px;
    margin-top: 10px;
}

.chess-lib-best-moves-panel {
    overflow: auto;
}

.chess-lib-history-variation {
    color: #777;
    padding-left: 40px;
    margin-top:10px;
}

.chess-lib-history-variation .chess-lib-history-point {
    color: #777;
}

.chess-lib-history-point,
.chess-lib-history-point:active,
.chess-lib-history-point:visited {
    color: #1e7ec8;
    font-weight: bold;
}

.chess-lib-history-point:hover,
.chess-lib-history-point:focus {
    color: #c77405;
}

.chess-lib-history.chess-disabled .chess-lib-history-point {
    color: black;
    cursor: text;
}

.chess-lib-history .chess-lib-history-point.current {
    background-color: black;
    color: white;
}

.chess-lib-history-variation .chess-lib-history-point.current {
    background-color: #00F;
}

.chess-lib-playback-panel {
    text-align: center;
    padding: 5px 0;
}

.chess-lib-playback-panel .ui-state-default {
    padding: 0;
    outline: none;
}

.chess-application-left.affix{
    position: fixed;
}

.chess-application-left.affix-bottom{
    position: absolute;
}

.ux-timer-view {
    background-color: black;
    color: yellow;
    font-family: monospace;
    font-size: 12pt;
    font-weight: bold;
    margin-bottom: 5px;
    padding: 2px 5px 0;
    width: 50px;
    white-space: nowrap;
    box-sizing: content-box;
}
