body {
  transition: all ease 0.5s;
}

table {
  border-collapse: collapse;
}

td,
th {
  border: 1px solid #ccc;
  padding: 2px 12px;
  font-size: 10pt;
}

code,
samp,
var {
  color: #060;
}

pre {
  font-size: 10pt;
  display: block;
  color: #060;
  background-color: #e8fff6;
  border-color: #f0fff0;
  border-style: solid;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-right-width: 1px;
  border-left-width: 5px;
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 4px;
  padding-bottom: 4px;
}

pre.badcode {
  color: #c00;
  background-color: #ffe6d8;
  border-color: #fff0f0;
}

hr {
  margin-top: 3.5em;
  border-width: 1px;
  color: #fff;
}

html {
  margin-top: 2em;
  margin-left: 10%;
  margin-right: 10%;
  padding: 0;
}

.bp-reset-element,
body,
h1,
h2,
h3,
h4,
h5,
h6,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
blockquote,
q,
th,
td,
caption,
table,
div,
span,
object,
iframe,
p,
pre,
a,
abbr,
acronym,
address,
code,
del,
dfn,
em,
img,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
caption,
tbody,
tfoot,
thead,
tr {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-family: "Arial", sans-serif;
  font-size: 81.25%;
  color: #222;
  background-color: #fff;
  line-height: 1.67;
  overflow: auto;
}

.change {
  text-align: right;
  margin-bottom: 1em;
}

em {
  font-style: italic;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
}

h1 {
  margin-bottom: 0.5em;
  text-align: center;
}

h2,
h3,
h4,
h5,
h6 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

h1 {
  font-size: 200%;
}
h2 {
  font-size: 167%;
}
h3 {
  font-size: 133%;
}
h4 {
  font-size: 120%;
}
h5 {
  font-size: 110%;
}

p {
  margin: 0 0 1.5em;
}

a[href=""] {
  cursor: default;
}

h1 img,
h2 img,
h3 img,
h4 img,
h5 img,
h6 img {
  margin: 0;
}

a img {
  border: none;
}

pre {
  margin: 1.5em 0;
  white-space: pre;
}

pre,
code,
kbd,
tt {
  font: 1em "Droid Sans Mono", monospace;
  line-height: 1.5;
}

dl {
  margin: 0 0 1.5em 0;
}

dl dt {
  font-weight: bold;
}

dd {
  margin-left: 1.5em;
}

dd.toc3 {
  margin-left: 3em;
}

hr {
  height: 0;
  border: 0;
  border-top: 1px solid #ccc;
  background-color: #ccc;
}

table {
  border: 1px solid #bbb;
  border-spacing: 0;
  border-collapse: collapse;
  margin: 0 0 1.5em;
  vertical-align: middle;
  width: 100%;
}

table.unlined,
table.unlined th,
table.unlined tr,
table.unlined td {
  border: 0;
}

th,
td,
caption {
  float: none !important;
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
  padding: 4px;
}

caption {
  padding: 0;
}

td {
  border: 1px solid #bbb;
  vertical-align: top;
}

th {
  border: 0;
  border-bottom: 1px solid black;
  font-weight: bold;
  background: rgb(229, 236, 249);
}

table th code {
  background-color: inherit;
  color: inherit;
}

table tfoot th {
  border: 1px solid #bbb;
}

tfoot {
  font-style: italic;
}

caption {
  background: #eee;
}

table[border="0"] {
  border: none;
}

table[border="0"] > tbody > tr > td,
table[border="0"] > tr > td {
  border: none;
}

tr.alt td,
td.alt {
  background-color: #efefef;
}

table.striped tr:nth-child(even) td,
table tr.even td {
  background: #efefef;
}

table.columns {
  border: none;
}

table.columns > tbody > tr > td,
table.columns > tr > td {
  border: none;
  padding: 0 3em 0 0;
}

table.columns > tbody > tr > td:last-child,
table.columns > tr > td:last-child {
  border: none;
  padding: 0;
}

ul,
ol {
  margin: 0 1.5em 1.5em 0;
  padding-left: 2em;
}

li ul,
li ol {
  margin: 0;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

ul {
  list-style-type: disc;
}

ul ul {
  list-style-type: circle;
}

ul ul ul {
  list-style-type: square;
}

ul.disc {
  list-style-type: disc;
}

ul.circle {
  list-style-type: circle;
}

ul.square {
  list-style-type: square;
}

ol {
  list-style-type: decimal;
}

ol ol {
  list-style-type: lower-alpha;
}

ol ol ol {
  list-style-type: lower-roman;
}

ol ul {
  list-style-type: circle;
}

ol.decimal {
  list-style-type: decimal;
}

ol.upper-alpha {
  list-style-type: upper-alpha;
}

ol.lower-alpha {
  list-style-type: lower-alpha;
}

ol.upper-roman {
  list-style-type: upper-roman;
}

ol.lower-roman {
  list-style-type: lower-roman;
}

ol.nolist,
ul.nolist {
  padding-left: 0;
  list-style-image: none;
  list-style-type: none;
  margin-left: 0;
}

.center {
  text-align: center;
}

code,
kbd,
pre {
  color: #009900;
}

kbd {
  font-weight: bold;
}

table.striped code {
  background-color: inherit;
}

pre {
  padding: 6px 10px;
  background-color: #fafafa;
  border: 1px solid #bbb;
  overflow: auto;
}

pre.prettyprint {
  padding: 6px 10px !important;
  border: 1px solid #bbb !important;
}

code.bad,
code.badcode {
  color: magenta;
}
pre.bad,
pre.badcode {
  background-color: #ffe6d8;
  border-top: 1px inset #a03;
  border-left: 1px inset #a03;
}

.tip {
  background-color: #fffbd9;
  padding: 6px 8px 6px 10px;
  border-left: 6px solid #ffef70;
}

.note {
  background-color: #e5ecf9;
  padding: 6px 8px 6px 10px;
  border-left: 6px solid #36c;
}

@media print {
  .str {
    color: #060;
  }

  .kwd {
    color: #006;
    font-weight: bold;
  }

  .com {
    color: #600;
    font-style: italic;
  }

  .typ {
    color: #404;
    font-weight: bold;
  }

  .lit {
    color: #044;
  }

  .pun,
  .opn,
  .clo {
    color: #440;
  }

  .pln {
    color: #000;
  }

  .tag {
    color: #006;
    font-weight: bold;
  }

  .atn {
    color: #404;
  }

  .atv {
    color: #060;
  }

  h1 {
    font-style: italic;
  }
}

ol.linenums {
  margin-top: 0;
  margin-bottom: 0;
}

code {
  background-color: #fafafa;
  padding: 0.25em 0.5em;
  white-space: nowrap;
}

/* TOC CSS */

table.columns {
  border: none;
}

td.two_columns {
  -webkit-column-count: 2;
  column-count: 2;
}

.toc_category {
  font-size: 10pt;
  padding-top: 1em;
  padding-bottom: 1em;
  border-left-width: 2px;
  border-right-width: 2px;
  border-color: grey;
}

.toc_stylepoint {
  font-size: 10pt;
  padding-top: 1em;
  padding-bottom: 1em;
}

li.toc_entry {
  padding-right: 1em;
  display: inline;
  list-style-type: none;
}

/*
 * This space is required to trigger the linewrap on the links
 * at href boundaries
 */
li.toc_entry::after {
  content: " ";
}

li.toc_entry a {
  white-space: nowrap;
}

/* Horizontal TOC */
.toc td,
.toc th {
  border-width: 1px 5px;
  overflow: hidden;
}

/* Vertical TOC */

.toc td.two_columns {
  border-width: 0px;
}

/* Numbered sections */

h1 {
  counter-reset: h2;
}

h2.numbered {
  counter-reset: h3;
}

h3.numbered {
  counter-reset: h4;
}

h2.numbered::before {
  content: counter(h2) " ";
  counter-increment: h2;
}

h3.numbered::before {
  content: counter(h2) "." counter(h3) " ";
  counter-increment: h3;
}

h4.numbered::before {
  content: counter(h2) "." counter(h3) "." counter(h4) " ";
  counter-increment: h4;
}

/* Link to Styling */
.fa-solid.fa-link {
  float: left;
  position: relative;
  bottom: 5px;
  font-size: 1rem;
  color: #000;
}

.fa-solid.fa-link:hover::before {
  color: blue;
}

/* Theme Toggle */
button.theme-toggle {
  position: absolute;
  right: 50px;
  top: 50px;
}

/* Dark Mode Styling */
.dark-mode {
  background-color: #1e1e1e;
  color: #eeeeee;
}
.dark-mode a {
  color: #bb86fc;
}
.dark-mode .fa-solid.fa-link {
  color: #fff;
}
.dark-mode .fa-solid.fa-link:hover::before {
  color: #bb86fc;
}

.light-mode {
  background-color: #ffffff;
  color: #1e1e1e;
}

/* Theme Toggle */
.toggle-switch {
  position: absolute;
  display: inline-block;
  right: 50px;
  top: 50px;
  width: 60px;
  height: 34px;
  background-color: #ccc;
  border-radius: 34px;
}

.toggle-switch-input {
  display: none;
}

.toggle-switch-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 34px;
}

.toggle-switch-inner {
  width: 100%;
  height: 100%;
  border-radius: calc(34px - 2px);
  transition: background-color 0.2s;
  background-color: #fff;
  position: relative;
}

.toggle-switch-icon {
  position: absolute;
  z-index: 10;
  top: 11px;
  font-size: 14px;
  color: #333;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.toggle-switch-icon-unchecked {
  opacity: 1;
  left: 10px;
  color: #1e1e1e;
}

.toggle-switch-icon-checked {
  opacity: 0;
  left: 38px;
  color: #bb86fc;
}

.toggle-switch-switch {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 30px;
  height: 30px;
  background-color: #fff;
  border-radius: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: left 0.35s;
}

.toggle-switch-input:checked + .toggle-switch-label .toggle-switch-inner {
  background-color: #66b3ff;
}

.toggle-switch-input:checked + .toggle-switch-label .toggle-switch-switch {
  left: calc(100% - 32px);
  box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.4);
}

.toggle-switch-input:checked + .toggle-switch-label .toggle-switch-icon-unchecked {
  opacity: 0;
}

.toggle-switch-input:checked + .toggle-switch-label .toggle-switch-icon-checked {
  opacity: 1;
}
