:root {
    --race-image-width: 500px;
    --race-image-height: 500px;
    --race-div-main-height: 71.5vh;
    --race-bottom-compact-labels-right: 4px;
}

html,
body {
    display: flex;
    flex-direction: column;
    background-color: #5F5E5E;
    font-family: sans-serif;
    margin: 0px;
    padding: 0px;
}

button {
    width: 100px;
    height: 30px;
    border-radius: 4px;
    box-shadow: none;
    outline: none;
    cursor: pointer;
}

svg {
    margin: 0px;
    padding: 0px;
    z-index: 100;
    position: relative;
}

.main-div {
    display: flex;
}

.content-wrap {
    padding-bottom: 0px;
}

.race-div {
    width: 60%;
    border: 2px solid green;
    background-color: #5F5E5E;
/*     -webkit-filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .7));
    filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .7));
 */}

.race-div-main {
    background-color: #5F5E5E;
    height: var(--race-div-main-height);
}

.ssw-div {
    width: 40%;
    /* flex-grow: 1; */
    border: 2px solid green;
    background-color: white;
/*     -webkit-filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .7));
    filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .7));
 */}

.vl1 {
    border-left: 2px solid #d3d3d3;
    height: 100%;
    position: absolute;
    left: 25%;
    margin-left: -1px;
    top: 0;
}

.vl1S {
    border-left: 2px solid #d3d3d3;
    height: 100%;
    position: absolute;
    left: 25%;
    transform: translateX(-31px);
    margin-left: -1px;
    top: 0;
    display: none;
}

.vl2 {
    border-left: 2px solid #d3d3d3;
    height: 100%;
    position: absolute;
    left: 50%;
    margin-left: -1px;
    top: 0;
}

.vl2S {
    border-left: 2px solid #d3d3d3;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-62px);
    margin-left: -1px;
    top: 0;
    display: none;
}

.vl3 {
    border-left: 2px solid #d3d3d3;
    height: 100%;
    position: absolute;
    left: 75%;
    margin-left: -1px;
    top: 0;
}

.vl3S {
    border-left: 2px solid #d3d3d3;
    height: 100%;
    position: absolute;
    left: 75%;
    transform: translateX(-93px);
    margin-left: -1px;
    top: 0;
    display: none;
}

.finishLine {
    background-image: url("./images/FinishLine.jpeg");
    background-repeat: repeat-y;
    position: absolute;
    right: 0px;
    height: 100%;
    width: 125px;
    top: 0;
    overflow-x: auto;
    overflow-y: auto;
    display: none;
}

@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;
}

.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;
}

.chart-container .chart-title {
    font-size: 18px;
    fill: #d3d3d3;
    font-weight: bold;
    text-anchor: middle;
    dominant-baseline: center;
}

.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: var(--race-bottom-compact-labels-right);
    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) {
    .race-div-main {
        background-color: #5F5E5E;
        height: 74vh;
    }

    .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%);
}

.race-image-preview-div {
    width: 125px;
    height: 125px;
    position: absolute;
    right: 0px;
    bottom: 0;
    border: 1px solid beige;
}

.race-image-preview {
    width: 125px;
    height: 125px;
}

.race-image-div {
    width: var(--race-image-width);
    height: var(--race-image-height);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: none;
    z-index: 120;
    border: 1px solid beige;
    border-radius: 10px;
    -webkit-filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .7));
    filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .7));
}

.race-image {
    width: var(--race-image-width);
    height: var(--race-image-height);
    border-radius: 10px;
}

.race-setup-image {
    width: 50px;
    height: 50px;
    display:block;
    margin:auto;
    cursor: pointer;
}

.race-setup-name {
    font-size: 14px;
    font-weight: normal;
    color: black;
    display: block;
    width: 100%;
    cursor: pointer;
}