/* Compensate for a fixed header when navigating to headings */
h1::before,
h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
  display: block;
  content: " ";
  margin-top: -70px;
  height: 70px;
  visibility: hidden;
  pointer-events: none;
}
.anchor {
    display: block;
    position: relative;
    top: -70px;
    visibility: hidden;
}
/*Sticky Sidebars*/
.sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 70px;
  vertical-align: top;
  max-height: 100vh;
  overflow-y: auto;
}

.scroll {
}

html {
    overflow: scroll;
    overflow-x: hidden;
}
::-webkit-scrollbar {
    width: 0px;  /* Remove scrollbar space */
    background: transparent;  /* Optional: just make scrollbar invisible */
}
.main-content{
  min-height: calc(100vh - 20rem)
}

iframe {
  width: 755px;
  height: 424px;
  max-width: 100%;
  max-height: calc((100vw - 40px) / (16/9));
}

.modal-content {
  top: 20px;
  position: fixed;
  border-radius: 5px;
}

.copy-code-button {
    float: right;
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    grid-column-gap: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;

    &::before {
        content: "Copy";
    }

    &::after {
        content: "📋";
        display: block;
    }

    &.copied {
        &::before { content: "Copied!"; }
        &::after { content: "✔️"; }
    }
}