/* Reset and Base Styles */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background-color: #1a1a1a; /* Dark background */
  color: #e0e0e0; /* Light text color */
  line-height: 1.7;
}

#content {
  max-width: 800px;
  margin: 40px auto; /* Center content with margin */
  padding: 20px 40px;
  background-color: #2a2a2a; /* Slightly lighter dark shade for content area */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #bb86fc; /* Accent color (purple) */
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  border-bottom: 1px solid #444; /* Subtle border */
  padding-bottom: 0.3em;
}

h1 {
  font-size: 2.2em;
  border-bottom-width: 2px;
}

h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.4em;
}

/* Paragraphs and Links */
p {
  margin-bottom: 1.2em;
}

a {
  color: #64b5f6; /* Accent color (light blue) */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #90caf9; /* Lighter blue on hover */
  text-decoration: underline;
}

/* Lists */
ul,
ol {
  margin-bottom: 1.2em;
  padding-left: 2em; /* Indentation */
}

li {
  margin-bottom: 0.5em;
}

/* Code Blocks and Inline Code */
pre {
  background-color: #1e1e1e; /* Slightly different dark for code blocks */
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto; /* Horizontal scroll for long code */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier,
    monospace;
  background-color: #333; /* Darker background for inline code */
  color: #f0f0f0; /* Slightly lighter code text */
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre code {
  background-color: transparent; /* Remove background for code inside pre */
  padding: 0;
  border-radius: 0;
  font-size: inherit; /* Inherit font size from pre */
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #bb86fc; /* Accent color border */
  padding-left: 1em;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.2em;
  color: #c0c0c0; /* Slightly dimmer text for quotes */
  background-color: #2f2f2f; /* Slightly different background */
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  border-radius: 0 4px 4px 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

th,
td {
  border: 1px solid #444;
  padding: 10px 12px;
  text-align: left;
}

thead {
  background-color: #333;
  color: #e0e0e0;
  font-weight: bold;
}

tbody tr:nth-child(odd) {
  background-color: #2a2a2a;
}

tbody tr:nth-child(even) {
  background-color: #2f2f2f;
}

/* Horizontal Rule */
hr {
  border: 0;
  height: 1px;
  background-color: #444;
  margin: 2em 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  #content {
    margin: 20px 15px;
    padding: 15px 25px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.5em;
  }

  body {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  #content {
    margin: 10px 5px;
    padding: 10px 15px;
  }

  body {
    font-size: 14px;
  }

  pre {
    padding: 10px;
  }

  th,
  td {
    padding: 8px 10px;
  }
}
