/* Body */

h1, h2, h3, h4, h5, h6 {
  font-weight: 500 !important;
}

ul {
  line-height: 2.3em;
}

ul li::before {
  content: none;
}

li {
  margin-bottom: 8px;
}

.image-inline {
  vertical-align: bottom;
  transform: scale(.9);
  margin: 0 4px;
}

.dark-mode .image-inline {
  filter: invert(1);
}

.m-docs-window {
  margin: 107px 40px 75px 260px
}

.table-header {
  font-size: 1.8rem;
  color: var(--black);
  margin-top: 25px;
  clear: both;
}

.table-header code {
  font-size: 1.8rem;
}

/* Topbar */

#main-nav::after {
  content: '';
  height: 1px;
  background-color: var(--silicon);
  position: absolute;
  bottom: 0;
  right: 0;
  left: 260px;
  opacity: 0;
  transition: .5s;
}

#main-nav.underline::after {
  opacity: 1;
}

.dark-toggle {
  position: absolute;
  border: none!important;
  right: 275px;
  top: 22px;
  transition: 0s;
}

.logged-in .dark-toggle {
  display: flex;
  visibility: visible;
  right: 60px;
}

/*Remove hover state (still in use in demo pages)*/
.dark-toggle:hover {
  background-color: transparent;
}

/* Seachbar */

.search-container {
  position: absolute;
  left: 260px;
  right: 340px;
}

.logged-in .search-container {
  right: 120px;
}

/* Sidebar */

.m-sidebar {
  display: block;
  left: 20px;
  top: 90px;
  bottom: 0;
  width: 220px;
  background: var(--bg-color);
  overflow: hidden;
  overflow-x: hidden!important;
  padding-bottom: 50px;
}

.m-sidebar.design {
  left: 32px;
  bottom: 50px;
}

@media (hover: hover) {
  .m-sidebar:hover {
    overflow: auto;
  }
}

.m-sidebar .m-btn-pseudo {
  display: flex;
  justify-content: flex-start;
  position: relative;
  width: calc(100% - 25px);
  min-width: 205px;
  padding: 7px 9px 7px 9px;
  margin-left: 0;
  text-align: left;
  line-height: 24px;
  transition: opacity .2s ease;
}

.m-sidebar .m-btn-pseudo span {
  font-size: 15px;
  font-weight: 300;
  line-height: 24px;
  color: var(--black);
}

.m-sidebar .nested {
  margin-left: 14px;
}

.m-sidebar .m-btn-pseudo.current {
  opacity: 1;
}

.sidebar-btn-label::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 1px;
  top: 4px;
  width: 1px;
  height: 33px;
  background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transform-origin: center;
  transition: opacity .3s ease;
  z-index: 1;
}

.dark-mode .sidebar-btn-label::before {
  background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
}

.current.sidebar-btn-label::before {
  opacity: 1;
}

.m-sidebar.api .sidebar-btn {
  opacity: 1;
}

.sidebar-btn::before {
  display: none!important;
}

.sidebar-row.m-accordion::after {
  left: 21px;
}

.sidebar-row.nested.m-accordion::after {
  left: 11px;
}

.m-accordion-content .m-btn-pseudo {
  display: flex;
  padding: 7px 9px 7px 17px;
  width: calc(100% - 45px);
  max-height: unset;
  margin-left: 20px;
  font-size: 1.4rem;
  overflow: hidden;
  text-overflow: unset;
  white-space: unset;
  line-height: 21px;
  height: unset;
}

.m-sidebar-container {
  top: 110px;
  color: var(--bg-color);
}

.muse-video-player {
  margin: 25px 0;
}

.section-docs-video .muse-video-player {
  margin-bottom: 0;
}

.tab-content h1 {
  margin-bottom: 25px!important;
}

.tab-content h2 {
  display: inline-block;
  margin-bottom: 10px!important;
  font-size: 3.5rem;
}

.tab-content h2.no-links {
  display: block;
}

.tab-content p {
  margin: 10px 8px 10px 0;
}

.image-example,
.image-example-dark {
  width: 450px;
  margin-bottom: 20px;
  border: 1px solid var(--silicon);
}

.dark-mode .image-example,
.light-mode .image-example-dark  {
  display: none;
}

.dark-mode .image-example-dark,
.light-mode .image-example  {
  display: block;
}

.demo-link {
  color: var(--black);
  opacity: .5;
  vertical-align: 9px;
  margin-left: 20px!important;
  transition: .2s opacity;
}

/* Tip box */

.box-tip {
  display: flex;
  flex-direction: column;
  width: fit-content;
  background-color: var(--silicon);
  border-radius: 10px;
  padding: 15px;
  width: 100%;
}

.box-tip span {
  margin-bottom: 7px;
}

.box-tip span:last-of-type {
  margin-bottom: 0;
}

/* Docs sections */

.container-section-docs {
  display: grid;
  grid-column-gap: 25px;
  grid-row-gap: 25px;
  grid-auto-rows: min-content;
  --auto-grid-min-size: 340px;
  grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
  margin-bottom: 25px;
}

.section-docs {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1150px;
}

.plus-tag {
  content: 'Plus Plan';
  background-color: var(--black);
  padding: 4px 7px;
  border-radius: 5px;
  margin-left: 8px;
  vertical-align: 3px;
  white-space: nowrap;
  font-size: 1.4rem!important;
  font-weight: 300;
  color: var(--white)!important;
}

.m-btn-pseudo .plus-tag {
  font-size: 1rem!important;
  font-weight: 400!important;
}


.section-docs.vertical {
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.section-docs.search {
  align-items: center;
}

.section-docs.search img {
  max-width: 65%;
  margin-left: 25px;
}

.section-docs.vertical img {
  margin-bottom: 15px;
}

.section-docs.vertical .section-docs-text  {
  max-width: unset;
}

.section-docs-text {
  max-width: 50%;
}

.section-docs-video {
  width: 500px;
  margin-left: 20px;
  border: 1px solid var(--slate);
  border-radius: 10px;
}

.section-docs .logo-platform {
  height: 36px;
  margin-bottom: 20px;
}

.section-docs .logo-membervault {
  height: 55px;
}

.dark-mode .section-docs .logo-platform {
  filter: invert(1) saturate(0);
}

#zoom-integration .logo-platform {
  filter: unset!important;
}
.logo-kajabi {
  filter: invert(1);
}

.dark-mode .logo-kajabi {
  filter: invert(0)!important
}

.api-box {
  padding: 25px;
}

.api-box {
  min-height: 140px;
}

.api-box h4 {
  font-size: 2rem;
}

.api-box i {
  transform: scale(1.4);
  transform-origin: left;
  width: 30px;
  height: 23px;
  margin: -2px 0 0 0;
}

.api-box .logo-platform {
  height: 21px;
  margin: 15px 15px 0 0;
  opacity: .6;
}

.api-box .logo-platform:last-of-type {
  margin-right: 0;
}

.table-search td {
  width: unset;
}

.api td {
  padding: 7px 10px 7px 0;
}

.api td:last-of-type {
  padding: 7px 0 7px 0;
}

/* Iframe */

.iframe-docs {
  height: 70vh;
}

/* Embedded pages */

.container-iframe-code {
  display: none;
  margin-top: 15px;
}

.iframe-example {
  background: #fff;
  height: 500px;
  padding: 0;
  width: 50%;
}

.container-iframe-code.on {
  display: flex;
  justify-content: space-between;
}

.container-iframe-code .code-box {
  display: block;
  height: 500px;
  max-height: 500px;
  width: 50%;
  margin: 0; 
  padding: 0;
  background-color: var(--silicon);
}

.container-iframe-code .code-box code {
  padding: 25px;
  height: 100%;
  background-color: none;
}

#toggle-e1 i,
#toggle-e2 i,
#toggle-e3 i,
#toggle-e4 i,
#toggle-e5 i {
  transform: rotate(180deg);
  transition: transform .2s ease;
  transform-origin: center;
}

#toggle-e1.rotated i,
#toggle-e2.rotated i,
#toggle-e3.rotated i,
#toggle-e4.rotated i,
#toggle-e5.rotated i {
  transform: rotate(0deg);
}

/* FAQ */

.box-faq {
  border-bottom: 1px solid var(--silicon);
  padding-bottom: 25px;
  margin-bottom: 25px;
  cursor: pointer;
  user-select: none;
}

.box-faq:first-of-type {
  margin-top: 50px;
}

.faq {
  position: relative;
  font-size: 2.0rem;
  line-height: 26px;
  margin: 0!important;
  padding-right: 30px;
  color: var(--black);
}

.faq i {
  position: absolute;
  top: 0;
  right: 0;
  margin-left: 25px;
  transition: transform .2s ease;
}

.open .faq i {
  transform: rotate(180deg);
}

.reply-faq {
  display: none;
  margin: 15px 0 0 0;
}

.open .reply-faq {
  display: block;
}

code.desktop {
  display: inline-block;
}

code.mobile {
  display: none;
}

/* Recommended */

.footer-recommended {
  display: grid;
  justify-content: flex-start;
  grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
  --auto-grid-min-size: 230px;
  grid-column-gap: 25px;
  grid-row-gap: 15px;
  grid-auto-rows: min-content;
}

.card-recommended {
  padding: 15px 25px 0 0;
  cursor: pointer;
  transition: opacity .2s ease;
  border-right: 1px solid var(--silicon);
}

.card-recommended:last-of-type {
  padding: 15px 0 0 0;
  border-right: none;
}

.card-recommended:hover {
  opacity: .8;
}

.card-recommended h6 {
  margin-bottom: 10px!important;
}

/* Seach */

#search-docs-results {
  position: fixed;
  top: 80px;
  bottom: 0;
  left: 260px;
  right: 0;
  padding: 20px 45px 0 0;
  margin: 0;
  overflow: auto;
  background-color: var(--white);
  z-index: 10;
}

.empty-state.search-docs {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 80px;
  bottom: 0;
  left: 260px;
  right: 0;
  opacity: .5;
}

#search-docs-results.empty .empty-state.search-docs {
  display: flex;
}

.empty-state.search-docs i {
  transform: scale(2);
  margin-bottom: 15px;
}

.search-docs-result {
  display: block;
  width: 100%;
  padding: 15px 0;
  border-bottom: 1px solid var(--silicon);
  transition: background-color .2s ease;
}

.excerpt {
  color: var(--text-color-light);
}

.search-docs-result strong {
  font-weight: 600;
  color: var(--black);
}

.search-docs-result .page-link {
  display: inline-block;
  color: var(--black);
  font-size: 18px;
  font-weight: 400!important;
  margin-bottom: 5px!important;
}

/* Player customization */

#player-customization .section-docs {
  flex-direction: column;
}

#player-customization strong {
  color: var(--black);
  font-weight: 500;
}

.preview-output {
  width: 100%;
  height: 321px;
}

.preview-output iframe {
  height: 100%;
  width: calc(50% - 15px);
  padding: 0 15px 0 0;
  border: none;
  border-right: 1px solid var(--silicon);
}

.preview-output .video-player {
  width: 50%;
  border: none;
}

.preview-output iframe.video-player {
  border-left: none;
  width: 50%;
  padding: 0;
  border: none;
}

.preview-output [id^="video-player"] {
  width: 50%;
}

@media (max-width: 795px) {
  .footer-recommended {
    --auto-grid-min-size: 50%;
    grid-row-gap: 0;
  }
  .card-recommended {
    padding: 25px 0 25px 0;
    border-bottom: 1px solid var(--silicon);
    border-right: none;
  }
  .card-recommended:last-of-type {
    border: none;
  }
}

@media (hover: hover) {
  .search-docs-result:hover {
    background-color: var(--ghost);
  }
  .demo-link:hover {
    color: var(--black);
    opacity: 1;
  }
}

@media only screen and (max-width: 1200px) {
  .section-docs-video {
    width: 450px;
  }
}

@media only screen and (max-width: 1100px) {
  .section-docs {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-docs-text {
    max-width: unset;
  }

  .section-docs.search img {
    max-width: 65%;
    margin-left: 35px;
    max-width: 100%;
    margin-left: 0;
  }

  .section-docs-video {
    width: 100%;
    margin-top: 15px;
    margin-left: 0;
  }

  .preview-output {
    flex-direction: column;
    height: unset;
  }

  .preview-output iframe {
    width: 100%;
    padding: 0;
    border-right: none;
    min-height: 260px;
  }

  iframe.video-player {
    height: unset;
  } 

  .preview-output [id^="video-player"],
  .preview-output .video-player {
    width: 100%!important;
    margin-top: 15px;
  }
}

@media only screen and (max-width: 950px) {
  body {
    overflow: auto!important;
  }

  .main-nav-container {
    height: 75px;
    width: calc(100% - 40px);
  }

  .m-docs-window {
    position: unset;
    margin: 80px 20px 20px 20px;
  }

  .tab-content {
    margin-top: -100px;
  }

  .m-sidebar {
    display: none;
    top: 0 !important;
    left: 0 !important;
    right: 0;
    bottom: 0 !important;
    width: unset;
    padding-top: 70px;
    padding-left: 20px;
    background: var(--bg-color);
    z-index: 221;
  }

  .m-sidebar.on {
    display: block;
    position: fixed;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .m-sidebar-container.on {
    display: block;
    width: 100vw;
  }

  .mobile-menu-divider {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--black-10);
  }

  .dark-toggle,
  .logged-in .dark-toggle{
    right: 112px;
    top: 18px;
  }

  .m-sidebar-header{
    padding: 20px;
  }

  #mobile-menu-toggle {
    display: block;
    z-index: 201;
  }

  #mobile-search-toggle {
    display: block;
    position: absolute;
    top: 25px;
    right: 70px;
    cursor: pointer;
  }

  #close-mobile-search {
    position: absolute;
    right: 10px;
    top: 8px;
    z-index: 1;
    cursor: pointer;
  }

  .search-container.docs {
    display: none!important;
  }

  #search-docs-results {
    display: none!important;
    left: 0;
    top: 74px;
    padding: 0;
    border-top: 1px solid var(--silicon);
  }

  .empty-state.search-docs {
    left: 0
  }

  .search-docs-result {
    padding: 20px;
  }

  body.search-on {
    overflow: hidden!important;
  }

  .search-on #search-docs-results {
    display: block!important;
  }

  .search-on .search-container.docs {
    display: block !important;
    position: absolute;
    left: 20px;
    right: 20px;
    z-index: 202;
  }

  .searchbar.docs::after {
    left: 15px;
    top: 10px;
  }

  .m-sidebar .m-btn-pseudo {
    display: block !important;
    margin-left: 0;
    margin-bottom: 0;
    width: calc(100% - 25px);
    text-align: left;
    font-size: 1.8rem;
    line-height: 50px;
    padding: 0;
  }

  .m-sidebar .m-btn-pseudo:hover {
    background-color: transparent;
  }

  .m-sidebar .nested {
    padding-left: 51px;
  }

  .demo-link {
    vertical-align: 6px;
  }

  .image-example {
    width: 100%;
  }

  .m-sidebar .switch-color {
    display: block;
    visibility: visible;
    bottom: 100px;
    height: 34px;
    right: 25px;
    left: unset;
    background-color: var(--white);
    border: 1px solid var(--silicon);
  }

  .m-sidebar .switch-color .light-mode-label,
  .m-sidebar .switch-color .dark-mode-label  {
    opacity: 1;
    line-height: 34px;
  }

  #record-btn {
    width: unset;
    height: unset;
    min-width: unset;
  }

  #record-btn i {
    margin-right: 7px!important;
  }

  /* Hide account dropdown on mobile */

  html.logged-in #account-dropdown {
    display: none!important;
  }

  #main-nav::after {
    left: 0;
  }

  .container-iframe-code {
    flex-direction: column;
  }

  .iframe-example {
    width: 100%;
  }

  .container-iframe-code .code-box {
    width: 100%;
  }

  .api td:first-of-type {
    width: 180px;
    max-width: 180px;
    vertical-align: top;
  }

  .api td:last-of-type {
    width: calc(100% - 180px);
  }

  .api td code {
    white-space: unset;
  }

  code.desktop {
    display: none;
  }

  code.mobile {
    display: unset;
  }

  .sidebar-row .m-accordion-content {
    display: none!important;
  }
}
