@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap");

body {
    font-family: "Merriweather", serif;
    font-size: 11pt;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 2cm; /* Standard page margins */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    background-color: transparent; /* Fix for transparent images */
}

/* For controlling image sizes */
img.small-img {
    width: 25%;
}
img.medium-img {
    width: 50%;
}

.caption {
    display: block;
    text-align: center;
    font-style: italic;
    color: #444;
    margin-top: 0.5em;
    margin-bottom: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

h1 {
    font-size: 2.5em;
    font-weight: 900;
    border-bottom: 2px solid #bdc3c7;
    padding-bottom: 0.3em;
}
h2 {
    font-size: 2em;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 0.2em;
}
h3 {
    font-size: 1.5em;
}
h4 {
    font-size: 1.2em;
    font-style: italic;
}

p {
    margin-bottom: 1em;
}

a {
    color: #2980b9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 10pt;
}

th,
td {
    border: 1px solid #ccc;
    padding: 0.75em;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-family: "Lato", sans-serif;
    font-weight: 700;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Code blocks */
pre {
    padding: 1em;
    margin: 1.5em 0;
    overflow-x: auto;
    border-radius: 4px;
}

code {
    font-size: 0.9em;
    font-family: "Inconsolata", monospace;
}

pre code {
    font-size: 1em; /* Reset for code inside pre */
}

/* Blockquotes */
blockquote {
    margin: 1.5em 0;
    padding: 0.5em 1.5em;
    border-left: 5px solid #bdc3c7;
    background-color: #f8f9fa;
    color: #555;
}

blockquote p {
    margin-bottom: 0;
}

/* Page break class */
.pagebreak {
    page-break-before: always;
}
