main h1 + svg { width: 70%; height: auto; } main h1 + svg + div { width: 30%; float: right; padding: 1rem; } main div table { margin-bottom: 1rem; } main div table tr td:first-of-type { height: 2rem; width: 3rem; padding-right: 1rem; vertical-align: middle; } main div table tr td:nth-of-type(2) { height: 2rem; } .node { width: 1.5rem; height: auto; } .edge { width: 3rem; height: auto; vertical-align: text-top; } @media (max-width: 860px) { main h1 + svg { width: 100%; } main h1 + svg + div { width: 100%; float: none; } }