/* Base styles */
body {
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Header styles */
header {
  background-color: #fff;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

header nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

header nav a {
  color: #333;
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

header nav a:hover {
  background-color: #f5f5f5;
}

/* Main content styles */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

.content-box {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow-x: hidden;
}

/* Blog post styles */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.6;
}

.blog-post h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.blog-post h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.blog-post h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.blog-post p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.blog-post a {
  color: #0066cc;
  text-decoration: none;
}

.blog-post a:hover {
  text-decoration: underline;
}

/* Code block styles */
.blog-post pre {
  background-color: var(--code-bg);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
}

.blog-post code {
  background-color: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.blog-post ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.blog-post li {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.blog-post .highlight {
  color: var(--accent-color);
  font-weight: bold;
}

.blog-post .task-list {
  list-style: none;
  padding-left: 0;
}

.blog-post .task-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.blog-post .task-list input[type="checkbox"] {
  margin-right: 0.5rem;
}

.blog-post .image-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.blog-post .image-gallery img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-post .centered-text {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-color);
}

/* Image styles */
.blog-post img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 4px;
}

.blog-post figure {
  margin: 1rem 0;
  text-align: center;
}

.blog-post figcaption {
  margin-top: 0.5rem;
  font-style: italic;
  color: #666;
}

/* Card styles */
.card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card a {
  color: #333;
  text-decoration: none;
  display: block;
  text-align: center;
}

/* Footer styles */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #fff;
  border-top: 1px solid #eee;
}

footer p {
  margin: 0;
}

footer a {
  color: #333;
  text-decoration: none;
  margin: 0 1rem;
}

footer a:hover {
  text-decoration: underline;
}

/* Gallery styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  main {
    padding: 1rem;
  }
  
  .content-box {
    padding: 1rem;
  }
  
  .blog-post h1 {
    font-size: 2rem;
  }
  
  .blog-post h2 {
    font-size: 1.5rem;
  }

  .blog-post pre {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
}