html {
  background-color: #000000;
  color: #f0f0f0;
  font-family: 'Bai Jamjuree', sans-serif;
  margin: auto;
}

@media screen and (min-width: 900px) {
  html {
    width: 70%;
  }
}

@media screen and (max-width: 900px) {
  html {
    width: 90%;
  }
}

a {
  color: #ddc3d4;
  text-decoration: none;
}

a:hover {
  color: #f0f0f0;
  text-decoration: underline;
}

a:active {
  color: #f0f0f0;
  text-decoration: none;
}

blockquote {
  background-color: #4c193b;
  padding: 10px;
}

pre {
  border-color: #301130;
  border-style: solid;
  border-width: 2px;
  margin-left: 5%;
  margin-right: 5%;
  padding: 1.5%;
  white-space: pre-wrap;
  overflow: scroll;
}

.background {
  border-color: #4c193b;
  border-style: solid;
  border-width: 5px;
  border-radius: 5px;
  background-color: #4c193b;
  height: 100px;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-content: center;
  grid-gap: 20px;
}

.lesson {
  background-color: #6c1410;
  padding: 10px;
}

.vertical-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* For the article listing page */

.article-panel {
  display: grid;
  grid-template-columns: 3fr 1fr;
  justify-content: center;
  align-content: center;
  grid-gap: 20px;
  border-style: solid solid solid solid;
  border-color: #f0f0f0 #000000 #f0f0f0 #000000;
  border-width: thin;
}

.article-panel:hover {
  background-color: #4c193b;
  border-style: solid;
  border-color: #f0f0f0;
  border-width: thin;
}

.span-two-columns {
  grid-column: 1 / 3;
}

.tag {
  background: #4c193b;
  border-color: #ddc3d4;
  border-radius: 5px;
  border-width: 5px;
  margin: 5px;
  padding: 5px;
}

.horizontally-centered-text {
  text-align: center;
}

/* Syntax highlighting from pandoc (tango) */

/* CSS for syntax highlighting */
html {
  -webkit-text-size-adjust: 100%;
}

code {
  white-space: pre-wrap;
}

pre>code.sourceCode {
  white-space: pre;
  position: relative;
}

pre>code.sourceCode>span {
  display: inline-block;
  line-height: 1.25;
}

pre>code.sourceCode>span:empty {
  height: 1.2em;
}

.sourceCode {
  overflow: visible;
}

code.sourceCode>span {
  color: inherit;
  text-decoration: inherit;
}

div.sourceCode {
  margin: 1em 0;
}

pre.sourceCode {
  margin: 0;
}

@media screen {
  div.sourceCode {
    overflow: auto;
  }
}

@media print {
  pre>code.sourceCode {
    white-space: pre-wrap;
  }

  pre>code.sourceCode>span {
    text-indent: -5em;
    padding-left: 5em;
  }
}

pre.numberSource code {
  counter-reset: source-line 0;
}

pre.numberSource code>span {
  position: relative;
  left: -4em;
  counter-increment: source-line;
}

pre.numberSource code>span>a:first-child::before {
  content: counter(source-line);
  position: relative;
  left: -1em;
  text-align: right;
  vertical-align: baseline;
  border: none;
  display: inline-block;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 0 4px;
  width: 4em;
  color: #aaaaaa;
}

pre.numberSource {
  margin-left: 3em;
  border-left: 1px solid #aaaaaa;
  padding-left: 4px;
}

div.sourceCode {
  background-color: #f8f8f8;
}

@media screen {
  pre>code.sourceCode>span>a:first-child::before {
    text-decoration: underline;
  }
}

/* Alert */
code span.al {
  color: #ef2929;
}

/* Annotation */
code span.an {
  color: #8f5902;
  font-weight: bold;
  font-style: italic;
}

/* Attribute */
code span.at {
  color: #204a87;
}

/* BaseN */
code span.bn {
  color: #0000cf;
}

/* ControlFlow */
code span.cf {
  color: #204a87;
  font-weight: bold;
}

/* Char */
code span.ch {
  color: #4e9a06;
}

/* Constant */
code span.cn {
  color: #8f5902;
}

/* Comment */
code span.co {
  color: #8f5902;
  font-style: italic;
}

/* CommentVar */
code span.cv {
  color: #8f5902;
  font-weight: bold;
  font-style: italic;
}

/* Documentation */
code span.do {
  color: #8f5902;
  font-weight: bold;
  font-style: italic;
}

/* DataType */
code span.dt {
  color: #204a87;
}

/* DecVal */
code span.dv {
  color: #0000cf;
}

/* Error */
code span.er {
  color: #a40000;
  font-weight: bold;
}

/* Extension */
code span.ex {}

/* Float */
code span.fl {
  color: #0000cf;
}

/* Function */
code span.fu {
  color: #204a87;
  font-weight: bold;
}

/* Import */
code span.im {}

/* Information */
code span.in {
  color: #8f5902;
  font-weight: bold;
  font-style: italic;
}

/* Keyword */
code span.kw {
  color: #204a87;
  font-weight: bold;
}

/* Operator */
code span.op {
  color: #ce5c00;
  font-weight: bold;
}

/* Other */
code span.ot {
  color: #8f5902;
}

/* Preprocessor */
code span.pp {
  color: #8f5902;
  font-style: italic;
}

/* SpecialChar */
code span.sc {
  color: #ce5c00;
  font-weight: bold;
}

/* SpecialString */
code span.ss {
  color: #4e9a06;
}

/* String */
code span.st {
  color: #4e9a06;
}

/* Variable */
code span.va {
  color: #000000;
}

/* VerbatimString */
code span.vs {
  color: #4e9a06;
}

/* Warning */
code span.wa {
  color: #8f5902;
  font-weight: bold;
  font-style: italic;
}