﻿/* START MAIN VIEW*/

html {
    background-color: #fff;
}

* {
	font-family: Arial,Verdana,Tahoma;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

#app {
    max-width: 1920px;
    margin: auto;
    color: #000;
    background-color: #fff;
}

#timer-logo {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 150px 36px;
    background-image: url(../logo/timer-logo.png);
    width: 150px;
    height: 36px;
}

#raceTable {
    width: 100%;
}

#info-message {
    width: 100%;
}

.highlight-shadow {
    border: 2px solid #fdba01; /* Postavite žuti obrub */
    border-radius: 4px; /* Zaobljeni rubovi ako je potrebno */
}


/* END MAIN VIEW*/


/* FAVOURITE RIDER */

.highlighted {
    background-color: #00205e !important; /* žuta boja za istaknuti red */
}

/* LEADER BIB */
.leader-L {
	border-radius: 0.375rem;
	--tw-bg-opacity: 1;
  background-color: rgb(174 8 8 / var(--tw-bg-opacity));
	color:white !important;

}




/* START TABLE TR HEADER*/
#t-marker {
    min-width: 2%;
    width: 2%;
    max-width: 2%;
}

#t-progression {
    min-width: 2%;
    width: 2%;
    max-width: 2%;
}

#t-position {
    min-width: 2%;
    width: 2%;
    max-width: 2%;
}

#t-number {
    min-width: 3%;
    width: 3%;
    max-width: 3%;
}

#t-rider {
    min-width: 22%;
    width: 22%;
    max-width: 22%;
}

#t-nation {
    min-width: 3%;
    width: 3%;
    max-width: 3%;
}

#t-laps {
    min-width: 4%;
    width: 4%;
    max-width: 4%;
}

#t-laps-q {
    min-width: 4%;
    width: 4%;
    max-width: 4%;
}

#t-totaltime {
    min-width: 9%;
    width: 9%;
    max-width: 9%;
}

#t-int-time {
    min-width: 9%;
    width: 9%;
    max-width: 9%;
}

#t-totaltime-q {
    min-width: 9%;
    width: 4%;
    max-width: 4%;
}

#t-diff {
    min-width: 9%;
    width: 9%;
    max-width: 9%;
}

#t-diff-q {
    min-width: 9%;
    width: 9%;
    max-width: 9%;
}

#t-gap {
    min-width: 9%;
    width: 9%;
    max-width: 9%;
}
#t-gap-q {
    min-width: 9%;
    width: 9%;
    max-width: 9%;
}

#t-lastlap, #t-lastlap-q {
    min-width: 10%;
    width: 10%;
    max-width: 10%;
}

#t-bestlap, #t-bestlap-q {
    min-width: 10%;
    width: 10%;
    max-width: 10%;
}

#t-inlap {
    min-width: 2%;
    width: 2%;
    max-width: 2%;
}

#t-bike {
    min-width: 5%;
    width: 5%;
    max-width: 5%;
}

#t-class {
    min-width: 5%;
    width: 5%;
    max-width: 5%;
}

#t-pic {
    min-width: 2%;
    width: 2%;
    max-width: 2%;
}




/* END TABLE TR HEADER*/

/* START HEADER & MENU */

#header {
    z-index: 10;
    overflow: hidden;
    background-color: #000000;
}

#menu-class {
    padding-left: 0;
}

.menu-subclass {
    border-left: 1px solid #1d4ed8;
}

#table-header {
   /* top: 4rem; */
    position: sticky;
    overflow: hidden;
    z-index: 10;
    font-size: 1.0rem;
    line-height: 30px;
    height: 30px;
}




/* END HEADER & MENU*/

/* START TABLE ROW*/

.row-odd, .row-even {
    height: 30px;
    line-height: 30px;
}

.row-even {
    background-color: #eeeeee;
}

.row-odd {
    background-color: #fcfcfc;
}

.progressionbar {
    line-height: 0.125rem;
    top: -0.125rem;
    position: relative;
    z-index: 4;
}

.arrow-tooltip {
    height: 0;
    bottom: 0;
    margin-left: 15px;
    margin-right: 15px;
}


.passing-times {
    z-index: 2;
}

.column-min-width {
    width: 0rem;
    min-width: 0rem;
    max-width: 0rem;
    overflow: hidden;
}

.background-number {
    margin-bottom: -28px;
    color: rgb(0, 0, 0);
}
.background-div-number {
    border-width: 0 0 26px 5px;
    border-color: transparent transparent transparent;
}

.number-color-1 {
    border-color: transparent transparent #006adb;
}
.number-color-2 {
    border-color: transparent transparent #009846;
}
.number-color-3 {
    border-color: transparent transparent #ef7f1a;
}
.number-color-4 {
    border-color: transparent transparent #5e5971;
}
.number-color-5 {
    border-color: transparent transparent #a75f4a;
}

.leader-c {
    border-color: transparent transparent red;
}

.background-position {
    margin-top: -30px;
    color: rgb(0, 0, 0);
}
.background-div-position {
    border-width: 29.5px 5px 0 0;
    border-color: rgb(253 224 71) transparent transparent;
}


/* END TABLE ROW*/

/* START TABLE CONTEST*/

.rider {
    text-align: left;
    padding-left: 0.5%;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
    z-index: 1;
}

.favorite-rider {
    background-color: yellow;
}

.lastlap, .lastlap-q, .bestlap, .bestlap-q {
    /*   display: block;*/
}



/* END TABLE CONTEST*/



/* START HIDDEN COLUMNS*/






.rider-name, .flag-label {
    display: none;
    visibility: hidden;
}

.pic-q, .class-q, .motor-q, .laps-q, .inlap-q  {
    display: none;
    visibility: hidden;
}

#t-pic-q, #t-class-q, #t-bike-q, #t-laps-q, #t-inlap-q  {
    display: none;
    visibility: hidden;
}


.show-extra-gap  {
    display: none;
    visibility: hidden;
}

/* END HIDDEN COLUMNS*/

#t-position,#t-position-live #t-number, #t-rider {
    position: -webkit-sticky; /* Safari specific */
    position: sticky;
    z-index: 5; 
}


.position , .number, .rider  {
    position: sticky;
    z-index: 5; 
    background-color: inherit; 
}


.table-wrapper {
    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: auto; /* Vertical scroll if needed */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
    scrollbar-width: none; /* For Firefox */
}
.outer-wrapper {
    overflow-x: auto; /* Outer container handles scrolling */
}

.inner-wrapper {
    overflow: visible; /* Ensure the inner wrapper allows sticky to work */
}


.table-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbars */
}

#t-position, .position {
    left: 0%;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    z-index: 5;
}

#t-position-live, .position-live {
    left: 0%;
    width: 25px;
    min-width: 25px;
    max-width: 25px;
    z-index: 5;
}


#t-number, .number {
    left: 30px;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    z-index: 5;

}

#t-rider, .rider {
    left: 60px;
    width: 180px;        
    min-width: 180px;
    max-width: 180px;
    z-index: 5;

}




/* START SCREEN CUSTOM SIZE*/


@media only screen and (max-width:320px) {
    .first-rank {
        display: none;
        visibility: hidden;
    }

    .show-extra-gap  {
        display: unset;
        visibility: visible;
    }




    #t-bestlap {
        display: none;
        visibility: hidden;
    }

    .bestlap {
        display: none;
        visibility: hidden;
    }

    #table-header {
     /*   top: 3rem;*/
        font-size: 0.9rem;
    }

    .diff-q, .bestlap-q, .gap, .lastlap, .bestlap {
        font-size: 0.8rem;
		text-align: center !important;
    }
	
    .bestlap {
		font-weight: normal !important;	
	}
	
    .gap {
        font-weight:normal;
		text-align: center !important;
    }

    header{
        padding-top: 0rem !important;
        padding-bottom: 0rem !important;
    }

    #menu-subclass {
        font-size: 0.8rem;
    }

    #run-info-time {
        text-align: right;
        position: absolute;
    }

    #run-info-time {
        text-align: right;
        font-size: 1.3rem;
    }

    #run-info-flag {
        text-align: right;
    }

    .livestream-pdf-text-size {
        font-size:0;
    }

    .info-flag {
        top: 0;
        position: absolute;
        width: 5rem;
        text-align: center;
        margin-right: auto;
        margin-left: auto;
    }

	#footer-servertime {
	  font-weight: normal;
	  font-size: 0.76rem;
	}
	
	#bestlaptimeinrace {
	font-weight: normal;
	font-size: 0.7rem;
	}
	
    .marker {
        font-size: 0.8rem;
    }	

	#t-position, #t-marker, #t-number {
		min-width: 1%;
		width: 1%;
		max-width: 1%;
	}
	
    #t-position-live {
		min-width: 1%;
		width: 1%;
		max-width: 1%;
	}
	

	#menu-class {
        font-size: 0.7rem;
    }
	
	#timetogo {
	  display: block ruby;
	}
	
}

@media only screen and (min-width: 321px) and (max-width:480px) {

    .show-extra-gap  {
        display: unset;
        visibility: visible;
    }

    .hide-diff {
        display: none;
        visibility: hidden;
    }

    .hide-time {
        display: none;
        visibility: hidden;
    }
    #t-diff {
        display: none;
        visibility: hidden;
    }

    #t-nation, .nation {
        display: none;
        visibility: hidden;
    }

    #t-inlap, .inlap  {
        display: none;
        visibility: hidden;
    }
	
    #t-diff, .diff,#t-int-time, .int-time  {
        width: 80px;
        max-width: 80px;
        min-width: 80px;
    }

    .rider-name {
        display: inline;
        visibility: unset;
    }



    #header-logo {
        display: none;
        visibility: hidden;
    }

    #table-header {
      /*  top: 3rem; */
        font-size: 0.9rem;
    }


    header {
        padding-top: 0rem !important;
        padding-bottom: 0rem !important;
    }

    .diff-q, .lastlap-q, .gap, .lastlap, .bestlap {
        font-size: 0.8rem;
		text-align: center !important;
    }

    .lastlap, .gap {
        font-size: 0.8rem;
		text-align: center !important;
    }
	
    .bestlap-r {
		font-weight: normal !important;	
	}
	
    .gap {
        font-weight:normal;
    }
	
    #menu-subclass {
        font-size: 0.9rem;
    }
    #run-info-time {
        text-align: right;
        font-size: 1.3rem;
        position: absolute;
    }

    .livestream-pdf-text-size {
        font-size: 0;
    }

    .info-flag {
        top: 0;
     /*   position: absolute; */
        width: 10rem;
        float: right;
        text-align: right;
    }

	#footer-servertime {
	  font-weight: normal;
	  font-size: 0.76rem;
	}
	
	#bestlaptimeinrace {
	font-weight: normal;
	font-size: 0.7rem;
	}
	
    .marker {
        font-size: 0.8rem;
    }	

	#t-position, #t-marker, #t-number {
		min-width: 1%;
		width: 1%;
		max-width: 1%;
	}

    #t-position-live {
		min-width: 1%;
		width: 1%;
		max-width: 1%;
	}

	#menu-class {
        font-size: 0.7rem;
    }
	
	#timetogo {
	  display: ruby;
	}
	
	#timer-logo {
    background-size: 100px 36px;
    width: 100px;
    height: 36px;
	}


	  
	
}

@media screen and (min-width:481px) and (max-width:768px) {

    #t-diff, .diff  {
        width: 80px;
        max-width: 80px;
        min-width: 80px;
    }

    #t-int-time, .int-time  {
        width: 100px;
        max-width: 100px;
        min-width: 100px;
    }


    #t-pic, #t-nation {
        display: table-cell;
        visibility: unset;
    }


    #table-header {
      /*  top: 3rem;*/
    }

    .pic, .nation, .rider-name {
        display: table-cell;
        visibility: unset;
    }
    .rider-name {
        display: inline;
        visibility: unset;
    }


    .livestream-pdf-text-size {
        font-size: 0;
    }

}

@media screen and (min-width:769px) and (max-width:1024px) {

    #t-diff, .diff,#t-int-time, .int-time  {
        width: 80px;
        max-width: 80px;
        min-width: 80px;
    }

    #t-pic, #t-nation {
        display: table-cell;
        visibility: unset;
    }

    .pic, .nation {
        display: table-cell;
        visibility: unset;
    }

    #table-header {
      /*  top: 3rem; */
    }
    .diff, #t-diff, #t-gap-q, .gap-q, #t-laps-q, .laps-q {
        display: table-cell;
        visibility: unset;
    }

    .rider-name {
        display: inline;
        visibility: unset;
    }
    #t-lastlap-q, .lastlap-q {
        display: table-cell;
        visibility: unset;
    }

    .pic-q, .class-q, .motor-q, .laps-q, .inlap-q  {
        
        display: table-cell;
        visibility: unset;
    }

    #t-pic-q, #t-class-q, #t-bike-q, #t-laps-q, #t-inlap-q  {
        display: table-cell;
        visibility: unset;
    }



}

@media screen and (min-width:1025px) and (max-width:1200px) {

    #t-pic, #t-nation, #t-totaltime, #t-inlap, #t-class {
        display: table-cell;
        visibility: unset;
    }

    .pic, .nation, .totaltime, .inlap, .class {
        display: table-cell;
        visibility: unset;
    }

    .diff, #t-diff, #t-gap-q, .gap-q, #t-laps-q, .laps-q {
        display: table-cell;
        visibility: unset;
    }

    .rider-name {
        display: inline;
        visibility: unset;
    }

    .pic-q, .class-q, .motor-q, .laps-q, .inlap-q  {
        
        display: table-cell;
        visibility: unset;
    }

    #t-pic-q, #t-class-q, #t-bike-q, #t-laps-q, #t-inlap-q  {
        display: table-cell;
        visibility: unset;
    }


}

@media screen and (min-width:1201px) {

    #t-pic, #t-nation, #t-totaltime, #t-inlap, #t-class, #t-bike {
        display: table-cell;
        visibility: unset;
    }

    .pic, .nation, .totaltime, .inlap, .class, .motor {
        display: table-cell;
        visibility: unset;
    }

    .diff, #t-diff, #t-gap-q, .gap-q, #t-laps-q, .laps-q {
        display: table-cell;
        visibility: unset;
    }


    .flag-label {
        display: inline;
        visibility: unset;
    }

    .rider-name {
        display: inline;
        visibility: unset;
    }

    #t-lastlap-q, .lastlap-q {
        display: table-cell;
        visibility: unset;
    }

    .pic-q, .class-q, .motor-q, .laps-q, .inlap-q  {
        
            display: table-cell;
            visibility: unset;
    }

    #t-pic-q, #t-class-q, #t-bike-q, #t-laps-q, #t-inlap-q  {
        display: table-cell;
        visibility: unset;
    }

}




/* Generiranje Ranking pozicija */

.rank_1 { top: 303px; z-index: 100; }
.rank_2 { top: 333px; z-index: 99; }
.rank_3 { top: 363px; z-index: 98; }
.rank_4 { top: 393px; z-index: 97; }
.rank_5 { top: 423px; z-index: 96; }
.rank_6 { top: 453px; z-index: 95; }
.rank_7 { top: 483px; z-index: 94; }
.rank_8 { top: 513px; z-index: 93; }
.rank_9 { top: 543px; z-index: 92; }
.rank_10 { top: 573px; z-index: 91; }
.rank_11 { top: 603px; z-index: 90; }
.rank_12 { top: 633px; z-index: 89; }
.rank_13 { top: 663px; z-index: 88; }
.rank_14 { top: 693px; z-index: 87; }
.rank_15 { top: 723px; z-index: 86; }
.rank_16 { top: 753px; z-index: 85; }
.rank_17 { top: 783px; z-index: 84; }
.rank_18 { top: 813px; z-index: 83; }
.rank_19 { top: 843px; z-index: 82; }
.rank_20 { top: 873px; z-index: 81; }

/* Generiranje Ranking pozicija */


/* Laptimes arrow */
#lapTimesArrow {
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid white;  
    z-index: 20; 
}

/* Laptimes arrow */
