* {
    box-sizing: border-box;
  }
  a {
    text-decoration:none;
    background:black;
    color:#fffbd4;
    white-space: break-spaces !important;
  }
  a:hover {
    text-decoration:underline;
  }
  .broken-link {
    white-space:nowrap;
  }
  .broken-link::after {
    content: url(/p/meleb/img/asset/misc/broken-link.png);
    vertical-align: sub;
    margin-left: 2px;
    opacity: 0.8;
    image-rendering: crisp-edges;
    line-height: 1rem;
  }
  .emoji {
    vertical-align: sub;
    max-width:20px;
    height:auto;
  }
  .mainpage {
    margin:auto;
    display:block;
    width:100%;
    max-width:500px;
    filter: invert(1);
  }
  body {
    color:white;
    font-family: Besley;
  }
  p {
    margin:16px 0;
  }
  .holder {
    display:flex;
    max-width:1500px;
    margin: auto;
  }
  sidebar {
        display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    align-items: start;
    position: sticky;
    top: 25px;
    gap: 10px;
    max-width: 200px;
    max-height: 100vh;
    scrollbar-color: #B7A96B #715C08;
    overflow: auto;
  }
  sidebar box {
    flex:1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 5px;
    max-width:100%;
    position:initial;
    padding:10px;
    background:#715C08;
  }
  sidebar a.title {
    flex:10000px;
    grid-column: 1 / -1;
  }
  sidebar a {
    font-size: 0.9rem;
    background:none;
    margin: -4px 0 -4px 0;
  }
  sidebar p {
    background: #B7A96B;
    color: white;
    padding: 5px;
    grid-column: 1 / -1;
    margin: -10px -10px 5px -10px;
    font-weight: bold;
  }
sidebar box a {
    text-decoration: none;
    color: #B7A96B;
    display: list-item;
    list-style: myanmar;
    list-style-position: inside;
    height: fit-content;
}
sidebar box {
  counter-reset: myanmar-counter;
      height: max-content;
        border: 3px dashed #332612;
}
sidebar box a {
  text-decoration: none;
  color: #B7A96B;
  display: inline-block;
  height: fit-content;
  transition: 0.2s ease;
}
a.title.active {
  filter: invert(1);
}
sidebar box a::before {
  counter-increment: myanmar-counter;
  content: counter(myanmar-counter, myanmar) ". ";
  color: #FFFDF0;
  margin-right: 4px;
}
sidebar box a.active {
  background:linear-gradient(to right, #f2e6ae, transparent);
  color:#4d4213;
}
sidebar box a.active::before {
  color:inherit;
}
sidebar box a.active:hover {
  background:linear-gradient(to right, #f2e6ae);
  color:#1a1500;
}
  sidebar box a:hover {
    background:linear-gradient(to right, #B7A96B, transparent);
    color:black;
    text-shadow: 0.5px 0.5px #fff5c7;
    transform: translateX(3px);
  }
  sidebar a.title img {
    width:100%;
    max-width:100px;
    margin:auto;
    display:block;
    transition:0.1s ease;
  }
  sidebar a.title img:hover {
    transform: rotate(-6deg);
  }
  main {
    background:#241C16;
    flex:400px 1 1;
    padding:10px;
    margin-bottom: 50px;
  }

#menu-toggle {
  display: none;
}

@media (max-width: 600px) {
.holder {
display: block;
}
body.menu-open #menu-toggle, #menu-toggle {
  display: block;
  position: fixed;
  left: 0px;
  top: 70px;
  bottom:auto;
  z-index: 1001;
  border: none;
  padding: 10px 16px;
  background: #715C08;
  color: #FFFDF0;
  font-family: Besley;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.4);
}
#menu-toggle {
  top:auto;
  bottom: 0px;
}
#menu-toggle:hover {
  background: #B7A96B;
  color: #241C16;
}
.holder::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(36, 28, 22, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
body.menu-open .holder::before {
  opacity: 1;
  pointer-events: auto;
}
  sidebar {
    position: fixed;
    inset: 0;
    z-index: 999;
    margin: 0;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    align-items: start;
    gap: 8px;
    background: rgb(36, 28, 22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: transform 0.25s ease, visibility 0.25s ease;
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  }
body.menu-open sidebar {
opacity: 1;
visibility: visible;
pointer-events: auto;
transform: translateY(0);
margin-top: 50px;
}
sidebar a.title {
flex: none;
grid-column: 1 / -1;
display: block;
width: 100%;
margin-bottom: 5px;
}
sidebar a.title img {
max-width: 100px;
}
sidebar box {
break-inside: avoid;
    -webkit-column-break-inside: avoid;
    max-width: none;
overflow: hidden;
}
body.menu-open {
overflow: hidden;
}
sidebar a.title {
  column-span: all;
}
}
@media (max-width: 300px) {
  sidebar {
    grid-template-columns: auto;
  }
}
  html {
  scrollbar-color:#2E191A #4d2427;
  --s: 40px;
  --c1: #2e191a;
  --c2: #33191b;
  
  background:
    conic-gradient(at 25% 25%,#0000 75%,var(--c1) 0)
     0 calc(3*var(--s)/4),
    conic-gradient(#0000 75%,var(--c2) 0) 
     calc(var(--s)/-8) calc(5*var(--s)/8),
    conic-gradient(at 25% 75%,var(--c1) 25%,var(--c2) 0) #2e191a;
  background-size: var(--s) var(--s);
  overflow-x: hidden;
}
  @font-face {
  font-family: Besley;
  src: url(/gen/img/font/Besley-VariableFont_wght.ttf);
}
::selection {
  background:#485694;
  color:#d9e0ff;
}
p:first-of-type:not(sidebar p:first-of-type) {
    margin-top:0;
  }