a:link, a:hover, a:active, a:visited{color: #000;} html, body{margin: 0; padding: 0; height: 100%; width: 100%;} canvas{margin: 0; padding: 0; border: none; display: block;} button:hover{cursor: pointer;} @font-face{ font-family: "Tajawal"; src: url("data/styles/fonts/Tajawal/Tajawal-Regular.ttf"); } @font-face{ font-family: "Elronet"; src: url("data/styles/fonts/Elronet/Elronmonospace.ttf"); } *{ font-family: "Tajawal", serif; color: #000; font-size: 17px; } :root{ --width: 100vw; --height: 100vh; --opt-width: 400px; --opt-padding: 10px; --opt-border: 5px; --canvas-width: calc(100vw - (var(--opt-width) + var(--opt-padding) * 2 + var(--opt-border))) } body { overflow: hidden; } /** * Standard styles */ #canvas_holder{ position: relative; width: var(--canvas-width); height: var(--height); float: left; } #canvas_holder canvas{ position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; } #p5_loading{ display: none; } #options { float: left; width: var(--opt-width); height: calc(100vh - var(--opt-padding) * 2); padding: var(--opt-padding); border-right: var(--opt-border) solid rgb(150, 150, 150); background-color: rgb(40, 40, 40); display: flex; flex-direction: column; } #options *:not(input[type=number], input[type=button]){ color: white; } fieldset { border-radius: 5px; margin: 10px; } fieldset > legend { font-size: 25px; } input { margin: 5px; } #preparation { overflow-y: auto; } #segment_view { display: grid; grid-template-columns: 10% 15% 30% 15% 30%; } #segment_header_mass { grid-column: 2 / span 2; } #segment_header_length { grid-column: 4 / span 2; } .segment_label { display: inline-flex; align-items: center; justify-content: center; } button { margin-top: 10px; width: 100%; height: 50px; border: 3px solid black; border-radius: 5px; background-size: contain; background-position: center; background-repeat: no-repeat; } button:hover{ filter: brightness(80%); } button:active { filter: brightness(60%); } #add_btn{ border-color: #007a00; background-color: #d3ffd3; background-image: url("data/images/add.svg"); } #play_btn { border-color: #0000c2; background-color: #b1b1ff; } #play_btn.play { background-image: url("data/images/play.svg"); } #play_btn.pause { background-image: url("data/images/pause.svg"); }