﻿/* START MAIN VIEW*/

html {
    background-color: #000000;
}

* {
	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: #ffffff;
    background-color: #000000;
}

#raceTable {
    width: 100%;
}

#info-message {
    width: 100%;
}

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

/* START ROW ANIMATION */

/* animacija točka - ista */
.rowanimation-b {
    -webkit-animation-name: rowanimation-b;
    animation-name: rowanimation-b;
    -webkit-animation-duration: .6s;
    animation-duration: .6s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    z-index: 1;
    position: relative;
}

@-webkit-keyframes rowanimation-b {
    0% {

    }

    50% {
        background-color: rgba(93, 103, 240, 0.534);
    }

    100% {
        visibility: visible;

    }
}

@keyframes rowanimation-b {
    0% {

    }

    50% {
        background-color: rgba(93, 103, 240, 0.534);
    }

    100% {
        visibility: visible;

    }
}



/* animacija gore - bolja */

.rowanimation-a {
    -webkit-animation-name: rowanimation-a;
    animation: rowanimation-a;
    -webkit-animation-duration: .6s;
    animation-duration: .6s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    z-index: 3;
    position: relative;
}

@-webkit-keyframes rowanimation-a {
    0% {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
        visibility: visible;
    }

    50% {
        background-color: limegreen;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes rowanimation-a {
    0% {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
        visibility: visible;
    }

    50% {
        background-color: limegreen;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

/* animacija dolje - slabija */
.rowanimation-c {
    -webkit-animation-name: rowanimation-c;
    animation-name: rowanimation-c;
    -webkit-animation-duration: .6s;
    animation-duration: .6s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    z-index: 2;
    position: relative;
}

@-webkit-keyframes rowanimation-c {
    0% {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
        visibility: visible;

    }

    50% {
        background-color: red;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes rowanimation-c {
    0% {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
        visibility: visible;

    }

    50% {
        background-color: red;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

/* END ROW ANIMATION */

/* START PROGRESSION BAR ROW ANIMATION */


/* END PROGRESSION BAR ROW ANIMATION */

/* FAVOURITE RIDER */

.highlighted {
    background-color: #00205e !important; /* žuta boja za istaknuti red */
}
.marker {
	display: inline-block;
  max-width: 19px;
  word-wrap: break-word;
  white-space: normal;
  line-height: 0.9;
  vertical-align: middle;
}
/* 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,#t-totaltime-l,#t-totaltime-r,#t-totaltime-avg {
    min-width: 9%;
    width: 4%;
    max-width: 4%;
}

#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;
}

#run-info {

}
#run-info-run {
    white-space: nowrap;
}
#run-info-time {

}
#run-info-flag {

}

.info-flag {
    z-index: -1;
}


.flag-green {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 90%;
    background-image: url(../flags/flag_green.png); 
    width: 1rem;
    height: 1rem;
    position: absolute;
}

/* END HEADER & MENU*/

/* START TABLE ROW*/

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

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

.row-odd {
    background-color: #1e1e1e;
}

.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: white;
}
.background-div-number {
    border-width: 0 0 26px 5px;
    border-color: transparent transparent transparent;
}

.number-color-CV,.number-color-1 {
    border-color: transparent transparent #006adb;
}
.number-color-EV,.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: black;
}
.background-div-position {
    border-width: 29.5px 5px 0 0;
    border-color: #fff transparent transparent;
}


/* END TABLE ROW*/

/* START TABLE CONTEST*/

.rider, .t-rider, .tl-rider {
    text-align: left;
    padding-left: 0.5%;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 0px;
    max-width: 0px;
    min-width: 0px;
    vertical-align: middle;
    z-index: 1;
}

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

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

.color-a {
    color: #55ff00;
    font-weight: bold;
}
.color-b {
    font-weight: bold;
}
.color-c {
    color: #fff400;
    font-weight: bold;
}
.color-d {
    color: #ffffff;
    font-weight: bold;
}
.color-z {
    background-color: #b800ff;
    font-weight: bold;
}
.color-a.z{
    background-color: #b800ff;
    font-weight: bold;
	color:white;
}


/* END TABLE CONTEST*/


 /* START bikes*/

.bike {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 90%;
}

.bike-ktm {
    background-image: url(../bikes/KTM.png)
}

.bike-yamaha {
    background-image: url(../bikes/Yamaha.png)
}

.bike-suzuki {
    background-image: url(../bikes/Suzuki.png)
}

.bike-aprilia {
    background-image: url(../bikes/Aprilia.png)
}

.bike-beta {
    background-image: url(../bikes/beta.png)
}

.bike-bmw {
    background-image: url(../bikes/BMW.png)
}

.bike-fantic {
    background-image: url(../bikes/fantic.png)
}

.bike-gasgas {
    background-image: url(../bikes/gasgas.png)
}

.bike-honda {
    background-image: url(../bikes/Honda.png)
}

.bike-husqvarna {
    background-image: url(../bikes/Husqvarna.png)
}

.bike-kawasaki {
    background-image: url(../bikes/Kawasaki.png)
}

.bike-mz {
    background-image: url(../bikes/MZ.png)
}

.bike-mz {
    background-image: url(../bikes/MZ.png)
}

.bike-cz {
    background-image: url(../bikes/CZ.png)
}

.bike-tomos {
    background-image: url(../bikes/Tomos.png)
}

/* END bikes*/

/* START HIDDEN COLUMNS*/

#t-nation, #t-totaltime,#t-totaltime-l,#t-totaltime-r,#t-totaltime-avg, #t-diff, #t-inlap, #t-bike, #t-class, #t-pic, #t-gap-q, #t-laps-q, #t-lastlap-q {
    display: none;
    visibility: hidden;
}

.nation, .totaltime, .diff, .inlap, .motor, .class, .pic {
    display: none;
    visibility: hidden;
}


.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;
}

/* END HIDDEN COLUMNS*/

/*live part SKIPAD ACCELERATION AUTOCROSS*/

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

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


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

}

#tl-rider, .tl-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) {

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

    #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%;
	}
	
	#menu-class {
        font-size: 0.7rem;
    }
	
	#timetogo {
	  display: block ruby;
	}
	    #t-position-live, #ta-position-live {
		min-width: 1%;
		width: 1%;
		max-width: 1%;
	}
}

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

	#timer-logo {
    background-size: 100px 36px;
    width: 100px;
    height: 36px;
	}
	
    #header-logo, #header-location, .nation {
        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%;
	}
	#menu-class {
        font-size: 0.7rem;
    }
	
	#timetogo {
	  display: ruby;
	}

	  
	
}

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

    #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-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-totaltime-l,#t-totaltime-r,#t-totaltime-avg, #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-totaltime-l,#t-totaltime-r,#t-totaltime-avg, #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 */


