/* Keep navigation outside the independently scrolling practice area. */
html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.header {
  flex: 0 0 64px;
  z-index: 6;
}

.workspace {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  height: 100%;
  min-height: 0;
}

.sidebar-top,
.sidebar-footer {
  flex-shrink: 0;
}

#exercise-list {
  min-height: 0;
  overscroll-behavior: contain;
}

.main {
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  overflow: auto;
  overscroll-behavior: contain;
}

@media (min-width: 621px) {
  .sidebar {
    position: relative;
    top: auto;
  }
}

@media (max-width: 620px) {
  .sidebar {
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
  }
}
