figure figcaption {
  text-align: center;
  font-size: 0.9em;
  margin-top: 10px;
  color: #757575;
}
figure figcaption p {
  display: inline;
}

table.table-pretty th {
  text-transform: uppercase;
}

table.table-pretty th,
table.table-pretty td {
  padding: 5px 10px; /* Smaller padding for smaller row heights */
}

table.table-pretty td {
  text-align: left;
}

table.table-pretty th {
  background-color: whitesmoke; /* Light grey for even rows */
}

table.table-pretty th,
table.table-pretty td {
  border-left: none; /* Remove left border */
  border-right: none; /* Remove right border */
}
table.table-pretty {
  font-size: 90%;
}

html[theme='dark-mode'] {
  filter: invert(1) hue-rotate(180deg);
}

body {
  font-family: "Noto Sans Korean", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
  color: #111;
  background-color: #fdfdfd;
  -webkit-text-size-adjust: 100%;
}

ul, ol {
  margin-left: 0;
  padding-left: 30px;
}

li {
  margin-bottom: 0;
}

a {
  color: #2a7ae2;
  text-decoration: none;
}

a:visited {
  color: #205ea6;
}

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

blockquote {
  color: #828282;
  border-left: 4px solid #e8e8e8;
  padding-left: 15px;
  margin: 15px 0;
}

blockquote > :last-child {
  margin-bottom: 0;
}

hr {
  display: block;
  border: none;
  height: 2px;
  margin: 40px auto;
  background: #eee;
}

table {
  width: 100%;
  margin: 40px 0;
  border-collapse: collapse;
  line-height: 1.5em;
}

th, td {
  text-align: left;
  padding-right: 20px;
  vertical-align: top;
}

table td, td {
  border-spacing: none;
  border-style: solid;
  padding: 10px 15px;
  border-width: 1px 0 0 0;
}
thead th, th {
  text-align: left;
  padding: 10px 15px;
  height: 20px;
  font-size: 13px;
  font-weight: bold;
  color: #444;
  cursor: default;
  white-space: nowrap;
  border: 1px solid #dadadc;
}

tr>td {
  border: 1px solid #dadadc;
}

tr:nth-child(odd)>td {
  background: #fcfcfc;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
}

h3 {
    border-bottom: 1px solid #e8e8e8;
}
p {
  margin-block-start: 1.5em;
  margin-block-end: 1.5em;
}

li p {
  margin-block-start: 0;
  margin-block-end: 0;
}
p,
pre {
  word-break: normal;
  overflow-wrap: anywhere;
}
.markdown-image img {
  max-width: 100%;
}
.anchor {
    color: #d14;
    font-size: 70%;
    opacity: 0;
    text-decoration: none;
}

h1:hover .anchor,
h2:hover .anchor,
h3:hover .anchor,
h4:hover .anchor {
  opacity: 1;
}
.highlight pre {
  padding: 7px;
  overflow-x: auto;
}

.highlight {
  max-width: 100%;
  overflow-x: auto;
}
pre,
code {
    font-size: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
}

code {
    color: #d14;
    background-color: whitesmoke;
    padding: 1px 5px;
    font-size: 80%;
}

pre code {
    color: inherit;
}

pre {
    line-height: 1;
    padding: 8px 12px;
    overflow-x: scroll;
    background: whitesmoke !important;
    border: 1px solid #e8e8e8 !important;

    > code {
        border: 0 !important;
        padding-right: 0;
        padding-left: 0;
    }
}


/* navigation */

nav.navigation {
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  padding: 0.35em 5px;
  background: #fdfdfd;
  background: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
  z-index: 100;
}

nav.navigation a {
  top: 8px;
  right: 6px;
  padding: 8px 12px;
  color: #828282;
  font-size: 13px;
  line-height: 1.35;
  border-radius: 3px;
}
nav.navigation a:hover {
  color: #111;
}

nav.navigation a.button {
  background: #5badf0;
  color: #fff;
  margin-left: 12px;
}




/* toc */
.toc {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    font-size: 80%;
    list-style-position: inside;
    line-height: 1.2;
    margin-left: 0px;
    margin-bottom: 20px;
    padding: px;
}
.toc details summary {
  cursor: zoom-in;
  margin-inline-start: 14px;
  font-weight: 500;
}
.toc details[open] summary {
  cursor: zoom-out;
}
.toc #TableOfContents {
  margin-left: 10px;
}
.toc ul {
  list-style-type: decimal;
  padding-inline-start: 24px;
}

.toc ul ul {
  list-style-type: decimal;
  padding-inline-start: 24px;
}

/* comment */
#comment {
  margin-top: 64px;
}

/* footer */
#footer {
  margin-top: 100px;
  margin-bottom: 100px;
  text-align: center;
  color: #bbbbbb;
  font-size: 14px;
}
#footer .copyright {
  margin: 20px auto;
  font-size: 15px;
}
.powerby {
  margin: 20px auto;
  font-size: 13px;
}
#footer .split {
  cursor: pointer;
}
#footer .split:hover path {
  fill: #ff3356;
  transition: 0.7s ease-out;
  cursor: pointer;;
}

nav.navigation #social a {
  margin: 0 4px;
  padding: 0;
}

/* main content */
.main {
  width: 100%;
  margin: 0 auto;
}

/* profile  */

.profile {
  text-align: center;
}

.profile h1 {
  font-size: 36px;
  line-height: 56px;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 300; /* From _base.scss */
}

.profile h1 a {
  color: #828282; /* $grey-color-dark from _layout.scss */
  font-weight: bold;
}

.profile h1 a:hover {
  color: #111; /* Black color for hover */
  text-decoration: none;
}

.profile h2 {
  font-size: 16px;
  font-weight: 300;
  color: #757575;
  margin-top: 0;
}

.img-polaroid {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  padding: 4px;
  background-color: white;
  border: 1px solid #eee;
}

/* index post list */
#list-page {
  max-width: 680px;
  margin: 60px auto 0 auto;
  padding: 0 64px;
}

#list-page .item {
  margin: 12px 0;
}

#list-page .title {
  display: inline-block;
  color: #404040;
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  width: 80%;
}

#list-page .title a {
  color: #404040;
  display: block;
}

#list-page .title a:hover {
  color: #0366d6;
}

#list-page .date {
  width: 20%;
  float: right;
  text-align: right;
  position: relative;
  top: 1px;
  color: #bbb;
}

#list-page .summary {
  color: #757575;
  margin-top: 12px;
  word-break: normal;
  overflow-wrap: anywhere;
  margin-bottom: 36px;
}

#list-page .cover {
  width: 100px;
  height: 100px;
  background: #fff;
}

#list-page .cover img {
  width: 100%;
  text-align: center;
}

#list-page .pagination {
  margin: 48px 0;
  width: 100%;
  height: 32px;
  margin-top: 48px;
}

#list-page .pagination .pre {
  float: left;
}
#list-page .pagination .next {
  float: right;
}

/* single page */
#single {
  max-width: 680px;
  margin: 60px auto 0 auto;
  padding: 0 64px;
}

#single .title {
  text-align: center;
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
}

@media (max-width: 700px) {
  #single {
    padding: 0 18px;
    margin: 20px auto 0 auto;
  }
  #single .title {
    font-size: 24px;
    line-height: 32px;
  }
}

#single .tip {
  text-align: center;
  color: #8c8c8c;
  margin-top: 18px;
  font-size: 14px;
}
#single .tip .split {
  margin: 0 4px;
}

#single .content {
  margin-top: 36px;
}

#single .tags {
  margin-top: 24px;
  margin-bottom: 24px;
}
#single .tags a {
  background: #f2f2f2;
  padding: 4px 7px;
  color: #757575;
  font-size: 14px;
  margin-right: 3px;
}
#single .tags a:hover {
  color: #0366d6;
}


#archive {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 24px;
}

#archive .total {
  font-size: 15px;
}

#archive .group {
  margin: 24px auto;
}
#archive .group .key {
  font-size: 20px;
  margin-bottom: 12px;
}
#archive .group .value {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
}
#archive .group .value .date {
  display: inline-block;
  color: #999;
  min-width: 60px;
}
#archive .group .value .title {
  display: inline;
}
#archive .group .value .title a {
  color:#404040;
}
#archive .group .value .title a:hover {
  color: #0366d6;
}
#archive .group .value .tags {
  display: inline;
  margin-left: 7px;
}
#archive .group .value .tags a {
  background: #f2f2f2;
  padding: 4px 7px;
  color: #999;
  font-size: 14px;
  margin-right: 3px;
}
#archive .group .value .tags a:hover {
  color: #0366d6;
}

/* taxonomy */
#tags {
  max-width: 700px;
  margin: 48px auto 0 auto;
  padding: 0 12px;
  text-align: center;
}
#tags .tag {
  display: inline-block;
  margin: 7px 7px;
}
@media (max-width: 700px) {
  #tags {
    margin: 0 auto 0 auto;
  }
  #tags .tag {
    display: inline-block;
    margin: 4px 5px;
  }
}

#tags .tag a {
  background: #f2f2f2;
  padding: 4px 7px;
  color: #757575;
  color: #404040;
  font-size: 14px;
  margin-right: 3px;
}
#tags .tag a:hover {
  color: #0366d6;
}

/* section page */
#section {
  max-width: 580px;
  margin: 48px auto 0 auto;
  padding: 0 12px;
}

/* 404 page */
#page-404 {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 24px;
}
#page-404 .item {
  margin: 12px 0 0 0;
}

#page-404 .title {
  display: inline-block;
  color: #404040;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  width: 80%;
}

#page-404 .text {
  text-align: center;
  margin-top: 60px;
}

#page-404 .read-more {
  font-weight: 300;
  font-size: 20px;
  margin-top: 48px;
  margin-bottom: 12px;
}

#page-404 .date {
  width: 20%;
  float: right;
  text-align: right;
  position: relative;
  top: 1px;
  color: #bbb;
}

.footnotes {
    background-color: whitesmoke;
    font-size: 80%;
    list-style-position: inside;
    line-height: 1.2;
    margin-left: 0px;
    margin-bottom: 20px;
    padding: 0 15px 5px;
}

.footnotes hr {
    margin: 0px;
    opacity: 0;
}

.footnotes ol {
    list-style: none;
    counter-reset: footnote-counter;
    padding: 0;
}

.footnotes ol li {
    counter-increment: footnote-counter;
    padding-left: 0;
    margin-left: 0;
}

.footnotes ol li::before {
    content: "[" counter(footnote-counter) "]";
}

.footnotes ol li p {
    display: inline;
}

a.footnote-ref::before {
    content: "[";
}

a.footnote-ref::after {
    content: "]";
}

a.anchor:visited {
    color: #d14;
}

table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0,0,0,.5);
    -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}

#single .content a.button {
  background: whitesmoke !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 15px !important;
  padding: 2px 8px !important;
  color: #757575 !important;
  font-size: 80% !important;
  text-decoration: none !important;
}

#single .content a.button:hover {
  color: #0366d6 !important;
}

#single .content .publisher {
  font-size: 90%;
}

#single .content li {
  margin-bottom: 10px;
}

.post-content li {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 5px;
}

.post-content p {
  margin-bottom: 0px;
}

.me {
  font-style: italic;
}
