body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
}

canvas {
  display: block;
  width: 100vh;
  max-width: 1100px;
  margin-bottom: 1em;
  border: 2px solid darkslategray;
  transition: border-color 0.6s ease, border-radius 0.6s ease;
}

#control_element {
  grid-column: 1;
  background-color: white;
  text-align: center;
}

.highlight {
  border-radius: 25px;
  border-color: aliceblue;
}

.canvas-slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slider-wrapper {
  display: flex;
  flex-grow: 1;
  align-items: center;
  margin-bottom: 1em;
  width: 100%;
}

.frame-slider {
  margin: 0 auto;
  width: 80%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  height: 1em;
  background: rgb(6, 26, 40);
  opacity: 0.7;
  transition: opacity 0.6s, background-color 0.6s;
}

.frame-slider:hover {
  opacity: 1;
  background: rgb(128, 128, 128);
}

.frame-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.3em;
  height: 2em;
  background-image: linear-gradient(
    to right,
    rgb(125, 125, 125),
    rgb(209, 209, 209)
  );
  background-attachment: fixed;
  border: 2px solid darkslategray;
  cursor: pointer;
  transition: background-color 0.6s;
}

.frame-slider::-webkit-slider-thumb:hover {
  opacity: 1;
  background: white;
}

.frame-label {
  color: white;
  margin-left: 1em;
  min-width: 70px;
  text-align: right;
}

aside {
  background-color: wheat;
  position: fixed;
  bottom: 0;
  left: 80%;
  width: 20%;
  height: 80%;
}

.side {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  display: none;
  z-index: 1000;
  font-size: 14px;
}

@media (max-width: 768px) {
  canvas {
    width: 90%;
  }
}
