
* {
  box-sizing: border-box;
  margin: 0;
}
:root {
  --background-color: rgb(10, 10, 20);
  --background-gradient-color: rgba(83, 69, 124, 0.25);
  --highlight-color: rgb(15, 15, 30);
  --border-color: rgb(30, 30, 60);
  --primary-color: rgb(90, 60, 235);
  --link-color: rgb(15, 180, 255);
  --active-color: rgb(255, 54, 218);
  --subheading-color: rgba(255, 255, 255, 0.7);
  --shadow-color: rgb(26, 26, 36);
  --text-color: white;
}
:root[data-theme="light"] {
  --background-color: rgb(233, 233, 255);
  --background-gradient-color: rgba(83, 69, 124, 0.15);
  --highlight-color: rgb(235, 235, 255);
  --border-color: rgb(200, 200, 255);
  --primary-color: rgb(60, 40, 161);
  --link-color: rgb(0, 120, 175);
  --active-color: rgb(190, 39, 163);
  --subheading-color: rgba(0, 0, 0, 0.7);
  --shadow-color: rgb(141, 141, 197);
  --text-color: black;
}

html,
body {
  min-height: 100%;
}
@media screen and (prefers-reduced-motion: no-preference) {
  html,
  body {
    scroll-behavior: smooth;
  }
}

body {
  padding: 1rem;
  background: var(--background-color);
  color: var(--text-color);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, Segoe UI,
    Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
  font-size: 20px;
  line-height: 1.7;
  background-size: 2.5rem 2.5rem;
  background-image: radial-gradient(
    circle,
    var(--background-gradient-color) 0.12rem,
    transparent 0
  );
  background-attachment: fixed;
  transition-duration: 250ms;
}
input,
button {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, Segoe UI,
    Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
  font-size: 1rem;
  border-radius: 0.15rem;
  padding: 0.5rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  transition-duration: 250ms;
}
input {
  background-color: var(--highlight-color);
  border: 0.1rem solid var(--border-color);
}
button {
  background-color: var(--border-color);
  border: none;
  cursor: pointer;
}
button:active {
  background-color: var(--highlight-color);
}
button:disabled {
  cursor: unset;
  background-color: var(--shadow-color);
}
body::-webkit-scrollbar {
  width: 1rem;
}
body::-webkit-scrollbar-track {
  width: 0.5rem;
  background: var(--background-color);
}
body::-webkit-scrollbar-thumb {
  width: 0.5rem;
  background-color: rgba(127, 127, 127, 0.5);
  border-radius: 1rem;
  border: solid var(--background-color);
  border-width: 0.2rem 0.4rem;
}
pre {
  background: var(--highlight-color);
  padding: 1em;
  border: 0.1rem solid var(--border-color);
  border-radius: 0.5rem;
  overflow: auto;
  display: flex;
}
pre::-webkit-scrollbar {
  height: 0.3rem;
}
pre::-webkit-scrollbar-track {
  height: 0.3rem;
}
pre::-webkit-scrollbar-thumb {
  height: 0.3rem;
  background-color: var(--border-color);
}
pre,
code {
  font-family: "Inconsolata", monospace;
  font-size: 1.12em;
}
code {
  background: var(--highlight-color);
  padding: 0.2rem;
  border: 0.1rem solid var(--border-color);
  border-radius: 0.3rem;
}
pre > code {
  background: unset;
  padding: unset;
  border-width: 0;
}
code[class*="language-"],
pre[class*="language-"] {
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: 0.04rem;
}


h1 {
  color: var(--primary-color);
}

img {
  display: block;
  max-width: 100%;
  margin: auto;
  border-radius: 0.5rem;
}
a {
  color: var(--link-color);
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 0.04rem;
  text-decoration-style: dashed;
}
a:visited {
  color: var(--primary-color);
}
a:active {
  color: var(--active-color);
}
li::marker {
  content: "•";
  font-family: sans-serif;
  font-size: 1rem;
}
ol,
ul {
  padding-left: 1rem;
}
li {
  padding-left: 1rem;
}
ol,
ul,
li {
  margin-top: 0;
}

figcaption {
  text-align: center;
  font-size: 1rem;
  margin-top: 0;
}

blockquote,
details {
  border-left: 0.15rem solid currentColor;
  padding-left: 0.6rem;
}
summary {
  cursor: pointer;
}

hr {
  margin: 2rem auto;
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--primary-color);
}

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}
