
@font-face {
    font-family: 'Rajdhani';
    src: url('/css/Rajdhani-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.waiting-image-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;    /* Center vertically */
}

/* RESET DI BASE */
body {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    background-color: black;
    color: white;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #101012; /* Sfondo scuro */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 2px solid red; /* Linea rossa in basso */
    z-index: 1000;
}

.header .logo {
    display: flex;
    align-items: center;
}

.header .logo img {
    max-height: 75px;
    margin-right: 10px;
}

/* Testo “LAP TIMER” in rosso */
.sessionType {
    font-size: 2.2em;
    font-weight: bold;
    color: red; /* Cambia se vuoi un altro rosso */
    margin-left: 8px;
}

/* Contenuto a destra (luogo, data/ora) */
.header .right-text {
    display: flex;
    flex-direction: row;  /* Se vuoi le info su una sola riga, usa row */
    gap: 20px;           /* Spazio orizzontale tra i due span */
    align-items: center;
}

.rightTitle {
    display: flex;
    align-items: center;
    gap: 5px; /* Spazio tra l’icona e il testo */
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
}

/* LINEA INCLINATA E TITOLO SESSIONE */
.inclined-line-navbar {
    width: 3px;
    height: 80px;
    background-color: rgba(211, 211, 211, 0.44);
    transform: rotate(15deg);
    transform-origin: top left;
    display: inline-block;
    margin-left: 20px;
    margin-right: 10px;
}
.sessionType {
    font-size: 1.8em;
    font-weight: bold;
    color: red;
}

.content {
    padding-top: 100px;
    margin-top: 20px;
}

tr {
    color: white;
}

.boardTable {
    border: 0;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}
thead {
    background-color: #202021;
    color: white;
    font-weight: bold;
    font-size: 1.4em;
}
thead > tr {
    border-bottom: 5px solid black;
}

tbody {
    font-weight: bold;
    font-size: 1.8em;
}

tbody > tr {
    height: 55px;
}

tbody > tr td {
    min-width: 75px;
}

tbody > tr:first-child > td:first-child {
    font-size: 1.3em;
    -webkit-text-stroke: 12px #FFD700;
    paint-order: stroke fill;
    color: black;
}


tbody > tr:nth-child(2) > td:first-child {
    font-size: 1.3em;
    -webkit-text-stroke: 12px #C0C0C0;
    paint-order: stroke fill;
    color: black;
}


tbody > tr:nth-child(3) > td:first-child {
    font-size: 1.3em;
    -webkit-text-stroke: 12px #CD7F32;
    paint-order: stroke fill;
    color: black;
}




/* RIGHE PARI E DISPARI */
.odd-row {
    background-color: #181818;
}
.even-row {
    background-color: #202021;
}

/* Celle base */
.boardTable th,
.boardTable td {
    vertical-align: middle;
    padding: 0.0rem 1rem;
    color: white;
}

/* CELLA NUMERO PILOTA (#) */

.pilotNumberCell > div {
    text-align: center;
    padding: 0 8px;
    border-radius: 8px;
    font-weight: bold;
    color: white;
    background-color: var(--bg-color) !important;
    -webkit-text-stroke: 8px black;
    paint-order: stroke fill;
}

.rider-name::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background-color: var(--line-color);
    border-radius: 2px;
}

/* RIDER NAME con barra colorata a sinistra */
.rider-name {
    position: relative;
    padding-left: 12px !important;
    text-align: left;
}

.sensor-container {
    padding: 4px 8px;
    gap: 12px;
    display: inline-flex;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.best-total-time {
    border: 2px solid #C5DB00;
    border-radius: 4px;
}

.cell-with-icon {
    position: relative;
}

.cell-with-icon > .arrow-up, .arrow-down {
    position: absolute;
    top: 50%;
    left: 7px;
    transform: translateY(-50%);
}

.arrow-down,
.arrow-up,
.lightning-icon {
    color: #000000;
    border-radius: 50%;
    font-size: 12px;
    padding: 0 3px;
}

.lightning-icon {
    background-color: #C5DB00;
}

.arrow-up {
    background-color: #58db00;
}

.arrow-down {
    background-color: #db0000;
}

.showTop {
    visibility: visible;
}

.hideTop {
    visibility: hidden;
}
/****************** END HOLESHOT **************/

/*********** LAP TIMER ************/
.lap-container {
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: transparent;
    max-width: 270px;
}

.lap-left,
.lap-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 118px;
}

/* Tempo e Lap No. in bianco */
.lap-time,
.lap-no {
    color: #ffffff;
    font-weight: bold;
    font-size: 1em;
    white-space: normal;
    overflow-wrap: break-word;
    width: 100%;
}

/* Label (BEST/WORST) */
.lap-label {
    margin-left: 10px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.85rem;
}

/* BEST Lap (giallo) */
.lap-container.best-lap {
    border-color: #C5DB00;
}
.lap-container.best-lap .lap-label {
    color: #C5DB00;
}



.lap-container.best-lap i {
    color: #000000;
    background-color: #C5DB00;
    border-radius: 50%;
    font-size: 12px;
    padding: 0 3px;
}

/* WORST Lap (viola) */
.lap-container.worst-lap {
    border-color: #9D0FDF;
}
.lap-container.worst-lap .lap-label {
    color: #9D0FDF;
}
.lap-container.worst-lap i {
    color: #9D0FDF;
    font-size: 17px;
}

.best-lap-head {
    display: flex;
    align-items: center;
    gap: 40px;
}

.best-lap-head .blh_left {
    font-weight: 400;
    font-size: 0.8em;
}

.lap-colgroup {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Titolo principale (“Best Lap” / “Worst Lap”) */
.lap-colgroup-main {
    font-weight: 600;
    font-size: 1em;
}

.lap-colgroup-sub {
    font-weight: 400;
    font-size: 0.8em;
    color: #ccc;
}


/**************END LAP TIMER************/