* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: sans-serif;
  width: 100%;
  height: 100%;
}
h1 { margin-top: 0; }
header {
  width: 100%;
  height: 30px;
  background-color: darkgray;
  color: white;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
#blogTitle {
  margin-bottom: 20px;
  padding: 0px 20px;
  line-height: 30px;
  font-size: 16px;
  vertical-align: middle;
}
#returnText {
  margin-bottom: 20px;
  padding: 0px 20px;
  line-height: 30px;
  font-size: 16px;
  vertical-align: middle;
  text-align: right;
}
footer {
  margin-top: 48px;
  color: #666;
  font-size: 0.9em;
  width: 100%;
  text-align: center;
}
.nohighlight {
  text-decoration: none;
  color: inherit;
}
.separator::before {
  content: "";
}
.possgCredit {
  display: block;
}

/* content-template.ejs (article page) */
.layout {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.layout nav {
  width: 100%;
  border-right: 1px solid #ddd;
  padding: 16px;
  background: #fafafa;
}
.layout main {
  flex: 1;
  padding: 32px;
  width: 100%;
}
ul, ol { padding-left: 16px; }
li { margin-bottom: 6px; }
li > ul,
li > ol {
  margin-top: 6px;
}
.layout article h1,
.layout article h2,
.layout article h3,
.layout article h4,
.layout article h5,
.layout article h6 {
  margin: 1.4em 0 0.6em;
  line-height: 1.4;
}
.layout article h2 { font-size: 1.5em; }
.layout article h3 { font-size: 1.25em; }
.layout article h4 { font-size: 1.1em; }
.layout article h5 { font-size: 1em; }
.layout article h6 { font-size: 0.9em; color: #555; }
.layout article table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}
.layout article th,
.layout article td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}
.layout article th {
  background-color: #fafafa;
  font-weight: bold;
}
.layout article tr:nth-child(even) td {
  background-color: #fcfcfc;
}
.layout article blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  border-left: 4px solid #ddd;
  color: #555;
  background-color: #fafafa;
}
.layout article hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}
.layout article pre {
  position: relative;
  background: #f6f8fa;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1em;
  overflow-x: auto;
  line-height: 1.5;
}
.layout article code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  background: #f0f0f0;
  border-radius: 3px;
  padding: 0.2em 0.4em;
}
.layout article pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}
.copyBtn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #24292e;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}
.copyBtn:hover {
  background: #f0f0f0;
}

/* syntax highlighting theme (adapted from highlight.js "github" theme, BSD-3-Clause) */
.hljs {
  color: #24292e;
}
.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
  color: #d73a49;
}
.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
  color: #6f42c1;
}
.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-variable,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id {
  color: #005cc5;
}
.hljs-regexp,
.hljs-string,
.hljs-meta .hljs-string {
  color: #032f62;
}
.hljs-built_in,
.hljs-symbol {
  color: #e36209;
}
.hljs-comment,
.hljs-code,
.hljs-formula {
  color: #6a737d;
}
.hljs-name,
.hljs-quote,
.hljs-selector-tag,
.hljs-selector-pseudo {
  color: #22863a;
}
.hljs-subst {
  color: #24292e;
}
.hljs-section {
  color: #005cc5;
  font-weight: bold;
}
.hljs-bullet {
  color: #735c0f;
}
.hljs-emphasis {
  color: #24292e;
  font-style: italic;
}
.hljs-strong {
  color: #24292e;
  font-weight: bold;
}
.hljs-addition {
  color: #22863a;
  background-color: #f0fff4;
}
.hljs-deletion {
  color: #b31d28;
  background-color: #ffeef0;
}
.year {
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
}
.tag {
  border-radius: 10px;
  background-color: pink;
  height: 20px;
  padding: 0px 10px;
  margin: 0px 5px;
  font-size: 16px;
  vertical-align: middle;
  line-height: 20px;
}
#infoWrap {
  display: flex;
  width: 100%;
  height: 20px;
  margin-bottom: 40px;
}
#datetime {
  line-height: 20px;
  font-size: 16px;
  vertical-align: middle;
  margin-right: 5px;
}
.navWrap {
  padding: 5px;
  display: flex;
  width: 100%;
  flex-direction: column;
  border-radius: 5px;
  margin-bottom: 10px;
}
.navDate {
  font-size: 0.8em;
  color: #666;
}
.navTitile {
  font-size: 0.95em;
  margin-top: 2px;
}
img {
  width: 100%;
}
.wborder {
  border: 1px solid pink;
}
figure {
  margin: 1.5em 0;
  text-align: center;
}
figure img {
  max-width: 100%;
  height: auto;
}
figure figcaption {
  margin-top: 0.4em;
  font-size: 0.85em;
  color: #666;
}
iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}
@media screen and (min-width: 768px) {
  .separator::before {
    content: "/";
    margin: 0 0.5em;
  }
  .possgCredit {
    display: inline;
  }
  .layout {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
  }
  .layout main {
    flex: 1;
    padding: 32px;
    width: calc(100% - 260px);
  }
  .layout nav {
    width: 200px;
    border-right: 1px solid #ddd;
    padding: 16px;
    background: #fafafa;
  }
}

/* index-template.ejs (article list page) */
main {
  flex: 1;
  padding: 20px;
  width: 100%;
}
#listWrap {
  display: flex;
  justify-content: center;
  width: 100%;
}
.indexlist {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  min-height: 100%;
}
.indexitem {
  width: 300px;
  min-width: 200px;
  height: auto;
  border-radius: 5px;
  border: 1px solid gray;
  margin: 10px;
  cursor: pointer;
}
.titlearea {
  width: 100%;
  height: 200px;
  padding: 20px;
  background-position: center;
  background-size: cover;
}
.bodytext {
  padding: 20px;
  background-color: white;
}
.indexitem:hover {
  border: 2px solid black;
}
#descWrap {
  padding: 20px;
}
#desc {
  width: 100%;
  font-size: 18px;
  text-align: center;
}
#tagListWrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 20px;
}
#tagListWrap .tag {
  margin: 0;
  cursor: pointer;
}
#tagListWrap .tag.tagActive {
  box-shadow: 0 0 0 2px #333;
  font-weight: bold;
}
.itemdate p {
  font-size: 12px;
  color: blue;
  background-color: rgba(255, 255, 255, 0.8);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  display: inline;
  padding: 0.4em 0.4em;
}
.itemtitle p {
  margin-top: 0.5em;
  font-size: 1.2em;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.8);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  display: inline;
  padding: 0.4em 0.2em;
}
.listSize {
  width: 320px;
}
.pager {
  width: 100%;
  height: 30px;
  text-align: center;
}
.pager a {
  display: inline-block;
  height: 30px;
  line-height: 30px;
  vertical-align: middle;
  font-size: 16px;
  padding: 0 10px;
  background-color: skyblue;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}
@media screen and (min-width: 680px) {
  .separator::before {
    content: "/";
    margin: 0 0.5em;
  }
  .possgCredit {
    display: inline;
  }
  .listSize {
    width: 640px;
  }
}
@media screen and (min-width: 1000px) {
  .separator::before {
    content: "/";
    margin: 0 0.5em;
  }
  .possgCredit {
    display: inline;
  }
  .listSize {
    width: 960px;
  }
}
@media screen and (min-width: 1320px) {
  .separator::before {
    content: "/";
    margin: 0 0.5em;
  }
  .possgCredit {
    display: inline;
  }
  .listSize {
    width: 1280px;
  }
}
