﻿
@font-face {
    font-family: "Formula1-Regular";
    src: url("fonts/Formula1-Display-Regular.otf");
}
@font-face {
    font-family: "Formula1-Bold";
    src: url("fonts/Formula1-Display-Bold.ttf");
}
@font-face {
    font-family: "TitilliumWeb-Regular";
    src: url("fonts/TitilliumWeb-Regular.ttf");
}
@font-face {
    font-family: "KHInterferenceF1-Regular";
    src: url("fonts/KHInterferenceF1-Regular.ttf");
}

input {
    font-family: TitilliumWeb-Regular;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}

.hide {
    display: none !important;
}

.formula1-reg {
    font-family: "Formula1-Regular";
}

.titillium-reg {
    font-family: "TitilliumWeb-Regular";
}

html {
    font-size: 2.08vh;
}
html::-webkit-scrollbar {
    display: none;
}

body {
    background-color: #15151E;
    color: #F7F4F1;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.scrolling {
    overflow-y: scroll;
}

p {
    user-select: none;
}

img {
    user-select: none;
    pointer-events: none;
}

#backdrop {
    opacity: 0;
    /*transform: translate(10vh, -10vh); /* Adjust the value for the desired motion effect */
    transition: opacity 2s ease-out, transform 2s ease-out;
    width: calc(100vw + 10vh);
    height: calc(100vh + 10vh);
    position: fixed;
    background-repeat: repeat;
    user-select: none;
    pointer-events: none;
}

    #backdrop.background-design {
        background-image: url("./images/backdrop-design.png");
        background-position: center;
        background-size: cover;
        opacity: 1;
        /*transform: translate(0, 0);*/
    }

#main {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 87vh;
    max-height: 100vh;
    flex-direction: column;
    overflow-x: scroll;
}
#main::-webkit-scrollbar {
    display: none;
}

#main.formPage {
    position:absolute;
    top:27vh;
    height: 52vh;
    width: 90%;
    max-width: 50vh;
    padding: 0.5vh;
    overflow-x: hidden;
}

/*@media (orientation: landscape) {
    #main {
        max-width: calc(100vh / 1.25);
    }

    #form-container .paddedContainer {
        max-width: 25vw;
    }
}*/



#main div {
    text-align: left;
}

    #main div.flex {
        display: flex;
        width: 100%;
    }

#main div.form-div {
    width: 100%;
    max-height: 8vh;
    flex: 1;
    margin: 1vh;
}
    #main div.form-div.full-height {
        width: 100%;
        max-height: 100%;
    }
    #main div.form-div p {
        font-family: TitilliumWeb-Regular;
        color: #F7F4F1;
        font-size: 1.6vh;
        margin: 0.5vh;
    }
        #main div.form-div p.error {
            font-family: TitilliumWeb-Regular;
            color: #F10011;
            font-size: 1.4vh;
            margin: 0vh 1.5vh;
            display: none;
        }
        #main div.form-div p.green {
            color: #71CC98;
            font-weight: bold;
        }
    #main div.form-div div.dropdown {
        position: relative;
        border: 1px solid #9D9DA0;
        border-radius: 0.75vh;
        display: flex;
        flex-direction: column;
        min-height: 4.6vh;
        background: #15151E;
        transition: border ease-out 0.2s;
    }
        #main div.form-div div.dropdown.complete {
            border: 1px solid white;
        }
        #main div.form-div div.dropdown.active {
            border: 1px solid #71CC98;
            z-index: 2;
        }
        #main div.form-div div.dropdown.error {
            border: 1px solid #F10011;
            z-index: 2;
        }
        #main div.form-div div.dropdown div.btn {
            min-height: 4.6vh;
            width: 100%;
            display: flex;
            align-items: center;
        }
            #main div.form-div div.dropdown div.btn p {
                flex: 1;
                margin: 0 1.5vh;
                color: #9D9DA0;
            }
            #main div.form-div div.dropdown div.btn img {
                height: 2.5vh;
                margin: 0 1.5vh;
                transform: rotate(180deg);
                transition: transform ease-out 0.2s;
            }
        #main div.form-div div.dropdown div.content {
            width: 100%;
            display: flex;
            display: none;
            flex-direction: column;
            align-items: center;
        }
            #main div.form-div div.dropdown div.content div.break {
                width: calc(100% - 2vh);
                height: 1px;
                background: #9D9DA0;
            }
            #main div.form-div div.dropdown div.content div.scroll {
                width: calc(100% - 2vh);
                max-height: 20vh;
                overflow-y: scroll;
            }
                #main div.form-div div.dropdown div.content div.scroll p {
                    color: #9D9DA0;
                    padding: 0.5vh;
                    border-radius: 0.5vh;
                    margin-left: 0;
                    width: calc(100% - 1vh);
                }
                    #main div.form-div div.dropdown div.content div.scroll p:hover {
                        color: white;
                        background: #E10600;
                    }
                #main div.form-div div.dropdown div.content div.scroll::-webkit-scrollbar {
                    display: none;
                }

    #main div.form-div input {
        border: 1px solid #9D9DA0;
        border-radius: 0.75vh;
        display: flex;
        flex-direction: column;
        min-height: calc(4.6vh + 2px);
        background: #15151E;
        width: calc(100% + 2px);
        color: white;
        font-size: 1.6vh;
        padding-left: 1.5vh;
        transition: border ease-out 0.2s;
    }
        #main div.form-div input.complete {
            border: 1px solid white;
        }
        #main div.form-div input:focus {
            outline: none;
            border: 1px solid #71CC98;
        }
        #main div.form-div input.error {
            border: 1px solid #F10011;
        }
    #main div.form-div div.survey-checks {

    }
        #main div.form-div div.survey-checks div {
            display: flex;
            align-items: center;
        }
        #main div.form-div div.survey-checks input {
            appearance: none; /* Remove default checkbox styling */
            -webkit-appearance: none; /* For Safari */

            border: 1px solid white;
            min-width: 2.25vh;
            min-height: 2.25vh;
            max-width: 2.25vh;
            max-height: 2.25vh;
            border-radius: 0.25vh;
        }
            #main div.form-div div.survey-checks input:checked {
                background: url('./images/check-white.png');
                background-size: 70%;
                background-position: center;
                background-repeat: no-repeat;
            }
        #main div.form-div div.survey-checks p {
            margin: 0 1.5vh;
        }

    #main div.white-box {
        background: #EFEDF9;
        width: calc(100% - 2vh);
        border-radius: 0.75vh;
        margin: 2vh;
    }
        #main div.white-box p {
            color: black;
            margin: 0.6vh 1vh;
            font-family: TitilliumWeb-Regular;
            font-size: 1.2vh;
        }
            #main div.white-box p.error {
                color: #F10011;
                height: 0;
                margin: 0 5.3vh;
                transform: translateY(-2.2vh);
                display: none;
            }
        #main div.white-box div.flex {
            margin: 1.5vh;
        }
        #main div.white-box input.check {
            appearance: none; /* Remove default checkbox styling */
            -webkit-appearance: none; /* For Safari */

            background-color: white;
            border: 1px solid #000000;
            min-width: 2.1vh;
            min-height: 2.1vh;
            max-width: 2.1vh;
            max-height: 2.1vh;
            border-radius: 0.25vh;
        }
            #main div.white-box input.check.error {
                border: 1px solid #F10011;
            }
            #main div.white-box input.check:checked {
                background: url('./images/check.png');
                background-size: 70%;
                background-position: center;
                background-repeat: no-repeat;
            }
    #main div.enter {
        background: #E10600;
        width: calc(100% - 2vh);
        border-radius: 0.75vh;
        margin: 2vh;
        display: flex;
        justify-content: center;
        transition: background ease-out 0.2s;
    }
        #main div.enter p {
            font-family: TitilliumWeb-Regular;
            margin: 1.25vh;
            transition: color ease-out 0.2s;
        }
        #main div.enter:active {
            background: white;
        }
            #main div.enter:active p {
                color: #E10600;
            }

    #main div.abs-enter {
        background: #E10600;
        width: calc(90% - 2vh);
        max-width: 50vh;
        border-radius: 0.75vh;
        margin: 2vh;
        margin-bottom: 2vh;
        display: flex;
        justify-content: center;
        transition: background ease-out 0.2s;
    }
        #main div.abs-enter.disabled {
            background: #9D9DA0;
            pointer-events: none;
        }
        #main div.abs-enter p {
            font-family: TitilliumWeb-Regular;
            margin: 1.25vh;
            transition: color ease-out 0.2s;
        }
        #main div.abs-enter:active {
            background: white;
        }
            #main div.abs-enter:active p {
                color: #E10600;
            }

#main.driver-style div {
    text-align: left;
}

#title-container {
    height: 6.83vh;
    position: absolute;
    top: 5vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
}

#title-bar {
    position: absolute;
    width: 125%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2vh;
    margin-top: 16vh;
    z-index: 1;
}
    #title-bar img:first-child {
        flex: 1;
        transform: skewX(-45deg);
        margin-right: 3vh;
    }
    #title-bar img:last-child {
        flex: 1;
        transform: skewX(-45deg);
        margin-left: 3vh;
    }

#title-bar img {
    height: 2.6vh;
    margin: 0 0.5vh;
}

#progress-bar {
    position: absolute;
    top: 20.31vh;
    height: 5.79vh;
    width: 100%;
    max-width: 75vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

#progress-titles {
    position: relative;
    display: flex;
    width: calc(100% - (100vw - 94.3vw));
    height: calc(1.41vh + (2.65vh - 1.41vh));
    justify-content: space-between;
}

#quiz-track {
    width: calc(90% - 3vh);
    height: 80%;
    background: linear-gradient(90deg,rgba(0, 0, 0, 0) 0%, rgba(255, 0, 0, 1) 100%);
    transform: skewX(-45deg);
}

.title {
    font-size: 2.66vh;
    padding-left: 3vh;
    padding-right: 3vh;
}

.sub-title {
    font-size: 1.67vh;
    
}

#progress-titles div {
    user-select: none;
    font-size: 1vh;
}

.question-title {
    position: relative;
    font-size: 2.5vh;
    padding-bottom: 2vh;
    text-align: left !important;
    user-select: none;
    text-transform: uppercase;
}

#question-carousel {
    position: absolute;
    top:32.81vh;
    height: 100%;
    max-height: 75vh;
    /*width: 86.3vw;*/
    width: calc(100% - (100vw - 86.3vw));     
    max-width: 60vh;
    overflow: hidden; 
    padding-left: 4vh;
    padding-right: 4vh;
}

#question-carousel.final {
    top: 22vh;
}


.fade-out {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right,transparent,black 3vh,black 97vh, transparent);
}


.carousel-inner {
    display: flex; 
    flex-direction: row;
    justify-content: flex-start; 
    align-items: flex-start;
    gap: 8vh;
}

.transition {
    transition: all 0.5s;
}

.question-container {
    position: relative;
    min-width: 100%;
}

.finish-container {
    position: relative;
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.finish-container img {

}

.questions div {
    text-align: left;
    border: 0.2vh solid #F7F4F1;
    border-radius: 0.5vh;
    width: 100%;
    height: 7.45vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: background-color 0.5s, border 0.2s;
    cursor: pointer;
}

.questions div:hover {
    border: 0.2vh solid #71CC98 !important;
}

.questions div.selected {
    border: 0.2vh solid #71CC98 !important;
    background-color: #71CC98 !important;
    color: #454545;
}

.questions div > p {
    padding: 2vw;
    font-family: "TitilliumWeb-Regular";
}

.questions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap:1vh;
    
}

#question-buttons {
    display: flex;
    width: calc(100% - (100vw - 86.3vw));
    max-width: 60vh;
    height: 5.21vh;
    position: absolute;
    bottom: 0;
    gap:2vh;
}

#register-buttons {
    display: flex;
    width: 66vw;
    max-width: 50vh;
    height: 5.21vh;
    margin-top: 2vh;
    gap:2vh;
    position: fixed;
    bottom: 2vh;
}

.button {
    border: 0.1vw solid white;
    border-radius: 0.5vh;
    flex: 1;
    display: none;
}

.button.visible {
    display: flex; /* Show when visible */
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


#next-btn, #finish-btn, #home-btn, #register-btn {
    background-color: #E10600;
    transition: background-color ease 0.2s;
    border: 1px solid rgba(0, 0, 0, 0);
}

    #next-btn:hover, #finish-btn:hover, #home-btn:hover, #register-btn:hover {
        background-color: #FFFFFF;
        border: 0.2vh solid #E63312;
        color: black;
    }

#next-btn.disabled ,#finish-btn.disabled, #home-btn.disabled, #register-btn.disabled {
    background-color: #9D9DA0;
    pointer-events: none;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    top: 20vh;
    transform: translateX(100%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
}

/* This container is needed to position the front and back side */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

.flip {
    transform: rotateY(180deg);
}

/* Do an horizontal flip when you move the mouse over the flip box container
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
} */

/* Position the front and back side */
.flip-card-front, .flip-card-back {
    background-size: contain;
    position: absolute;
    width: 42.61vh;
    height: 53.23vh;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
    background-color: #E10600;
    border-radius: 1vh;
}
    .flip-card-front img:first-child {
        flex: 1;
        width: 5vh;
        transform: skewY(45deg);
        margin-top: -5vh;
        margin-bottom: 7.5vh;
    }
    .flip-card-front img:last-child {
        flex: 1;
        width: 5vh;
        transform: skewY(45deg);
        margin-top: 7.5vh;
        margin-bottom: -5vh;
    }

/* Style the back side */
.flip-card-back {
    background-color: #E10600;
    transform: rotateY(180deg);
    pointer-events: none;
    border-radius: 1vh;
}
    .flip-card-back img:first-child {
        flex: 1;
        width: 5vh;
        transform: skewY(45deg);
        margin-top: -5vh;
        margin-bottom: 6.5vh;
    }

    .flip-card-back img:last-child {
        flex: 1;
        width: 5vh;
        transform: skewY(45deg);
        margin-top: 6.5vh;
        margin-bottom: -5vh;
    }

.flip-card p {
    font-family: TitilliumWeb-Regular;
    margin: 0;
    text-align: center;
    font-size: 1.75vh;
}
        .flip-card p.driver {
            font-family: Formula1-Bold;
            color: black;
            font-size: 5vh;
            -webkit-text-stroke: 0.5vh black;
            letter-spacing: 0.2vh;
        }
        .flip-card p.driver-name {
            font-family: KHInterferenceF1-Regular;
            color: black;
            font-size: 2.25vh;
            margin: 1vh;
        }
        .flip-card p.description {
            margin: 0 6vh;
        }

#white-logo {
    width: 70%
}

@keyframes background-enter {
    0% {
        opacity: 0;
        background-position: 7.5vh -7.5vh;
    }
    75% {
        opacity: 1;
    }
    100% {
        background-position: 0 0;
    }
}
.background-enter {
    animation: background-enter 2s ease-out forwards;
}

@keyframes background-pulse {
    0% {
        transform: scale(1);
        background-position: 1vh -1vh;
    }
    50% {
        transform: scale(1.1);
        background-position: -1vh 1vh;
    }
    100% {
        transform: scale(1);
        background-position: 1vh -1vh;
    }
}

#scrolling-text {
    position: absolute;
    top: 8vh;
    display: flex;
    width: 100%;
    
}
#scrolling-text div {
    display: flex;
    align-items: center;
}
    #scrolling-text p {
        font-family: "Formula1-Bold";
        font-weight: bold;
        font-size: 3vh;
    }
        #scrolling-text p.digital {
            font-family: "KHInterferenceF1-Regular";
            font-size: 1.5vh;
            color: red;
        }

@keyframes scroll-text {
    0% {
        right: -100%;
    }
    100% {
        right: calc(-100% + 110vh);
    }
}
.scroll-text {
    animation: scroll-text 7s linear infinite;
}

#home-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 50vh;
    height: 100vh;
    z-index: 1;
}
    #home-content img {
        width: 80%;
    }
    #home-content p {
        font-family: TitilliumWeb-Regular;
        font-size: 1.5vh;
        margin: 1vh 0;
        text-align: center;
        width: 90%;
    }
        #home-content p#welcome-to {
            font-family: Formula1-Bold;
            font-size: 2.5vh;
            margin: 3vh 0;
        }
    #home-content h1 {
        font-family: Formula1-Bold;
        font-size: 2.9vh;
        margin: 8vh 0 1vh 0;
        text-align: center;
    }
        #home-content p.desc {
            font-family: Formula1-Regular;
            font-size: 1.4vh;
            margin: 8vh 0;
            text-align: center;
        }
        #home-content p.code {
            font-family: Formula1-Bold;
            letter-spacing: 1vh;
            height: 0;
            margin: 0;
            transform: translateY(-4vh);
            pointer-events: none;
            opacity: 0.5;
            transition: opacity ease-out 0.2s;
        }
    #home-content input#code {
        all: unset;
        background: none;
        font-size: 3.3vh;
        min-height: 4vh;
        text-align: center;
        color: rgba(0, 0, 0, 0);
        font-family: Formula1-Bold;
    }
        #home-content input#code::placeholder {
            color: white;
        }

#home-button {
    width: 100%;
    background: red;
    border-radius: 0.5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8vh 0;
    transition: background 0.3s ease, border 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0);
    cursor: pointer;
    opacity: 1;
}
    #home-button p {
        font-family: TitilliumWeb-Regular;
        font-size: 1.8vh;
        margin: 1vh;
        transition: color 0.3s ease;
    }
    #home-button:hover {
        background: white;
        border: 1px solid red;
    }
    #home-button:hover p {
        color: red;
    }

@keyframes fade-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.fade-in {
    animation: fade-in 2s ease-out forwards;
}

@keyframes glow-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
        filter: drop-shadow(0 0 0 red);
    }
    10% {
        transform: scale(0.8);
        opacity: 0;
        filter: drop-shadow(0 0 0 red);
    }
    30% {
        filter: drop-shadow(0 0 0.3vh white);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 0 red);
    }
}
.glow-in {
    animation: glow-in 2.5s ease-out forwards;
}

#leaderboard-btn {
    position: absolute;
    bottom: 5vh;
    border-radius: 0.5vh;
    border: 1px solid red;
    cursor: pointer;
    z-index: 2;
    transition: box-shadow 0.2s ease-out;
    opacity: 1;
}
    #leaderboard-btn p {
        font-family: TitilliumWeb-Regular;
        margin: 1vh 3vh;
        font-size: 1.8vh;
    }
    #leaderboard-btn:hover {
        box-shadow: rgba(255, 0, 0, 0.6) 0 0 1vh;
    }

.loader {
    position: absolute;
    top: calc(60% - 2vh);
    width: 8vh;
    height: 8vh;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

    .loader::after {
        content: '';
        box-sizing: border-box;
        position: absolute;
        left: 0;
        top: 0;
        width: 4vh;
        height: 4vh;
        border-radius: 50%;
        border-left: 0.5vh solid red;
        border-bottom: 0.5vh solid transparent;
        animation: rotation 0.5s linear infinite reverse;
    }

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
} 

#vert-lines {
    transform: skewY(45deg);
}

#select-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 95vh;
    width: 90%;
}
    #select-game p {
        font-family: Formula1-Bold;
        text-align: center;
        object-fit: contain;
    }
    #select-game div#play {
        font-family: TitilliumWeb-Regular;
        border-radius: 1vh;
        background: #9D9DA0;
        width: 90%;
        max-width: 75vh;
        pointer-events: none;
        border: 1px solid rgba(0, 0, 0, 0);
        transition: background 0.2s ease-out, border 0.2s ease-out;
        display: flex;
        align-items: center;
        justify-content: center;
    }
        #select-game div#play p {
            font-family: TitilliumWeb-Regular;
            font-size: 1.8vh;
            margin: 1.5vh;
            transition: color 0.2s ease-out;
        }
        #select-game div#play.active {
            background: red;
            cursor: pointer;
            pointer-events: all;
        }
            #select-game div#play.active:hover {
                background: white;
                border: 1px solid red;
            }
            #select-game div#play.active:hover p {
                color: red;
            }
    #select-game img#vert-lines {
        height: 22.5vh;
        width: 5vh;
        object-fit: fill;
        margin: 6vh 0;
        margin-top: -6vh;
    }
    #select-game img#logo {
        height: 10vh;
        object-fit: contain;
    }
    #select-game div {
        flex: 1;
        margin: 4vh 0;
    }
    #select-game div.buttons {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
    }
        #select-game div.buttons div {
            height: 35vw;
            max-height: 20vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            margin: 6vh 3vh;
        }
            #select-game div.buttons div p {
                font-family: TitilliumWeb-Regular;
                font-size: clamp(0, 50vw, 2.5vh);
                color: #9D9DA0;
                margin: 1vh 0;
                transition: color 0.2s ease-out;
            }
            #select-game div.buttons div.active img {
                border: 1px solid red;
                box-shadow: red 0 0 1vh;
            }
            #select-game div.buttons div.active p {
                color: white;
            }
        #select-game div.buttons img {
            height: 100%;
            object-fit: contain;
            border: 1px solid white;
            border-radius: 1vh;
            cursor: pointer;
            pointer-events: all;
            transition: border 0.2s ease-out, box-shadow 0.2s ease-out;
        }

.error-message {
    font-family: TitilliumWeb-Regular;
}

@keyframes pan-carousel-out {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
        pointer-events: all;
    }
    100% {
        transform: translateX(-100%) scale(0.9);
        opacity: 0;
        pointer-events: none;
    }
}
.pan-carousel-out {
    animation: pan-carousel-out 0.6s ease-out forwards;
}

@keyframes pan-card-in {
    0% {
        transform: scale(1);
        opacity: 0;
        pointer-events: none;
    }

    100% {
        transform: scale(1);
        opacity: 1;
        pointer-events: all;
    }
}
.pan-card-in {
    animation: pan-card-in 1s ease-out forwards;
}

@keyframes drive-in {
    0% {
        transform: translateY(100%);
    }
    60% {
        transform: translateY(-2%);
    }
    100% {
        transform: translateY(0);
    }
}
.drive-in {
    animation: drive-in 1s ease-out forwards;
}

#light-img {
    clip-path: polygon(0 0, 0% 0, 0% 100%, 0% 100%);
}


.new-dd {
    border: 1px solid #9D9DA0;
    border-radius: 0.5vh;
    width: 100%;
    min-height: 4.5vh;
    max-height: 4.5vh;
    z-index: 105;
}

.open {
    border: 1px solid #71CC98;
    border-radius: 0.5vh 0.5vh 0 0;
    border-bottom: 0;
}

    .new-dd:hover {
        border: 1px solid #71CC98;
    }

    .new-dd div.btn-content {
        display: flex;
        min-height: 4.5vh;
        max-height: 4.5vh;
        width: 100%;
        align-items: center;
        pointer-events: none;
    }
    .new-dd p {
        font-family: TitilliumWeb-Regular;
        font-size: 1.25vh;
        color: #9D9DA0;
        margin: 0 1vh;
        flex: 1;
    }
    .new-dd img {
        height: 1vh;
        transform: rotate(180deg);
        margin: 0 1vh;
    }

.new-dd div.dd {
    border: 1px solid #71CC98;
    border-top: 0;
    border-radius: 0 0 0.5vh 0.5vh;
    background-color: #15151E;
    width: 100%;
    max-height: 20vh;
    overflow: clip;
    margin-left: -1px;
    display: none;
}
        .new-dd div.dd div.line-break {
            width: 90%;
            height: 1px;
            background: #9D9DA0;
            margin: 1vh 5%;
            margin-top:0;
        }
        .new-dd div.dd p.option {
            font-family: TitilliumWeb-Regular;
            font-size: 1.25vh;
            color: #9D9DA0;
            margin: 1vh;
            padding: 0.5vh;
            border-radius: 0.4vh;
        }
            .new-dd div.dd p.option:hover {
                background-color: #E10600;
                color: white;
            }
    .new-dd div.dd div.scroll {
        height: 100%;
        max-height: 20vh;
        overflow: scroll;
    }
    .new-dd div.dd div.scroll::-webkit-scrollbar {
        display: none;
    }

.label {
    font-family: TitilliumWeb-Regular;
    font-size: 1.25vh;
    margin: 0 1vh;
}

a:link, a:visited, a:hover, a:active {
    color: black;
    text-decoration: underline;
}

.modal {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9999;
    flex-direction: column;
    display: none;
    align-items:center;
    justify-content:center;
    backdrop-filter: blur(16px);
}
    .modal div {
        width: 80%;
        max-width: 80vh;
        height: 55%;
        background: white;
        border-radius: 1vh;
        overflow: scroll;
        color: black;
        padding: 2vh;
    }
        .modal div::-webkit-scrollbar {
            display: none;
        }
    .modal div div {
        all: unset;
    }

    .modal p, .modal li {
        font-family: TitilliumWeb-Regular;
        font-size: 1.6vh;
    }
    .modal h1 {
        font-family: Formula1-Bold;
        font-size: 2.6vh;
    }
    .modal h2 {
        font-family: Formula1-Bold;
        font-size: 1.9vh;
    }
    .modal h3 {
        font-family: Formula1-Bold;
        font-size: 1.9vh;
    }

#modal-close-btn {
    width: 7.5vh;
    height: 1vh;
    margin: 1vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}
        #modal-close-btn p {
            font-family: TitilliumWeb-Regular;
            pointer-events: none;
        }

#reset-btn {
    position: absolute;
    top: 2vh;
    right: 2vh;
    border: 1px solid white;
    border-radius: 0.5vh;
    font-family: TitilliumWeb-Regular;
    cursor: pointer;
    transition: box-shadow ease-out 0.2s;
}
#reset-btn:hover {
    box-shadow: white 0 0 0.5vh;
}
    #reset-btn p {
        font-family: TitilliumWeb-Regular;
        pointer-events: none;
        margin: 0.5vh 2vh;
    }

.bday-overlay {
    height: 0;
    margin-top: 4.4vh;
    position: absolute;
    pointer-events: none;
    font-family: TitilliumWeb-Regular;
    font-size: 1.25vh;
    color: #9D9DA0;
    display: flex;
    align-items: center;
    margin-left: 1vh;
    background: #15151E;
}

@keyframes pan-border {

    from {
        background-position: 50% 0;
    }

    to {
        background-position: 50% 75vh;
    }
}

#border-left {
    position: absolute;
    height: 100%;
    width: 15vh;
    top: 0;
    left: 0;
    z-index: 2;
    animation: pan-border 1s linear infinite;
    background-image: url('./images/Track-Border.png');
    background-size: 15vh;
    background-repeat: repeat-y;
}

#border-right {
    position: absolute;
    height: 100%;
    width: 15vh;
    top: 0;
    right: 0;
    z-index: 2;
    animation: pan-border 1s linear infinite;
    background-image: url('./images/Track-Border-2.png');
    background-size: 15vh;
    background-repeat: repeat-y;
}

@keyframes gg-fade-in {
    0% {
        backdrop-filter: blur(0);
    }
    100% {
        backdrop-filter: blur(1vh);
    }
}

@keyframes gg-from-left {
    0% {
        transform: translateX(-100vw);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes gg-from-right {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(0);
    }
}

#select-car-div {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    animation: gg-fade-in 1.5s ease-out forwards;
    animation-delay: 0.5s;
    transition: opacity 0.4s ease-out;
    z-index: 5;
}
    #select-car-div h1 {
        font-family: Formula1-Bold;
        text-align: center;
        font-size: 3.5vh;
        margin-top: 15vh;
        transform: translateX(-100vw);
        animation: gg-from-left 0.6s ease-out forwards;
        animation-delay: 0.8s;
    }
    #select-car-div div.cars {
        display: flex;
        transform: translateX(100vw);
        animation: gg-from-right 0.6s ease-out forwards;
        animation-delay: 1s;
        margin: 2vh 0;
    }
    #select-car-div div.car-btn {
        height: 45vh;
        width: 20vh;
        background-size: 80%;
        background-position: center;
        background-repeat: no-repeat;
        border: 4px solid #717171;
        border-radius: 1vh;
        margin: 0 3vh;
        transition: border ease-out 0.2s
    }
        #select-car-div div.car-btn.active {
            border: 4px solid #E10600;
        }
        #select-car-div div.car-btn.black {
            background-image: url('./images/F1_car_black.png');
        }
        #select-car-div div.car-btn.white {
            background-image: url('./images/F1_car_white.png');
        }
    #select-car-div div.ctrls {
        display: flex;
        width: calc(100% - 4vh);
        margin: 4vh 2vh;
        transform: translateX(-100vw);
        animation: gg-from-left 0.6s ease-out forwards;
        animation-delay: 1.2s;
    }
    #select-car-div div.ctrl-btn {
        display: flex;
        height: 5.2vh;
        flex: 1;
        background-color: #717171;
        margin: 1vh;
        border-radius: 1vh;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.2s ease-out, background-color 0.2s ease-out;
    }
        #select-car-div div.ctrl-btn.inactive {
            opacity: 0.5;
        }
        #select-car-div div.ctrl-btn.active {
            opacity: 1;
            background-color: #F10011;
        }
        #select-car-div div.ctrl-btn p {
            color: white;
            font-family: TitilliumWeb-Regular;
        }
    #select-car-div div.select {
        position: absolute;
        transition: transform ease-out 0.6s;
    }
    #select-car-div div.ready {
        position: absolute;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 50vh;
        transform: translateX(-100vw);
        transition: transform ease-out 0.6s;
    }
        #select-car-div div.ready p {
            font-family: TitilliumWeb-Regular;
            text-align: center;
        }
        #select-car-div div.ready div.instruction {
            width: 75%;
            display: flex;
            flex-direction: column;
            border: 4px solid #F10011;
            border-radius: 1vh;
            margin: 5vh 0;
        }
            #select-car-div div.ready div.instruction img {
                height: 5.3vh;
                object-fit: contain;
                margin: 0.5vh 1vh;
            }
            #select-car-div div.ready div.instruction p {
                margin: 0.5vh 1vh;
            }

@keyframes pan-track {
    from {
        background-position: 50% 0;
    }
    to {
        background-position: 50% 50vh;
    }
}

#race-div {
    position: absolute;
    height: 100%;
    aspect-ratio: 9 / 16;
    background-image: url('./images/asphalt-tiling.jpg');
    background-size: 50vh;
    animation: pan-track 0.6s linear infinite;
}
    #race-div img.car {
        position: absolute;
        width: 10%;
        filter: drop-shadow(0 0 4px black);
        display: none;
        z-index: 3;
    }

#player {
    left: 45%;
    transition: left 0.4s ease-out, transform 0.3s ease-out;
    bottom: 2vh;
}

#other-car {
    transition: top 0.4s linear, left 0.4s ease-out;
}

@keyframes hit-flash {
    0% {
        opacity: 0.2;
        transform: rotate(0);
    }
    20% {
        opacity: 1;
        transform: rotate(15deg);
    }
    21% {
        opacity: 0.2;
    }
    40% {
        opacity: 1;
        transform: rotate(-12.5deg);
    }
    41% {
        opacity: 0.2;
    }
    60% {
        opacity: 1;
        transform: rotate(10deg);
    }
    61% {
        opacity: 0.2;
    }
    80% {
        opacity: 1;
        transform: rotate(-7.5deg);
    }
    81% {
        opacity: 0.2;
    }
    100% {
        opacity: 1;
        transform: rotate(0);
    }
}

.hit-flash {
    animation: hit-flash 2s linear forwards;
}

#gg-title {
    font-size: 1.5vh;
    font-family: Formula1-Bold;
    z-index: 4;
    position: absolute;
    top: 8vh;
}

#gg-progress {
    position: absolute;
    top: 16vh;
    height: 3vh;
    width: 80%;
    max-width: 45vh;
    background: #D4D4D4;
    transform: skew(-45deg);
    z-index: 4;
}
    #gg-progress div.bar {
        width: 0;
        height: 100%;
        background: linear-gradient(90deg,rgba(255, 255, 255, 1) 0%, rgba(225, 6, 0, 1) 100%);
        background-size: 200% 100%;
    }

@keyframes loading-bar {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}
.loading-bar {
    animation: loading-bar 30s linear forwards;
}

#gg-bar-labels {
    position: absolute;
    top: 12vh;
    height: 4vh;
    width: 80%;
    max-width: 45vh;
    z-index: 4;
    display: flex;
    margin-left: 3.5vh;

}
    #gg-bar-labels p {
        font-size: 1.25vh;
        font-family: Formula1-Regular;
        font-weight: 600;
        flex: 1;
    }
    #gg-bar-labels p:last-child {
        text-align: end;
    }

#gg-place-div {
    position: absolute;
    width: 100%;
    max-width: 54vh;
    height: 3.6vh;
    top: 22.5vh;
    z-index: 2;
    overflow: hidden;
}
    #gg-place-div div.red {
        position: absolute;
        background: red;
        transform: skew(-45deg) translateX(-7vh);
        height: 100%;
        width: 20vh;
    }
    #gg-place-div p {
        position: absolute;
        color: white;
        font-family: Formula1-Bold;
        margin: 0.5vh 3.5vh;
    }

#finish-flag {
    position: absolute;
    width: 100%;
    opacity: 0.35;
    transform: translateY(-50vh);
    transition: transform 2s ease-out;
}

#gg-finish {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #161621;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
    #gg-finish img {
        flex: 1;
        width: 5vh;
    }
        #gg-finish img.trophy {
            flex: 0;
            width: 13.1vh;
            margin: 2vh;
        }
        #gg-finish img:first-child {
            transform: skewY(45deg) translateY(-7.5vh);
        }
        #gg-finish img:last-child {
            transform: skewY(45deg) translateY(7.5vh);
        }
    #gg-finish p {
        font-family: Formula1-Bold;
        text-align: center;
        margin: 0;
    }
        #gg-finish p.placement {
            font-size: 4.2vh;
            color: #71CC98;
        }
    #gg-finish div.home-btn {
        background: #E10600;
        width: 65%;
        max-width: 50vh;
        margin-top: 4vh;
        border-radius: 1vh;
    }
        #gg-finish div.home-btn p {
            font-family: TitilliumWeb-Regular;
            margin: 1vh;
        }

#gg-lights {
    position: absolute;
    width: 75%;
    max-width: 50vh;
    z-index: 3;
    top: 30vh;
    transition: top 0.4s ease-out;
}
    #gg-lights img{
        position: absolute;
        width: 100%;
    }

.leader-tie {
    border: 1px solid #F10011;
    border-radius: 0.75vh;
}

#lang-dd {
    position: absolute;
    border: 2px solid #F10011;
    display: flex;
    flex-direction: column;
    width: 12vh;
    right: 2vh;
    top: 2vh;
    border-radius: 0.75vh;
    z-index: 3;
}
    #lang-dd.small {
        top: 27.5vh;
        zoom: 0.75;
    }
    #lang-dd div.options {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
        margin: 0 1vh;
    }    
        #lang-dd div.options p {
            font-family: TitilliumWeb-Regular;
            text-align: left;
            width: 100%;
            margin: 1vh;
        }
    #lang-dd div.divider {
        width: calc(75% - 1vh);
        height: 1px;
        background: white;
        margin: 0 0 1vh 0;
        transform: translateX(-1vh);
    }

#lang-btn {
    display: flex;
    align-items: center;
}
    #lang-btn img {
        height: 3vh;
        margin: 1vh;
        transform: rotate(180deg);
    }
    #lang-btn p {
        font-family: TitilliumWeb-Regular;
        margin: 1vh;
        flex: 1;
    }
    
#attempts {
    position:absolute;
    top: 32.5vh;
    font-family: KHInterferenceF1-Regular;
    opacity: 0;
    pointer-events: none;
    transition: opacity ease-out 0.2s;
}

#survey-title {
    font-family: Formula1-Bold;
    margin: 0.5vh;
}

#survey-desc {
    font-family: TitilliumWeb-Regular;
    margin: 0vh;
    font-size: 1.6vh;
    text-align: center;
}

#complete-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    z-index: 1;
}
    #complete-content img.logo {
        width: 80%;
        max-width: 40vh;
    }
    #complete-content p {
        font-family: TitilliumWeb-Regular;
        font-size: 1.5vh;
        margin: 1vh 0;
        text-align: center;
        width: 90%;
        max-width: 40vh;
    }
    #complete-content h1 {
        font-family: Formula1-Bold;
        font-size: 2.9vh;
        margin: 8vh 0 1vh 0;
        text-align: center;
        max-width: 40vh;
    }
    #complete-content div.code {
        width: 100%;
        background: #71CC98;
        margin-top: 4vh;
    }
        #complete-content div.code h1 {
            margin: 1.5vh;
            font-size: 3.3vh;
            color: #15151E;
            max-width: 100%;
        }
    #complete-content img:first-child {
        transform: skewY(45deg) translateY(-4vh);
        width: 5vh;
        flex: 1;
        margin-bottom: 4vh;
    }
    #complete-content img:last-child {
        transform: skewY(45deg) translateY(4vh);
        width: 5vh;
        flex: 1;
        margin-top: 4vh;
    }