* {
  /*box-sizing: border-box;*/
}

.mobileheader {
  display: none;
  height: 40px;
  width: 100%;
  background: var(--background-just-a-bit-darker);
}

.mobileheader .center {
  display: flex;
  align-content: center;
  flex-wrap: wrap;
}

.mobileheader .right {
  width: 30px;
}

.docspage {
  display: flex;
  min-height: calc(100vh - 42px); /* subtract navbar height */
  background: var(--background-darker);
  overflow: hidden;
}

/* SIDEBAR STUFFS */
.sidebar {
  width: 25%;
  min-width: 250px;
  display: flex;
  justify-content: flex-end;
  z-index: 10;
  line-height: 1.4;
}

.sidebarmenubtn {
  width: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.sidebarmenubtn i {
  font-size: 15px;
}

.sidebarcontent {
  width: 250px;
  background: var(--background-just-a-bit-darker);
  overflow-y: auto;
  max-height: calc(100vh - 42px); /* subtract navbar height */
}

.sidebar .categoryheading {
  margin-top: 20px;
  padding: 6px 16px;
  font-weight: 700;
}

.sidebarindex {

}

.sidebarindex ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

.sidebarindex .sectionheading {
  padding: 6px 16px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-color-teal-light);
  transition: color 0.2s ease;
}

.sidebarindex .sectionheading:hover {
  color: var(--text-color-highlight);
  background: var(--background-hover);
}

.sidebarindex .sectionheading .arrow {
  font-size: 14px;
  transition: transform 0.1s ease;
}

.sidebarindex .sectionheading.expandable.open .arrow {
  transform: rotate(180deg);
}

.sidebarindex .section .submenu {
  display: none;
  padding-left: 15px;
}

.sidebarindex .subsectionheading {
  padding: 6px 16px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s ease;
}

.sidebarindex .subsectionheading:hover {
  color: var(--text-color-hover);
}

.sidebarindex .sectionheading.active,
.sidebarindex .subsectionheading.active {
  font-family: 'cairo-semibold';
  text-decoration: underline;
}
.sidebarindex .sectionheading.active {
  color: var(--text-color-teal-lighter);
}
.sidebarindex .subsectionheading.active {
  color: var(--text-color-hover);
}


/* ARTICLE STUFFS */
.articlecontainer {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.6;
  overflow-y: auto;
  max-height: calc(100vh - (var(--navbar-height) + 2px));
}

.articlecontainer h1, h2 {
  margin-top: 30px;
  margin-bottom: 5px;
}
.articlecontainer h3 {
  margin-top: 12px;
  margin-bottom: 5px;
}

.articlecontainer p {
  margin-top: 10px;
  margin-bottom: 10px;
}

.articlecontainer h1+p,
.articlecontainer h2+p,
.articlecontainer h3+p,
.articlecontainer h4+p,
.articlecontainer h5+p,
.articlecontainer h6+p {
    margin-top: 0;
}

.articlecontainer .maincontent {
  width: 800px;
  padding: 0 50px 18px 50px;
  background: var(--background-dark);
  box-sizing: border-box;
}

.articlecontainer .article ul li p {
  margin: 4px 0;
}

.articlecontainer .article ul p {
}

.article .twocolumn {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  overflow: hidden;
}

.article .twocolumn .column1,
.article .twocolumn .column2 {
  flex: 1; /* flex-grow: 1; flex-shrink: 1; flex-basis: 0% */
  min-width: 250px;
}

.article .twocolumn .smallimage {
  flex: 0 0 auto; /* flex-grow: 0; flex-shrink: 0; flex-basis: auto */
  min-width: 160px;
  max-width: 160px;
}

.article .twocolumn .image {
  /*main container 800px - 100px padding - 20px gap divided by 2*/
  min-width: 340px;
  max-width: 340px;
}

.article .columnimage {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.article .columnimage img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.article img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: inherit;
}

.article .imagecaption {
  text-align: center;
  color: var(--text-color-dark);
  font-size: small;
  font-style: italic;
}

/* FOOTER STUFFS */
.articlecontainer .footer {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  line-height: 1.3;
  margin: 30px 0;
}

.articlecontainer .footer .right {
  text-align: right;
}

.articlecontainer .footer a {
  display: flex;
  text-decoration: none;
  align-items: center;
  font-size: 14px;
  color: var(--text-color-dark);
}

.articlecontainer .footernavigation .pagetitle {
  color: var(--text-color-teal-light);
  text-decoration: underline;
}

.articlecontainer .footer .footerarrow {
  padding: 0 8px;
}

/* OVERLAY STUFFS */
.sidebaroverlay {
  opacity: 0;
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.54);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1040;
  transition: opacity 0.3s ease-out, visibility 0s 0.3s;
}

.sidebaroverlay.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-out, visibility 0s;
}

@media only screen and (max-width: 1150px) {
  .mobileheader {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
  }

  .docspage {
    flex-direction: column;
  }

  .articlecontainer .maincontent {
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
  }

  .sidebar {
    height: 100vh;
    left: -250px;
    position: fixed;
    top: 0;
    width: 250px;
    z-index: 1050;
    transition: left 0.3s ease-in-out;
  }

  .sidebar.visible {
    left: 0;
  }

  .sidebaroverlay {
    z-index: 1040;
  }
}

@media only screen and (max-width: 900px) {
  .articlecontainer .maincontent {
    width: 100%;
    padding: 0 15px;
  }
}

/* twocolumn stuff on small screens */
@media only screen and (max-width: 500px) {
  .article .twocolumn {
    gap: 0;
  }

  .article .twocolumn .column2.image {
    flex: 1;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
