html {
  scroll-behavior: smooth;
}

body {
  margin: auto;
  padding: 1em 1em 2em 1em;
}

p {
  margin: 0.5em 0;
}

h1 {
  font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
  font-weight: normal;
}

h2 {
  margin-bottom: 0.25em;
  border-bottom: 1px solid #a2a9b1;
  font-weight: normal;
  font-size: 1.5em;
  font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
}

.section-title {
  text-align: center;
}

h3 {
  font-size: 1.2em;
  margin-bottom: 0;
  padding-bottom: 0;
}

h4 {
  font-size: 1.1em;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media screen and (min-width: 760px) {
  body {
    margin: auto;
    max-width: 68vw;
  }
}

a {
  text-decoration: none;
  color: #3366cc;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: #795cb2;
}

.toc a:visited {
  color: #3366cc;
}

.menu a:visited {
  color: #3366cc;
}

img {
  max-height: 60vh;
  margin: 0.8em 0;
}

.imgp {
  margin: auto;
  text-align: center;
}

/* header and footer areas */
.menu {
  padding: 0;
  background-color: white;
}

@media screen and (min-width: 1150px) {
  .menu {
    position: fixed;
    padding: 4px 4px 4px 10px;
    left: 40px;
    z-index: 9999;
    border-left: 10px solid #815205;
  }
}


.menu li {
  display: inline-block;
}

@media screen and (min-width: 1150px) {
  .menu li {
    display: block;
  }
}

.article-meta,
.menu a {
  margin-right: 0.9em;
  text-decoration: none;
  border-radius: 5px;
}

.menu a:hover {
  /* background-color: lightgray; */
  text-decoration: underline;
}

.menu,
.article-meta {
  text-align: center;
}

@media screen and (min-width: 1150px) {
  .menu {
    text-align: left;
  }
}

.title {
  font-size: 1em;
}

footer a {
  text-decoration: none;
}

hr {
  border-style: dashed;
  color: #ddd;
}

/* code */
.highlight div,
pre {
  background-color: #f8f9fa !important;
  padding: 0.7em;
  overflow-x: auto;
  margin: 0px;
  border: 1px solid #eaecf0;
}

.output pre {
  color: #9a3412;
}

.highlight {
  line-height: 1.3;
  margin: 0.8em 0;
}

.highlight div pre {
  border: 0px;
  padding: 0px 5px;
  margin: 0px;
  box-shadow: 0px 0px 0px;
  line-height: 1.0 !important;
}

code {
  background: #f8f9fa;
  border-radius: 5%;
  padding: 1px 4px;
  border: 1px solid #eaecf0;
}

pre code {
  border: none;
  background: none;
  padding-left: 0px;
  padding-right: 0px;
  margin: 0px;
}

/* misc elements */
img,
iframe,
video {
  max-width: 100%;
}

main {
  hyphens: none;
}

blockquote {
  overflow: hidden;
  margin: 1em 0;
  padding: 0 40px;
  line-height: 1.6;
}

table {
  border-collapse: collapse;
  display: block;
  overflow: auto;
}

@media screen and (min-width: 760px) {
  table {
    display: table !important;
    /* Center tables */
    /* margin: auto; */
  }
}

table thead th {
  border: 1px solid #a2a9b1;
}

th,
td {
  padding: 4px 8px;
  border: 1px solid rgb(200, 200, 200);
  border: 1px solid #a2a9b1;
}

th {
  background-color: #eaecf0;
}

tr {
  background-color: #f8f9fa;
}

/* table of contents */
.toc {
  background: #f9f9f9 none repeat scroll 0 0;
  border: 1px solid #aaa;
  display: table;
  font-size: 95%;
  margin-top: 80px;
  margin-bottom: 1em;
  padding: 0.4em 1.5em 0.4em 0.2em;
  width: auto;
}

@media screen and (min-width: 1150px) {
  .toc {
    background: white;
    font-size: 85%;
    max-width: 16vw;
    width: 16vw;
    line-height: 1.3;
    position: fixed;
    top: 2rem;
    left: 1rem;
    border-right: 0px solid rgb(210, 210, 210);
    border-top: 0px;
    border-bottom: 0px;
    border-left: 0px;
  }
}

@media screen and (min-width: 1150px) {
  .toc-position-absolute {
    position: absolute;
  }
}

.toc li,
.toc ul,
.toc ul li {
  list-style: outside none none !important;
}

.toc ul {
  padding-left: 20px;
}

.toc h3 {
  margin-left: 20px;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-weight: normal;
}

.date {
  color: #444;
  padding-top: 0.1em;
  font-size: 90%;
}

.datesub {
  padding-top: 0px;
  font-weight: normal;
  font-size: 0.45em;
  color: #444;
}

.post-list {
  color: #815205;
}

@media screen and (min-width: 760px) {
  .post-list {
    max-width: 60vw;
  }

  .home-content {
    max-width: 60vw;
  }
}

@media screen and (max-width: 760px) {
  .post-list {
    padding-left: 1em;
  }

  .katex {
    font-size: 1.05em !important;
  }
}

.bold-post-in-list {
  font-weight: bold;
}

.active {
  background-color: #eff4fa;
}

figure img {
  min-width: 100%;
}

figcaption {
  color: grey;
  text-align: center;
}

figcaption h4 {
  margin-top: 0px;
  font-weight: normal;
}

blockquote {
  margin-left: 1em;
  margin-right: 1em;
}

blockquote p {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

/* Two images side by side shortcode */
.side-by-side-parent {
  display: block;
}

@media screen and (min-width: 760px) {
  .side-by-side-parent {
    display: flex;
  }
}

.side-by-side-child {
  padding: 2px;
}

.active-toc {
  font-weight: bold;
}

.ln {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin-right: 14px;
  color: rgb(150, 150, 150);
}
