body{ font-family: sans-serif; margin: 0; } .btn{ display:inline-block; cursor: pointer; background: #333; padding: 5px; color: white; border-radius: 5px; } #interface{ display: flex; flex-direction: row; height: 100vh; width: 100vw; } #status{ display: flex; flex-direction: row; flex-wrap: wrap; width: 430px; height: 100%; overflow-y: scroll; & > div{ width: 33.3333333%; height: 150px; border: solid 1px; box-sizing: border-box; position: relative; } .hugvey{ background-image: linear-gradient(to top, #587457, #35a589); color:white; display: flex; flex-direction: column; justify-content: center; h1{ text-align: center; margin: 0; } &.hugvey--on{ h1 { position: absolute; left: 5px; top: 5px; } } &.hugvey--off{ background-image: linear-gradient(to top, #575d74, #3572a5); h1::after{ content: '[off]' } } } } #story{ position: relative; #controls{ position:absolute; top: 5px; left: 5px; } svg#graph{ width: 100%; height: 100%; } }