* {
  box-sizing: border-box;
}
nav{
  position: fixed;
  top: 0;
}

.WikiContainer {
  display: flex;
  min-height: calc(100vh - 64px);
  margin-top: 64px;
}

.sidebar {
  width: 250px;
  padding: 20px;
  overflow-y: auto;
  position: fixed; /* Keep sidebar fixed */
  height: calc(100vh - 64px); /* Adjust height based on your header size */
}

#WikiSideBar {
  background-color: var(--background-800);
  left: 0; /* Position the WikiSideBar on the left */
}

#WikiContentsSideBar {
  border-left: 1px solid var(--background-800);
  position: fixed; /* Keep it fixed */
  right: 0; /* Position it on the right */
  background-color: var(--background-800); /* Optional: Set background color */
}

.WikiContent {
  flex: 1;
  padding: 20px 40px;
  margin-left: 250px; /* Add margin to prevent content overlap with left sidebar */
  margin-right: 250px; /* Add margin to prevent content overlap with right sidebar */
}

.sidebar details {
  margin-bottom: 1rem;
}

.sidebar summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  cursor: pointer;
  padding: .2em;
  user-select: none;
}

.SideBarSummary svg {
  transition: transform 0.3s ease;
  transform: rotate(-90deg);
}

details[open] .SideBarSummary svg {
  transform: rotate(0deg);
}

.sidebar span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-50);
}

#WikiSideBar ul a {
  padding: 0.3em;
}

#WikiSideBar ul {
  padding-left: .5rem;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--text-300);
}

.sidebar a {
  text-decoration: none;
  color: var(--text-200);
  background-color: transparent;
  border-radius: .30rem;
}

.sidebar a:hover {
  color: var(--text-50);
}

#WikiContentsSideBar ul,
#WikiContentsSideBar ol {
  padding: 0;
  list-style-type: none;
}

#WikiContentsSideBar ol {
  padding-left: .5rem;
}

#WikiContentsSideBar li,
#WikiContentsSideBar a {
  padding: 0.3em;
}

@media (min-width: 889px) {
  .MobileSupportError{
    display: none;
  }
}

@media (max-width: 888px) {
.WikiContainer{display: none;}

.MobileSupportError{
  margin-top: 64px;
  display: block !important;
  background-color: var(--error);
  padding: 40px;
  width: 100vw;
  overflow-wrap: break-word;
  text-align: center;
}

.MobileSupportError span,
.MobileSupportError a{
  font-size: 40px;
  color: var(--text-50) !important;
}
}



.popup {
  background-color: var(--background-800);
  color: var(--text-50);
  border-left: 4px solid var(--BorderC);
  padding: 16px; 
  border-radius: 4px;
  width: 50%;

}
.popup p{margin: 0;}

.popup h1 {
  font-size: 1.5em; /* Adjust heading size */
  margin: 0 0 8px; /* Margin for spacing */
  color: var(--HeadC);
}