@font-face {
    font-family: 'Rubik';
    src: url(../fonts/Rubik-Bold.woff) format('woff');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Rubik';
    src: url(../fonts/Rubik-Medium.woff) format('woff');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Rubik';
    src: url(../fonts/Rubik-Regular.woff) format('woff');
    font-weight: 400;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Rubik", sans-serif !important;
    font-optical-sizing: auto;
    font-weight: auto;
    font-style: normal;
}

:root {
    --black-01 : #121212;
    --black-02 : #343434;
    --gray-01  : #3A3A3C;
    --gray-02  : #545458;
    --blue-01  : #00095B;
    --white-01 : #FFFFFF;

    --blue-02  : #2584ff;
    --red-01   : #ff0000;
}

body.no-scroll {
    overflow: hidden;
}

/* Splah Screen */
.splash-screen,
.splash-screen .content {
    width: 100%;
    height: 100vh;
    gap: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}
.splash-screen .content {
    text-align: center;
    width: 26rem;
    background-size: cover;
    background-position: center;
    background-image: url('../images/background-image/Ford-GT.png');
}
.splash-screen .center .box {
    gap: 1rem;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 1rem;
    background-color: var(--white-01);
}
.splash-screen .center h3 {
    color: var(--black-01);
}
.splash-screen .center p {
    color: var(--gray-01);
} 
.splash-screen .center .start-game {
    cursor: pointer;
    padding: .8rem 1rem;
    border-radius: .5rem;
    color: var(--white-01);
    background-color: var(--blue-01);
}
.splash-screen .bottom p {
    font-size: .8rem;
    margin-bottom: .6rem;
    color: var(--white-01);
}
.splash-screen .bottom img {
    width: 6rem;
}

.splash-screen .select-car {
    color: var(--blue-01);
    cursor: pointer;
    padding: .61rem 1rem;
    border-radius: .5rem;
    border: 1px solid var(--blue-01);
}
.modal-select-car .modal-content {
    border-radius: 1rem;
    width: 85%;
}
.modal-dialog-centered {
    justify-content: center;
}
.modal-select-car .modal-body {
    padding: 2rem;
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
}
.modal-select-car .top {
    display: flex;
    justify-content: end;
}
.modal-select-car .top img {
    width: 2rem;
}

.modal-select-car .middle figure img {
    width: 8rem;
}
.modal-select-car .middle figure {
    gap: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.modal-select-car .middle figure h4 {
    width: max-content;
    text-align: center;
}
.modal-select-car .middle button {
    z-index: 1;
    top: 5rem;
    position: absolute;
}
.modal-select-car .middle .slick-prev {
    width: 3.8rem;
    height: 3.8rem;
    left: 0;
    background-image: url(../icons/arrow-left-blue.png);
    border: none;
    color: transparent;
    background-size: 2.5rem;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 100%;
}
.modal-select-car .middle .slick-next {
    width: 3.8rem;
    height: 3.8rem;
    right: 0;
    background-image: url(../icons/arrow-right-blue.png);
    border: none;
    color: transparent;
    background-size: 2.5rem;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 100%;
}

.modal-select-car .bottom .choose-car {
    padding: .8rem 0;
    width: -webkit-fill-available;
    color: var(--white-01);
    background-color: var(--blue-01);
}


/* Block Game */
.block-game {
    position: relative;
}

 /* Game Control */
 .game-control {
    bottom: 0;
    width: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
 }
.game-control .game-content {
    display: flex;
    width: 100%;
    height: 100vh;
    justify-content: center;
}
.game-control button {
    width: 100%;
    cursor: pointer;
    border: none;
    background-color: transparent;
}
.game-control button img {
    width: 3.5rem;
    padding: .7rem;
}

.game-score {
    top: 3rem;
    z-index: 1;
    width: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
}
.game-score-content {
    gap: 12rem;
    display: flex;
    justify-content: center;
}
.game-score-content div {
    text-align: right;
    color: var(--white-01);
}
.game-score-content .cancel img {
    width: 2rem;
    cursor: pointer;
    visibility: hidden;
}
.game-score-content .score {
    margin-bottom: .7rem;
}


@media (min-width: 1025px) {
    .game {
        display: none !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 1024px) {
    .game {
        width: 100%;
        background-size: cover;
        background-position: center;
        background-image: url('../images/background-image/Ford-GT-01.png');
    }
    .splash-screen .content {
        width: 100%;
    }
    .gameArea {
        width: 50% !important;
    }
    .game-over-screen {
        width: 40% !important;
    }
}


/* Small devices (landscape phones, 576px and up) */
@media (max-width: 576px) { 
    .splash-screen .content {
        width: 100%;
    }
    .gameArea {
        width: auto !important;
    }
    .game-over-screen {
        padding: 2rem !important;
        width: 80% !important;
    }
    .modal-select-car .middle figure img {
        width: 6rem;
    }
    .modal-select-car .middle button {
        width: 3rem !important;
        height: 3rem !important;
    }
}

@supports (-webkit-touch-callout: none) {
    .game-control button.control-right img {
        rotate: 180deg;
    }
}

.boom {
    position: absolute;
    width: 100px;
    height: 100px;
    background: url('assets/icons/boom.png') no-repeat center center;
    background-size: cover;
    z-index: 10;
    display: none;
}

.game-over-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: var(--white-01);
    color: var(--black-01);
    padding: 2rem 3rem;
    border-radius: 1rem;
    z-index: 20;
    display: none;
    width: 60%;
}

.game-over-screen .content {
    gap: .5rem;
    display: flex;
    align-items: center;
    flex-direction: column;
}
.game-over-screen .content .restart {
    width: 100%;
    padding: .8rem 1rem;
    border-radius: .6rem;
    color: var(--white-01);
    background-color: var(--blue-01);
}

.countdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}
.countdown h1 {
    font-size: 6rem;
}

.hide {
    display: none !important;
}









.ClickToStart:hover,
.ClickToStart {
    transition: all .3s ease-in-out;
}

.game {
    /* background-image: url(assets/images/background-01.webp); */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hide {
    display: none;
}

.ford_logo {
    width: 12rem;
}
.powered_by {
    margin-bottom: .5rem;
}

.ClickToStart {
    padding: 1rem;
    cursor: pointer;
    background-color: var(--white-01);
}
.ClickToStart:hover {
    background-color: var(--gray-01);
}

.gameArea {
    width: auto; /* Full viewport width */
    height: 100vh; /* Full viewport height */

    display: flex;
    justify-content: center;
    margin: auto;
    position: relative;
    background-color: var(--black-02);
    overflow: hidden;
    border-left: 4px dashed white;
    border-right: 4px dashed white;
}

.car {
    background-image: url(../images/player-cars/10.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 50px;
    height: 110px;
    position: absolute;
    top: 550px;
}

.Opponents {
    background: url(car-opponent.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 100px;
    width: 57px;
    object-fit: cover;
    position: absolute;
    top: 520px;
}

.roadLines {
    height: 100px;
    width: 3px;
    background-color: white;
    position: absolute;
    /* margin-left: 195px; */
}
