@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    background-color: #292323;
}

.page {
    height: 100%;
    color: whitesmoke;
    text-align: center;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--primary);
}

.btn-primary {
    color: var(--light);
    background-color: var(--primary);
    border-color: var(--primaryhover);
}

.content {
    /*padding-top: 1.1rem;*/
    height: 100%;
    /*overflow: hidden;*/
    margin-bottom: 100px;
    background-color: #1E1E1E;
}

.modal {
    background-color: rgba(50,50,50,0.8);
}

.modal-content {
    background-color: #1f2301;
    color: white;
}


.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--fourth);
}

.invalid {
    outline: 1px solid var(--secondary);
}

.validation-message {
    color: var(--secondary);
}

.nav-link.active{    
    font-weight: 800!important;    
    border-bottom: 5px solid darkred!important;
}
.nav-link{
    border: red solid 1px;
    color: darkgray!important;
    font-weight: 500!important;
    text-transform: uppercase;
}
/*.nav-link:hover{*/
/*    color: gray!important;*/
/*    border-bottom: 5px solid var(--primary)!important;*/
/*}*/

.nav-tabs .nav-link{
    border: 0;
}
.nav-tabs{
    border-bottom: 2px solid red;
}

#blazor-error-ui {
    background: var(--third);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0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IDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--light);
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

    
    
    .LiveContainer {
        height: 100%; 
        background-color: var(--light);
        display: flex;
        flex-flow: column;
        text-align: center;
        margin: auto;
        width: 100%;
        position: relative;
        margin-top: 10px;
    }
    
    .LiveHeader {
        display: flex;
    }
    
    .LiveLogo {
        margin-top: 5px;
        margin-left: 5px;
        max-height: 50px;
    }
    
    .LiveClockAtsAtf {
        position: absolute;
        right: 5px;
        top: 5px;
        color: var(--primary);
        font-weight: 600;
    }
    
    .LiveClock {        
        background: var(--gradient3);
        margin: 2px;
        padding: 10px;
        border-radius: 5px;
    }
    
    .LiveBody {
        color: whitesmoke;
        flex-grow: 1;
    }
    
    .LiveBodyATSATFcontainer {
        display: flex;
        justify-content: space-between;
    }

    .LiveBodyATS{
        background: var(--gradient2);
        color: var(--third);
        margin: 2px;
        padding: 10px;
        border-radius: 5px;        
    }

    .LiveBodyATF{
        background: var(--gradient);
        color: var(--primary);
        margin: 2px;
        padding: 10px;
        border-radius: 5px;        
    }

    .table>:not(caption)>*>*{
        border-bottom-width: 0px;
    }

    .tableRankings{
        color: var(--third);
        border: 0px transparent;
    }
    
    .tableRankings tr{        
        border-bottom: 1px solid var(--third);
    }

     .tableRankings tbody tr td,  .tableRankings thead tr th{
        position: relative;
     }

    .tableRankings tbody tr:nth-child(odd) {
        background-image: var(--gradient) !important;
        color: var(--primary)!important;
    }

    .tableRankings thead tr th:last-child {
        font-weight : 700; 
        background: var(--third)!important;
        color: var(--primary); 
    }
    .tableRankings thead tr th:last-child::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: -0.1px;
        left: 0;
        border-left: 2em solid var(--third);
        transform: skewX(-45deg);
        transform-origin: top left;
    } 

    .tableRankings tbody tr:nth-child(even) {
        background: var(--gradient2)!important;
    }
    .tableRankings tbody tr:nth-child(even) td:last-child {
        font-weight : 700; 
        background: var(--third)!important;
        color: var(--primary)!important; 
    }
    .tableRankings tbody tr:nth-child(even) td:last-child::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: -0.1px;
        left: 0;
        border-left: 2em solid var(--third);
        transform: skewX(-45deg);
        transform-origin: top left;
    } 

    .tableRankings tbody tr:nth-child(odd) td:last-child {
        font-weight : 700; 
        background: var(--third)!important;
    }
   .tableRankings tbody tr:nth-child(odd) td:last-child::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: -0.1px;
        left: 0;
        border-left: 2em solid var(--third_v);
        transform: skewX(-45deg);
        transform-origin: top left;
    }     
    
    .tableRanking {
        color: var(--primary)!important;
    }

    .tableRankings thead tr {
        background-image: var(--gradient2) !important;
        color: var(--third)!important;
    }
    
    .penalities {
        width: 20px;
        cursor: pointer;
    }
    
    .LiveFooter {
        height: 40px;
        max-height: 40px;
        color: #f1f5f9;
        font-weight: 500;
        background-color: #832222;
        position: fixed;
        bottom: 0;
        text-align: center;        
        width: 100%;
        padding: 10px;
    }

    .LiveFooter a {
        text-decoration: none;
        font-weight: 600;
        color: #006AFF;
    }
    
    li{
        background-color: GrayText;
    }
    
    .tabTiming {
        margin-top: 10px;
    }

    .nav-link{
        color: black;
    }

    .nav-link:hover{
        color: black;
    }


.tableRunnings {
    /*color: yellow;*/
}

.LiveRankingTitle {
    color: whitesmoke;
    font-weight: 600;
    text-transform: uppercase;
    padding-top: 10px;
}

.SelectGroup {
    width: 100%;
}

.tableRankingSearch {
    
}

.tableRankings thead th {
    font-weight: 700;
    background: var(--third)!important;
    color: var(--primary);
}

.table-container {
    color: white;
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #1E1E1E;
}
.ranking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 2px;
    margin-bottom: 50px;
}
.ranking-table th {
    text-align: center;
}
.ranking-row {
    /* background-color: #18a3c8;
    background-color: #b85959; */
    color: white;
}
.ranking-rank {
    /*background-color: #18a3c8;*/
    background-color: #580303;
    font-size: 1.1rem;
    font-weight: 300;
    padding: 5px 5px;
    /* transform: translateX(-10px) */
    /* text-align: right; */
    text-align: center;
    width: 1%;
    /* text-decoration: underline; */
}
.ranking-bib {
    /*background-color: #18a3c8;*/
    background-color: #dd0f0f;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 5px 10px;
    text-align: right;
    text-align: center;
    width: 5%;
}
.ranking-name {
    /*background-color: #18a3c8;*/
    background-color: #dd0f0f;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    padding: 5px 10px;
    width: 30%;
    text-align: left;
}
.ranking-car {
    /*background-color: #18a3c8;*/
    background-color: #dd0f0f;
    font-size: 1rem;
    text-align: right;
    padding: 5px 10px;
    color: rgba(255, 255, 255, 0.8);
    width: 20%;
    /*clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);*/
}
.ranking-run {
    font-size: 1.15rem;
    font-weight: 300;
    padding: 5px 10px;
    text-align: center;
    width: 10%;
    /*background-color: #2a3a45;*/
    background-color: #580303;
}
.ranking-nettime {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 10px 15px;
    text-align: center;
    width: 10%;
    /*background-color: #2a3a45;*/
    background-color: #dd0f0f;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}
.ranking-name-bg {
    /*background-color: #2a3a45;*/
    background-color: #580303;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}

    
@media (max-width: 950px) {
    .LiveLogo {
        width: 60px;
        height: 30px;
    }

    .LiveClockAtsAtf {
        position: relative;
        margin-left: 50px;
        width: 100%;
        display: flex;
        flex-flow: row;
        justify-content: flex-end;
    }

    .LiveClock {
        order: 2;
    }
    body{
        font-size: 0.8rem;
    }
    .tableRankings tr td:last-child::before, .tableRankings tr th:last-child::before {
        border-left: 0px!important;
    }
    
    .top-row {
        display: flex;
        justify-content: space-between;
    }
    .ranking-rank {
        font-size: .9rem;
        font-weight: 300;
        padding: 5px 5px;
    }
    .ranking-bib {
        font-size: 1rem;
        font-weight: 700;
        padding: 5px 10px;
    }
    .ranking-name {
        font-size: .9rem;
        font-style: italic;
        font-weight: 400;
        padding: 5px 10px;
    }
    .ranking-car {
        font-size: .6rem;
        padding: 5px 10px;
    }
    .ranking-run {
        font-size: .8rem;
        font-weight: 300;
        padding: 5px 10px;
    }
    .ranking-nettime {
        font-size: .9rem;
        font-weight: bold;
        padding: 10px 15px;
    }
}

@media (max-width: 540px) {
    .LiveLogo{
        margin:auto;
        display:none;
    }
    .LiveFooter{
        /*display:none;*/
        height: 30px;
    }
    .LiveFooter a {
        margin-top: -10px;
    }
    
    .LiveHeader{
        flex-direction: column;
    }
    .LiveClockAtsAtf{
        margin: auto;
        padding-top: 10px;
        flex-direction: column;
    }
    .nav{
        flex-direction: column;
        align-items: center;
    }
    .nav-item{
        border-bottom: solid 1px var(--secondary);
        width: 100%;
        text-align: center;
    }
    .table-responsive {
        overflow-x: auto;
        min-height: 0.01%;
    }
    .tabTiming {
        flex-flow: row nowrap;
    }
    .top-row {
        display: flex;
        justify-content: space-between;
    }
    .tableRankings {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tableRankings thead,
    .tableRankings tbody,
    .tableRankings th,
    .tableRankings td,
    .tableRankings tr {
        display: block;
    }
    .tableRankings thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .tableRankings tr { 
        border: 0px solid #ccc;
        margin-bottom: 5px; 
    }
    .tableRankings td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        /*text-align: right;*/
    }
    .tableRankings td:before {
        position: absolute!important;
        top: 6px!important;
        left: 6px!important;
        width: 45%!important;
        padding-right: 10px!important;
        white-space: nowrap!important;
        content: attr(data-label)!important;
        font-weight: 600!important;
        transform: inherit!important;
        text-align: left;
    }
    tbody{
        margin-bottom: 30px;
    }

    .ranking-rank {
        font-size: .6rem;
        font-weight: 300;
        padding: 5px 5px;
    }
    .ranking-bib {
        font-size: .7rem;
        font-weight: 700;
        padding: 5px 10px;
    }
    .ranking-name {
        font-size: .6rem;
        font-style: italic;
        font-weight: 400;
        padding: 5px 10px;
    }
    .ranking-car {
        font-size: .4rem;
        padding: 5px 10px;
    }
    .ranking-run {
        font-size: .5rem;
        font-weight: 300;
        padding: 5px 10px;
    }
    .ranking-nettime {
        font-size: .6rem;
        font-weight: bold;
        padding: 10px 15px;
    }
    
}