:root {
    --speed: 5s;
}

.reset {
    position: absolute;
    top: 50%;
    display: none;
    border: 1px solid transparent;
    border-radius: 100%;
    padding: 30px;
    background-color: transparent;

}

.reset:hover {
    background-color: rgba(255, 255, 255, 0.2);
    /* Semi-transparent background */
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* Semi-transparent border */

}

body {
    display: flex;
    justify-content: center;
    background-color: #121212;
    align-items: center;
    flex-direction: column;
}

button {
    background-color: aquamarine;
    border: 1px solid black;
    padding: 10px;
}

.buttonControls {
    display: flex;
    flex-direction: column;
}

canvas {
    width: 100%;
    height: auto;
    max-width: 500px;
    margin-top: 100px;
    border-radius: 20px;
    border: 1px solid transparent;
    background-image: url('./imgs/Road.png');
    background-size: auto;
    animation: motion_road var(--speed) linear infinite;
    box-shadow: 0px -1px 20px 8px rgb(255 255 255 / 10%);
}

.buttons {
    display: flex;
    display: none;
}


@keyframes motion_road {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 1000px;
    }
}