@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Display:wght@400;500;600;700;800&display=swap');

@font-face {
    font-family: "formula";
    src: url('../fonts/formula1-Regular_web_0.ttf');
    font-weight: 400;
}

@font-face {
    font-family: "formula";
    src: url('../fonts/formula1-Bold_web_0.ttf');
    font-weight: 600;
}

@font-face {
    font-family: "formula";
    src: url('../fonts/formula1-Wide_web_0.ttf');
    font-weight: 800;
}

:root{
    --main: #d7182b;
}

html, body, h1, h2, h3, h4, h5, h6, p{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "formula";
}

html{
    overflow-y: hidden;
}

.container{
    max-width: 1280px;
    margin: auto;
}

.canvas{
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
}

.card-title{
    font-family: 'Wix Madefor Display', sans-serif;
    color: white;
    font-weight: bold;
    padding: 15px 0;
    border-bottom: 1px solid #3a3a3a;
}

.card{
    position: fixed;
    right: 0;
    transform: translateX(10%);
    top: 0;
    height: 100vh;
    z-index: 100;
    max-width: 33%;
    background-color: rgba(0,0,0,.5);
    backdrop-filter: blur(30px);
    z-index: 100;
    border-radius: 10px;
    padding: 15px;
    font-weight: normal;
    display: flex;
    flex-direction: column;
    opacity: 0;
}

.bottom-card{
    position: absolute;
    bottom: 25px;
    width: 100%;
    left: 0;
}

.card-text{
    margin-top: 15px;
    font-family: 'Wix Madefor Display', sans-serif;
    line-height: 30px;
    font-size: 1rem;
    color: #9b9b9b;
}

.speed{
    color: red;
    margin-bottom: 30px;
}

.map{
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 15px;
    border-radius: 10px;
    z-index: 100;
    background-color: rgba(0,0,0,.5);
    backdrop-filter: blur(30px);
}

.modal{
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,.5);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: 1s ease-in-out;
}

.modal-content{
    padding: 25px;
    color: white;
    border-radius: 15px;
    display: grid;
    gap: 25px;
}

.text{
    color: #cecece;
    text-align: center;
}

.cta{
    -webkit-appearance: none;
    background-color: var(--main);
    color: white;
    border-radius: 5px;
    border: none;
    padding: 15px;
    width: fit-content;
    font-size: 1rem;
    cursor: pointer;
    font-family: "formula";
    margin: auto;
}


.background{
    position: fixed;
    top: 0;
    z-index: -1;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/background.png');
    background-position: center;
    background-size: cover;
}

.flex{
    display: flex;
    align-items: center;
    gap: 25px;
}

.virageImage{
    border-radius: 10px;
    height: 200px;
    object-fit: cover;
}

.ecurie{
    width: 100%;
}