:root {
  --text-color: #d6e3b2;
  --normal-text-size: 1.2rem;
}

/* Controls formatting for index.html */
.blog-posts {
  list-style: none;
  padding: 0;
}

.blog-link {
  text-align: center;
}
.blog-link a {
  font-size: 1.4rem;
}

.blog-link p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: #a0a0a0;
}

/* Controls top level formatting */
h1 {
  font-size: 3.5rem;
  text-align: center;
  color: #ff8b0f;
}

body {
  max-width: 90%;
  margin: 0 auto;
  background-color: #0e0e1c;
}

@media (min-width: 1024px) {
  body {
    max-width: 40%;
  }
}

p,
ol,
ul,
h2,
h3,
h4 {
  color: var(--text-color);
  font-size: var(--normal-text-size);
}

h2 {
  font-size: 2.3rem;
}

h3 {
  font-size: 1.6rem;
}

a:link,
a:visited {
  color: #07f5f5;
}

a[id^="footnote-"][href^="#footnote-"] {
  text-decoration: none;
}

/* Holds mid level plain text */
blockquote p {
  display: block;
  background: #f2d29d;
  color: #000000;
  border-radius: 3% 3%;
  padding: 0.5rem;
}

/* For code highlighting */
pre code {
  display: block;
  background: #090912;
  color: #fff;
  border: 1px solid #ffa600;
  border-radius: 8px;
  padding: 0.5rem;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
}

code {
  color: #000;
  font-size: 1rem;
  background: #e6ce93;
  border-radius: 3% 3%;
  border-radius: 0.2rem;
  padding: 0 0.2rem;
}

/* Controls table formatting */
table {
  border-collapse: collapse;
  width: 100%;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--text-color);
}

th {
  background-color: #994d00;
  text-align: left;
  padding: 8px;
  border: 1px solid #a0a0a0;
}

th[scope="col"] {
  background-color: #e68a00;
  color: var(--text-color);
}

td {
  border: 1px solid #a0a0a0;
  padding: 8px;
  text-align: left;
  color: var(--text-color);
}

.name-link {
  color: #4a90e2;
  text-decoration: none;
}

.caption {
  font-style: italic;
  font-size: 12px;
  margin-bottom: 5px;
}

/* Scrollbar styling for code blocks */
pre code::-webkit-scrollbar-track {
  background: #090912;
}
pre code::-webkit-scrollbar-thumb {
  background: #ffa600;
  border-radius: 3px;
}
pre code {
  scrollbar-color: #ffa600 #090912;
}

/* token colors for highlight.js */
.hljs-keyword {
  color: #ff79c6;
}
.hljs-string {
  color: #f1fa8c;
}
.hljs-comment {
  color: #6272a4;
  font-style: italic;
}
.hljs-number {
  color: #bd93f9;
}
.hljs-function {
  color: #50fa7b;
}
.hljs-title {
  color: #50fa7b;
}
.hljs-built_in {
  color: #8be9fd;
}
.hljs-type {
  color: #8be9fd;
}
.hljs-attr {
  color: #50fa7b;
}
.hljs-literal {
  color: #bd93f9;
}
.hljs-variable {
  color: #f8f8f2;
}
.hljs-punctuation {
  color: #f8f8f2;
}
.hljs-operator {
  color: #ff79c6;
}

footer {
  border-top: 1px solid #c0c0c0;
  margin-top: 2rem;
  padding-top: 1rem;
}
