@font-face {
    font-family: HersheySimplex;
    src: url("AVHersheySimplexMedium.otf");
    font-weight: normal;
    font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "HersheySimplex";
}
canvas {
  display: block;
}

div#ui {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  width: 390px;
  height: 170px;
  padding-top: 40px;
  padding-left: 10px;
  display: none;
}

body {
  margin: 0;
  padding: 0;
}

div#uiswitch {
  position: fixed;
  bottom: 0px;
  right: 0px;
  width: 42px;
  height: 20px;
  background-color: rgba(0,0,0,0.376);
  padding: 5px;
  color: white;
}

#slide-panel {
  position: fixed;
  bottom: -625px;
  left: -550px; /* Start hidden */
  width: 550px;
  height: 675px;
  background-color: rgba(0,0,0,0.376);
  color: white;
  box-shadow: -2px -2px 5px rgba(0,0,0,0.3);
  transition: left 0.3s ease, bottom 0.3s ease;
  padding-right: 25px;
  font-size: 18px;
}

.panel-content h1 {
  margin-top: 0px;
}

/* Panel content area */
.panel-content {
  padding: 10px;
}

.panel-content a {
  color: white;
}

/* Visible vertical tab */
.tab-label {
  position: absolute;
  right: -15px; /* Tab sticks out */
  top: 25px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  letter-spacing: 2px;
}

/* When open */
#slide-panel.open {
  left: 10px;
  bottom: 10px;
  padding-right: 5px;
}

#slide-panel.open div.tab-label {
  display: none;
}

.container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* The slider */
.slider {
  -webkit-appearance: none;  /* Override default CSS styles */
  appearance: none;
  width: 100%; /* Full-width */
  height: 25px; /* Specified height */
  background: #d3d3d3; /* Grey background */
  outline: none; /* Remove outline */
  opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: .2s; /* 0.2 seconds transition on hover */
  transition: opacity .2s;
}

/* Mouse-over effects */
.slider:hover {
  opacity: 1; /* Fully shown on mouse-over */
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  width: 25px; /* Set a specific slider handle width */
  height: 25px; /* Slider handle height */
  background: #04AA6D; /* Green background */
  cursor: pointer; /* Cursor on hover */
}

.slider::-moz-range-thumb {
  width: 25px; /* Set a specific slider handle width */
  height: 25px; /* Slider handle height */
  background: #04AA6D; /* Green background */
  cursor: pointer; /* Cursor on hover */
}