:root {
    --background-color: #0B071B;
    --background-color-secondary: #161031;
    --foreground-color: white;
    --main-color: red;
}

body {
    background-color: var(--background-color);
    position: relative;
    margin: 0;
    color: var(--foreground-color);
    height: 100vh;
    width: 100vw;
}

#newTableButton {
    font-size: 2rem;
    font-weight: bold;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px 0.5px var(--foreground-color);
    bottom: 20px;
    right: 20px;
    height: 50px;
    width: 50px;
    background-color: var(--background-color-secondary);
    transition-duration: 500ms;
    aspect-ratio: 1/1;
    text-align: center;
    display: flex;
    user-select: none;
    cursor: pointer;
    & span {
        width: 100%;
    }
}

#newTableButton:hover {
    box-shadow: 0 0 10px 2px var(--foreground-color);
}

#zone {
    height: 100%;
    width: 100%;
    position: relative;
}

.table {
    position: absolute;
    z-index: 1;
    background-color: var(--background-color-secondary);
    min-width: 20px;
    min-height: 40px;
    max-width: 100%;
    max-height: 100%;
    top: 50px;
    left: 50px;
    user-select: none;
    border: 1px var(--foreground-color) solid;
    border-radius: 5px;
    text-align: center;
    padding-bottom: 25px;
}

.addColumnButton {
    color: var(--foreground-color);
    border: 2px gray solid;
    height: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transition-duration: 500ms;
}

.addColumnButton:hover {
    font-weight: bold;
    text-decoration: underline;
}

.tableName {
    color: var(--foreground-color);
    margin: 0 10px;
    height: 45px;
}

.column {
    border-top: 1px var(--foreground-color) solid;
    position: relative;
    padding: 0 15px;
}

.dot {
    border-radius: 50%;
    height: 10px;
    width: 10px;
    position: absolute;
    top: calc(50% - 5px);
    background-color: rgb(36, 0, 0);
    border: 1px white solid;
    transition-duration: 500ms;
}

.dot:hover {
    background-color: rgb(103, 1, 1);
}

.dot.actif {
    background-color: red;
}

.dot.before {
    left: -5px;
}

.dot.after {
    right: -5px;
}

.link {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    cursor: pointer;
    & path {
        stroke: var(--main-color);
        fill: none;
        pointer-events: stroke;
    }
}

svg[data-start="mouse"],
svg[data-end="mouse"] {
    pointer-events: none;
}