/* ---------------------------------- */

:root {
  --llmfoundry-navbar-height: 68px;
}

.sidebar {
  height: calc(100vh - var(--llmfoundry-navbar-height));
  overflow-y: auto;
  .nav {
    --bs-nav-link-padding-y: 0.25rem;
    --bs-nav-link-color: var(--bs-body-color);
  }
}

.content {
  height: calc(100vh - var(--llmfoundry-navbar-height));
  overflow-y: auto;
}

.markdown {
  /* Center Markdown content */
  max-width: 50rem;
  margin: 2.5rem auto;

  /* Add margin to headers unless they are inside .inner-html */
  h1:not(.inner-html h1),
  h2:not(.inner-html h2),
  h3:not(.inner-html h3) {
    margin-top: 1em;
    margin-bottom: 0.5em;
  }

  /* Inside .markdown, the .alert has a padding. Avoid double padding on pre */
  .alert pre {
    margin-bottom: 0;
  }
}

/* Add a # before headers just outside the content */
.anchor {
  margin-left: -1.5rem;
  width: 1.5rem;
  display: inline-block;
  text-decoration: none;
}

/* YouTube play button */
.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-button-overlay::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 15px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
