/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    background-color: #e8e8e8;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

/* Header */
header {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #000;
    background-color: #fff;
}

.header-date {
    background-color: #000080;
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 0.9em;
}

.header-title {
    text-align: center;
    padding: 10px;
    font-size: 1.5em;
}

/* Main content */
main {
    margin-bottom: 20px;
}

/* Tables for table of contents */
table {
    width: 100%;
    /*border-collapse: collapse;*/
    margin-bottom: 20px;
    border: 1px solid #000;
    /*background-color: #fff;*/
}

.contents-table {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    margin-bottom: 20px;
}

table td {
    padding: 10px;
    border: 1px solid #000;
    vertical-align: top;
    width: 50%;
}

/* Sections */
section {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #000;
    background-color: #fff;
}

section h2 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

h2 {
    font-size: 1.3em;
    margin-bottom: 8px;
    margin-top: 0;
}

h3 {
    font-size: 1.1em;
    margin-top: 15px;
    margin-bottom: 8px;
}

p {
    margin-bottom: 10px;
}

/* Links */
a {
    color: #0000ee;
    text-decoration: underline;
}

a:visited {
    color: #551a8b;
}

a:hover {
    background-color: #ffff00;
}

/* Lists */
ul, ol {
    margin-left: 25px;
    margin-bottom: 10px;
}

li {
    margin-bottom: 3px;
}

/* Code blocks */
pre {
    background-color: #f0f0f0;
    border: 1px solid #999;
    padding: 8px;
    overflow-x: auto;
    margin-bottom: 10px;
    font-size: 0.9em;
}

code {
    font-family: "Courier New", monospace;
}

/* Blockquotes */
blockquote {
    margin: 15px 0;
    padding-left: 15px;
    border-left: 2px solid #666;
    font-style: italic;
    color: #333;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border: 1px solid #000;
    margin: 10px 0;
}

.image-container {
    text-align: center;
    margin: 15px 0;
}

.image-container img {
    display: inline-block;
}

.image-caption {
    font-size: 0.85em;
    font-style: italic;
    margin-top: 5px;
    color: #333;
}

/* Footer */
footer {
    margin-top: 30px;
    padding: 10px;
    border: 1px solid #000;
    background-color: #fff;
    font-size: 0.85em;
    color: #333;
}

hr {
    border: none;
    border-top: 1px solid #999;
    margin: 20px 0;
}

/* Emphasis */
strong {
    font-weight: bold;
}

em {
    font-style: italic;
}