.board-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding: 20px;
    text-align: center;
}

.board-container h1, .board-container h2 {
    text-align: center;
}

.board-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.board-form .form-group {
    width: 100%;
    max-width: 600px;
    margin-bottom: 15px;
}

.board-form label {
    display: block;
    margin-bottom: 5px;
    text-align: center;
}

.board-form input, .board-form textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    text-align: center;
}

.board-form textarea {
    min-height: 100px;
    resize: vertical;
    text-align: left;
}

.posts table, .post-details table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    table-layout: fixed; /* 셀 너비 고정 */
}

.posts th, .posts td, .post-details th, .post-details td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    vertical-align: top; /* 상단 정렬로 깔끔한 모양 */
}

.posts th, .post-details th {
    background-color: #f4f4f4;
    font-weight: bold;
    width: 20%; /* 헤더 너비 고정 */
}

.posts td, .post-details td {
    width: 80%; /* 데이터 셀 너비 고정 */
}

.posts tr:nth-child(even), .post-details tr:nth-child(even) {
    background-color: #f9f9f9;
}

.posts tr:hover, .post-details tr:hover {
    background-color: #f0f0f0;
}

.posts td a, .post-details td a {
    text-decoration: none;
    color: #007bff;
}

.posts td a:hover, .post-details td a:hover {
    text-decoration: underline;
}

.posts th:first-child, .posts td:first-child {
    width: 10%;
}

.post-details .content-cell {
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: break-word; /* 긴 텍스트 줄바꿈 */
    min-height: 100px; /* 최소 높이 설정 */
}

.post-content {
    margin: 20px 0;
    line-height: 1.6;
    text-align: left;
}

.error {
    color: red;
    text-align: center;
}

.success {
    color: green;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 5px;
}

.button:hover {
    background-color: #0056b3;
}

.form-group.buttons, .post-actions {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.posts p, .post-content + p {
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination a.disabled {
    color: #ccc;
    pointer-events: none;
}