/* Body */

svg {
    width: 100vw;
    height: 100vh;
    cursor: grab;
    user-select: none;
    transition: background 0.3s ease;
}
text {
    font-family: sans-serif;
    pointer-events: none;
}
.canvasGroup {
    background-color: aliceblue;
}
body.light {
    background: antiquewhite;
}

/* Node */

.draggable {
    cursor: grab;
}

.node rect {
    stroke-width: 1;
    stroke: palegoldenrod;
}

.halo rect {
    stroke-dasharray: 10, 10;
}

body.dark .node rect {
    fill: #142217;
}
body.dark .node rect.node-base-B {
    fill: powderblue;
}
body.light .node rect {
    fill: papayawhip;
}
body.light .node rect.node-base-B {
    fill: floralwhite;
}

circle.node-bg-morph {
    fill: #754000;
}
circle.node-bg-transfer {
    fill: rebeccapurple;
}

body.light .node-box {
    fill: #eee;
}
.module-label {
    font-weight: bold;
    font-size: 80px;
    fill: #222;
    pointer-events: none;
}

/* Edges */

line.arrow {
    stroke-width: 8;
    stroke: #888;
    stroke-width: 8;
}

.morph-edge-label {
    font-family: monospace;
    fill: royalblue;
    pointer-events: none;
    text-align: center;
    font-size: 72px;
}

body.dark .cost-stat {
    font-size: 48px;
    fill: #9cdcfe;
    stroke: black;
    stroke-width: 1px;
    font-size: 72px;
}
body.light .cost-stat {
    font-size: 48px;
    fill: whitesmoke;
    stroke: black;
    stroke-width: 1px;
    font-size: 72px;
}

/* highlightings */

.solution rect,
.solution circle,
line.solution {
    stroke-width: 4px;
}

body.dark .solution rect,
body.dark .solution circle,
body.dark line.solution,
body.dark .solution .morph-edge-label {
    stroke: #3f4;
    filter: blur(1px);
}
body.light .solution rect,
body.light .solution circle,
body.light line.solution,
body.light .solution .morph-edge-label {
    stroke: yellowgreen;
}
body.light .solution .morph-edge-label {
    fill: lightseagreen;
}

rect.start-node {
    stroke-width: 2px;
}

.canceled-node {
    filter: saturate(0.2) contrast(0.4) brightness(1.5);
    opacity: 0.9;
}
