/* =========================================
   PAGE
   ========================================= */

body {

    margin: 0;

    padding: 30px;

}

.reddit-icon {
    transition: transform 0.2s ease;
}

.reddit-icon:hover {
    transform: scale(1.2);
}


/* =========================================
   MAIN CONTAINER
   ========================================= */

.comments-container {

    margin: 0 auto;

}


/* =========================================
   SUBMISSION
   ========================================= */

.submission {


}


.submission h1 {


}


.submission-meta {

    color: #787c7e;

    font-size: 13px;

}


/* =========================================
   COMMENT CONTROLS
   ========================================= */

.comment-controls {

    display: flex;

    gap: 8px;

    margin-bottom: 20px;

}


.comment-controls button {

    border: 1px solid #d7d7d7;


    border-radius: 4px;

    padding: 6px 12px;

    font-size: 13px;

    cursor: pointer;

}


.comment-controls button:hover {

    background: #f5f5f5;

}


/* =========================================
   COMMENTS
   ========================================= */

.comments {

    width: 100%;

}


/* =========================================
   MAIN COMMENT THREAD
   ========================================= */

.comment-thread {

    position: relative;

}


/*
   Fine horizontal line before
   every MAIN comment.
*/

.main-comment {

    border-top: 1px solid #d7d7d7;

    padding-top: 14px;

}


/* =========================================
   COMMENT
   ========================================= */

.comment {

    position: relative;

    padding: 5px 0 12px 0;

}


/* =========================================
   COMMENT HEADER
   ========================================= */

.comment-header {

    display: flex;

    align-items: center;

    gap: 5px;

    font-size: 12px;

    color: #787c7e;

}


.author {

    font-weight: 600;

    color: #555;

}


.separator {

    color: #999;

}


.datetime {

    color: #787c7e;

}


/* =========================================
   COLLAPSE BUTTON
   ========================================= */

.collapse-button {

    width: 18px;

    height: 18px;

    padding: 0;

    margin-right: 2px;

    border: none;

    background: transparent;

    color: #878a8c;

    font-size: 16px;

    font-weight: bold;

    line-height: 18px;

    cursor: pointer;

}


.collapse-button:hover {

    color: #1a1a1b;

}


/* =========================================
   COMMENT BODY
   ========================================= */

.comment-body {

    margin-left: 25px;

    margin-top: 8px;

    font-size: 14px;

    line-height: 1.55;

    white-space: normal;

}


/* =========================================
   COMMENT FOOTER
   ========================================= */

.comment-footer {

    display: flex;

    gap: 14px;

    margin-left: 25px;

    margin-top: 8px;

    color: #878a8c;

    font-size: 12px;

}


.comment-footer span {

    cursor: pointer;

}


.comment-footer span:hover {

    text-decoration: underline;

}


/* =========================================
   REPLIES
   ========================================= */

.replies {

    margin-left: 25px;

    padding-left: 14px;

    border-left: 2px solid #edeff1;

}


/*
   Nested replies become progressively
   indented.
*/

.replies .replies {

    margin-left: 25px;

}


/* =========================================
   COLLAPSED REPLIES
   ========================================= */

.replies.collapsed {

    display: none;

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    body {

        padding: 15px;

    }


    .comments-container {

        width: 100%;

    }


    .comment-body {

        margin-left: 20px;

        font-size: 14px;

    }


    .comment-footer {

        margin-left: 20px;

    }


    .replies {

        margin-left: 12px;

        padding-left: 10px;

    }


    .replies .replies {

        margin-left: 12px;

    }

}

.author {
    display: inline-flex;
    align-items: center;
}

.author-badge {
    display: none;

    width: 20px;
    height: 10px;

    background-color: #ffc107;

    border-radius: 2px;
}

.author-badge:first-child {
    margin-right: 6px;
}

.author-badge:last-child {
    margin-left: 6px;
}

.commenter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.author-more-btn {
    position: relative;
    border: none;
    background: none;
    color: inherit;
    padding: 0;
    cursor: pointer;
}

.author-more-btn::after {
    content: "Comment History";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 5px;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    display: none;
    z-index: 1000;
}

.author-more-btn:hover::after {

    display: block;
}

.author-more-btn {
    border: none;
    background: none;
    color: inherit;
    padding: 0;
    cursor: pointer;
}