/*
The comment form and layout styling
*/

$comments-background: url("img/stressed.png");
$comments-input-focus: #EEE8AA;
$comment-input-width: 50%;
$comments-input-height: 35px;

#comments {
    background: $comments-background;
    padding:10px;
}

/* The form*/
#respond {

    form {
        margin-top: 20px;
        border-top: 2px solid #ddd;
    }

    .comment-form-comment label, .comment-form-author label, .comment-form-comment label, 
    .comment-form-email label, .comment-form-url label {
        display: block;
    }

    form textarea {
        width: 100%;
        padding: 5px;   
        color: black;
    }
    
    form textarea:focus, input:focus{
        background: $comments-input-focus;
    }
    
    input#author, input#email, input#url{
        width: $comment-input-width;
        height: $comment-input-height;
        box-sizing: border-box;
    }
    
}

/*Comments layout*/
#comments {
    h2.comments-title {
        padding: 0 10px;
        font-size: 2.1rem;
        span {
            font-size: 2.1rem;
        }
    }
    .comment-list {
    padding: 0;
    .even {
        background: #232121;
        overflow: hidden;
    }
    .odd {
        background: green;
        overflow: hidden;
        background: #2d2b2b;
        margin: 10px 0;
    }

    .comment-content {
        clear: both;
        margin-top: 10px;
    }
    .comment-meta {
        padding-bottom: 5px;
        overflow: hidden;
        border-bottom: 1px solid #ddd;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        .comment-metadata  {
                  text-align: left;
        }
        .comment-author { 
            b.fn {
                 font-size: 1.7rem;
                 margin-left: 10px;
           }
       }
    } // end of comment-meta
    
    ol.children {
        padding-left: 0;
    }
     ol.children li{
        height: auto;
    }
    .depth-2 {
        padding-left: 10px;
    }
 
    .depth-3 {
        padding-left: 20px;
    }    
    
      .depth-4 {
        padding-left: 20px;
    }  
      .depth-5 {
        padding-left: 20px;
    }  
    
/*Styling the post author comments    */

    .bypostauthor article .comment-content {
        color: #FFD700;
    }
 // styling the subsequent comments differently   
    .bypostauthor .children article .comment-content  {
        color: white;
    }
     
    .comment-awaiting-moderation {
        color: green;
    }
    
} // end of  .comment-list
} // end of #comments