body,html,.row{ width: 100%; height: 80%; } .slider { -webkit-appearance: none; width: 50%; height: 10px; outline: none; opacity: 0.7; -webkit-transition: .2s; transition: opacity .2s; } #radio-form{ height: 0px; margin-top: 10%; } .canvas{ display: flex; justify-content: center; background-color: black; height: 100%; margin-top: 1.7%; } .slider:hover { opacity: 1; } .radius-span{ margin-left: 17%; } #radius-paragraph{ text-align: center; } #clear{ margin-top: 10%; margin-left: 20%; width: 50%; } .sidenav { height: 100%; width: 0px; position: fixed; z-index: 1; /*top: 0;*/ left: 0; background-color: #212529; overflow-x: hidden; padding-top: 20px; transition: 0.5s; } .sidenav a { padding: 6px 6px 6px 32px; text-decoration: none; font-size: 25px; color: #818181; display: block; } .sidenav a:hover { color: #f1f1f1; } .sidenav .closebtn { position: absolute; top: 0; right: 25px; font-size: 36px; margin-left: 50px; } .main { margin-left: 200px; /* Same as the width of the sidenav */ } @media screen and (max-height: 450px) { .sidenav {padding-top: 15px;} .sidenav a {font-size: 18px;} }