/* =========================================================
   2. APP SHELL
   ========================================================= */

.bb-app {
  width: 1440px;
  height: 1040px;
  position: relative;

  display: grid;
  grid-template-rows: 128px 20px 1fr 80px;

  overflow: hidden;
  margin: 0 auto;
}

/* =========================================================
   8. MAIN AREA / SCREEN LAYOUT
   ========================================================= */

.bb-header {
  grid-row: 1;
}

.bb-header-preview-wrap {
  grid-row: 2;
}

.bb-main {
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--bb-side-margin);
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.bb-footer {
  grid-row: 4;
}

/* prikazujemo samo aktivan screen */
.bb-screen {
  display: none;
}

.bb-screen.is-active {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

/* =========================================================
   9. DRAGGABLE DIVIDER
   ========================================================= */

.bb-divider {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  align-self: stretch;
  cursor: col-resize;
}

.bb-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: #8e8e8e;
  border-radius: 2px;
}

.bb-divider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;

  width: 18px;
  height: 58px;
  background: #1f1f1f;
  border-radius: 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  user-select: none;
  pointer-events: none;
}

.bb-divider-arrows {
  position: relative;
  width: 10px;
  height: 20px;
  display: block;
}

.bb-divider-arrows::before,
.bb-divider-arrows::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 6px;
  background: #fff;
}

.bb-divider-arrows::before {
  top: 2px;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.bb-divider-arrows::after {
  bottom: 2px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.bb-divider-arrows::before {
  top: 1px;
  border-bottom: 6px solid #fff;
}

.bb-divider-arrows::after {
  bottom: 1px;
  border-top: 6px solid #fff;
}

/* =========================================================
   17. SCROLLBARS
   ========================================================= */

.bb-passage::-webkit-scrollbar,
.bb-question::-webkit-scrollbar,
.bb-directions-scroll::-webkit-scrollbar {
  width: 10px;
}

.bb-passage::-webkit-scrollbar-thumb,
.bb-question::-webkit-scrollbar-thumb,
.bb-directions-scroll::-webkit-scrollbar-thumb {
  background: #8a8a8a;
  border-radius: 999px;
}

.bb-passage::-webkit-scrollbar-track,
.bb-question::-webkit-scrollbar-track,
.bb-directions-scroll::-webkit-scrollbar-track {
  background: transparent;
}