body {  
    font-family: Arial, sans-serif;
    background: url('images/1600w-bVG65uJJ1c8.webp') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 80%;
    margin: auto;
    background: rgb(48, 48, 48);
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.container, p
{
    color: white;
}

.header {
    background: #3167a6;
    padding: 10px;
    text-align: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.buttons {
    text-align: right;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn {
    background: #1f456c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    margin-left: 10px; /* Add margin to separate the buttons */
}

.post {
    display: flex;
    border: 1px solid #ddd;
    margin-top: 29px;
    background: rgb(77, 77, 77);
    padding: 10px;
    border-radius: 10px;
    position: relative;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
}

.profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.profile-info {
    text-align: center;
}

.profile-info strong {
    color: white;
    display: block;
}

/* Ensure the content container adjusts height dynamically */
.content {
    padding: 10px;
    flex: 1;
    word-wrap: break-word; /* Break long words to prevent overflow */
    overflow-wrap: break-word; /* Ensure long words wrap properly */
    max-height: 300px; /* Optional: Set a maximum height for the container */
    overflow-y: auto; /* Add a vertical scrollbar if the content exceeds the max height */
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent background for better readability */
    border-radius: 5px; /* Add rounded corners */
    padding: 10px;
    color: white;
}

/* Add a scrollbar style for better appearance */
.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5); /* Light scrollbar thumb */
    border-radius: 4px;
}

.content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7); /* Slightly darker on hover */
}

.photo {
    width: 35%;
    height: auto;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Ensure the image fits nicely */
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: rgba(255, 255, 255, 0.9); /* Slightly transparent background */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1;
    white-space: nowrap; /* Prevent line breaks */
}

.dropdown a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.dropdown a:hover {
    background: #f4f4f4;
}

.profile-menu:hover .dropdown {
    display: block;
}

.success {
    color: green;
}

.error {
    color: red;
}

.timestamp {
    font-size: 9px;
    color: gray;
}

.strong {
    color: white;
}

.delete-btn {
    background-color: #ff0000; 
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.edit-btn {
    background-color: #0000ff; 
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.menu {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.menu .dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px; /* Add margin to separate the dots from the buttons */
}

.menu .dots span {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    margin: 2px 0;
}

.menu .dropdown {
    display: none;
    position: absolute;
    top: -10px; /* Ensure it aligns properly below the dots */
    right: 15px;
    background: rgba(48, 48, 48, 0.95); /* Match the container background */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1;
    white-space: nowrap; /* Prevent line breaks */
    padding: 5px; /* Add slight padding for better spacing */
}

.menu:hover .dropdown {
    display: flex;
    flex-direction: column; /* Ensure buttons stack vertically */
    align-items: flex-start; /* Align buttons to the left */
}

.menu .dropdown button {
    background: none;
    color: white;
    border: none;
    padding: 5px 10px;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    border-radius: 5px;
    width: 100%; /* Ensure buttons take full width of the dropdown */
    text-align: left; /* Align text to the left */
}

.menu .dropdown button:hover {
    background: rgba(255, 255, 255, 0.1); /* Add a subtle hover effect */
}

.image-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f4f4f4;
    padding: 10px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 5px;
    object-fit: contain;
}


