:host {
    --zoom-height: 60px;
    --split-column-width: 350px;
    --vod-column-width: 70px;
}

div, p, h1 {
    color: white;
    font-family: "Franklin Gothic";
}

a, a:visited {
    color: white;
    text-decoration: none;
}

p {
    font-size: 24px;
}

h1 {
    font-size: 42px;
    font-weight: normal;
    margin: 0;
}

hr {
    margin: 0;
}

.container {
    max-width: 961px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header, .main {
    user-select: none;
}

.row {
    width: 961px;
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
}

.title {
    justify-content: center;
}

.left, .right {
    flex-basis: calc(var(--vod-column-width) + var(--split-column-width));
    align-self: center;
}

.center {
    flex: 1 0 auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
}

.header {
    background-color: #000000A0;
    background-origin: padding-box;
    position: sticky;
    top: 0;
    z-index: 5;
    margin-bottom: 0;
}

.race-header {
    background-color: #000000A0;
    background-origin: padding-box;
    position: sticky;
    top: 130px;
    z-index: 5;
    padding: 5px 0;
}

.header .row {
    background-color: #000000A0;
    background-origin: padding-box;
    padding-left: 5px;
    padding-right: 5px;
}

.page-info {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding-top: 5px;
    height: 28px;
}

.zoom-step {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
    font-size: 12px;
}

.zoom-step-top {
    border-bottom: 1px solid white;
}

.page-info .right {
    text-align: right;
}

.header {
    flex-wrap: wrap;
}

.race-header-row {
    display: flex;
    width: 100%;
}

.race-header-row-title {
    display: flex;
    align-items: center;
    width: 44px;
    padding: 0 4px;
}

.race-header-row-right {
    display: flex;
    align-items: center;
    justify-content: end;
    width: 160px;
    cursor: pointer;
}

#race-header-data-selectors, #race-header-view-selectors {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: left;
    margin: 4px 0;
}

.race-header-selector {
    color: white;
    display: flex;
    align-items: center;
    border: 1px solid white;
    border-radius: 8px;
    padding: 4px 8px;
    margin: 4px 15px 4px 0;
    text-shadow: -1px 0px #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0) 100%);
}

.view-link {
    cursor: pointer;
}

.race-header-selector:hover {
    box-shadow:
        0 0 2px 1px rgba(255, 255, 255, 0.5),
        inset 0 0 2px 1px rgba(255, 255, 255, 0.5);
}

.view-link-selected {
    padding: 2px 6px;
    border-width: 3px;
    box-shadow:
        0 0 2px 1px rgba(255, 255, 255, 0.5),
        inset 0 0 2px 1px rgba(255, 255, 255, 0.5);
}

.left-title, .right-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.left-title {
    flex-direction: row;
}

.right-title {
    text-align: right;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.seven-title, .bgg-title {
    font-family: "Fira Sans Bold";
    font-size: 32px;
    padding: 0 5px;
}

.seven-color {
    color: #FC7A30;
}

.bgg-color {
    color: #377DF0;
}

.table-title {
    font-size: unset !important;
}

.zoom-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 10px;
}

.zoom-button > div {
    color: #23272A;
    padding: 4px 6px;
    cursor: pointer;
    user-select: none;
}

.left-vods, .right-vods {
    flex: 0 0 var(--vod-column-width);
}

.left-games, .right-games {
    flex: 0 0 var(--split-column-width);
    position: relative;
}

.vod {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: black;
    box-shadow: 0 0 0 2px white;
    border-radius: 5px;
    user-select: none;
    z-index: 1;
}

.twitch-icon:after {
    content: "\f1e8";
    color: #6441A4;
    font-family: fffiesta;
}

.game {
    width: 100%;
    border: none;
    box-shadow: 0 0 0 2px white;
    user-select: none;
    position: relative;
}

[class$="-games"] .game:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

[class$="-games"] .game:not(:first-child) {
    box-shadow: 0 0 0 2px white;
}

[class$="-games"] .game:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.left-games .game {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#FFFFFF+0,ffffff+100&0.5+0,0+100 */
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.right-games .game {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#FFFFFF+0,ffffff+100&0.5+0,0+100 */
    background: linear-gradient(-45deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.game-logo-container {
    overflow-y: hidden;
}

.game-logo {
    margin: 5px;
}

.game-details-block {
    position: absolute;
    display: flex;
    height: 100%;
    width: 100%;
    z-index: 0;
}

.left-games .game-logo-container {
    float: left;
}

.right-games .game-logo-container {
    float: right;
}

.timeline-column {
    position: relative;
    flex-direction: unset;
}

.timeline {
    display: flex;
    height: 100%;
    align-self: flex-start;
}

.timeline hr {
    border: 0;
    width: 3px;
    border-radius: 1.5px;
    background: white;
}

.timeline-markers {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-marker {
    line-height: 19px;
    position: absolute;
}

.timeline-marker-minor {
    width: 30px;
    height: 1px;
    position: absolute;
}

.time {
    background-color: white;
    color: #23272A;
    font-family: "Fira Sans Bold";
    padding: 0 3px;
}

.tick {
    height: 100%;
    width: 100%;
    border: 0;
    background-color: white;
}

.left-games [id^="lsg"] {
    right: 0;
}

[id*="sg-main"] {
    box-shadow: none;
}

[id*="sg-main"] .split-group-title {
    display: none;
}

.split {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: calc(var(--split-column-width) - 120);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: calc(var(--zoom-height) * var(--split-height));
}

.left-games .split {
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0) 100%);
}

.right-games .split {
    background: linear-gradient(-45deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0) 100%);
}

.game .split:last-child {
    border-bottom: 0;
}

.left-games .game:first-child .split:first-child {
    border-top-right-radius: 5px;
}

.right-games .game:first-child .split:first-child {
    border-top-left-radius: 5px;
}

.game:last-child .split:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    outline: 0;
}

.hide {
    display: none !important;
}

.split-time, .game-time {
    align-self: center;
    justify-self: center;
    width: 100%;
    text-align: center;
    color: white;
    text-shadow: -1px 0px #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
    font-size: clamp(10px, calc(var(--zoom-height) * 0.2), 25px);
    overflow: hidden;
}

.split-time-slower {
    color: rgb(230, 230, 230);
    text-shadow: -1px 0px #777, 0 1px #777, 1px 0 #777, 0 -1px #777;
}

.split-end-time-block, .game-end-time-block {
    position: absolute;
    width: 100%;
    height: 100%;
}

.split-end-time, .game-end-time {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translate(-50%, 0);
    white-space: nowrap;
    padding: 0 3px;
    background-color: white;
    color: #23272A;
    display: none;
    font-size: clamp(10px, calc(var(--zoom-height) * 0.2), 16px);
    z-index: 3;
}

.split-title-block, .game-title-block {
    position: absolute;
    width: 100%;
    height: 100%;
}

.split-title, .game-title {
    position: absolute;
    padding: 0 3px;
    background-color: #23272A7F;
    font-size: clamp(10px, calc(var(--zoom-height) * 0.15), 16px);
    color: white;
    font-family: "Fira Sans";
    z-index: 2;
    bottom: 1px;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: calc(var(--split-column-width) - 8px);
}

.game-title {
    bottom: unset;
    top: 1px;
    left: 50%;
    transform: translate(-50%, 0);
}

.game-title {
    font-size: clamp(14px, calc(var(--zoom-height) * 0.2), 25px);
}

.game-time, .game-end-time {
    font-size: 18px;
}

.left-games .split-title {
    text-align: right;
}

.split-group-title {
    font-style: italic;
    background-color: #980000;
}

.left-games .split-title {
    right: 0;
}

.right-games .split-title {
    left: 0;
}

.show-end {
    display: block;
}

.selected-show-end {
    display: block;
}

.selected {
    box-shadow: 0 0 0 3px white;
    z-index: 4;
}

.race-table {
    border-collapse: collapse;
    width: 100%;
    border: 2px solid white;
    user-select: text;
}

.race-table td, .race-table th {
    padding: 2px 4px;
    border: 1px solid #606060;
    font-family: "Fira Sans";
}

.race-table .lead {
    border-left: 1px double white;
    border-right: 1px double white;
}

.race-table .new-game td, .race-table .new-game th {
    border-top: 1px double white;
}

.race-table .new-game td:first-child {
    font-family: "Fira Sans Bold";
}

.race-table td:first-child, .race-table th:first-child {
    border-right: 1px double white;
}

.race-table td:not(:first-child) {
    text-align: center;
}

.race-table .vod-link a {
    color: lightblue;
    text-decoration: underline;
}

.lead-chart {
    overflow: visible;
}

.lead-chart-split .path {
    fill: none;
    stroke-width: 2;
}

.lead-chart-split .hover {
    stroke: black;
    stroke-opacity: 0;
    stroke-width: 12;
}

.lead-chart-split .path.seven-color, path.game-start-line.seven-color, .lead-chart-summary path.path.seven-color {
    stroke: #FC7A30;
}

.lead-chart-split .path.bgg-color, path.game-start-line.bgg-color, .lead-chart-summary path.path.bgg-color {
    stroke: #377DF0;
}

.lead-chart-split .dot {
    fill-opacity: 1;
    stroke-opacity: 0;
}

.lead-chart-split:hover .path {
    stroke-width: 3;
    stroke: white;
}

.lead-chart-split:hover .lead-chart-hover-text {
    fill: white;
    text-shadow: -1px 0px #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
}

rect.lead-chart-hover-box {
    fill: white;
    stroke: white;
    stroke-width: 1.5;
}

circle.seven-color, rect.seven-color.lead-chart-hover-box {
    fill: #FC7A30;
}

circle.bgg-color, rect.bgg-color.lead-chart-hover-box {
    fill: #377DF0;
}

.lead-chart-summary .dot {
    fill-opacity: 0;
}

.game-start-line {
    stroke: gray;
    stroke-width: 2;
}

.game-start-line-text {
    font-family: "Franklin Gothic";
    fill: white;
    text-shadow: -1px 0px #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
}

.lead-chart-hover-text {
    font-family: "Franklin Gothic";
    fill: none;
}

.footer {
    width: 100%;
    align-items: center;
    flex-direction: column;
}

.legend {
    width: calc(2 * var(--split-column-width));
}

.legend-title {
    cursor: pointer;
}

.legend .game {
    border-radius: 5px;
}