﻿@import url('loader.css');
@import url('overrides.css');

@font-face {
    font-family: Digit;
    src: url(font/digit.ttf) format('truetype'), url(font/digit.woff) format('woff'), url(font/digit.woff2) format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: Scx;
    src: url('font/scx.ttf') format('truetype'), url('font/scx.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    width: 100vw;
    height: 100vh;
}

.menu-item-panel {
    width: 15rem;
    height: 15rem;
}

.menu-item-bg {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: .2;
    width: 100%;
    height: 100%;
    background-repeat: space;
    background-position: center;
}

.menu-item-image {
    position: absolute;
    top: 30%;
    bottom: 10%;
    left: 0;
    right: 0;
    width: 100%;
    height: 60%;
    align-self: center;
    filter: drop-shadow(3px 3px 1px black) opacity(0.7);
}

.menu-item-header {
    position: absolute;
    top: 0;
    bottom: 70%;
    left: 0;
    right: 0;
    width: 100%;
    height: 30%;
    font-family: Scx;
    font-size: 1.8rem;
    font-weight: normal;
}

.app-top-bar {
    height: 64px;
}

.settings-panel {
    max-height: calc(75vh - 64px);
}

.menu-settings-panel {
    overflow: auto;
}

.table-image {
    height: 3rem;
}


.mud-switch {
    margin-left: 0px;
    margin-inline-start: 0px;
}

.dialog-content {
    overflow-y: scroll;
    max-height: 70vh;
}

.race-main-content {
    width: 100vw;
    height: 100vh;
}

.race-container {
    width: 100vw;
    height: 100vh;
}

.race-control-panel {
    font-size: 16px; /* this value would scale the items */
}

.race-header {
    height: 10%;
    max-height: 10%;
}

.race-content {
    height: 80%;
    max-height: 80%;
}

.race-footer {
    height: 10%;
    max-height: 10%;
}

.rdc-exit-request-cont {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.rdc-laps-to-go-cont {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.rdc-time-remains-cont {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.rdc-fastest-lap-cont {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.rdc-print-pdf-cont {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rdc-yellow-flags-cont {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rdc-weather-cont {
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


.rdc-cont {
    border: white 4px solid;
    height: 100%;
}

.rdc-data-cont {
    position: relative;
    font-size: 1em;
    height: 100%;
}

.rdc-label-text {
    font-size: 1em;
}

.rdc-value-text {
    font-size: 3em;
}


.rdc-pos-cont {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.rdc-driver-image-cont {
    position: absolute;
    left: 1em;
    width: 10em;
    height: 100%;
}

.rdc-name-cont {
    position: absolute;
    left: 12em;
    top: 1em;
}

.rdc-delta-time-cont {
    position: absolute;
    left: 12em;
    top: 6em;
}

.rdc-current-lap-cont {
    position: absolute;
    left: 26em;
    top: 3.5em;
}

.rdc-fuel-cont {
    position: absolute;
    left: 33em;
    top: 1em;
}

.rdc-kers-cont {
    position: absolute;
    left: 39em;
    top: 1em;
}

.rdc-tyres-cont {
    position: absolute;
    left: 46em;
    top: 1em;
}

.rdc-health-cont {
    position: absolute;
    left: 54em;
    top: 1em;
}

.rdc-last-time-cont {
    position: absolute;
    left: 58em;
    top: 3.5em;
}

.rdc-best-time-cont {
    position: absolute;
    left: 72em;
    top: 3.5em;
}

.rdc-current-time-cont {
    position: absolute;
    left: 86em;
    top: 3.5em;
}

.rdc-pit-cont {
    position: absolute;
    left: 86em;
    top: 1em;
}

.rdc-pit-time-cont {
    position: absolute;
    left: 86em;
    top: 6em;
}




.rdc-pos {
    font-family: Digit;
    font-size: 9em;
}

.rdc-best-time {
    font-size: 2em;
    left: 3em;
}

.rdc-best-time-star {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 3em;
    color: gold;
}

.rdc-name {
    font-size: 2em;
}

.rdc-driver-image {
    width: 100%;
    height: 100%
}

.rdc-last-time {
    font-size: 2em;
}

.rdc-current-time {
    font-size: 2em;
}

.rdc-delta-time {
    font-size: 2em;
}

.rdc-pit {
    background-image: url("images/hud/pit.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 10em;
    height: 10em;
}

.rdc-pit-exit {
    background-image: url("images/hud/pitexit.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 10em;
    height: 10em;
}

.rdc-pit-time {
    font-size: 2em;
}

.rdc-health {
    width: 2em;
    height: 7em;
}

.rdc-kers {
    width: 7em;
    height: 7em;
}

.rdc-tyres {
    width: 7em;
    height: 7em;
}

.rdc-fuel {
    width: 7em;
    height: 7em;
}

.rdc-fuel-level {
    font-family: Digit;
    font-size: 2em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.rdc-starting-lights {
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.rdc-count-down-yf {
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.rdc-yellow-flag-panel {
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



.rdc-weather {
    height: 5em;
}

.rdc-time-back {
    font-family: Digit;
    top: 0;
    left: 0;
    position: absolute;
}

.rdc-time-front {
    font-family: Digit;
    top: 0;
    right: 0;
    position: absolute;
}
