/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #f4f4f4;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

/* Header and Navigation */
header {
    text-align: center;
    padding: 20px 0;
    background-color: #1a1a1a;
}

header h1 {
    color: #00e676;
    font-size: 3rem;
}

header p {
    color: #ddd;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    background-color: #1a1a1a;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #00e676;
    text-decoration: none;
    font-size: 1.2rem;
}

nav ul li a:hover {
    color: #fff;
}

/* Form Section */
#new-post {
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input, form textarea, form button {
    padding: 10px;
    border: 1px solid #00e676;
    border-radius: 5px;
    background-color: #1f1f1f;
    color: #f4f4f4;
    font-size: 1rem;
}

form textarea {
    height: 150px; /* Larger comment box */
    resize: none;
}

form button {
    background-color: #00e676;
    color: #000;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #00c85d;
}

/* Blog Posts Section */
#posts-container {
    margin: 20px auto;
    max-width: 800px;
}

.post {
    text-align: left; /* Align text to the left */
    background: #1f1f1f;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.post h3 {
    margin-bottom: 10px;
    color: #00e676;
}

.post pre {
    white-space: pre-wrap; /* Preserve user-entered spaces and line breaks */
    word-wrap: break-word; /* Prevent text overflow */
    color: #ddd;
    font-size: 1rem;
    line-height: 1.8; /* Increase line spacing */
    margin: 15px 0; /* Add spacing around paragraphs */
}

/* Comments Section */
.comments-section {
    margin-top: 20px;
    border-top: 1px solid #333;
}

.comment-form textarea {
    height: 100px;
    resize: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    color: #d0d0d0;
}

.contact-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #00e676;
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
}

.contact-button:hover {
    background-color: #00c85d;
    color: #fff;
}
