/* Custom Styles for the Bulletin Board */
body {
    background-color: #1a202c;
    color: #ffffff;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.max-w-3xl {
    max-width: 48rem;
    width: 100%;
    height: 80vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-grow {
    flex-grow: 1;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-24 {
    width: 6rem;
}

.h-24 {
    height: 6rem;
}

.w-full {
    width: 100%;
}

.p-2 {
    padding: 0.5rem;
}

.border {
    border-width: 1px;
}

.border-gray-600 {
    border-color: #4a5568;
}

.rounded {
    border-radius: 0.25rem;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.text-white {
    color: #ffffff;
}

.bg-gray-800 {
    background-color: #2d3748;
}

.bg-gray-900 {
    background-color: #1a202c;
}

.bg-gray-700 {
    background-color: #4a5568;
}

.bg-gray-600 {
    background-color: #2a303c;
}

.bg-opacity-50 {
    background-color: rgba(45, 55, 72, 0.5);
}

.bg-white {
    background-color: #ffffff;
}

.p-6 {
    padding: 1.5rem;
}

.rounded {
    border-radius: 0.25rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.max-w-sm {
    max-width: 24rem;
}

.cursor-pointer {
    cursor: pointer;
}

.hidden {
    display: none;
}

.overflow-y-auto {
    overflow-y: auto;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

textarea {
    resize: none;
    height: 2.5rem; /* Adjust height to fit one line of text */
}

.post-box {
    background-color: #374151;
    position: relative;
}

.delete-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #4a5568; /* Same as other buttons */
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}

.delete-button:hover {
    background-color: #2a303c; /* Same hover effect as other buttons */
}

/* Custom scrollbar styles */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a202c;
}

::-webkit-scrollbar-thumb {
    background-color: #4a5568;
    border-radius: 20px;
    border: 3px solid #1a202c;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #3b82f6;
}

#imagePreview img {
    max-width: 100px; /* Limit the preview image size */
    height: auto;
    border-radius: 0.25rem;
}

button.w-24 {
    width: 6rem; /* Adjust button width */
}

button.bg-gray-700 {
    background-color: #4a5568;
}

button.bg-gray-700:hover {
    background-color: #2a303c;
}
