:root {
    --race-image-width: 500px;
    --race-image-height: 500px;
    --race-div-main-height: 71.5vh;
    --race-bottom-compact-labels-right: 4px;
    --race-track-first-line-translate-x: -31px;
    --race-track-second-line-translate-x: -62px;
    --race-track-third-line-translate-x: -93px;
    --race-track-finish-line-width: 125px;
}

.ssw-race-div {
    width: 100%;
    height: 350px;
}

.competitors-race-div-tall {
    height: 415px;
}

.race-div-main {
    background-color: #5F5E5E;
    height: 100%;
    position: relative;
}

#bar-chart-race {
    margin: 0px;
    padding: 0px;
    z-index: 1;
    position: relative;
}

.bar-chart-race {
    margin: 0px;
    padding: 0px;
    z-index: 1;
    position: relative;
}

.vl1S {
    border-left: 2px solid #d3d3d3;
    height: 100%;
    position: absolute;
    left: 25%;
    transform: translateX(var(--race-track-first-line-translate-x));
    margin-left: -1px;
    top: 0;
}

.vl2S {
    border-left: 2px solid #d3d3d3;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(var(--race-track-second-line-translate-x));
    margin-left: -1px;
    top: 0;
}

.vl3S {
    border-left: 2px solid #d3d3d3;
    height: 100%;
    position: absolute;
    left: 75%;
    transform: translateX(var(--race-track-third-line-translate-x));
    margin-left: -1px;
    top: 0;
}

.finishLine {
    background-image: url("/stockrace/src/images/FinishLine.jpeg");
    background-repeat: repeat-y;
    position: absolute;
    right: 0px;
    height: 100%;
    width: var(--race-track-finish-line-width);
    top: 0;
    overflow-x: auto;
    overflow-y: auto;
}

@keyframes newRaceWinner {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

.raceWinnerGreen {
    width: 120px;
    background-color: darkgreen;
    border-color: greenyellow;
    border-radius: 4px;
    border: 1px;
    border-style: solid;
    color: greenyellow;
    margin: 0 auto;
    animation-name: newRaceWinner;
    animation-duration: 2s;
}

.raceWinnerGreen .raceWinnerSymbol {
    font-size: 14px;
    margin-left: 5px;
    display: block;
    width: 100%;
}

.raceWinnerGreen .raceWinnerDetails {
    font-size: 12px;
    margin-left: 5px;
    display: block;
    width: 100%;
}

.raceWinnerGreen .topWinners {
    display: none;
    width: 118px;
    background-color: white;
    border-color: black;
    border-radius: 4px;
    border: 1px;
    border-style: solid;
    color: black;
    font-size: 10px;
    text-align: center;
}

.raceWinnerGreen table {
    width: 100%;
    border: 0px;
    border-spacing: 1px;
}

.raceWinnerGreen td {
    padding: 0px;
    vertical-align: bottom;
}

.raceWinnerGreen .topWinners .podiumSymbol {
    font-size: 10px;
    text-align: center;
    padding: 5px;
    color: limegreen;
    background-color: black;
}

.raceWinnerGreen .topWinners .podiumNumber {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    padding: 5px;
    color: white;
    background-color: #2c549d;
}

.raceWinnerRed {
    width: 120px;
    background-color: #AE0012;
    border-color: #F6AA94;
    border-radius: 4px;
    border: 1px;
    border-style: solid;
    color: #F6AA94;
    margin: 0 auto;
    animation-name: newRaceWinner;
    animation-duration: 2s;
}

.raceWinnerRed .raceWinnerSymbol {
    font-size: 14px;
    margin-left: 5px;
}

.raceWinnerRed .raceWinnerDetails {
    font-size: 12px;
    margin-left: 5px;
    display: block;
    width: 100%;
}

.raceWinnerRed .topWinners {
    display: none;
    width: 118px;
    background-color: white;
    border-color: black;
    border-radius: 4px;
    border: 1px;
    border-style: solid;
    color: black;
    font-size: 10px;
    text-align: center;
}

.raceWinnerRed table {
    width: 100%;
    border: 0px;
    border-spacing: 1px;
}

.raceWinnerRed td {
    padding: 0px;
    vertical-align: bottom;
}

.raceWinnerRed .topWinners .podiumSymbol {
    font-size: 10px;
    text-align: center;
    padding: 5px;
    color: red;
    background-color: black;
}

.raceWinnerRed .topWinners .podiumNumber {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    padding: 5px;
    color: white;
    background-color: #2c549d;
}

.profitLossRaceWinner {
    width: 100%;
    border: 1px palegoldenrod solid;
    border-radius: 5px;
    background-color: black;
    opacity: 0.9;
    line-height: 1.25;
}

.profitLossRaceWinner .raceWinnerSymbolDiv {
    width: 100%;
    text-align: center;
}

.profitLossRaceWinner .raceWinnerSymbolDiv .raceWinnerSymbolSpan {
    font-size: 16px;
    font-weight: bold;
    color: yellow;
}

.profitLossRaceWinner .raceWinnerSymbolDiv .raceTradesCountSpan {
    font-size: 12px;
    color: yellow;
    margin-left: 5px;
}

.profitLossRaceWinner .raceWinnerProfitLossSpan {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: yellow;
}

.profitLossRaceWinner .raceWinnerSymbolDiv .redText {
    color: lightcoral;
}

.profitLossRaceWinner .redText {
    color: lightcoral;
}

.chart-container .current-date {
    font-size: 12px;
    fill: #d3d3d3;
    text-anchor: end;
}

.race-bottom-labels
{
    background-color: black;
    padding: 10px;
    border: 2px solid white;
    z-index: 10;
    display: flex;
    justify-content: center;
    display: none;
}

.race-bottom-labels table {
    width: 100%;
    border: 0px;
    border-spacing: 1px;
}

.race-bottom-labels .td1 {
    padding: 0px;
    text-align: center;
}

.race-bottom-labels .td2 {
    padding: 0px;
    text-align: right;
}

.race-bottom-compact-labels
{
    background-color: black;
    padding: 1px;
    border: 2px solid white;
    z-index: 100;
    position: absolute;
    right: 4px;
    display: flex;
    justify-content: center;
    display: none;
    transform: translateY(-34px);
}

.race-bottom-compact-labels table {
    width: 100%;
    border: 0px;
    border-spacing: 1px;
}

.race-bottom-compact-labels .td1 {
    padding: 0px;
    text-align: right;
    line-height: 1;
}

.basedOn-label {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.race-setup-button {
    width: 20px; 
    height: 20px; 
    border: none; 
    background: url(/stockrace/src/images/gear.png);
    background-repeat: no-repeat; 
    background-size: cover;
    display: none;
}

.notice {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.live-data-label {
    font-size: 14px;
    font-weight: bold;
    color: white;
    display: none;
}

.race-clock {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.race-minutes {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

@media screen and (max-width: 480px) {
    /* .competitors-race-div {
        height: 200px;
    } */

    .race-clock {
        font-size: 14px;
        font-weight: bold;
        color: white;
    }
    
    .race-minutes {
        font-size: 10px;
        font-weight: bold;
        color: white;
    }

    .basedOn-label {
        font-size: 14px;
        font-weight: bold;
        color: white;
    }
    
    .notice {
        font-size: 10px;
        font-weight: bold;
        color: white;
    }
}

.race-clock-compact {
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.race-minutes-compact {
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.y-axis text,
.y-axis .domain,
.x-axis .domain {
    display: none;
}

.x-axis .tick line {
    color: #d3d3d3;
    display: none;
}

.x-axis .tick text {
    color: #d3d3d3;
    display: none;
}

.columns .column-container .column-rect {
    fill: limegreen;
}

.columns .column-container .column-rect-green {
    fill: url(#lane-shape-gradient-green);
}

.columns .column-container .column-rect-red {
    fill: url(#lane-shape-gradient-red);
}

#lane-shape-gradient-green {
    --color-start: greenyellow;
    --color-stop: darkgreen;
}

#lane-shape-gradient-red {
    --color-start: #F6AA94;
    --color-stop: #AE0012;
}

.columns .column-container .column-title {
    text-anchor: start;
    fill: white;
    dominant-baseline: middle;
    font-size: 11px;
}

.columns .column-container .column-price {
    text-anchor: end;
    fill: white;
    dominant-baseline: middle;
    font-size: 11px;
}

.columns .column-container .column-value {
    text-anchor: end;
    fill: none;
    dominant-baseline: middle;
    font-size: 10px;
}

.columns .column-container .column-basedon {
    text-anchor: start;
    fill: black;
    dominant-baseline: middle;
    font-size: 11px;
    font-weight: bold;
}

.columns .column-container .column-basedoncompliment {
    text-anchor: start;
    fill: greenyellow;
    dominant-baseline: middle;
    font-size: 11px;
    font-weight: bold;
}

.columns .column-container .column-basedoncompliment-green {
    text-anchor: start;
    fill: greenyellow;
    dominant-baseline: middle;
    font-size: 11px;
    font-weight: bold;
}

.columns .column-container .column-basedoncompliment-red {
    text-anchor: start;
    fill: #f6a994;
    dominant-baseline: middle;
    font-size: 11px;
    font-weight: bold;
}

.columns .column-container .column-changefromclose {
    text-anchor: end;
    fill: white;
    dominant-baseline: middle;
    font-size: 9px;
}

.columns .column-container .column-changefromclose-arrow {
    text-anchor: start;
    fill: white;
    dominant-baseline: middle;
    font-size: 9px;
}

.columns .column-container .column-logo {
    clip-path: inset(0% round 25%);
}

.column-logo {
    clip-path: inset(0% round 25%);
}

.columns .column-container .column-position-text-1, .column-position-text-2 {
    text-anchor: start;
    fill: white;
    dominant-baseline: middle;
    font-size: 11px;
}
