@font-face {
  font-family: 'Source Code Pro';
  src: url('../font/SourceCodePro-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: 'Source Code Pro';
  src: url('../font/SourceCodePro-Italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: 'Source Code Pro';
  src: url('../font/SourceCodePro-Black.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: 'Source Code Pro';
  src: url('../font/SourceCodePro-BlackItalic.ttf') format('truetype');
  font-style: italic;
  font-weight: 700;
  text-rendering: optimizeLegibility;
}

:root {
  --font-stack: Source Code Pro, Roboto Mono, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
  --global-font-color: #9FBABC;
  --font-color: #9FBABC;
  --primary-color: #6DBCEE;
  --secondary-color: #FF99A1;
  --code-bg-color: #33392d;
  --background-color: #21221B;
}

body.terminal {
  background-color: #21221B;
}

body pre {
  border: none;
}
body pre code {
  padding: 5px;
}

.sidebar {
  height: 100%;
  width: 150px;
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 5rem;
  padding-left: 0.5rem;
  background-color: var(--code-bg-color);
}
div.sidebar {
  font-size: 0.8rem;
  display: block;
  line-height: 1.1rem;
}

div.sidebar li {
  margin-bottom: 0.45rem;
}
  
.main-body {
  margin-right: 150px;
}

img {
  display: block;
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}

a:hover, .terminal-menu li a:not(.btn):hover {
  background-color: inherit;
  text-decoration: underline;
  color: var(--invert-font-color);
}

.pagelist {
  background-color: #33392d;
  margin: 0 0.75rem 0 0.75rem;
  padding: 0.2rem 0.3rem 0.5rem 0.2rem;
}
.pagelist a {
  color: var(--secondary-color);
}
.pagelist a:hover {
  color: var(--invert-font-color);
}

.post .summary {
  display: flex;
}

/* gaps */
.post .summary > * + * {
  margin-left: 10px;
}

p {
  margin-left: 0.5rem;
}

.terminal h1 {
  font-size: 1.2rem;
}

.terminal h2 {
  margin-left: -0.1rem;
  padding-top: 1rem;
  font-size: 1.1rem;
}

.terminal h2::before {
  content: '## '
}

code {
  padding-left: 6px;
  padding-right: 6px;
}

code::before, code::after {
  content: '';
}