* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background-color: #515151;
}

#ui {
  flex-shrink: 0;
  height: 100px;
  padding: 1rem;
  background-color: #515151;
  color: white;
  gap: 1rem;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(3, 1fr);
}

#canvas {
  flex: 1;
}

.slider-wrapper {
  display: grid;
  justify-content: center;
  grid-template-columns: 1fr 70%;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

@media only screen and (max-width: 1000px) {
  body {
    flex-direction: column-reverse;
  }

  #ui {
    height: 150px;
    grid-template-rows: repeat(6, 1fr);
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 600px) {
  #ui {
    height: 150px;
    overflow-x: scroll;
    grid-template-rows: repeat(10, 1fr);
    grid-template-columns: repeat(1, 1fr);
  }
}
