
/* TV ADDITIONS */
html,
body {

    min-height: 100vh;
  }



main.tv
{
    height: fit-content;
}

.tv .header
{
    margin-bottom: 5px;

}

.tv .header_content
{
    display: flex;
    position: relative;
    font-size: 18px;
    text-align: center;
    flex-shrink: 0;
    padding: 10px;
    padding-right: 10px;
    padding-right: 0px;

    padding-bottom: 2px;
    padding-top: 2px;

    width: calc(100% - 25px);
    margin-left: 5px;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.tv .driver-list
{
    margin-top: 10px;
}


.tv_flags
{
    position: relative;    
    display: flex;

    text-align: center;
    flex-shrink: 0;

    padding: 3px;

    width: calc(100% - 18px);
    margin-left: 5px;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin-top: 5px;

    line-height: 20px;
    font-size: 20px;

}


.tv_flags .flags_inner
{
    position: relative;
    width: 100%;
    height: calc(100% - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--red);
    border-radius: 10px;
    line-height: 20px;
    font-size: 20px;
    box-sizing: border-box; 
    opacity: 1;
    padding-top: 10px;
    padding-bottom: 10px;
}


.tv_flags .flags_inner b
{
}


.flags.greenflag .tv_flags .flags_inner
{
    background-color: var(--green);
}





.tv_flags.greenflag .flags_inner
{
    background-color: var(--green);
}






/* GREEN FLAG */

.green_flag .flags_inner
{
    background-color: rgba(var(--flag_green),1);
}

  .tv_flags.green_flag .border-gradient.left {
    border-left-color: rgba(var(--flag_green),1);
  
  }

  .tv_flags.green_flag .border-gradient.right {
    border-right-color: rgba(var(--flag_green),1);;
  }  

  .tv_flags.green_flag .border-gradient.left::before,
  .tv_flags.green_flag .border-gradient.left::after {
    left: 0px; 
    background: linear-gradient(90deg, rgba(var(--flag_green),1), rgba(var(--flag_green),0));
  }



  .tv_flags.green_flag .border-gradient.right::before,
  .tv_flags.green_flag .border-gradient.right::after {
    right: 0px;
    background: linear-gradient(270deg, rgba(var(--flag_green),1), rgba(var(--flag_green),0));
  }




  /* YELLOW FLAG */

.yellow_flag .flags_inner
{
    background-color: rgba(var(--flag_yellow),1);
}

.yellow_flag b
{
    color: black;
}

  .tv_flags.yellow_flag .border-gradient.left {
    border-left-color: rgba(var(--flag_yellow),1);
  
  }

  .tv_flags.yellow_flag .border-gradient.right {
    border-right-color: rgba(var(--flag_yellow),1);;
  }  

  .tv_flags.yellow_flag .border-gradient.left::before,
  .tv_flags.yellow_flag .border-gradient.left::after {
    left: 0px; 
    background: linear-gradient(90deg, rgba(var(--flag_yellow),1), rgba(var(--flag_yellow),0));
  }



  .tv_flags.yellow_flag .border-gradient.right::before,
  .tv_flags.yellow_flag .border-gradient.right::after {
    right: 0px;
    background: linear-gradient(270deg, rgba(var(--flag_yellow),1), rgba(var(--flag_yellow),0));
  }



.sponsor
{
    position: relative;
    height: 100px;
    width: 100%;
    margin-left: 5px;  
    margin-top: 5px;  
    background-size: contain;
}  


.driver_row.highlight:before
{
    background-color: white;
    opacity: 1;
    z-index: -1;
}

/* .highlight > .driver-info > *:not(.square),
.highlight > .driver-info > *:not(.square) > *
{
    color: black;
} */

.highlight:not(.disqual) > .driver-info > *:not(.square):not(.gap_orange):not(.gap_red):not(.best_lap_on):not(.driver_warning),
.highlight:not(.disqual) > .driver-info > *:not(.square):not(.gap_orange):not(.gap_red):not(.best_lap_on):not(.driver_warning) > * {
    color: black;
}


/* Force white for gap/bestlap/warning */
.highlight:not(.disqual) > .driver-info > .gap_orange,
.highlight:not(.disqual) > .driver-info > .gap_red,
.highlight:not(.disqual) > .driver-info > .best_lap_on,
.highlight:not(.disqual) > .driver-info > .driver_warning {
    color: white !important;
}

/* .highlight:not(.disqual) > .driver-info > *:not(.square):not(.gap_orange):not(.gap_red):not(.best_lap_on):not(.driver_warning),
.highlight > .driver-info > *:not(.square):not(.gap_orange):not(.gap_red):not(.best_lap_on):not(.driver_warning) > * {
    color: black;
} */
