
#themeVideo{
    height: 100%;
    width: 100%;
    animation: slideleft 20s linear forwards;
}



body {
    background: #222;
    font-family: "Press Start 2P", monospace;
    font-smooth: never;
    height: 98vh;
}

/* UI */
.topUI {
    position: absolute;
    z-index: 1000; /* need this cause clip-path changes stack context */
    transform: translate(-50%, 25px);
    text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
    letter-spacing: 2px;
    color: #fff;
    font-size: 17px;
}
.topUI::before {
    display: inline-block;
    height: 17px;
    padding: 1px 2px;
    line-height: 19px;
    font-size: 17px;
    background: #fff;
    text-shadow: none;
    font-weight: 900;
    letter-spacing: 0;
    border-radius: 6px;
    margin-right: 30px;
    border: 2px solid #7dd8c9;
}
#time {
    left: 13%;
    color: #f4f430;
}
#time::before {
    content: "TIME";
    color: #f57214;
}
#score {
    left: 45%;
}
#score::before {
    content: "SCORE";
    color: #a61a9d;
}
#lap {
    left: 88%;
    width: 45%;
}
#lap::before {
    content: "LAP";
    color: #0082df;
}

#tacho {
    position: absolute;
    text-align: right;
    width: 23%;
    bottom: 5%;
    z-index: 2000;
    color: #e62e13;
    text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
    letter-spacing: 2px;
    font-size: 23px;
}
#tacho::after {
    content: "km/h";
    color: #fab453;
    font-size: 18px;
    margin-left: 5px;
}

/*
road
*/
#game {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    background: #222;
    user-select: none;
    transition: opacity 10s;
}
#road {
    transition: opacity 2s;
    transition-timing-function: steps(8, end);
}
#road * {
    position: absolute;
    image-rendering: pixelated;
}
#hero {
    background-repeat: no-repeat;
    background-position: -110px 0;
    z-index: 2000;
    transform: scale(1.4);
}
#cloud {
    background-size: auto 100%;
    width: 100%;
    height: 57%;
}

/*
home
*/
#road {
    position: absolute;
    width: 100%;
    height: 100%;
}

#home {
    position: absolute;
    color: #fff;
    width: 100%;
    height: 100%;

    z-index: 1000; /* need this cause clip-path changes stack context */
}

#highscore {
    position: absolute;
    width: 100%;
    height: 20%;
    bottom: 0;
    column-count: 3;
    column-fill: auto;
}

#highscore * {
    color: #9e95a8;
    margin: 0 0 6px 27px;
}

h1 {
    position: absolute;
    left: 50%;
    top: 15%;
    transform: translate(-50%, -50%);
    font-size: 5em;

    background: -webkit-linear-gradient(#25d8b1, #e2bbf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


h2 {
    position: absolute;
    left: 50%;
    top: 25%;
    transform: translate(-50%, -50%);
    font-size: 5em;

    background: -webkit-linear-gradient(#25d8b1, #e2bbf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    color: #d9bbf3;
    text-shadow: 0 0 black, 0 2px black, 2px 0 black, 0 0 black;
}

.blink {
    animation: blinker 2s steps(4, end) infinite;
}
@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/*
Guide
*/
#controls {
    color: #868686;
    font-size: 13px;
    line-height: 13px;
    margin: 10px;
    text-align: center;
}
#controls > span {
    margin-left: 20px;
}
#controls > span > span {
    border: 2px solid #868686;
    border-radius: 5px;
    padding: 7px;
    margin-right: 10px;
    display: inline-block;
}
#controls > span:last-child > span {
    transform: rotate(90deg);
}



/*Display loader----------------------*/
section#loader {
    position: fixed;
    min-height: 100vh;
    min-width: 100vw;
    background: #2e3133;
    z-index: 7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scan {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.scan .qrcode {
    position: relative;
    width: 400px;
    height: 400px;
    background: url("Game 01/images/video/myVideo.mp4");
    background-size: 400px;
}

.scan .qrcode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("Game 01/images/video/myVideo.mp4");
    background-size: 400px;
    overflow: hidden;
    animation: animate2 4s ease-in-out infinite;
}

@keyframes animate2 {
    0%,100% {
        height: 20px;
    }
    50% {
        height: calc(100% - 20px);
    }
}

.scan .qrcode::after {
    content: '';
    position: absolute;
    inset: 20px;
    width: calc(100% - 40px);
    height: 2px;
    background: #2ED573;
    filter: drop-shadow(0 0 20px #2ED573) drop-shadow(0 0 60px #2ED573);
    animation: animateLine 4s ease-in-out infinite;
}

@keyframes animateLine {
    0%{
        top: 20px;
    }
    50% {
        top: calc(100% - 20px);
    }
}

.border{
    position: absolute;
    inset: 0;
    background-size: 400px;
    animation: animationText 0.5s linear infinite;
}

.scan h3 {
    text-transform: uppercase;
    font-size: 2em;
    margin-top: 20px;
    color: #ffffff;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 20px #ffffff) drop-shadow(0 0 60px #ffffff);
    animation: animationText 0.5s steps(1) infinite;
}

@keyframes animationText {
    0%,100%{
        opacity: 0;
    }
    50%{
        opacity: 1;
    }
}
