#comment-button {
    padding: 0.5rem 1rem;
    color: #fff;
    background-color: #485fc7;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    border-radius: 0.25rem;
    display: none;
    position: absolute;
}

#comment-button:hover {
    transform: scale(1.05);
}

/*new*/
.comment-thread-container {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
    /* ensure no text overflow by wrapping text */
    /* position: absolute; */
    word-wrap: break-word;
    transform: scale(1.0);
    z-index: 1000;
    display: absolute;
    min-width: 225px;
}

.hover {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.comment-thread-container:empty {
    display: none;
}

.comment-thread-container:not(:has(*)) {
    /* make sure this overrides any other styles */
    display: none !important;
}

.reply-container {
    margin-top: 10px;
    margin-left: 5px;
    margin-bottom: 10px;
    padding: 5px 0px 5px 10px;
    border-left: 2px solid #ccc;
}

.reply-container:empty {
    display: none;
}

/* align all the comment actions to the right */
.comment-actions-container {
    display: flex;
    justify-content: flex-end;
}

.comment-user {
    font-weight: bold;
    color: #485fc7;
}

.comment-date {
    font-size: small;
    color: #7f8c8d;
}

.highlighted-text {
    background-color: #c0cbeb;
    padding: 2px 0px;
    border-radius: 5px;
}

.highlighted-text:hover {
    background-color: #b19ed4;
    transition: all 0.3s ease;
    cursor: pointer;
}

.low-opacity {
    opacity: 0.5;
    transition: background-color 0.3s ease;
}

.comment-wrap {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.comment-textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 8px;
    resize: vertical;
    /* Allow vertical resizing, none to disable */
}

.comment-submit-button,
.comment-cancel-button {
    padding: 8px 16px;
    margin-right: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comment-submit-button {
    background-color: #3498db;
    color: white;
}

.comment-cancel-button {
    background-color: transparent;
    color: #3498db;
}

.hidden {
    display: none;
}

.comment-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}