/* General styles */
body {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}
/* Image Styling */
img {
    width: 80%;
    display: block;
    margin: auto;
}


/* Heading styles inspired by LaTeX */
h1 {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    color: #111;
}

h2 {
    font-size: 28px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 10px;
    color: #222;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

h3 {
    font-size: 22px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 5px;
    color: #333;
}

h4 {
    font-size: 20px;
    font-weight: bold;
    margin-top: 25px;
    color: #444;
}

h5 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    color: #555;
}

/* Paragraph styles */
p {
    text-align: justify;
    margin-bottom: 16px;
}

/* Emphasis */
em {
    font-style: italic;
}

strong {
    font-weight: bold;
}

/* Blockquotes */
blockquote {
    font-style: italic;
    border-left: 4px solid #555;
    padding-left: 15px;
    margin: 20px 0;
    color: #555;
}

/* Definiton lists  (dl, dt, dd) */

dl {
    border-left: 3px solid #e6ffe7;
    padding-left: 16px;
    margin: 20px 0;
    max-width: 600px;
}

dt {
    font-weight: bold;
    color: #2c3e50;
    margin-top: 12px;
    transition: color 0.3s ease;
}

dd {
    margin: 4px 0 12px 20px;
    color: #555;
    line-height: 1.5;
}

dt:hover {
    color: #4CAF50;
    cursor: pointer;
}

/* Code snippets */

code {
    font-family: "Courier New", monospace;
    background-color: #eee;
    display: inline;
    padding: 10px;
    border-radius: 4px;
    white-space: pre-wrap; /* Ensures code wraps properly */
}

/* Lists
ul, ol {
    margin-left: 0px;
}

li {a
    margin-bottom: 5px;
} */

/* Links */
a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footnotes */
sup {
    font-size: 0.8em;
}

/* MathJax (LaTeX-like) Styling */
mjx-container {
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        font-size: 16px;
        max-width: 90%;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }
}

/* Speaker Icon for Audio Files */
.speaker-icon {
    cursor: pointer;
    width: 37px;
    height: auto;
    display: block;
    margin: 10px 0;
}

li input[type="checkbox"] {
  margin-left: 0;       /* Optional: aligns boxes flush left */
  list-style-type: none;
}

li:has(input[type="checkbox"]) {
  list-style-type: none;  /* Removes bullet */
}
