.comment:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
    margin: 10px 0px;
}

.comment {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease-in-out;
}

.comments {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.hidden {
    visibility: hidden;
}

.commentForm:empty,
.comments:empty, 
.commentArea:empty,
.commentHeader:empty,
.imageHeader:empty,
.galleries:empty,
.gallery:empty {  /* https://developer.mozilla.org/en-US/docs/Web/CSS/:empty */
    display: none;
}

.commentArea:not(:has(> :not(:empty))) {  /* Finds the commentArea div that has 0 non-empty direct children
                                                https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_cascade/Specificity#the_is_not_has_and_css_nesting_exceptions
                                                https://developer.mozilla.org/en-US/docs/Web/CSS/:is
                                                https://developer.mozilla.org/en-US/docs/Web/CSS/:has
                                                https://developer.mozilla.org/en-US/docs/Web/CSS/:not
                                                https://developer.mozilla.org/en-US/docs/Web/CSS/Child_combinator */

    display: none;
}

.commentForm {
    margin: 0 auto 30px auto; 
}

.commentUsername {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 18px;
}

.commentContent {
    margin-bottom: 8px;
    font-size: 20px;
    color: #333;
}

.commentDate {
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
}

#commentAction {
    display: flex;
    justify-content: right;
}
