body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.box {
    max-width: 1200px;
    width: 100%;
    background-color: #1a1a1a;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #1f1f1f;
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header h1 {
    margin: 0;
    font-size: 24px;
    color: #00ff6a;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 18px;
}

nav ul li a:hover {
    color: #00ff6a;
}

section {
    padding: 60px 20px;
    flex-grow: 1;
}

section .container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

section h2 {
    font-size: 28px;
    color: #00ff6a;
    margin-bottom: 20px;
}

section p, section ul {
    font-size: 18px;
    line-height: 1.6;
}

section ul {
    list-style: disc;
    padding-left: 20px;
    margin-left: 20px;
}

section ul li {
    margin-bottom: 10px;
}

.blog-post {
    background-color: #2a2a2a;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto 20px auto; /* Center the posts */
}

.blog-post h3 {
    font-size: 24px;
    color: #00ff6a;
}

.blog-post p {
    font-size: 16px;
    line-height: 1.6;
}

.blog-post .meta {
    font-style: italic;
    color: #aaa;
    margin-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

form label {
    font-size: 18px;
    margin-top: 10px;
}

form input, form textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #333;
    background-color: #1f1f1f;
    color: #e0e0e0;
    border-radius: 5px;
}

form button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    background-color: #00ff6a;
    color: #121212;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
}

form button:hover {
    background-color: #00cc55;
}

footer {
    background-color: #1f1f1f;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

footer p {
    margin: 0;
    color: #e0e0e0;
}

pre, code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #1f1f1f;
    color: #ffffff;
    border-radius: 5px;
    font-size: 14px;
}

pre {
    padding: 15px;
    overflow-x: auto;
    white-space: pre-wrap; /* Optional: wrap text to avoid horizontal scroll */
    margin: 20px 0;
    line-height: 1.6;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.12), inset 0 1px 2px rgba(0,0,0,0.24);
    border: 1px solid #0f0f0f;
}

code {
    padding: 5px;
    border-radius: 4px;
    background-color: #1f1f1f;
    color: #dcdcdc;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #1f1f1f;
    color: #00ff6a;
}

table tr:nth-child(even) {
    background-color: #2a2a2a;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    section .container {
        padding: 0 10px;
    }

    .blog-post {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    section h2 {
        font-size: 24px;
    }

    .blog-post h3 {
        font-size: 20px;
    }

    .blog-post p {
        font-size: 14px;
    }

    table, table th, table td {
        display: block;
        width: 100%;
    }

    table th, table td {
        box-sizing: border-box;
    }
}
