.bu-primary{
    color: #2cb42c;
    padding: 4px 24px;
    border-radius: 6px;
    border: 1px solid #2cb42c;
    font-family: var(--general-sans-600);
    font-size: 14px;
}
.bu-primary:hover {
    background: #2cb42c;
    color: white;
}
.comment-section{
    padding: 0 1rem;
}
.container{
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #fff;
}
.comments-wrp {
    display: flex;
    flex-direction: column;
}

.comment{
    margin-bottom: 1rem;
    display: grid;
    grid-template-areas:
        "comment-pic user controls"
        "comment-pic comment comment"
        "comment-pic comment comment"
;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    row-gap: 1rem;
    border-bottom: 1px solid var(--stroke-gray);
}
.comment-image-picture {
    grid-area: comment-pic;
}
.c-text{
    grid-area: comment;
    width: 100%;
}
.c-user{
    width: 100%;
    grid-area: user;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.usr-name{
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.usr-img{
    height: 2rem;
    width: 2rem;
    border-radius: 9999px;
    overflow: hidden;
}

.c-controls{
    display: flex;
    gap: 1rem;
    grid-area: controls;
    align-self: center;
    justify-self: flex-end;
}
.c-controls a{
    align-items: center;
    cursor: pointer;
}
.edit{
    display: none;
}
.delete{
    color: var(--stroke-red);
    display: none;
}
.control-icon{
    margin-right: .5rem;
    height: 16px;
    width: 16px;
    aspect-ratio: 1/1;
}

.replies{
    display: flex;
    margin-left: 2.5rem;
    padding-left: 2.4rem;
    border-left: 3px solid var(--stroke-gray);
}

.reply-to{
    color: cornflowerblue;
    font-family: var(--general-sans-500);
}

.reply-input{
    display: grid;
    margin-bottom: 1rem;
    grid-template-areas: "avatar input button";
    grid-template-columns: min-content auto min-content;
    justify-items: center;
    gap: 1rem;
    min-height: 9rem;
}
.reply-input img{
    grid-area: avatar;
    height: 2.5rem;
    width: 2.5rem;
}
.reply-input button{
    grid-area: button;
    align-self: flex-start;
}
.reply-input textarea{
    grid-area: input;
    padding: 1rem;
    width: 100%;
    border: 1px solid var(--stroke-gray);
    border-radius: 4px;
    resize: none;
}

.this-user .usr-name::after{
    font-weight: 400;
    content: "you";
    color: #fff;
    background-color: #2cb42c;
    padding: 0 .4rem;
    padding-bottom: .2rem;
    font-size: .7rem;
    margin-left: .5rem;
    border-radius: 2px;
}

.reply {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--general-sans-500);
}

.this-user .reply{
    display: none;
}
.this-user .edit , .this-user .delete{
    display: flex;
}

@media screen and (max-width:640px) {
    .container{
        padding: .75rem;
    }
    .replies{
        padding-left: 1rem;
        margin-left: .5rem;
    }
    .comment{
    /*    grid-template-areas:*/
    /*        "user user user"*/
    /*        "comment comment comment"*/
    /*        "score ... controls"*/
    /*;*/

        gap: .5rem;
    }
    .c-score{
        flex-direction: row;
        width: auto;
    }
    .reply-input{
        grid-template-areas:
            "input input input"
            "avatar ... button"
    ;
        grid-template-rows: auto min-content;
        align-items: center;
        gap: .5rem;
    }
    .reply-input img{
        height: 2rem;
        width: 2rem;
    }
    .reply-input textarea{
        height: 6rem;
        padding: .5rem;
        align-self: stretch;
    }
}


.modal-wrp{
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,.3);
}

.modal{
    padding: 1.5rem;
    max-width: 32ch;
    display: grid;
    gap: 1rem;
    grid-template-areas:
    "heading heading"
    "body body"
    "no yes";
}

.invisible{
    display: none;
}

.modal h3{
    grid-area: heading;
    color: cornflowerblue;
    font-family: var(--general-sans-500);
    font-size: 18px;
}
.modal button{
    color: white;
    padding: .5rem;
    border-radius: 8px;
    border: none;
}
.modal p{
    grid-area: body;
    line-height: 1.5;
}
.modal .yes{
    grid-area: yes;
    background: var(--red-gradient-button);
    font-family: var(--general-sans-500);
    font-size: 14px;
}
.modal .no{
    background-color: cornflowerblue;
    grid-area: no;
    font-family: var(--general-sans-500);
    font-size: 14px;
}

@media screen and (max-width: 640px) {
    .comment-section{
        max-width: 75ch;
        margin: 1rem auto auto;
    }
    .c-user, .c-controls{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: start;
    }
    .c-controls{
        gap: 4px;
    }
    .c-text{
        font-size: 14px;
    }
    .cmnt-at {
        font-size: 12px;
    }
}
