/*
* Généralités
*/

@font-face {
    font-family: myFirstFont;
    src: url(../fonts/leadcoat.ttf);
  }

  h1{font-family: myFirstfont;}

  
body{background-color: paleturquoise;
    background-image: linear-gradient(transparent 50%, rgba(255,255,255,.5) 50%);
    background-size: 50px 50px;}


#main_voiture {
    padding: 0px;
    height: 500px;
    width: 100%;
    background-color: #E1E8F2;
}

#route {
    position: relative;
    z-index: 1;
    transform: translate(0px, 100%);
    height: 210px;
    background-color: #808080;
}

#footer_voiture {
    margin: auto;
    background-color: transparent;
    width: 95%;
    transform: translate(0px, 100px);
    border-bottom: dashed 12px white;
}

.roue {
    font-size: 20px;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    background-color: #FFA500;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: solid 6.5px black;
    animation-name: roues;
}

#bas {
    height: 60px;
    width: 335px;
    background-image: linear-gradient(#C51A1A 0%, #BE1E1E 10%, white 20%, #FFD812 25%, #F70303 35%);
    border-top-left-radius: 30px;
    border-top-right-radius: 60px;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 11px;
    margin: auto;
}

#haut {
    margin: auto;
    width: 210px;
    height: 50px;
    background-image: linear-gradient(45deg, #000088, black 90%);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-top: solid 4px red;
    border-left: solid 4px red;
    transform: skew(7deg) translate(-10%, 0px);
}

#haut>div {
    display: inline-block;
    width: 12px;
    height: 100%;
    background-color: red;
    transform: translate(45px, 0px) skew(5deg);
}

#haut>div~div {
    display: inline-block;
    width: 12px;
    height: 100%;
    background-color: red;
    transform: translate(135px, 0px) skew(5deg);
}

#r1 {
    transform: translate(1000%, -40%);
}

#r2 {
    transform: translate(1200%, -40%);
}

#voiture {
    position: relative;
    z-index: 2;
    transform: translate(0px, 250px);
    animation-name: voiture;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes voiture {
    from {
        transform: translate(-700px, 250px);
    }

    to {
        transform: translate(100vw, 250px);
    }
}

@keyframes roues {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

  