﻿
@font-face {
    font-family: "NexoBold";
    src: url("fonts/NexoBold.otf");
}
@font-face {
    font-family: "NexoBoldItalic";
    src: url("fonts/NexoBoldItalic.otf");
}
@font-face {
    font-family: "NexoMedium";
    src: url("fonts/NexoMedium.otf");
}
@font-face {
    font-family: "NexoMediumItalic";
    src: url("fonts/NexoMediumItalic.otf");
}
@font-face {
    font-family: "NexoRegular";
    src: url("fonts/NexoRegular.otf");
}
@font-face {
    font-family: "NexoRegularItalic";
    src: url("fonts/NexoRegularItalic.otf");
}
@font-face {
    font-family: "NexoMonoRegular";
    src: url("fonts/NexoMonoRegular.otf");
}

input {
    font-family: NexoRegular;
}

.hide {
    display: none !important;
}

.formula1-reg {
    font-family: "Formula1-Regular";
}

.titillium-reg {
    font-family: "NexoRegular";
}

html {
    font-size: 2.08vh;
}
html::-webkit-scrollbar {
    display: none;
}

body {
    background-color: #0A0D11;
    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/background-image.png");
        background-blend-mode: luminosity;
        filter: grayscale(100%);
        opacity: 0.2;
        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 {
    top:30vh;
}

/*@media (orientation: landscape) {
    #main {
        max-width: calc(100vh / 1.25);
    }

    #form-container .paddedContainer {
        max-width: 25vw;
    }
}*/



#main div {
    text-align: left;
}

#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: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2vh;
    margin-top: 5vh;
    z-index: 1;
}

#title-bar img {
    height: 10vh;
    margin: 0 0.5vh;
}

    #title-bar h1 {
        font-family: NexoRegular;
        font-size: 2.5vh;
        margin-top: 3vh;
        margin-bottom: 1vh;
        color: #E1D8C7;
    }

    #title-bar p {
        font-family: NexoRegular;
        font-size: 1.5vh;
        margin: 0;
        color: #E1D8C7;
    }

#progress-bar {
    position: absolute;
    top: 25vh;
    height: 5.79vh;
    width: 80%;
    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;
    font-family: NexoRegular;
    margin-left: 5vh;
}

#quiz-track {
    width: 100%;
    height: 80%;
    background: linear-gradient(90deg, #E1D8C7 0%, #14B6B1 100%);
    border-radius: 1vh;
    transform: skewX(-45deg);
}

.title {
    font-size: 2.66vh;
    padding-left: 3vh;
    padding-right: 3vh;
}

.sub-title {
    margin: 3vh;
    font-size: 2.75vh;
    font-family: NexoRegular;
    font-weight: bold;
}

#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;
    font-weight: bold;
    font-family: NexoRegular;
}

#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;
    margin-top: 3vh;
}

#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 #14B6B1 !important;
    }

    .questions div.selected {
        border: 0.2vh solid #14B6B1 !important;
        background-color: #14B6B1 !important;
        color: #454545;
    }

.questions div > p {
    padding: 2vw;
    font-family: "NexoRegular";
}

.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: 100%;
    height: 5.21vh;
    margin-top: 2vh;
    gap: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: #14B6B1;
    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 #14B6B1;
        color: black;
    }

#next-btn.disabled ,#finish-btn.disabled, #home-btn.disabled, #register-btn.disabled {
    background-color: #9D9DA0;
    pointer-events: none;
}

#register-btn p {
    color: black;
}

.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: 25vh;
    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: #E1D8C7;
    border-radius: 3vh;
    display: flex;
    justify-content: center;
}
    .flip-card-front img.bkg {
        position:absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        mix-blend-mode: luminosity;
    }

/* Style the back side */
.flip-card-back {
    background-color: #E1D8C7;
    transform: rotateY(180deg);
    pointer-events: none;
    border-radius: 3vh;
    display: flex;
    justify-content: space-evenly;
}
    .flip-card-back:first-child {
        margin-top: 2vh;
    }

.flip-card p {
    font-family: NexoRegular;
    margin: 0;
    text-align: center;
    font-size: 1.75vh;
}
    .flip-card p.driver {
        font-family: NexoRegular;
        color: black;
        font-size: 4vh;
        font-weight: bold;
        font-style: italic;
    }
        .flip-card p.driver-name {
            font-family: KHInterferenceF1-Regular;
            color: black;
            font-size: 2.25vh;
            margin: 1vh;
        }
        .flip-card p.description {
            margin: 0 6vh;
            color: black;
            font-family: NexoRegular;
            font-size: 1.8vh;
        }

#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: 200%;
    
}
#scrolling-text div {
    display: flex;
    align-items: center;
}
    #scrolling-text p {
        font-family: NexoRegular;
        font-weight: bold;
        font-size: 3vh;
        width: 77vh;
    }
        #scrolling-text p.digital {
            font-family: NexoRegular;
            font-weight: normal;
            font-size: 1.5vh;
            color: #14B6B1;
            width: 35vh;
        }

@keyframes scroll-text {
    0% {
        right: -100%;
    }
    100% {
        right: calc(-100% + 112vh);
    }
}
.scroll-text {
    animation: scroll-text 7s linear infinite;
}

#home-content {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 75%;
    max-width: 75vh;
    height: 100vh;
    padding-top: 10vh;
    z-index: 1;
}
    #home-content img {
        width: 50%;
    }
    #home-content p {
        font-family: NexoRegular;
        font-weight: normal;
        font-size: 2.5vh;
        text-align: center;
        color: #E1D8C7;
        margin: 0;
    }
    #home-content h1 {
        font-family: NexoRegular;
        font-size: 5vh;
        text-align: center;
        color: #E1D8C7;
        margin: 1vh 0;
        margin-top: 7.5vh;
    }

#home-button {
    width: 100%;
    background: #14B6B1;
    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: NexoRegular;
        font-size: 1.8vh;
        margin: 1vh;
        color: black;
        transition: color 0.3s ease;
    }
    #home-button:hover {
        background: white;
        border: 1px solid #14B6B1;
    }
        #home-button:hover p {
            color: #14B6B1;
        }

@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: NexoRegular;
        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: 100vh;
    width: 90%;
}
    #select-game p {
        font-family: Formula1-Bold;
        text-align: center;
        object-fit: contain;
    }
    #select-game div#play {
        font-family: NexoRegular;
        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: NexoRegular;
            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: NexoRegular;
                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;
            }
            #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;
        }
        #select-game div.buttons img:hover {
            border: 1px solid red;
            box-shadow: red 0 0 1vh;
        }

.error-message {
    font-family: NexoRegular;
}

@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: NexoRegular;
        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: NexoRegular;
            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: NexoRegular;
    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%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
}
    .modal div {
        width: 80%;
        max-width: 80vh;
        height: 80%;
        background: white;
        border-radius: 1vh;
        overflow: scroll;
        color: black;
        padding: 2vh;
    }
        .modal div::-webkit-scrollbar {
            display: none;
        }

    .modal p, .modal li {
        font-family: NexoRegular;
    }
    .modal h1 {
        font-family: NexoBold;
    }
    .modal h2 {
        font-family: NexoBold;
    }
    .modal h3 {
        font-family: NexoBold;
    }

#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: NexoRegular;
        pointer-events: none;
    }

#reset-btn {
    position: absolute;
    top: 2vh;
    right: 2vh;
    border: 1px solid white;
    border-radius: 0.5vh;
    font-family: NexoRegular;
    cursor: pointer;
    transition: box-shadow ease-out 0.2s;
}
#reset-btn:hover {
    box-shadow: white 0 0 0.5vh;
}
    #reset-btn p {
        font-family: NexoRegular;
        pointer-events: none;
        margin: 0.5vh 2vh;
    }

#check-div {
    appearance: none; /* Remove default checkbox styling */
    -webkit-appearance: none; /* For Safari */

    background-color: white;
    border: 1px solid #000000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
    padding: 0.6em;
    border-radius: 3px;
    display: inline-block;
    position: relative;
    width: 2vh;
    height: 2vh;
}

    #check-div:active, #check-div:checked:active {
        box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1);
    }

    #check-div:checked {
        border: 1px solid black;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05), inset 15px 10px -12px rgba(255,255,255,0.1);
        color: black;
        display: flex;
        align-items: center;
        justify-content: center;
        background: url('./images/check.png');
        background-size: cover;
        background-color: white;
    }

        #check-div:checked:after {
            /*content: '\2714';*/
            background-color: white;
            font-size: 1.25vh;
            position: absolute;
            top: 0vh;
            color: black;
            background: url('./images/check.png');
            background-size: cover;
            display: none;
        }

.check-entry {
    display: flex;
}
    .check-entry p {
        font-family: NexoRegular;
        font-size: 1.2vh;
        margin: 0.5vh 2vh;
    }

#tc_link {
    color: white;
}
#pp_link {
    color: white;
}