@font-face {
  font-family: Poppins;
  font-weight: normal;
  src: url("/static/fonts/Poppins-Regular.ttf") format("truetype");
}
@font-face {
  font-family: Poppins;
  font-weight: bold;
  src: url("/static/fonts/Poppins-Bold.ttf") format("truetype");
}
@font-face {
  font-family: Inter;
  font-weight: normal;
  src: url("/static/fonts/Inter-Regular.ttf") format("truetype");
}
@font-face {
  font-family: Inter;
  font-weight: bold;
  src: url("/static/fonts/Inter-Bold.ttf") format("truetype");
}

:root {
  --anim-state: running;
  --cycle: 90s;
  --seed: 0s;
  --purple: hsl(280, 100%, 50%);
  --blue:   hsl(180, 100%, 50%);
  --green:  hsl(160, 100%, 50%);
  --yellow: hsl( 40, 100%, 50%);
  --red:    hsl(  0, 100%, 50%);
  --pink:   hsl(320, 100%, 50%);
  --static-color: var(--green);
  --c: "\0062\0061\006C\0074\0075";
  --i: "\0073\0073\0065";
  --m: "\006E\006F\0063";
  --o: "\006F\0069\002E\0073";
  --r: "\0074\0063\0061\0074";
  --s: "\0072\0070";
  --t: "\0070\006E\0069\0040";
}

html {
  height: 100%;
  font-family: Inter;
  color: white;
  background-color: black;
  text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

html * {
  animation-play-state: var(--anim-state) !important;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* HEADER ================================================================== */
header {
  /* height: 130px; */
  width: 964px;
  margin: 0 auto;
  padding: 0;
  padding-right: 8px;
  padding-left: 0px;
  box-sizing: border-box;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
}
header > div {
  display: flex;
  align-items: center;
}
header .logo {
  flex-grow: 1;
}
header .logo a {
  font-family: Poppins;
  display: flex;
  font-size: 35px;
  /* margin-right: 10px; */
  text-decoration: none;
}
header .logo img {
  display: block;
  width: 100px;
  margin-top: 5px;
  animation: animation-bg var(--cycle) linear infinite;
  animation-delay: var(--seed);
  box-shadow: inset 0 0 0 4px black;
  outline: 2px solid black;
}

header .logo span {
  font-weight: bold;
  line-height: 100px;
  animation: animation-color var(--cycle) linear infinite;
  animation-delay: var(--seed);
}
header .icon img {
  height: 34px;
  margin-right: 14px;
  opacity: 0.5;
}
header .nav .tab {
  padding-left: 20px;
  padding-right: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-left: 2px solid hsl(0, 0%, 20%);
}
header .nav .tab a {
  font-family: Inter;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  color: hsl(0, 0%, 70%);
  white-space: nowrap;
}
header .nav .tab .title {
  font-family: Inter;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  color: hsl(0, 0%, 30%);
}
header .nav .tab .active a {
  /* color: black; */
  /* border-radius: 5px; */
  animation: animation-color var(--cycle) linear infinite;
  animation-delay: var(--seed);
}
header .mininav {
  display: none;
  position: relative;
}
header .mininav img {
  width: 36px;
  opacity: 0.5;
}
header .mininav select {
  position: absolute;
  left: 0;
  cursor: pointer;
  opacity: 0;
  width: 36px;
  height: 36px;
  line-height: 36px;
  background: none;
}

.navwidget {
  width: 440px;
  margin: 40px auto;
}
.navwidget a {
  display: block;
  font-family: Inter;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  font-size: 30px;
  color: white;
  padding-bottom: 40px;
}


/* TITLES ================================================================== */
h1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: Inter;
  font-weight: bold;
  font-size: 40px;
  flex-basis: 100%;
  margin: 30px 20px;
}
h1.dynamic {
  margin-top: 20px;
  margin-bottom: 25px;
  font-size: 24px;
}
h1.primary {
  margin-bottom: 0px;
  /* margin-top: 15px; */
  /* font-size: 28px; */
}
h1.secondary {
  margin-top: 0px;
  margin-bottom: 25px;
  font-size: 24px;
}
h1 a {
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin: 0 5px;
  padding: 5px;
  margin-top: 8px;
}
h1 a.active {
  color: black;
  animation: animation-bg var(--cycle) linear infinite;
  animation-delay: var(--seed);
  box-shadow: 2px 2px 8px 0px hsla(0, 0%, 0%, 0.1);
}
h1 a.notfound {
  color: hsl(  0, 0%, 30%);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 4px;
}

/* MAIN ==================================================================== */
main {
  width: 100%;
  margin: 0;
  padding: 0;
  padding-bottom: 20px;
  flex-grow: 1;
  background-image: linear-gradient(
    135deg,
    hsla(0, 0%, 0%, 0.3) 0%,
    hsla(0, 0%, 0%, 0.1) 10%,
    hsla(0, 0%, 5%, 1) 10%,
    hsla(0, 0%, 15%, 1) 40%,
    hsla(0, 0%, 0%, 0.3) 40%,
    hsla(0, 0%, 0%, 0.1) 50%,
    hsla(0, 0%, 5%, 1) 50%,
    hsla(0, 0%, 15%, 1) 55%,
    hsla(0, 0%, 0%, 0.3) 55%,
    hsla(0, 0%, 0%, 0.1) 60%,
    hsla(0, 0%, 5%, 1) 60%,
    hsla(0, 0%, 15%, 1) 95%,
    hsla(0, 0%, 0%, 0.3) 95%,
    hsla(0, 0%, 0%, 0.1) 100%
  );
  /* background-attachment: fixed; */
  animation: animation-bg var(--cycle) linear infinite;
  animation-delay: var(--seed);
}
main .boxes {
  width: auto;
  width: 964px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 0;
  display: flex;
  flex-wrap: wrap;
}
main .boxes.center {
  justify-content: center;
}

/* BOX ===================================================================== */
.box {
  box-sizing: border-box;
  background-color: hsla(0, 0%, 19%, 0.8);
  color: hsl(0, 0%, 80%);
  padding: 20px ;
  margin: 7px;
  font-size: 15px;
  text-align: left;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}
.boxes.grid .box {
  width: 468px;
}
.box h2 {
  font-family: Inter;
  font-weight: bold;
  font-size: 22px;
  color: white;
  margin-top: 0px;
  margin-bottom: 6px;
}
.box p {
  margin-bottom: 0px;
}
.box a {
  display: inline;
  animation: animation-color var(--cycle) linear infinite;
  animation-delay: var(--seed);
  font-weight: bold;
  text-shadow: 2px 2px 10px hsla(0, 0%, 0%, 0.5);
  /* text-decoration: none; */
  white-space: nowrap;
}
.boxes.grid .box a, .boxes.wiki .box.entry a {
  text-shadow: 0px 0px 0px;
  background-color: hsl(0, 0%, 0%);
  padding: 0 3px;
}
.box ul {
  padding-left: 18px;
  margin-bottom: 0px;
  list-style-type: square;
}
.box ol {
  padding-left: 32px;
  margin-bottom: 0px;
}
.box ul.nobullet {
  padding-left: 0px;
  list-style-type: none;
}
.box .spaced li {
  margin-top: 6px;
}
.stack {
  display: flex;
  flex-direction: column;
}
.box.image {
  position: relative;
  padding: 0;
  min-height: 300px;
  background-color: hsla(0, 0%, 0%, 0.5);
}
.box.image.dark {
  background-color: hsla(0, 0%, 0%, 0.7);
}
.box.translucent {
  opacity: 0.95;
}
.box.image.colored {
  background-color: initial;
  animation: animation-bg var(--cycle) linear infinite;
  animation-delay: var(--seed);
  /* filter: brightness(0.85); */
  opacity: 0.95;
  /* backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); */
}
.box.image.blend img {
  mix-blend-mode: multiply;
}
.box.image.hue img {
  animation: animation-hue var(--cycle) linear infinite;
  animation-delay: var(--seed);
}
.box.image img  {
  width: 100%;
}
.box.image a.img {
  padding: 0;
  background-color: initial;
  animation: none;
}
.box.image a.corner,
.box.image a.img div {
  padding: 4px 8px;
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-weight: bold;
  background-color: black;
  animation: animation-color var(--cycle) linear infinite;
  animation-delay: var(--seed);
}
.box em {
  background-color: hsl(0, 0%, 0%);
  font-style: normal;
  font-weight: bold;
  padding: 0 3px;
}
.box em.wrap {
  white-space: normal;
}
.box em.nowrap {
  white-space: nowrap;
}
.box em img {
  vertical-align: bottom;
  padding-bottom: 2px;
}
.box pre {
  white-space: pre-wrap;
}
.box code {
  display: block;
  background-color: black;
  font-size: 12px;
  padding: 20px;
}
.box code .dim {
  color:hsl(0, 0%, 40%);
}

/* WARNING ================================================================= */
.warning > div {
  margin-left: 7px !important;
  margin-right: 7px !important;
  width: 100% !important;
  padding: 10px !important;
  background-color: black;
  border: 3px solid black;
  animation: animation-border var(--cycle) linear infinite;
  animation-delay: var(--seed);
}
.warning > div span {
  text-align: center;
  color: var(--green);
  font-size: 18px;
  font-weight: bold;
  /* text-transform: uppercase; */
  animation: animation-color var(--cycle) linear infinite;
  animation-delay: var(--seed);
}

/* WIKI ==================================================================== */
.wiki {
  /* flex-wrap: nowrap; */
}
.wiki .index {
  width: 300px;
  padding-left: 0;
  padding-bottom: 20px;
  background-color: hsl(0, 0%, 5%);
}
.wiki .index h2 {
  padding-left: 20px;
  font-size: 20px;
}
.wiki .index h3 {
  padding-left: 20px;
  font-size: 17px;
  margin: 0;
  margin-top: 15px;
  margin-bottom: 0px;
}
.wiki .index .link {
  padding-left: 20px;
}
.wiki .index .link.active {
  padding-left: 0;
}
.wiki .index .link span {
  display: inline-block;
  width: 20px;
}
.wiki .index .inactive {
  padding-left: 20px;
  /* font-style: italic; */
  color: hsl(0, 0%, 50%);
}
.wiki .entry {
  width: 636px;
}
.wiki .entry h2 {
  font-size: 26px;
}
.wiki .entry h3 {
  font-size: 20px;
  color: white;
  margin-bottom: 0;
}
.wiki .entry h3 a.paragraph {
  background-color: initial !important;
  color: hsl(0, 0%, 30%) !important;
  animation: initial;
  text-decoration: none;
  margin-left: 5px;
}
.wiki .entry h4 {
  font-size: 18px;
  margin-bottom: 0;

}
/* .wiki .entry h4.bullet::before {
  content: "• ";
} */
.wiki .entry h5 {
  font-size: 16px;
  margin-bottom: 0;
}
.wiki .entry hr {
  border: none;
  background-color: hsl(0, 0%, 50%);
  height: 1px;
  margin-top: 15px;
  margin-bottom: 0px;
}
.wiki .entry li {
  margin-bottom: 3px;
}
.wiki .entry .mosaic {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  column-gap: 20px;
}
.wiki .entry .mosaic h3 {
  margin-top: 20px;
  margin-bottom: 0px;
}
.wiki .entry .mosaic .group {
  width: 594px;
}
.wiki .dim {
  color: hsl(0, 0%, 40%);
}
.wiki img.mt {
  margin-top: 15px;
}
.wiki img.mr {
  margin-right: 15px;
}
.wiki img.centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.wiki img.wide {
  width: 100%;
}
.wiki img.wm {
  width: 428px;
}
.wiki img.ws {
  width: 269px;
}
.wiki img.hm {
  height: 150px;
}
.wiki .caption {
  width: 420px;
  text-align:center;
  font-weight: bold;
}
.wiki .small .caption  {
  width: 210px !important;
}
.wiki .mid .caption  {
  width: 339px !important;
}
.wiki .figure {
  margin-top: 20px;
  margin-bottom: 20px;
}
.wiki .figure img {
  width: 420px;
}
.wiki .figure.small img {
  width: 210px;
}
.wiki .figure.mid img {
  width: 339px;
}
.wiki .figure.big img {
  width: 425px;
}
.wiki .figure.pair img {
  height: 300px;
}
.wiki .figure.inline {
  display: inline-block;
  margin-right: 20px;
}
.wiki .math {
  width: 420px;
}
.wiki .math.small {
  transform: scale(0.8);
}

table.neutral {
  font-size: 15px;
  color: hsl(0, 0%, 80%);
}

/* TABLE DATA ============================================================== */
table.data {
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
}
table.data tr {
  border-bottom: 3px solid hsl(0, 0%, 19%);
  background-color: hsl(0, 0%, 12%);
  margin-bottom: 4px;
}
table.data tr:last-child {
  border-bottom-width: 0px;
}
table.data th {
  text-transform: uppercase;
  font-weight: normal;
  font-size: 12px;
  color: hsl(0, 0%, 50%);
  text-align: right;
}
table.data th:first-child {
  text-align: left;
}
table.data td {
  text-align: left;
  vertical-align: top;
  padding: 2px 6px;
  color:hsl(0, 0%, 80%);
  font-size: 14px;
}
table.data td.dim {
  color: hsl(0, 0%, 40%)
}
table.data td:last-child {
  text-align: right;
}
table.data td:first-child {
  /* min-width: 280px; */
  text-align: left;
}

/* TABLE MANUAL ============================================================ */
table.manual {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color:hsl(0, 0%, 80%);
  background-color: hsl(0, 0%, 15%);
  border: 2px solid hsl(0, 0%, 8%);
  margin-top: 15px;
}
table.manual th {
  width: 33%;
  padding: 10px;
  background-color: black;
  border: 0 2px solid hsl(0, 0%, 20%);
  font-size: 17px;
  text-align: left;
}
table.manual.hdiv th {
  vertical-align: top;
  border-bottom: 1px solid #444;
}
table.manual th .subtitle {
  font-weight: normal;
  font-size: 13px;
}
table.manual.col2 th, table.manual.col2 td {
  width: 50% !important;
}
table.manual.col4 th {
  width: 25% !important;
}
table.manual.col5 th {
  width: 20% !important;
}
table.manual.col6 th {
  width: 16.6% !important;
}
table.manual.col6 td {
  padding-left: 0px;
  padding-right: 0px;
}
table.manual.col6 td:first-child {
  padding: 10px;
}
table.manual td {
  padding: 10px;
  vertical-align: top;
}
table.manual.vdiv td {
  border-right: 2px solid hsl(0, 0%, 8%);
  /* border-top: 1px solid hsl(0, 0%, 14%); */
}
table.manual.hdiv td {
  border-right: 1px solid hsl(0, 0%, 14%);
  border-top: 2px solid hsl(0, 0%, 8%);
}
table.manual .right {
  text-align: right;
}

table.inline td,
table.inline th {
  padding: 10px;
  text-align: left;
}
table.inline th {
  background: hsl(0, 0%, 20%);
}
table.inline td {
  background: hsla(0, 0%, 40%, 0.5);
}

/* FOOTER ================================================================== */
footer {
  width: 100%;
  height: 40px;
  background-color: black;
  text-align: right;
  font-family: Inter;
  font-size: 14px;
  line-height: 40px;
  color: white;
}
footer div {
  display: inline-block;
  margin-right: 12px;
}
footer div:last-child {
  margin-right: 15px;
}
footer a {
  color: white;
  text-decoration: underline;
  cursor: pointer;
}

/* OTHER =================================================================== */
*.inner {
  box-sizing: border-box !important;
}
*.center {
  text-align: center !important;
}
*.right {
  text-align: right !important;
}
*.middle {
  vertical-align: middle !important;
}
*.border {
  border: 1px solid black !important;
}
*.pad {
  padding: 20px !important;
}
*.flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
*.grow {
  flex-grow: 1;
}
*.shrink {
  flex-shrink: 1;
}
.card {
  padding: 20px;
  background-color: hsl(0, 0%, 15%);
}
.basisgap {
  gap: 20px;
}
.basis4 {
  flex-basis: calc(50% - 10px);
}
.nobg {
  background-color: initial !important;
}

rbp,
rbp * {
  /* Rainbow puke */
  display: inline;
  animation: animation-color var(--cycle) linear infinite;
  animation-delay: var(--seed);
  font-weight: bold;
}

.rotating {
  animation: animation-rotate 60s ease infinite;
}

.easter {
  opacity: 0;
  animation: animation-easter 120s ease infinite;
}

table, tr, th, td {
  padding: 0;
  margin: 0;
}

.mono {
  font-family: monospace;
}

.lima {
  background-color: hsl(0, 0%, 0%);
  /* padding: 0 6px; */
  animation: animation-color var(--cycle) linear infinite;
  animation-delay: var(--seed);
  font-weight: bold;
  direction: rtl;
  unicode-bidi: bidi-override;
}
.lima::before {
  content: var(--o) var(--c) var(--t)
}
.lima1::before {
  content: var(--r) var(--m);
}
.lima2::before {
  content: var(--i) var(--s);
}

/* ANIMATIONS ============================================================== */
@keyframes animation-color {
  0%   {color: var(--purple)}
  20%  {color: var(--purple)}
  30%  {color: var(--blue)}
  40%  {color: var(--green)}
  50%  {color: var(--green)}
  60%  {color: var(--yellow)}
  70%  {color: var(--yellow)}
  80%  {color: var(--red)}
  90%  {color: var(--pink)}
  100% {color: var(--purple)}
}
@keyframes animation-bg {
  0%   {background-color: var(--purple)}
  20%  {background-color: var(--purple)}
  30%  {background-color: var(--blue)}
  40%  {background-color: var(--green)}
  50%  {background-color: var(--green)}
  60%  {background-color: var(--yellow)}
  70%  {background-color: var(--yellow)}
  80%  {background-color: var(--red)}
  90%  {background-color: var(--pink)}
  100% {background-color: var(--purple)}
}
@keyframes animation-border {
  0%   {border-color: var(--purple)}
  20%  {border-color: var(--purple)}
  30%  {border-color: var(--blue)}
  40%  {border-color: var(--green)}
  50%  {border-color: var(--green)}
  60%  {border-color: var(--yellow)}
  70%  {border-color: var(--yellow)}
  80%  {border-color: var(--red)}
  90%  {border-color: var(--pink)}
  100% {border-color: var(--purple)}
}
@keyframes animation-hue {
  0%   {filter: hue-rotate(280deg)} /* purple */
  20%  {filter: hue-rotate(280deg)} /* purple */
  30%  {filter: hue-rotate(180deg)} /* blue */
  40%  {filter: hue-rotate(160deg)} /* green */
  50%  {filter: hue-rotate(160deg)} /* green */
  60%  {filter: hue-rotate(40deg)} /* yellow */
  70%  {filter: hue-rotate(40deg)} /* yellow */
  80%  {filter: hue-rotate(0deg)} /* red */
  90%  {filter: hue-rotate(-40deg)} /* pink */
  100% {filter: hue-rotate(-80deg)} /* purple */
}
@keyframes animation-rotate {
  0%   {rotate: 0deg}
  33%  {rotate: 5deg}
  66%  {rotate: -5deg}
  0%   {rotate: 0deg}
}
@keyframes animation-easter {
  0%  {opacity: 0}
  49%  {opacity: 0}
  50%  {opacity: 1}
  99%  {opacity: 1}
  0%  {opacity: 0}
}

/* RESPONSIVE ============================================================== */
/* SMALL */
@media (max-width: 964px) {
  .box {
    font-size: 16px;
  }
  header {
    width: 480px;
    padding-left: 0px;
    flex-direction: column;
  }
  /*
  header .icon img {
    height: 36px;
    margin-right: 14px;
  }
  header .nav.hide {
    visibility: hidden;
  }
  header .nav {
    visibility: hidden;
    overflow-x: hidden;
    width: 1px;
  }
  header .nav > div {
    padding-bottom: 50px;
  }
  header .nav > div a {
    font-size: 30px !important;
    color: white !important;
  }
  header .mininav {
    display: initial;
    padding-bottom: 2px;
  } */
  main .boxes {
    width: 480px;
    /* flex-wrap: wrap; */
    justify-content: center;
  }
  main .wiki {
    flex-wrap: wrap;
  }
  main .wiki .index {
    width: 468px;
  }
  main .wiki .entry {
    width: 468px;
  }
  main .wiki .entry .mosaic .group {
    width: 428px;
  }
  footer {
    text-align: center;
  }
}
/* LARGE */
@media (min-width: 1446px) {
  header {
    width: 1450px;
  }
  header .icon img{
    height: 36px;
    margin-right: 18px;
  }
  /* header .nav .tab a {
    margin: 5px;
  } */
  main .boxes {
    width: 1446px;
  }
  main .wiki .index {
    width: 300px;
  }
  main .wiki .entry {
    width: 1118px;
  }
  main .wiki .entry .mosaic .group {
    width: 528px;
  }
  .box em {
    white-space: nowrap;
  }
  .basis4 {
    flex-basis: calc(25% - 15px);
  }
}
