/** @format */

:root {
    --board-size: 1000px;
    --ball-size: 40px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, sans-serif;
    margin: 24px;
}

#board {
    width: var(--board-size);
    height: var(--board-size);
    border: 3px solid black;
    position: relative;
    overflow: hidden;
}

.ball {
    width: var(--ball-size);
    height: var(--ball-size);
    border-radius: 50%;
    position: absolute;
}

.ball1 {
    background: red;
}
.ball2 {
    background: blue;
}

/* Base flèche */
.arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 4px;
    background: rgb(0, 255, 34);
    transform-origin: 0% 50%;
}

.arrow-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px; /* grande flèche */
    height: 5px;
    background: #1e90ff; /* BLEU */
    transform-origin: 0% 50%;
}

/* pointe */
.arrow-center::after {
    content: "";
    position: absolute;
    right: -10px;
    top: -6px;
    border-left: 12px solid #1e90ff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}
