svg { max-height: 90vh; width: 100%; } .link { stroke: #000; stroke-width: 1.5px; } .node { cursor: move; stroke: #000; stroke-width: .07vw; fill-rule: evenodd; } .node.fixed { stroke: #30dfdf; stroke-width: .05vw; } @media(min-width: 768px) { body { max-height: 90vh; min-width: 100vw; } svg { height: 50 !important; width: 200; } }