:root {
  /* Set sans-serif & mono fonts */
/*  --sans-font: "Roboto",-apple-system,BlinkMacSystemFont,"Nimbus Sans L",Avenir,"Noto Sans", "Segoe UI",Arial,Helvetica,"Helvetica Neue",sans-serif;*/
  --mono-font: "mononoki Nerd Font","Roboto Mono","Ubuntu Mono","Fira Code","Overpass Mono", Monaco,"Droid Sans Mono",monospace;
  /* Body font size. By default, effectively 18.4px, based on 16px as 'root em' */
  --base-fontsize: 1.15rem;
  /* Major third scale progression - see https://type-scale.com/ */
  --header-scale: 1.175;
  /* Line height is set to the "Golden ratio" for optimal legibility */
  --line-height: 1.618;

  /*This is my dark themed color scheme*/
  --bg: #eceff4;
  --accent-bg: #d8dee9;
  --text: #4c566a;
  --text-light: #4c566a;
  --border: #4c566a;
  --accent: #bf616a;
  --accent-light: #5e81ac;
  --code: #2e3440;
  --code-bg: #e5e9f0;
}
@media (prefers-color-scheme:dark) {
 :root {
  --bg: #242933;
  --accent-bg: #3b4252;
  --text: #eceff4;
  --text-light: #d8dee9;
  --border: #88c0d0;
  --accent: #a3be8c;
  --accent-light: #bf616a;
  --code: #ebcb8b;
  --code-bg: #2e3440;
 }
 }

html{
     font-family: var(--mono-font);
 }
body {
    padding: 20px;
    background-color: var(--bg);
    color: var(--text);
    font-size: 1.1rem;
    line-height: var(--line-height);
    margin: 0 auto;
    max-width: 50rem;
}
main img, main video, embed {
  max-width: 100%;
  height: auto;
  opacity: 0.8;
  border-radius: 5px;
}

figcaption {
  font-size: .9rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1rem;
}

pre {
    color: var(--code);
}

blockquote {
    color: var(--text-light);
}
nav a {
    margin: 1rem 0 0 .5rem; 
    color: var(--border) !important;
}

a {
    color: var(--accent);
}

a:hover {
    text-decoration: none
}

h1 {
    font-size: 1.3rem;
    color: var(--border);
    margin-bottom: 0px;
}

h2, h3, h4, h5, h6 {
    color: var(--accent-light);
    margin-bottom: 0px;
}
p {margin-bottom: 1rem;}

h1, h2, h3, h4, h5 {
  margin: 3rem 0 1.38rem;
  font-weight: 400;
  line-height: 1.3;
}

h1 {
  margin-top: 0;
  font-size: 1.802rem;
}

h2 {font-size: 1.602rem;}
h3 {font-size: 1.424rem;}
h4 {font-size: 1.266rem;}
h5 {font-size: 1.125rem;}

small, .text_small {font-size: 0.889rem;}

p {
    padding: 0px;
    /*margin: 0px;*/
}
code,
pre,
pre span,
kbd,
samp {
  font-family: var(--mono-font);
  color: var(--code);
}

kbd {
  border: 1px solid var(--preformatted);
  border-bottom: 3px solid var(--preformatted);
  border-radius: 5px;
  padding: .1rem;
}

pre {
  font-family: var(--mono-font);
  padding: 1rem 1.4rem;
  max-width: 100%;
  overflow: auto;
  overflow-x: auto;
  background: var(--code-bg);
  border: none;
  border-radius: 5px;
}

/* Fix embedded code within pre */
pre code {
  font-family: var(--mono-font);
  background: none;
  margin: 0;
  padding: 0;
}
