/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f9;
  color: #333;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #007acc;
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #ffeb3b;
}

main {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

article {
  background: #fff;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

article:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

article h2 {
  margin-bottom: 0.5rem;
  color: #007acc;
}

article h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

article h2 a:hover {
  color: #ffeb3b;
}

article p {
  margin-bottom: 1rem;
}

footer {
  text-align: center;
  padding: 1.5rem 0;
  background: #007acc;
  color: #fff;
  margin-top: auto;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Markdown content styles */
.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
  margin: 1.5rem 0 1rem;
  font-weight: bold;
  color: #333;
}

.post-content p {
  margin: 1rem 0;
}

.post-content a {
  color: #007acc;
  text-decoration: none;
  border-bottom: 1px solid #007acc;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.post-content a:hover {
  color: #005f99;
  border-bottom-color: #005f99;
}

.post-content blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  background: #f4f4f9;
  border-left: 5px solid #007acc;
  color: #555;
}

.post-content code {
  background: #f4f4f9;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.post-content pre code {
  padding: 0;
}
.markdown-code{
  background-color: transparent;
}

.post-content pre {
  /* background: #fff; */
  background-color: #eee;
  background: linear-gradient(90deg, #ccc, #999);
  /* box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; */
  /* background: linear-gradient(45deg, #5a5a5a, transparent); */
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  position: relative;
}

.post-content ul, .post-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.post-content ul li, .post-content ol li {
  margin-bottom: 0.5rem;
}


/* .hljs-ln {
  border-collapse: collapse;
}
.hljs-ln td {
  padding: 0;
}
.hljs-ln td.hljs-ln-numbers {
  text-align: right;
  vertical-align: top;
  padding-right: 10px;
  user-select: none;
  color: #999;
  border-right: 1px solid #ddd;
}
.hljs-ln td.hljs-ln-code {
  padding-left: 10px;
} */

.hljs-ln {
  border-collapse: collapse;
}
.hljs-ln td {
  padding: 0;
}
.hljs-ln td.hljs-ln-numbers {
  text-align: right;
  vertical-align: top;
  padding-right: 10px;
  user-select: none;
  color: #999;
  border-right: 1px solid #ddd;
}
.hljs-ln td.hljs-ln-code {
  padding-left: 10px;
}
.copy-button {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  font-size: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.copy-button:hover {
  background-color: #0056b3;
}