.qa_table hr, #qa_grid hr {
    margin-top: 10px;
    margin-bottom: 10px
}

.filter_qa_input {
    margin-bottom: 15px;
}

.qa_input {
    width: 95%;
    min-width: 220px
}

.qa_input_details {
    margin-top: 10px;
    overflow: hidden
}

.qa_votes, .qa_votes_test {
    width: 50px;
    text-align: center
}

td:has(> span.votes-answer) {
    color: #666;
}

.qa_votes i, .qa_votes_test i {
    font-size: 24px
}

.qa_votes .votes-count, .qa_votes_test .votes-count {
    display: block;
    font-weight: 700
}

.qa_votes .votes-title, .qa_votes_test .votes-title {
    display: block;
    padding-bottom: 5px
}

.qa_table tr,.qa_table td, .qa_table .qa-row, .qa_table .qa-item,
#qa_grid tr,#qa_grid td, #qa_grid .qa-row, #qa_grid .qa-item {
    border: none!important;
    padding: 0 8px!important;
    line-height: 1.75!important
}

.qa_table .glyphicon-thumbs-up,.glyphicon-thumbs-down {
    cursor: hand;
    cursor: pointer
}

.qa_table .star, #qa_grid .star {
    content: url("https://cdn.architecturaldepot.com/scripts/star-fill.svg");
    margin: 5px 0 0;
    font-size: 24px;
    filter: invert(27%) sepia(96%) saturate(3576%) hue-rotate(349deg) brightness(91%) contrast(87%);
    /* grab filter color here https://isotropic.co/tool/hex-color-to-css-filter/ */
}

.qa_table .star-empty, #qa_grid .star-empty {
    content: url("https://cdn.architecturaldepot.com/scripts/star-fill.svg");
    margin: 5px 0 0;
    font-size: 24px;
    filter: invert(64%) sepia(0%) saturate(2490%) hue-rotate(193deg) brightness(117%) contrast(119%);
}

.qa_votes .thumbs-up, .qa_votes_test .thumbs-up {
    content: url("https://cdn.architecturaldepot.com/scripts/thumbs-up.svg");
    width: 27px;
    position: relative;
    top: 4px;
    cursor: pointer;
}

.qa_votes .thumbs-down, .qa_votes_test .thumbs-down {
    content: url("https://cdn.architecturaldepot.com/scripts/thumbs-down.svg");
    width: 27px;
    position: relative;
    top: 5px;
    cursor: pointer;
}

.qa_table .comment-link, #qa_grid .comment-link {
    font-size: 15px;
}

#show_more {
    margin-bottom: 20px;
}

.btn-warning {
    background-color: #A9650F;
    margin-bottom: 10px;
    background-image: none;
}

.btn-warning:hover {
    background-image: none;
}

.btn-success {
    background-color: #378637;
}



#qa_grid {
    display: grid;
    /* grid-template-rows: repeat(2 100px); */
    /* "auto-fit" for responsive design */
    grid-template-rows: minmax(150px, 1fr);
    grid-template-columns: minmax(100px, 1fr);
    grid-auto-rows: minmax(150px, 1fr);
}

.qa_row {
    display: flex;
    border-bottom: 1px dashed #DDD;
    margin: 10px 0;
    gap: 10px;
}

.qa_votes_test {
    display: inline-block;
    width: 50px;
    text-align: center;
}

.qa_main_content {
    display: inline-block;
    max-width: 90%;
}
@media (max-width: 767px) {
    .qa_main_content {
        max-width: 75%;
    }
}



/* Answer Question Email Modal */
.qa-answer-email-container {
    padding: 0 25px;
}

.qa-answer-email-container .close-button {
    float: right;
    margin-top: 14px;
}

.qa-answer-email-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qa-answer-email-container .img-desc-segment {
    width: 100%;
    display: flex;
}

.qa-answer-email-container .img-container {
    width: 30%;
    max-width: 190px;
}

.qa-answer-email-container img {
    width: 90%;
}

figcaption.desc {
    margin-top: 20px;
}

.desc-question-container {
    display: flex;
    flex-direction: column;
    margin-left: 3%;
    width: 100%;
}

.qa-answer-email-container .desc-container {
    margin-bottom: 15px;
}

.qa-answer-email-container .desc-container, .qa-answer-email-container .question-container {
    width: 80%;
}

.qa-answer-email-container section {
    display: flex;
}

.qa-answer-email-container .desc-container .desc {
    width: 200px;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0px 0px 0px 3px;
  }

.qa-answer-email-container .answer-container {
    width: 100%;
    margin-top: 100px;
}

.qa-answer-email-container textarea {
    resize: none;
    width: 100%;
    height: 250px;
    border: solid;
    font-family: archivo,sans-serif;
    overflow: auto;
}

.qa-answer-email-container .btn-primary {
    padding: 0.375rem 0.75rem;
    background-color: #0069d9;
    max-width: 260px;
    font-weight: bold;
    border-radius: 0px;
    font-size: 24px;
    float: left;
    margin: 22px 0px 35px;
    width: 100%;
}

.qa-answer-email-container .btn-primary:hover {
    background-color: #245987;
    cursor: pointer;
}

@media(max-width: 768px) {
    .votes-question {
        padding: 7px 10px 7px 0;
    }
    
    .btn-warning {
        padding: 4px 5px;
        margin-left: 8px;
    }

    .qa-answer-email-container .img-desc-segment {
        flex-direction: column;
    }

    .qa-answer-email-container .img-container {
        width: 100%;
        max-width: 100%;
        display: flex;
        margin-bottom: 20px;
    }

    .qa-answer-email-container img {
        max-width: 50px;
        margin-right: 5px;
    }

    figcaption.desc {
        margin: 0px;
    }
}






/* The Modal (background) */
#qa-answer-modal, #three-dimensional-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    padding-top: 20px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow-y: scroll; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    z-index: 99999999;
  }
  
  /* Modal Content */
  #qa-answer-modal .modal-content {
    width: 95%;
    max-width: 992px;
    height: fit-content;
    padding-bottom: 20px;
    overflow-y: auto;
    position: relative;
    background-color: #fefefe;
    margin: auto;
    border: 1px solid #888;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
  }
  
  /* Add Animation */
  @-webkit-keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top:0; opacity:1}
  }
  
  @keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
  }
  
  /* The Close Button */
  #qa-answer-modal .close-button {
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  #qa-answer-modal .close-button:hover,
  #qa-answer-modal .close-button:focus {
    text-decoration: none;
    cursor: pointer;
  }
  
  #qa-answer-modal .modal-header {
    padding: 2px 16px;
  }
  
  #qa-answer-modal .modal-body {padding: 2px 16px;}
  
