body {
    max-width: 1000px;
    margin: auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    user-select: none;
}

.fullscreen {
    max-width: none;
    margin: 0;
    background-color: white;
}

.tree-wrapper {
    box-sizing: border-box;
    width: 100%;
    height: 500px;
    overflow: auto;
    overscroll-behavior-x: contain;
    padding-left: 100px;
    padding-right: 100px;
    padding-bottom: 50px;
    padding-top: 50px;
}

.tree-wrapper svg {
    display: block;
    margin: auto;
}

.fullscreen .tree-wrapper {
    height: 100%;
}

.fullscreen .top-bar {
    position: absolute;
    top: 1em;
    left: 1em;
    z-index: 1;
    width: calc(100% - 2em);
}

.fullscreen .top-bar * {
    user-select: none;
}

.info-bar {
    color: #666;
    font-size: 0.8em;
}

.fullscreen .info-bar {
    position: absolute;
    top: 3em;
    right: 1em;
    z-index: 1;
}

svg .link {
    stroke: #999;
    stroke-width: 2px;
}

svg .link.best {
    stroke: #000;
    stroke-width: 3px;
}

svg .board-line {
    stroke: #444;
    stroke-width: 1px;
}

svg .board-strike {
    stroke: #111;
    stroke-width: 6px;
    stroke-linecap: round;
}

svg circle.board-token {
    stroke: red;
    fill: none;
    stroke-width: 4px;
}

svg line.board-token {
    stroke: blue;
    stroke-width: 4px;
}

svg .incomplete .board-background {
    stroke-dasharray: 5, 5;
}

svg .board-background {
    fill: #fff;
    stroke-width: 2px;
}

svg .draw .board-background {
    fill: #ccc;
}

svg .winner1 .board-background {
    fill: #ccf;
}

svg .winner2 .board-background {
    fill: #fcc;
}

svg .player1 .board-background {
    stroke: blue;
}

svg .player2 .board-background {
    stroke: red;
}

svg .focused .board-background {
    stroke-width: 6px;
}

svg .alpha, svg .beta {
    fill: none;
}

svg .alpha1 .alpha, svg .beta1 .beta {
    fill: blue;
}

svg .alpha-1 .alpha, svg .beta-1 .beta {
    fill: red;
}

svg .alpha0 .alpha, svg .beta0 .beta {
    fill: gray;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 2.5em;
}

.top-bar .buttons {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.top-bar .buttons button {
    width: 75px;
}

.top-bar .buttons button:enabled {
    cursor: pointer;
}

.top-bar .buttons .next-button {
    margin-left: 5px;
    margin-right: 20px;
}

.top-bar .buttons .quit-button {
    margin-left: 20px;
}

.top-bar .buttons .finish-button {
    text-align: center;
}

.top-bar .buttons button:disabled {
    cursor: not-allowed;
}

.selector {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.selector .board {
    width: 300px;
    height: 300px;
    padding: 50px;
}

.selector .board svg {
    cursor: pointer;
}

.selector .panel .start-button {
    margin-top: 1em;
    display: block;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

.selector .panel {
    width: 500px;
}

.selector .panel table {
    width: 100%;
    border-collapse: collapse;
}

.selector .panel td:first-child {
    text-align: left;
    padding-right: 1em;
}

.selector .panel td:last-child {
    width: 150px;
}

.selector .panel td select {
    display: block;
    width: 100%;
}

.selector .panel h2 {
    margin-top: 0;
}

.selector .panel .instructions {
    margin-bottom: 3em;
}

.selector .panel .instructions p {
    margin: 0;
    color: #666;
}