@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300&family=Oswald&family=Press+Start+2P&display=swap');
@font-face {
    font-family: dseg7;
    src: url("/font/dseg7.woff");
}

:root {
    --c-black: #0C0C0C;
    --c-blue: #0037da;
    --c-cyan: #3A96DD;
    --c-green: #13A10E;
    --c-purple: #881798;
    --c-red: #C50F1F;
    --c-white: #CCCCCC;
    --c-yellow: #C19C00;
    --c-brightBlack: #767676;
    --c-brightBlue: #3B78FF;
    --c-brightCyan: #61D6D6;
    --c-brightGreen: #16C60C;
    --c-brightPurple: #B4009E;
    --c-brightRed: #E74856;
    --c-brightWhite: #F2F2F2;
    --c-brightYellow: #F9F1A5;
    --c-greenscreen: #04F404;
}

body {
    background-color: var(--c-black);
    font-family: 'Heebo', sans-serif;
    color: var(--c-brightWhite);
    margin: 0px;
}

nav {
    background-color: rgba(0, 55, 218, 0.5);
    display: flex;
    flex-direction: row;
    backdrop-filter: blur(10px) brightness(0.95);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    width: 100vw;
    min-height: 1em;
    font-size: 1.3vw;
    padding-top: 1vh;
    padding-bottom: 1vh;
    box-shadow: 0px 7px 15px 5px rgba(0, 0, 0, 0.26);
}

a {
    color: var(--c-brightCyan);
    text-decoration: none;
}

nav>.item {
    padding-left: 1vw;
    color: var(--light-green);
    text-decoration: none;
}

nav>.active {
    color: var(--green);
}

nav>.item:first-child {
    padding-left: 0.5vw;
}

nav>.item {
    padding-left: 0.7vw;
}

h1,
h2,
h3 {
    font-family: 'Oswald', sans-serif;
}

h1 {
    font-size: 4em;
}

h2 {
    font-size: 2.5em;
}

.hero {
    background: var(--c-blue);
    height: 33vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    margin-left: 10vw;
    margin-right: 10vw;
}

footer {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--c-blue);
    top: auto;
    bottom: 0;
    position: fixed;
    width: 100vw;
}

footer>* {
    margin-right: 1em;
}

.flexbox {
    display: flex;
}

.fl-row {
    flex-direction: row;
}

.fl-center {
    align-items: center;
    justify-content: center;
}

.fl-right {
    justify-content: right;
}

.screen-size {
    width: 100vw;
    height: 100vh;
}

.full-height {
    height: 100vh;
}

#gamefield {
    width: 700px;
    max-height: 100vh;
    background-color: var(--c-brightBlack);
    background-image: url("/img/asfaltV.4.png");
    image-rendering: pixelated;
    background-repeat: repeat;
    background-size: 50px;
}

.object {
    width: 50px;
    height: 100px;
    max-height: 110px;
    max-width: 50px;
    padding: 0px !important;
    margin: 0px !important;
}

.moving {
    margin: 2px !important;
}

.car {
    background-image: url("/img/car-final.png");
    background-size: contain;
    image-rendering: pixelated;
}

.enemy-car {
    background-image: url("/img/car0.png");
    background-size: contain;
    image-rendering: pixelated;
}

.trava {
    background-image: url("/img/trava.png");
    image-rendering: pixelated;
    background-repeat: repeat;
    background-size: 50px;
}

.font-override-ps {
    font-family: 'Press Start 2P', cursive !important;
}

.blink {
    animation: blinker 1s infinite;
}

.blink-quick {
    animation: blinker 0.1s infinite;
}

@keyframes blinker {
    from {
        opacity: 1.0;
    }
    50% {
        opacity: 0.5;
    }
    to {
        opacity: 1.0;
    }
}

.ml1 {
    margin-right: 1.5em;
}

.autoadjust-title {
    font-size: 2vw;
}

.main-menu-bg {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.50) 100%), url("/img/main-menu.png");
    background-size: cover;
    image-rendering: pixelated;
}

.foreground-color-black {
    color: var(--c-black);
}

.highlight {
    color: var(--c-brightRed);
}

.restart-screen {
    background: url("/img/restart-screen.png");
    background-size: cover;
    image-rendering: pixelated;
}

.font-override-ps {
    font-family: 'Press Start 2P', cursive !important;
}

.game-bar {
    z-index: 1000;
    display: flex;
    color: transparent;
    align-items: center;
    justify-content: center;
    top: auto;
    bottom: 0;
    position: fixed;
    width: 100vw;
}

.mt-1 {
    margin-top: 2em;
}

.settings-bar {
    z-index: 10;
    left: 0;
    top: 0;
    bottom: auto;
    position: fixed;
}

.screen {
    font-family: dseg7;
    background-color: #11d443;
    color: #00360e;
    font-size: 1.5rem;
}

.screen-set {
    width: 17rem;
}

.screen-speed {
    font-size: 3rem;
}

.text-right {
    text-align: right;
}

.fl-spacebetween {
    justify-content: space-between;
}

.m-10 {
    margin: 10px;
}

.m-0 {
    margin: 0px;
}

.rev-led {
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.rev-led.active {
    background-color: var(--c-brightGreen);
}

.rev-led.active.rev-led-blue {
    background-color: var(--c-cyan);
}

.rev-led.active.rev-led-red {
    background-color: var(--c-brightRed);
}

.rev-led.active.rev-led-yellow {
    background-color: var(--c-brightYellow) !important;
}

.road-border {
    border-color: #FFCC00;
    border-style: solid;
    border-left-width: 0.5rem;
    border-right-width: 0.5rem;
    border-top-width: 0px;
    border-bottom-width: 0px;
}

input[type="range"] {
    -webkit-appearance: none;
    margin-right: 15px;
    width: 200px;
    height: 7px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    background-size: 70% 100%;
    background-repeat: no-repeat;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--c-red);
    cursor: ew-resize;
    box-shadow: 0 0 2px 0 #555;
    transition: background .3s ease-in-out;
}

input[type=range]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}