body {
    background-color: #eef2ff;
    font-family: arial, helvetica, sans-serif;
    margin: 0;
    padding: 20px;
}

header {
    background-color: #d6daf0;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

.create-post {
    background-color: #d6daf0;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.create-post form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input[type="text"], textarea {
    padding: 8px;
    border: 1px solid #b7c5d9;
    border-radius: 3px;
    font-size: 14px;
}

button {
    background-color: #34345c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
}

button:hover {
    background-color: #1e1e38;
}

.thread {
    background-color: white;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #b7c5d9;
    border-radius: 5px;
}

.thread-header, .reply-header {
    color: #717171;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.thread-id, .reply-id {
    color: #34345c;
    font-weight: bold;
}

.thread-date, .reply-date {
    margin-left: 10px;
}

.thread-image, .reply-image {
    max-width: 300px;
    max-height: 300px;
    margin: 10px 0;
}

.replies {
    margin-left: 20px;
    margin-top: 15px;
    border-left: 2px solid #d6daf0;
    padding-left: 15px;
}

.reply {
    background-color: #f0e0d6;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 3px;
}

.reply-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #d6daf0;
}

.reply-form textarea {
    width: 100%;
    min-height: 60px;
    margin-bottom: 10px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.rules-list {
    margin: 15px 0;
    padding-left: 20px;
}

.rules-list li {
    margin-bottom: 10px;
    line-height: 1.4;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.read-rules-button {
    background-color: #34345c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 10px;
}

.read-rules-button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.search-bar {
    background-color: #d6daf0;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.tag {
    background-color: #34345c;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    cursor: pointer;
}

.tag.selected {
    background-color: #1e1e38;
}

.thread-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.thread-type-option {
    padding: 5px 10px;
    border: 1px solid #34345c;
    border-radius: 3px;
    cursor: pointer;
}

.thread-type-option.selected {
    background-color: #34345c;
    color: white;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.thread-tags {
    display: flex;
    gap: 5px;
    margin: 5px 0;
}

.thread-tag {
    background-color: #d6daf0;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.8em;
}