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: auto; } /** * 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); } #options *:not(input[type=number], input[type=button]){ color: white; } fieldset { border-radius: 5px; } input { margin: 5px; } input[type=button]{ border: 3px solid #0060df; border-radius: 5px; line-height: 30px; font-size: 30px; } #play_btn { width: 100%; border: 4px solid cornflowerblue; border-radius: 5px; height: 50px; background-size: contain; background-position: center; background-repeat: no-repeat; } #play_btn.play { background-image: url("data/images/play.svg"); } #play_btn.pause { background-image: url("data/images/pause.svg"); }