@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;
}

.hidden {
  display: none;
}

div#ui a {
  margin-top: 0;
  font-size: 34px;
  color: white;
}

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;
}

a#pause {
  margin-left: 35px;
}

#slide-panel {
  position: fixed;
  top: 93vh;
  left: -890px; /* Start hidden */
  width: 890px;
  height: auto;
  max-height: 96vh;
  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, top 0.3s ease;
  padding-right: 25px;
  font-size: 18px;
  overflow: scroll;
}

.panel-content img {
  width: 100%;
}

.panel-content figure {
  margin-right: 18px;
}

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

/* Panel content area */
.panel-content {
  display: grid;
  grid-template-columns: 50% auto;
  padding: 10px;
}

div.title {
  grid-column-start: 1;
  grid-column-end: 3;
}

.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;
  top: 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);
}