body { font-size: 16px; font-family: "Helvetica", sans-serif; line-height: 1.3rem; width: 100%; height: 100vh; margin: 0rem; padding: 0rem; overflow-x: auto; overflow-y: auto; } header { background-color: lemonchiffon; padding-top: 1rem; padding-bottom: 1rem; font-size: 20px; margin: auto; width: 1260px; max-width: 1260px; text-align: center; } header > h1 { margin: 0rem; padding-top: 0.5rem; padding-bottom: 0.5rem; } main { display: flex; flex-direction: row; color: #1a1a1a; width: 1260px; margin: auto; max-width: 1260px; background-color: white; flex: 1 1 100%; margin-bottom: 1rem; overflow-y: hidden; } section { min-width: 74%; width: 74%; overflow-y: hidden; } /* Navigation bar */ nav { padding-top: 1rem; position: sticky; width: 20%; min-width: 20%; max-width: 20%; margin-right: 5%; height: 100%; display: flex; flex-direction: column; text-align: left; font-size: 1rem; user-select: none; } .outer-tree { width: 100%; list-style: none; padding: 0; margin: 0; } .outer-tree > li > span { display: block; width: 100%; cursor: pointer; background: white; } .outer-tree > li > span:hover { color: gray; } .outer-tree > li > span > i { transform: rotate(0deg); transition: 100ms ease-in-out transform; } .outer-tree li.expanded > span > i { display: inline-block; transform: rotate(180deg); } .outer-tree li > span > span { padding-left: 1rem;; } .inner-tree { padding-left: 1rem; display: none; list-style: none; } .inner-tree > li > label { color: blue; font-weight: bold; text-align: center; } .inner-tree > li > a { margin-left: 0.5rem; } .outer-tree > li.expanded .inner-tree { display: inherit; } nav a { color: #404040; text-decoration: none; display: inline-block; min-width: 196px; } nav a:hover { color: #1a1a1a; cursor: pointer; } .nav-selected { color: black; font-weight: bold; } .spin-loader { border: 5px solid #f3f3f3; border-top: 5px solid #555; border-radius: 50%; width: 50px; height: 50px; animation: spin 2s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } article > p { padding-left: 2rem; padding-right: 2rem; } /* Helpful widgets */ .vec2_input_group { position: relative; margin-top: 1rem; display: flex; flex-direction: row; width: 100%; justify-content: space-evenly; padding: 0.25rem; } .vec2_input_group > label { position: absolute; top: -1rem; left: 0rem; font-size: 0.8rem; font-weight: bold; text-align: left; } .vec2_input_group > input { width: 45%; } .slider_container { display: flex; flex-direction: column; } .slider_container > label { font-weight: 500; } /* WebGL container styling from here on. */ article .opengl_canvas_container { position: relative; width: 100%; text-align: center; display: flex; flex-direction: row; justify-content: center; border-radius: 3px; } article .opengl_canvas_container .play_button { all: unset; font-size: 2rem; width: 128px; height: 128px; position: absolute; top: calc(50% - 56px); left: calc(50% - 214px); border: 1px solid white; color: white; background-color: transparent; border-radius: 50%; display: flex; flex-direction: row; align-items: center; justify-content: center; } .opengl_canvas_container canvas { border-radius: 3px 0px 0px 3px; border: 1px solid black; } article .opengl_canvas_container .play_button:hover { cursor: pointer; } article .opengl_canvas_container .stop_button { all: unset; font-size: 1rem; background-color: red; color: white; position: absolute; width: 128px; height: 2rem; border-radius: 2px; top: 0.5rem; left: 496px; display: none; } article .opengl_canvas_container .stop_button:hover { cursor: pointer; } article pre { width: 90%; overflow-x: auto; padding-left: 2rem; font-size: 0.9rem; } .opengl_canvas_sidebar { width: 312px; height: 480px; border: 1px solid #1a1a1a; border-left: none; display: flex; flex-direction: column; text-align: left; justify-content: space-between; } .opengl_canvas_sidebar .opengl_value_tracker { font-size: 14px; display: flex; flex-direction: column; text-align: left; } .opengl_canvas_sidebar .opengl_value_tracker > li { padding-bottom: 0.5rem; } .opengl_canvas_sidebar .opengl_value_tracker > li > b { display: inline-block; width: 128px; } .opengl_canvas_sidebar .opengl_value_tracker > li > span { display: inline-block; } /* Code styles */ .code_keyword { color: blue; font-weight: bold; } .code_constant { font-weight: bold; } .code_str { color: orange; } .code_comment { color: green; }