html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.app {
    width: 100%;
    height: 100%;
}

.snookr-ui-app {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.snookr-ui-table {
    position: relative;
    flex: 1;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -o-user-select: none;
}

.snookr-ui-table .snookr-table-background {
    position: absolute;
    z-index: 1000;
}

.snookr-ui-table .snookr-table-canvas {
    position: absolute;
    z-index: 1001;
}

.snookr-ui-table .snookr-table-cue {
    position: absolute;
    z-index: 1002;
}


.snookr-ui-board {
    width: 60%;
    min-width: 600px;
    height: 50px;
    margin: 8px 20%;
    background: linear-gradient(to bottom, #281c26 0%,#565058 5%,#0f0f0e 30%,#30292b 98%,#231e1f 100%);
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 0 12px #444;

    font-family: "Segoe UI", arial, sans-serif;
    display: flex;
    flex-direction: row;
}

.snookr-ui-board__frame-count-panel {
    align-self: center;
}

.snookr-ui-player-panel {
    flex: 1;
    font-size: 1.5em;
    text-transform: uppercase;
}

.snookr-ui-player-panel .frames-won {
    padding: 0 0.5em;
}

.snookr-ui-player-panel .score {
    background: linear-gradient(to bottom, rgba(247, 240, 80, 0) 0%, #f7f050 4%, #df9909 57%, #df9909 96%, rgba(223, 153, 9, 0) 100%);
    font-size: 1em;
    font-weight: bold;
    width: 2.5em;
    border-radius: 4px;
    color: #000;
}

.snookr-ui-player-panel .player-name {
    flex: 1;
}

.snookr-ui-player-panel .next-rule {
    font-size: 0.7em;
    padding: 0.1em 0.3em;
    font-style: italic;
    display: none;
}

.snookr-ui-player-panel .current .next-rule {
//    display: block;
}

.snookr-ui-player-panel .break {
    font-size: 0.5em;
    padding: 0.3em;
    display: none;
}

.snookr-ui-player-panel .current .break {
//    display: block;
}

.snookr-ui-player-panel > div {
    text-align: center;
    height: 100%;
    box-sizing: border-box;
}

.snookr-ui-player-panel .score-container {
    height: 100%;
}

.snookr-ui-player-panel .current {
    background: transparent url("current-player-arrow-right.png") 4px 50% no-repeat;
}

.snookr-ui-player-panel ~ .snookr-ui-player-panel .current {
    background: transparent url("current-player-arrow-left.png") right 4px top 50% no-repeat;
}

.snookr-ui-player-panel .current.snookered {
    border-color: red;
}

.snookr-ui-player-panel .score-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 50px;
    padding-right: 0;
}

.snookr-ui-player-panel ~ .snookr-ui-player-panel .score-container {
    flex-direction: row-reverse;
    padding-left: 0;
    padding-right: 50px;
}

.snookr-ui-spinner-ball {
    width: 68px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.snookr-ui-spinner-ball > div {
    box-sizing: border-box;
    width: 64px;
    height: 64px;
    margin: 2px;
    border-radius: 50%;
    border: 1px solid #888;
    background: #ddd;
    position: relative;
}

.snookr-ui-spinner-ball > div > div {
    position: absolute;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(48, 96, 144, 0.4);
    top: 0;
    left: 0;
    transform: translate(27px, 27px);;
}

.snookr-ui-spinner-ball > div > div:after {
    display: block;
    content: '';
    position: absolute;
    box-sizing: border-box;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #000;
    top: 4px;
    left: 4px;
}
