
/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Styling */
h1#top {
    background-color: #ffffff;
    color: #007bff;
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* Container for all posts */
.post-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    padding: 10px 20px;
    box-sizing: border-box;
}

/* Styling for each post and reply */
#topic, #reply1, #reply2 {
    background-color: #e7f3ff;
    border: 1px solid #cfe2ff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    min-height: 20px; /* Ensures the box is visible even when empty */
    word-wrap: break-word; /* Prevents long text from overflowing */
}

/* Differentiate the main topic from replies */
#topic {
    background-color: #d1e7fd;
    border-color: #b6d4fe;
    font-weight: bold;
}

/* Textarea for user input */
textarea#message {
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    padding: 15px;
    border: 1px solid #ccd0d5;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 20px;
    resize: vertical; /* Allow vertical resizing */
    min-height: 80px;
}

/* Container for buttons */
.button-container {
    display: flex;
    gap: 10px; /* Creates space between buttons */
    margin-top: 10px;
    width: 100%;
    max-width: 800px;
    justify-content: flex-end;
}

/* General Button Styles */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

button:hover {
    opacity: 0.9;
}

button:active {
    transform: scale(0.98); /* Slightly shrink button on click */
}

/* Specific styles for Post button */
button[onclick="postFunction()"] {
    background-color: #007bff;
    color: white;
}

/* Specific styles for Clear button */
button[onclick="clearFunction()"] {
    background-color: #6c757d;
    color: white;
}