/* Basic EPUB styling */
body {
  font-family: "Georgia", serif;
  line-height: 1.6;
  margin: 2em;
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #2c3e50;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2em;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.3em;
}

h2 {
  font-size: 1.5em;
  border-bottom: 1px solid #bdc3c7;
  padding-bottom: 0.2em;
}

p {
  margin-bottom: 1em;
  text-align: justify;
}

code {
  background-color: #f8f9fa;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

pre {
  background-color: #f8f9fa;
  padding: 1em;
  border-radius: 5px;
  overflow-x: auto;
  border-left: 4px solid #3498db;
}

pre code {
  background-color: transparent;
  padding: 0;
}

blockquote {
  border-left: 4px solid #bdc3c7;
  margin: 1em 0;
  padding-left: 1em;
  font-style: italic;
  color: #7f8c8d;
}

ul,
ol {
  margin-bottom: 1em;
  padding-left: 2em;
}

li {
  margin-bottom: 0.5em;
}

a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
  font-weight: bold;
}

#toc {
  background-color: #f8f9fa;
  padding: 1em;
  border-radius: 5px;
  margin-bottom: 2em;
}

#toc h2 {
  border-bottom: none;
  margin-top: 0;
}

#toc ol {
  padding-left: 1em;
}

#toc li {
  margin-bottom: 0.3em;
}

#toc a {
  color: #2c3e50;
  font-weight: 500;
}

/* Open question styles */
.open-question {
  border: 1px solid #c2c2c2;
  padding: 1em;
  background-color: #fafafa;
  margin: 1em 0;
  width: 100%;
  height: 150px;
  color: #c2c2c2;
  border-radius: 5px;
  font-style: italic;
}
