/*
The comment form and layout styling
*/

$comments-background: #fff;
$comments-input-focus: #eee;
$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: fff;
    }
    
    form textarea:focus, input:focus{
        background: $comments-input-focus;
    }
    
    input#author, input#email, input#url{
        width: $comment-input-width;
        height: $comments-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 {
        color: #000;
        background: #fff;
        overflow: hidden;
    }
    .odd {
        background: green;
        overflow: hidden;
        color: #000;
        background: #fff;
        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: #000;
    }
 // styling the subsequent comments differently   
    .bypostauthor .children article .comment-content  {
        color: white;
    }
     
    .comment-awaiting-moderation {
        color: green;
    }
    
} // end of  .comment-list
} // end of #comments