@font-face {
    font-family: 'TRON';
    src: url('fonts/tr2n.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MOONBEAM';
    src: url('fonts/MOONBEAM.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



:root {
    --blue: #00f;
    --red: #f00;
    --green: #0f0;
    --yellow: #ff0;
}

.neonBlue {
    font-family: "TRON", Arial, sans-serif;
    color: #aaf;
    text-transform: uppercase;
    text-shadow:
        0 0 5px var(--blue),
        0 0 10px white,
        0 0 15px var(--blue),
        0 0 20px var(--blue),
        0 0 25px var(--blue),
        0 0 30px var(--blue);
}

.neonRed {
    font-family: "TRON", Arial, sans-serif;
    color: #faa;
    text-transform: uppercase;
    text-shadow:
        0 0 5px var(--red),
        0 0 10px white,
        0 0 15px var(--red),
        0 0 20px var(--red),
        0 0 25px var(--red),
        0 0 30px var(--red);
}

.neonGreen {
    font-family: "TRON", Arial, sans-serif;
    color: #afa;
    text-transform: uppercase;
    text-shadow:
        0 0 5px var(--green),
        0 0 10px white,
        0 0 15px var(--green),
        0 0 20px var(--green),
        0 0 25px var(--green),
        0 0 30px var(--green);
}

.neonYellow {
    font-family: "TRON", Arial, sans-serif;
    color: #ffa;
    text-transform: uppercase;
    text-shadow:
        0 0 5px var(--yellow),
        0 0 10px white,
        0 0 15px var(--yellow),
        0 0 20px var(--yellow),
        0 0 25px var(--yellow),
        0 0 30px var(--yellow);
}

.boxBlue {
    background-color: black;
    padding: 1%;
    box-shadow:
        0 0 5px var(--blue),
        0 0 10px white,
        0 0 15px var(--blue),
        0 0 20px var(--blue),
        0 0 25px var(--blue),
        0 0 30px var(--blue);
}

.boxRed {
    background-color: black;
    padding: 1%;
    box-shadow:
        0 0 5px var(--red),
        0 0 10px white,
        0 0 15px var(--red),
        0 0 20px var(--red),
        0 0 25px var(--red),
        0 0 30px var(--red);
}

.boxGreen {
    background-color: black;
    padding: 1%;
    border-radius: 2dvmin;
    box-shadow:
        0 0 5px var(--green),
        0 0 10px white,
        0 0 15px var(--green),
        0 0 20px var(--green),
        0 0 25px var(--green),
        0 0 30px var(--green);
}

.boxYellow {
    background-color: black;
    padding: 1%;
    box-shadow:
        0 0 5px var(--yellow),
        0 0 10px white,
        0 0 15px var(--yellow),
        0 0 20px var(--yellow),
        0 0 25px var(--yellow),
        0 0 30px var(--yellow);
}

.boxBlue:hover,
.boxRed:hover,
.boxGreen:hover,
.boxYellow:hover {
    cursor: pointer;
    box-shadow:
        0 0 10px white,
        0 0 20px currentColor,
        0 0 30px currentColor,
        0 0 40px currentColor;
    transition: box-shadow 0.3s ease;
}

.startBoxBlue {
    width: 75%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    padding: 1%;
    box-shadow:
        0 0 5px var(--blue),
        0 0 10px white,
        0 0 15px var(--blue),
        0 0 20px var(--blue),
        0 0 25px var(--blue),
        0 0 30px var(--blue);
    transition: opacity 0.3s ease;
}

html {
    overflow: hidden;
}

body {
    height: 100dvh;
    margin: 0;
    padding: 0;
    background-color: black;
    display: grid;
    place-items: center;
    font-family: MOONBEAM, Helvetica, sans-serif;
    font-size: 5vmin;
}

#start {
    display: grid;
    height: 100dvh;
    width: 100dvw;
    justify-items: center;
    align-items: center;
    background-image: url("img/back.png");
    background-repeat: repeat;
    color: white;
    text-align: center;
}

#gamescreen {
    width: 100vw;
    height: 100vh;
    background-image: url("img/backGame.jpg");
    background-size: cover;
    display: flex;
    color: white;
    background-color: black;
    align-items: center;
}

#dronn {
    position: absolute;
    top: 1dvh;
    left: 50%;
    transform: translate(-50%);
}

#startButton,
#select {
    position: absolute;
    bottom: 5dvh;
    left: 50%;
    transform: translate(-50%);
    z-index: 1;
}
#startBikeRed {
    position: absolute;
    bottom: 5dvh;
    left: -100%;
    transition: left 2s ease-in-out;
    z-index: 0;
}

canvas {
    border: solid red 1px;
    background-image: url("img/back.png");
    background-repeat: repeat;
    height: 90dvh;
    margin-left: 4vw;
}

#gameover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10vmin;
    background-color: black;
    padding: 2vmin;
    border: white 2px solid;
    border-radius: 10px;
    width: 75dvw;
    text-align: center;
    transition: opacity 0.5s ease-in-out;
}

#countdown {
    width: 50dvw;
    text-align: center;
    font-family: MOONBEAM, Helvetica, sans-serif;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 99;
    transform: translate(-50%, -50%);
}

img {
    max-width: 90dvw;
}

#score {
    border: solid 1px red;
    border-radius: 40px;
    margin-left: 5%;
    display: grid;
    align-items: center;
    padding: 3%;
    background-color: #00000082;
}

#timeBox {
    border: solid 1px red;
    border-radius: 40px;
    margin-left: 5%;
    display: grid;
    align-items: center;
    padding: 6%;
    background-color: #000000c8;
    font-size: 3vmin;
}

.paddingButtom {
    padding-bottom: 25%;
}

.miniBike {
    max-height: 5dvh;
    max-width: 15dvw;
}

#startBike {
    max-height: 15dvh;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /*animation: slideLeft 8s linear forwards infinite;*/
    transition: left 1s ease-in-out;
}

#tryAgain,
#gameOver,
#winner {
    max-width: 75dvw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease-in-out;
}

@keyframes slideLeft {
    0% {
        transform: translateX(200vw);
        /* Start: ganz rechts außerhalb */
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(-1000vw);
        /* Ende: ganz links außerhalb */
        opacity: 0;
    }
}

#turnLeft,
#turnRight {
    height: 100dvh;
    width: 40dvw;
    z-index: 10;
    opacity: 0.1;
}

#turnLeft {
    position: absolute;
    top: 0;
    left: 0;
}

#turnRight {
    position: absolute;
    top: 0;
    right: 0;
}

#intro {
    color: gray;
    text-align: center;
    font-size: 3dvw;
}

#nameOfTheGame {
    font-size: 7dvw;
    color: white;
}

#clickMe {
    background: #ccc;
    background: linear-gradient(#ccc, #777);
    border: 1px solid #ffffff;
    border-radius: 11px;
    box-shadow: 4px 4px #666666;
    padding: 20px 45px;
    color: #000;
    display: inline-block;
    font: normal bold 26px/1 "Open Sans", sans-serif;
    text-align: center;
}

#clickMe:hover {
    cursor: pointer;
}

#fader {
    display: flex;
}

#blackLeft,
#blackRight {
    background-color: black;
    height: 100vh;
    width: 50vw;
    position: absolute;
    z-index: 5;
    transition: left 5s ease;
}

#blackLeft {
    top: 0;
    left: 0;
}

#blackRight {
    top: 0;
    left: 50vw;
}

#blackLeft.gone {
    left: -150vw;
}

#blackRight.gone {
    left: 200vw;
}

#logo {
    max-width: 10dvw;
}
.logoSmall {
    position: absolute;
    top: 1%;
    right: 1%;
    max-width: 10dvw;
    max-height: 10dvh;
    opacity: 50%;
}
.copyrightLogo {
    height: 3dvw;
}

#select{
    width: 90dvw;
    justify-content: space-around;
    z-index: 99;
}