/* General Styles for Wikipedia-like Appearance */
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #222;
    margin: 0;
    padding: 0;
}

header {
    background-color: #fff;
    padding: 30px;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin: 0;
}

header h2 {
    font-size: 1.5em;
    margin: 0;
    color: #666;
}

header p {
    font-size: 1.2em;
    color: #444;
    margin-top: 10px;
}

nav {
    background-color: #f1f1f1;
    padding: 15px;
    border-bottom: 1px solid #ccc;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
    transition: transform 0.3s;
}

nav ul li:hover {
    transform: scale(1.1);
}

nav ul li a {
    text-decoration: none;
    color: #0645ad;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    text-decoration: underline;
    color: #0b0080;
}

section {
    padding: 30px;
    background-color: #fff;
    margin: 30px auto;
    max-width: 900px;
    border: 1px solid #ddd;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #333;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8em;
}

h3 {
    color: #444;
    margin-top: 25px;
    font-size: 1.5em;
}

p, ul {
    font-size: 1.1em;
    margin-bottom: 20px;
}

ul {
    list-style-type: disc;
    margin-left: 40px;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #777;
    background-color: #fff;
    border-top: 1px solid #ccc;
    margin-top: 40px;
}

a {
    color: #0645ad;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #0b0080;
    text-decoration: underline;
}

/* Styling for Tables, Quotes, and Equations */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 15px;
    text-align: left;
    font-size: 1.1em;
}

th {
    background-color: #f1f1f1;
    color: #333;
}

blockquote {
    border-left: 5px solid #ccc;
    margin: 25px;
    padding-left: 20px;
    color: #555;
    font-style: italic;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

/* Pseudocode Styles */
pre {
    background-color: #1e1e1e;
    color: #dcdcdc;
    padding: 20px;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Highlighting for code within preformatted text */
pre code .keyword {
    color: #569cd6;
    font-weight: bold;
}

pre code .function {
    color: #dcdcaa;
}

pre code .comment {
    color: #6a9955;
    font-style: italic;
}

pre code .string {
    color: #ce9178;
}

pre code .number {
    color: #b5cea8;
}
figcaption {
    text-align: center;
    font-weight: bold;
}
/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 0.95em;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    section {
        margin: 15px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1.1em;
    }

    nav ul li {
        margin: 10px 0;
    }

    pre {
        font-size: 0.9em;
    }
}
