/* playfair-display-regular - latin-ext_latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/playfair-display-v22-latin-ext_latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/playfair-display-v22-latin-ext_latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* playfair-display-700 - latin-ext_latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/playfair-display-v22-latin-ext_latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/playfair-display-v22-latin-ext_latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* playfair-display-italic - latin-ext_latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/playfair-display-v22-latin-ext_latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/playfair-display-v22-latin-ext_latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* playfair-display-700italic - latin-ext_latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/playfair-display-v22-latin-ext_latin-700italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/playfair-display-v22-latin-ext_latin-700italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

body {
  line-height: 1.75;
  font-family: 'Playfair Display';
  color: #e0e0e0; /* Light text color for dark background */
  background-color: #2b2b2b; /* Dark background */
}

a {
  text-decoration: none;
  color: #58a6ff; /* Light link color */
}

a:hover {
  color: #3700b3; /* Darker link color on hover */
}

/* markdown content styles */
blockquote {
  margin-top: 5px;
  margin-bottom: 5px;
  padding-left: 1em;
  margin-left: 0px;
  border-left: 3px solid #444; /* Darker border */
  color: #e0e0e0; /* Light text color */
}

hr {
  display: block;
  border: none;
  height: 2px;
  margin: 40px auto;
  background: #444; /* Darker horizontal rule */
}

table {
  width: 100%;
  margin: 40px 0;
  border-collapse: collapse;
  line-height: 1.5em;
  background-color: #1e1e1e; /* Dark background for tables */
}

th, td {
  text-align: left;
  padding-right: 20px;
  vertical-align: top;
  border: 1px solid #444; /* Darker border */
  color: #e0e0e0; /* Light text color */
}

thead th {
  padding: 10px 15px;
  height: 20px;
  font-size: 13px;
  font-weight: bold;
  color: #e0e0e0; /* Light text color */
  cursor: default;
  white-space: nowrap;
}

tr:nth-child(odd) td {
  background: #2a2a2a; /* Darker background for odd rows */
}

h1,
h2,
h3 {
  font-weight: 400;
  color: #e0e0e0; /* Light text color */
}

p {
  margin-block-start: 1.5em;
  margin-block-end: 1.5em;
  color: #e0e0e0; /* Light text color */
}

p,
pre {
  line-break: normal;
  word-break: normal;
  text-align: justify;
  text-justify: inter-word;
}

.markdown-image img {
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.anchor { 
  font-size: 100%; 
  visibility: hidden; 
  color: #888; /* Lighter color for anchors */
}

h1:hover a,
h2:hover a,
h3:hover a,
h4:hover a { 
  visibility: visible;
}

.highlight pre {
  padding: 7px;
  background-color: #1e1e1e; /* Dark background for highlighted code */
  border-radius: 4px;
}

.highlight {
  max-width: 100%;
  overflow-x: auto;
}

.box {
    float: left;
    padding: 0px;
}

.box2 {  
    float: right;
    padding: 10px;
}

p code {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
  font-size: inherit;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly lighter background for inline code */
  color: #e0e0e0; /* Light text color */
  padding: 0 2px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Lighter border */
  border-radius: 2px 2px;
  line-height: inherit;
  word-wrap: break-word;
  text-indent: 0;
}

pre code {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
  color: #e0e0e0; /* Light text color */
}

/* navigation */

nav.navigation {
    padding: 20px 20px 0;
    /* background: rgba(18, 18, 18, 0.9); /* Dark background for navigation */
    z-index: 100;
    box-sizing: border-box;
}

nav.navigation a {
    top: 8px;
    right: 6px;
    padding: 8px 12px;
    color: #e0e0e0; /* Light text color */
    font-size: 13px;
    line-height: 1.35;
    border-radius: 3px;
    font-weight: 900;
}

nav.navigation a:hover {
  color: #58a6ff; /* Light link color on hover */
}

nav.navigation a.button {
  background: #404040; /* Dark button background */
  color: #fff; /* Light button text */
  margin-left: auto;
  margin-right: auto;    
}

@media (max-width: 700px) {
  nav.navigation {
    padding: 20px 10px 0 0;
    background: rgba(18, 18, 18, 0.9); /* Dark background for navigation */
    margin: 0 auto;
    text-align: right;
    z-index: 100;
  }
  nav.navigation a {
    top: 8px;
    right: 6px;
    padding: 8px 8px;
    color: #58a6ff; /* Light link color */
    font-size: 13px;
    line-height: 1.35;
    border-radius: 3px;
    float: right;
  }
}

@media (max-width: 324px) {
  nav.navigation a.button {
    display: none;
  }
}

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

/* footer */
#footer {
  margin-top: 100px;
  margin-bottom: 100px;
  text-align: center;
  color: #bbbbbb; /* Light footer text */
  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;
}

#social a {
  margin: 0 4px;
}

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

/* profile  */

.profile {
  margin: 0px auto 10px auto;    
}

.profile .avatar {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
  height: auto;
  border: 30px solid #2b2b2b; /* Dark border */
}

.profile h1 {
  font-weight: 400;
  letter-spacing: 0px;
  font-size: 20px;
  color: #e0e0e0; /* Light text color */
  margin-bottom: 0;
  margin-top: 0;
}

.profile h2 {
  font-size: 20px;
  font-weight: 300;
  color: #a7a7a7; /* Slightly lighter color */
  margin-top: 0;
}

/* index post list */
#list-page {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

#list-page .title a {
  color: #e0e0e0; /* Light text color */
  display: block;
}

#list-page .title a:hover {
  color: #58a6ff; /* Light link color on hover */
}

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

#list-page .summary {
  color: #a7a7a7; /* Slightly lighter color */
  margin-top: 12px;
}

#list-page .cover {
  width: 100px;
  height: 100px;
  background: #1e1e1e; /* Dark background for cover */
}

#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;
  color: #e0e0e0; /* Light text color */
}

@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; /* Light tip color */
  margin-top: 18px;
  font-size: 14px;
}

#single .tip .split {
  margin: 0 4px;
}

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

#single .tags {
  margin-top: 24px;
}

#single .tags a {
  background: #2a2a2a; /* Dark background for tags */
  color: #e0e0e0; /* Light text color */
  font-size: 14px;
}

#single .tags a:hover {
  color: #58a6ff; /* Light link color on hover */
}

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

#archive .total {
  font-size: 15px;
  color: #e0e0e0; /* Light text color */
}

#archive .group {
  margin: 24px auto; 
}

#archive .group .key {
  font-size: 20px;
  margin-bottom: 12px;
  color: #e0e0e0; /* Light text color */
}

#archive .group .value {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
  color: #e0e0e0; /* Light text color */
}

#archive .group .value .date {
  display: inline-block;
  color: #999; /* Lighter color for date */
  width: 60px;
}

#archive .group .value .title {
  display: inline;
}

#archive .group .value .title a {
  color: #58a6ff; /* Light link color */
}

#archive .group .value .title a:hover {
  color: #3700b3; /* Darker link color on hover */
}

#archive .group .value .tags {
  display: inline;
  margin-left: 7px;
}

#archive .group .value .tags a {
  background: #2a2a2a; /* Dark background for tags */
  padding: 4px 7px;
  color: #999; /* Lighter color */
  font-size: 14px;
}

#archive .group .value .tags a:hover {
  color: #58a6ff; /* Light link color on hover */
}

/* 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: #2a2a2a; /* Dark background for tags */
  padding: 4px 7px;
  color: #e0e0e0; /* Light text color */
  font-size: 14px;
}

#tags .tag a:hover {
  color: #58a6ff; /* Light link color on hover */
}

/* 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: #e0e0e0; /* Light text color */
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  width: 80%;
}

#page-404 .text {
  text-align: center;
  margin-top: 60px;
  color: #e0e0e0; /* Light text color */
}

#page-404 .read-more {
  font-weight: 300;
  font-size: 20px;
  margin-top: 48px;
  margin-bottom: 12px;
  color: #58a6ff; /* Light link color */
}

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

.theme-toggle {
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
    padding: 10px;
    background: none;
    border: none;
    color: inherit;
}
.center {
	text-align:center;
}

