/* General Blog Post Styles */
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #1c1c1c, #333333);
  color: #e0e0e0;
  padding: 20px;
  margin-top: 60px;
}

header {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

header h1 {
  font-size: 2.8em;
  margin-bottom: 10px;
  color: #ffdd00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
  font-size: 1.4em;
  color: #ccc;
}

main {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  margin: auto;
  color: #333;
}

h2,
h3,
h4 {
  color: #333;
  font-size: 1.8em;
}

p {
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.2em;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.reading-time {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  font-size: 0.9em;
}

.reading-time img {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

@media screen and (min-width: 1200px) {
  img {
    max-height: 300px;
  }
}

/* Code block styles */
pre {
  background: #1e1e1e;
  /* Darker background for pre blocks */
  color: #ffffff;
  /* Lighter text for better contrast */
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 1.1em;
  /* Slightly smaller font for pre blocks */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  line-height: 1.5;
  font-family: 'Courier New', Courier, monospace;
}

code {
  background: #2e2e2e;
  /* Background for inline code */
  color: #ffdd00;
  /* Text color for inline code */
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1em;
}

/* Code block within a list item */
li code {
  margin-top: 10px;
  display: block;
  font-size: 1em;
  /* Adjusted font size to match list context */
}

blockquote {
  background: rgba(255, 255, 0, 0.1);
  border-left: 5px solid #ffdd00;
  padding: 10px 20px;
  margin: 20px 0;
  font-style: italic;
  font-size: 1.2em;
}

footer {
  text-align: center;
  margin-top: 50px;
  font-size: 0.9em;
  color: #eee;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

ol,
ul {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.2em;
}

li {
  margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
  header h1 {
    font-size: 2.4em;
  }

  header p {
    font-size: 1.2em;
  }

  main {
    padding: 15px;
  }

  pre {
    font-size: 1em;
  }
}
