body {
    background-color: transparent;
}

/**
DOM elements ordered by z-index desc...
 */
#header {
    position: fixed;
    z-index: 2000;
    width: 100%;
    color: white;
    background: rgba(0, 0, 0, 0.8) linear-gradient(
            rgba(255, 255, 255, 0.4),
            rgba(255, 255, 255, 0)
    );
}

/* moved into index.html for performance
#outFader {
    text-align: center;
    margin: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1999;
    padding-top: 40%;
    background-color: #000;
}
*/

#error {
    pointer-events: none;
    position: fixed;
    z-index: 1900;
    width: 100%;
    height: auto;
    text-align: center;
    bottom: 120px;
    color: #ffffff;
    background-color: rgba(213, 0, 0, 0.8);
}
#info {
    pointer-events: none;
    position: fixed;
    z-index: 1800;
    width: 100%;
    height: auto;
    text-align: center;
    bottom: 150px;
    background-color: rgba(89, 154, 24, 0.8);
    text-shadow: 2px 2px 2px #ffffff,
                 1px -1px 1px #ffffff,
                -1px 1px 1px #ffffff,
                -1px -1px 1px #ffffff;
}
#debug {
    pointer-events: none;
    position: fixed;
    z-index: 1700;
    width: 100%;
    height: auto;
    text-align: center;
    bottom: 0px;
    background-color: beige;
}

#credits {
    position: absolute;
    overflow: hidden;
    z-index: 1100;
    width: 0;
    height: auto;
    top: 0px;
    right: 0px;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px 0px 0px 10px;
}

#webCameras {
    max-width: 100vw;
}

.option {
    position: absolute;
    top: 0px;
    left: 0px;
    max-width: 400px;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 0px 10px 10px 0px;
    box-shadow: 5px 5px 10px 0px #8c8c8c,
                0 0 0,
                0 0 0,
                0 0 0;
}
#options {
    position: absolute;
    overflow: hidden;
    z-index: 1000;
    /* when app starts, the options are hidden */
    width: 0;
    height: auto;
    top: 0px;
    color: white;
    background-color: rgba(68, 68, 68, 1);
    border-radius: 0px 0px 10px 0px;
    box-shadow: 5px 5px 10px 0px #8c8c8c, 0 0 0, 0 0 0, 0 0 0;
    max-width: 400px;
}

#menuButton {
    color: #ffffff;
    position: fixed;
    z-index: 999;
    left: 10px;
    top: 10px;
    background-color: rgba(0, 132, 255, 0.5);
    background: linear-gradient(to top, #0084ff, #00b2e4);
    background: linear-gradient(top, #0084ff, #00b2e4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    padding: 10px;
    box-shadow: 3px 3px 5px 1px #8c8c8c, 0 0 0, 0 0 0, 0 0 0;
}

#mapSwitcher {
    position: fixed;
    overflow: hidden;
    z-index: 993;
    top: 5px;
    right: 10px;
    padding: .3em;
    color: #ffffff;
}

#trafficReporter {
    position: fixed;
    overflow: hidden;
    text-align: right;
    z-index: 992;
    right: 10px;
    bottom: 10px;
}

#nordschleife {
    margin: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 911;
}

#video-stream {
    position: fixed;
    left: 0;
    bottom:0;
    min-width: 100%;
    min-height: 100%;
}

/** gravity - unused:
#gravity span {
    overflow: hidden;
    margin-top: 100px;
    z-index: 501;
    padding-right: 10px;
}
#gravity {
    position: relative;
    overflow: hidden;
    margin-top: 100px;
    z-index: 500;
}
*/

#arrowsDiv {
    z-index: 700;
    pointer-events: none;
}

#drivingModeHint {
    display: none;
    position: absolute;
    top: 40%;
    left: 45%;
    z-index: 600;
    width: 300px;
    background-color: #880000;
    color: white;
    border-radius: 5px;
    padding: 1em;
}

#timer {
    pointer-events: none;
    position: fixed;
    overflow: hidden;
    z-index: 500;
    top: 5rem;
    right: 10px;
    padding: .2em;
    font-family: 'Racing Sans One';
    color: #ffffff;
}

#speed {
    pointer-events: none;
    position: fixed;
    overflow: hidden;
    z-index: 500;
    text-align: right;
    padding: 0.1em;
    top: 11rem;
    right: 10px;
    font-family: 'Racing Sans One';
    color: #ffffff;
    /* simple variant: text-shadow: 0 0 5px black;*/
    text-shadow:     1px  1px 1px black,
    1px -1px 1px black,
    -1px  1px 1px black,
    -1px -1px 1px black
}

#vehicle {
    pointer-events: none;
    position: fixed;
    z-index: 400;
    width: 100%;
    text-align: center;
    /* bottom will be overwritten when geo is available */
    bottom: -200px;
}
#vehicleImage {
    width: 75px;
}

#map {
    margin: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 0;
}

/**
    non z-indexed elements:
 */
#title {
    font-size: 1.5em;
    text-align: center;
    padding: 10px 0 10px 0;
}

.roundedGreyBackground {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

#lapCounter {
    overflow: hidden;
    text-align: right;
    padding: 0.1em;
    color: white;
    font-size: 1.5em;
    text-shadow: 1px  1px 1px black,
    1px -1px 1px black,
    -1px  1px 1px black,
    -1px -1px 1px black;
}

#currentSpeed {
    color: orangered;
    font-size: 6em;
    padding: .1em;
    line-height: 0.7em;
    text-shadow: 2px  2px 2px black,
                 1px -1px 1px black,
                -1px  1px 1px black,
                -1px -1px 1px black;
}
#topSpeed {
    font-size: 2em;
    padding: .2em;
}

#stopwatch {
    overflow: hidden;
    text-align: left;
    padding: 0.1em;
    color: white;
    text-shadow: 1px  1px 1px black,
                 1px -1px 1px black,
                -1px  1px 1px black,
                -1px -1px 1px black;
}
#stopwatch span {
    text-align: center;
    font-weight: bold;
    display: block;
    font-size: xx-large;
}
#stopwatch a {
    padding-right: 10px;
    text-decoration: none;
    color: white;
}

.optionSelector {
    font-family: 'Racing Sans One';
    background: rgba(0, 0, 0, 0.8) linear-gradient( rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1) );
    margin-bottom: 2px;
    padding: .5em;
}
.optionDivider {
    background-image: linear-gradient(45deg, #333333 25%, transparent 25%), linear-gradient(-45deg, #333333 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #333333 75%), linear-gradient(-45deg, transparent 75%, #333333 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    padding: .5em;
}

.overallLapCounterClass {
    color: #ffffff;
    margin-left: 3.55em;
}

.hidden {
    display: none;
}

#lapTimesTable {
    border-right: 1px solid #888888;
    border-bottom: 1px solid #bbbbbb;
    text-align: center;
}

#lapTimesList {
    max-height: 130px;
    overflow-y: scroll
}
#lapTimesList li {
    list-style: none;
}

#openingHoursList li {
    list-style: none;
}

#weatherTable th, td {
    border-right: 1px solid #888888;
    border-bottom: 1px solid #bbbbbb;
    text-align: center;
}

#weatherLicense {
    padding: 1em;
    font-size: x-small;
    color: #aaaaaa;
    max-width: 200px;
}

.vehicleIcon {
    border:0px solid #aaaaaa;
    border-radius: 8px;
    background-color: transparent;
    padding: 1px;
    width: 75px;
}

.originSeparator {
    border-top: 1px solid #ffa50066;
    margin: 0;
}
.flag {
    padding: 5px;
}

.webcamImage {
    border: 1px solid #000;
    max-width: 300px;
}

.creditsLine {
    padding-left: 20px;
}

.malo {
    font-size: small;
}

.creditsLine {
    padding-left: 20px;
    padding-right: 20px;
}

.center {
    text-align: center;
}

.carbon {
    background-color: #222;
    background:
        radial-gradient(black 15%, transparent 16%) 0 0,
        radial-gradient(black 15%, transparent 16%) 8px 8px,
        radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
        radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;
    background-color:#282828;
    background-size:16px 16px;
}
