* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    margin: 0;
}

.navbar {
    background-color: rgb(126, 0, 0);
    width: 100%;
    padding: 15px 20px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    width: 200px;
    cursor: pointer;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar .nav-links li {
    margin: 0 15px;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.navbar .nav-links a:hover {
    text-decoration: underline;
}

.start-chat-container {
    text-align: right; 
    padding: 10px 20px;
    background-color: white;
    margin-top: 10px;
}

.start-chat-button {
    background-color: rgb(126, 0, 0);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
}

.start-chat-button:hover {
    background-color: darkred;
}

.post-container {
    display: flex;
    padding: 20px;
    margin-top: 20px;
}

.left-div {
    width: 30%;
    margin-right: 20px;
    text-align: center;
}

.left-div .book-cover {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.book-cover {
    width: 100%;
    max-width: 300px;
    margin-top: 10px;
}

.right-div {
    width: 70%;
}

.right-div h2, .right-div h3 {
    margin: 10px 0;
}

.comments-section {
    margin-top: 20px;
}

.comment-input {
    margin-top: 10px;
}

#comment-text {
    width: 100%;
    height: 60px;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 10px;
}

#submit-comment {
    margin-top: 10px;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: rgb(126, 0, 0);
    color: white;
    cursor: pointer;
}

#submit-comment:hover {
    background-color: darkred;
}

.description-container,
.category-container,
.condition-container {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    background-color: #f9f9f9;
}

.description-container h3,
.category-container h3,
.condition-container h3 {
    margin: 0;
    color: rgb(126, 0, 0);
}

.comments-section {
    width: 100%; /* Full width of the parent container */
    margin-top: 20px; /* Add space above the section */
    padding: 20px; /* Add inner padding for better spacing */
    background-color: #f9f9f9; /* Light background to distinguish the section */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for emphasis */
}

.comments-section h3 {
    margin-bottom: 10px; /* Space below the header */
}

.comment-input {
    margin-top: 20px; /* Space above the input form */
}

.comment-input textarea {
    width: 100%; /* Full width textarea */
    min-height: 100px; /* Adequate height for writing */
    padding: 10px; /* Inner padding for better usability */
    border: 1px solid #ccc; /* Light border */
    border-radius: 5px; /* Rounded corners */
    font-size: 14px; /* Standard font size */
    resize: vertical; /* Allow resizing only vertically */
}

.comment-input button {
    margin-top: 10px; /* Space above the button */
    padding: 10px 20px; /* Button size */
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
}

.comment-input button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

#comment-view {
    list-style-type: none; /* Remove bullets */
    padding: 0; /* Remove padding */
}

#comment-view li {
    margin-bottom: 20px; /* Space between comments */
    border-bottom: 1px solid #ddd; /* Light border below each comment */
    padding-bottom: 10px; /* Padding for better spacing */
}

#comment-view li p {
    margin: 5px 0; /* Space between username and comment text */
}

.comment-input form {
    display: flex;
    flex-direction: column; /* Stack the textarea and button */
}
