body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background-color: #78c800;
    color: white;
    padding: 1rem;
    text-align: center;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
}

.post {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.post:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4c4c4c;
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #888;
}

.no-posts {
    text-align: center;
    color: #888;
    padding: 2rem;
}
.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#new-post-form input, #new-post-form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#new-post-form button {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #78c800;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.post-content {
    margin-top: 1rem;
}

.comments-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.comment {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #ddd;
}

.comment-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.3rem;
}

.comment-content {
    font-size: 0.9rem;
}

.comment-form {
    margin-top: 1rem;
}

.comment-form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.comment-form button {
    padding: 8px 12px;
    border: none;
    background-color: #78c800;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

#login-form input, #register-form input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#login-form button, #register-form button {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #78c800;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}