:root, :root.light, html, html.light {
  --red: #d20f39;
  --orange: #fe640b;
  --yellow: #df8e1d;
  --green: #40a02b;
  --blue: #04a5e5;
  --purple: #8839ef;
  --grey: #8c8fa1;
  --base: #dce0e8;
  --text: #4c4f69;
  --meta-color: var(--orange);
  --head-color: var(--green);
  --link-color: var(--blue);
  --hov-color: var(--purple);
  --bg-select: var(--purple);
}

:root.dark, html.dark {
  --red: #f38ba8;
  --orange: #fab387;
  --yellow: #f9e2af;
  --green: #a6e3a1;
  --blue: #89dceb;
  --purple: #cba6f7;
  --grey: #7f849c;
  --base: #1e1e2e;
  --text: #cdd6f4;
  --meta-color: var(--orange);
  --head-color: var(--green);
  --link-color: var(--blue);
  --hov-color: var(--purple);
  --bg-select: var(--purple);
}

@media (prefers-color-scheme: dark) {
  :root, html {
    --red: #f38ba8;
    --orange: #fab387;
    --yellow: #f9e2af;
    --green: #a6e3a1;
    --blue: #89dceb;
    --purple: #cba6f7;
    --grey: #7f849c;
    --base: #1e1e2e;
    --text: #cdd6f4;
    --meta-color: var(--orange);
    --head-color: var(--green);
    --link-color: var(--blue);
    --hov-color: var(--purple);
    --bg-select: var(--purple);
  }
}

::selection {
  color: var(--base);
  background: var(--meta-color)
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
}

pre::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

pre::-webkit-scrollbar-thumb {
  background: var(--orange);
}

pre::-webkit-scrollbar-track {
  background: var(--grey);
}

body {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  font-size: 1.6rem;
  line-height: 1.35;
  max-width: 82rem;
  margin: auto;
  overflow-wrap: break-word;
  background: var(--base);
  color: var(--text);
}

main {
  max-width: 82rem;
}

h1 {
  font-size: 2.4rem;
  color: var(--base);
  background-color: var(--meta-color);
  text-align: center;
  text-wrap: balance;
}

h1::before {
  color: var(--base);
  content: '# '
}

h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
  color: var(--meta-color);
  content: '# '
}

a {
  text-decoration: none;
  padding: 0 .2rem;
  border-radius: .3rem;
  color: var(--link-color);
}

a:focus,
a:hover {
  background-color: var(--link-color);
  color: var(--base)
}

ul {
  list-style: none;
  margin-top: .5rem;
  margin-bottom: .5rem;
  line-height: 1.45;
}

ul li::marker {
  content: '» ';
  color: var(--meta-color)
}

ul li:hover::marker {
  content: '# ';
  font-weight: 700;
  color: var(--link-color)
}

blockquote {
  border-left: .5rem solid var(--meta-color);
  margin: 1rem;
  padding: 0 0 0 1rem
}

textarea {
  border: 2px dotted;
  outline: 0;
  resize: none;
  overflow: auto;
  background-color: var(--base)
}

hr {
  border: 1px dashed
}

img {
  max-width: 90%;
  height: auto;
  margin: .2rem;
  padding: .2rem;
  border: dashed .2rem var(--meta-color);
  border-radius: 15px
}

pre {
  border: 1px solid var(--meta-color);
  padding: 1rem;
  overflow-x: auto;
  font-family: monospace;
  scrollbar-color: var(--meta-color) var(--base);
  scrollbar-width: thin;
}

p code,
li code,
div code {
  padding: 0 .2rem;
  border-radius: .3rem;
  color: var(--base);
  background-color: var(--text);
}

pre code {
  padding: 0;
  border-radius: 0;
  color: inherit;
  background-color: inherit;
}

iframe {
  max-width: 90%;
}

footer {
    text-align: left;
  font-size: 1.4rem;
  clear: both;
}

table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  border: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  line-height: 1.1
}

th {
  font-weight: 400
}

td,
th {
    text-align: left;
  padding: .5rem;
  border: dashed .1rem var(--meta-color)
}

thead th:first-child {
  width: 20%
}

.metaData,
.themeButton,
hr,
textarea {
  color: var(--meta-color)
}

/* Site Specific Styling */
body {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
}

#content {
  margin: unset;
}

.postDate {
  margin-left: 1rem;
  font-size: 1.3rem;
  line-height: 2rem;
}

/* Icons settings */
.icons {
  width: 2.0rem;
  height: 2.0rem;
  aspect-ratio: 1/1;
  display: inline-block;
  vertical-align: middle;
  color: var(--text);
  fill: var(--text);
  background-color: transparent;
}

.icons__background:hover {
  background-color: transparent;
  color: var(--meta-color);
}

.navBar {
  padding: 1rem 0 0;
  display: flex;
  flex-flow: row wrap;
  gap: .4rem;
  place-content: flex-end flex-end;
  align-items: center
}

.themeButton {
  cursor: pointer;
  border: none;
  font-size: 1.8rem;
  background-color: transparent
}

.dark .themeButton.dark,
.themeButton.light {
  display: none
}

.dark .themeButton.light {
  display: block
}

.tagsData {
  display: flex;
  flex-flow: column wrap;
  place-content: flex-end flex-end;
  align-items: flex-start
}

.titleList {
  line-height: 1.8;
}

.footnote-definition {
  margin: 0 0 0 2rem;
}

.footnote-definition-label {
  color: var(--meta-color);
}

.footnote-definition p {
  display: inline;
  padding: 0 0 0 1rem;
}

.footContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.noStyle {
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0
}

.textCenter {
  text-align: center;
}

.floatRight {
  float: right
}

.floatLeft {
  float: left
}

.webring {
  margin: 0.5rem;
}

@media (width <= 650px) {
  /* Add Padding */
  .wrapper {
    margin: 1rem;
  }
}

@media (width <= 850px) {
  .wrapper {
    display: block;
  }
}
