.forum-wrapper{
    padding-bottom: 60px;
}

a:hover, button:hover{
    text-decoration: underline;
}

button.add-new-ad:hover{
    text-decoration: none;
}

.main-category{
    background: #f1f1f1;
    border: 1px solid #f1f1f1;
    border-radius: 4px;
    padding: 10px 10px;;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    -webkit-transition: all .4s;
    transition: all .4s
}
.main-category:hover{
    background: #fefefe;
}
.main-category .cat-forum-left{
    display: flex;
    align-items: center;
    padding-left: 5px;
}
.main-category .cat-forum-left img{
    width: 100px;
    height: 60px;
    margin-right: 10px;
    margin-right: 10px;
    margin-left: -10px;
    margin-top: -5px;
    margin-bottom: -5px;
    border-radius: 3px;
}
.main-category h4{
    margin: 0px;
    font-family: 'Verdana';
    font-size: 1rem;
    font-weight: bold;
}
.main-category .cat-forum-left p{
    margin: 0px;
    margin-top: 5px;
    color: #999;
    font-size: 0.8rem;
}
.main-category.active {
    background: #fff;
    border-color: #999;
}

.main-category.active h4 a {
    font-weight: bold;
    color: #393939;
}


.cat-forum-right{
    display: flex;
    color: #999;
}
.cat-forum-right span{
    display: flex;
    align-items: center;
    margin-right: 15px;
}
.cat-forum-right img{
    filter: invert(68%) sepia(0%) saturate(242%) hue-rotate(228deg) brightness(92%) contrast(84%);
    margin-right: 5px;
}

.cat-forum-left a{
    color: #393939;
}

.last-topics h2{
    text-align: left;
    margin-top: 30px;
    text-transform: uppercase;
    font-size: .8rem;
    padding-bottom: 10px;
    position: relative;
    margin-bottom: 15px;
    font-family: Verdana;
    font-weight: bold;
}

.last-topics h2:after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 65px;
    height: 5px;
    background: #ff0032;
    border-radius: 3px;
}

.forum-wrapper form{
    width: 500px;
    margin: 0 auto;
}

.topics-field{
    width: 100%;
    height: 50px;
    position: relative;
    display: flex;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    -moz-align-items: baseline;
    align-items: baseline;
    margin-bottom: 20px;
    padding: 0;
    border-bottom: 1px solid #0f0b07;
}

.topics-field input, .topics-field select{
    width: 100%;
    height: 100%;
    padding-top: 15px;
    color: #0f0b07;
    font-size: .875rem;
    background-color: transparent;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    border: none;
    outline: 0;
    font-size: 0.875rem;
    font-family: 'Verdana';
}

.topics-field-text textarea {
    width: 100%;
    padding: 5px;
    outline: 0;
    color: #0f0b07;
    border-radius: 4px;
    overflow: auto;
    box-sizing: border-box;
    min-height: 120px;
}

.topics-field span{
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 5px;
    pointer-events: none;
    color: #0f0b07;
    font-size: 1rem;
}

.topics-field:focus .field-label-content{
    color: red;
}

.forum-form .button-dark{
    width: 200px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.forum-form .field-label-content{
    font-size: 0.875rem;
}

.forum-form .w2g{
    display: none !important;
}

.forum-form .field:focus+.field-label .field-label-content{
    top: 55%;
}

.forum-form select:focus{
    border: 0px !important;
}

.forum-wrapper .forum-form{
    margin-top: 40px;
}

.theme-preview{
    background: #F9F9F9;
    border-radius: 3px;
    border: 1px solid #b8b8b8;
    margin-top: 10px;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.theme-preview .cat-forum-left{
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.theme-preview .cat-forum-left span{
    margin: 0px;
    margin-bottom: 5px;
    color: #999;
    font-size: 0.8rem;
}

.theme-preview .cat-forum-left h3{
    margin: 0px;
    margin-bottom: 5px;
    font-family: 'Verdana';
    font-size: 1rem;
    color: #393939;
    font-weight: bold;
}

.forum-wrapper .send-news-box p a{
    color: #ff0032;
    font-family: 'Verdana';
}

.main-category.main-category-sub .cat-forum-left{
    padding-left: 0px;
}

/*Theme preview*/

.topic-name{
    text-align: left;
    margin-bottom: 10px;
}

.topic-box{
    /* border: 1px solid #f1f1f1; */
    border-radius: 4px;
}

.topic-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
    background: #f1f1f1;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.topic-header div{
    display: inline-flex;
}

.topic-header p{
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    padding-left: 15px;
}

.topic-header p img{
    margin-right: 5px;
    filter: invert(68%) sepia(0%) saturate(242%) hue-rotate(228deg) brightness(92%) contrast(84%);
}

.topic-content{
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #f1f1f1;
}

.topic-content p{
    width: 100%;
    text-align: left;
    font-size: 0.8rem;
    margin-top: 0px;
}

.topic-image-container{
    display: -ms-grid;
    display: grid;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 10px;
}

.single-comment .topic-footer{
    border: 0px;
    border-top: 1px solid #f1f1f1;
    background: #fafafa;
}

.topic-image-container img{
    width: 100%;
    border-radius: 3px;
    max-width: 400px;
    margin: 0 auto;
}

.tpuser-info{
    position: relative;
    display: flex;
    text-align: left;
    margin-bottom: 15px;
}

.tpuser-info h5{
    margin: 0px;
    font-weight: normal;
    font-size: 0.7rem;
}

.topic-content .tpuser-info p{
    margin-bottom: 0px;
    font-size: 1rem;
    position: relative;
}

.topic-content .tpuser-info p span{
    font-size: 0.75rem;
    margin: 0px;
    position: absolute;
    color: #ff0032;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    top: 3px;
}

.topic-content .tpuser-info p span img{
    filter: invert(10%) sepia(92%) saturate(7373%) hue-rotate(345deg) brightness(100%) contrast(103%);
    padding-left: 5px;
    margin: 0px;
}

.tpuser-info span{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 10px;
    justify-content: space-around;
}

.tpuser-info h5 b{
    position: relative;
    width: 15px;
    display: inline-block;
}

.tpuser-info h5 b:after{
    content: '.';
    color: #393939;
    width: 2px;
    font-size: 25px;
    bottom: -5px;
    position: absolute;
    left: 4px;
}

.tppost-data{
    position: relative;
    display: flex;
    text-align: left;
    margin-bottom: 15px;
}

.tppost-data h4{
    color: #999;
    margin: 0px;
    font-weight: normal;
}

.tppost-data h4 span{
    display: inline-flex;
    border: 1px solid #999;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.topic-footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
    align-items: center;
    border-left: 1px solid #f1f1f1;
    border-right: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding-top: 15px;
    padding-bottom: 15px;
    position: relative;
    background: #fafafa;
}

.topic-footer div{
    display: flex;
}

.topic-footer a{
    border: 0px;
    background: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Verdana';
    padding: 0px;
    color: #393939;
    margin-right: 20px;
    font-size: 0.8rem;
}

.topic-footer button{
    border: 0px;
    background: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Verdana';
    padding: 0px;
    color: #393939;
}

.topic-footer a img, .topic-footer button img{
    margin-right: 5px;
}

.topic-reply{
    border-radius: 4px;
    margin-top: 15px;
}

.forum-wrapper .topic-reply form{
    width: 100%;
    border: 0px;
}

.topic-reply form textarea{
    width: 100%;
    border: 0px;
    padding: 15px;
    font-family: 'Verdana';
    border: none;
    overflow: auto;
    outline: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.tox-tinymce{
    border: 0px;
}

.tox:not(.tox-tinymce-inline) .tox-editor-header{
    box-shadow: none;
    border-bottom: 1px solid #f1f1f1;
}

.tox-tinymce{
    border: 1px solid #f1f1f1;
}

.tox .tox-statusbar__right-container{
    display: none;
}

.addreply-btn{
    padding: 10px;
    color: #fff;
    text-align: center;
    background-color: #0f0b07;
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: .2s;
    min-width: unset;
    font-size: .875rem;
    margin-top: 15px;
} 

.tox .tox-statusbar{
    border-top: 0px;
}

.tox .tox-statusbar__path{
    display: none;
}

body.dark .topic-name{
    color: #fff;
}

body.dark .topic-header{
    background: #1a2426;
    border-color: #1a2426;
}

body.dark .topic-box{
    border-color: #1a2426;
}

body.dark .tpuser-info, body.dark .topic-content p{
    color: #dfdfdf;
}

body.dark .topic-footer{
    border-color: #1a2426;
    color: #dfdfdf;
}

body.dark .topic-footer button{
    color: #dfdfdf;
}

body.dark .topic-footer button img{
    filter: invert(98%) sepia(0%) saturate(2054%) hue-rotate(242deg) brightness(113%) contrast(75%);
}

body.dark .addreply-btn{
    background: #1a2426;
}

body.dark .main-category{
    border-color: #1a2426;
    background: #1a2426;
}

body.dark .last-topics h2{
    color: #fff;
}

body.dark .theme-preview{
    background: #1a2426;
    border-color: #1a2426;
}

body.dark .theme-preview .cat-forum-left h3{
    color: #fff;
}

body.dark .main-category.main-category-sub .cat-forum-left div h4{
    color: #fff;
}

.topic-footer .active__popup{
    display: none;
}

.topic-footer .active__popup.d-block{
    display: block;
    right: -1px;
    top: 46px;
    left: auto;
}

.send-news-box p strong{
    font-family: 'Verdana';
    font-weight: bold;
}

.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{
    display: none;
}

body.dark .forum-wrapper .add-new-ad{
    background: #ff0032;
}

body.dark .topics-field{
    border-color: #1a2426;
}

body.dark .topics-field input, body.dark .topics-field select{
    color: #dfdfdf;
}

body.dark .topics-field select option{
    color:#0f0b07;
}

.tox-tinymce {
    max-width: 100%;
    border-radius: 8px;
}

.topic-header a, .topic-header button{
    border: 0px;
    background: none;
    display: flex;
    align-items: center;
    color: #999;
    padding: 0px;
    font-size: 0.85rem;
    font-family: 'Verdana';
    cursor: pointer;
}

.topic-header a img, .topic-header button img{
    margin-right: 2px;
    filter: invert(68%) sepia(0%) saturate(242%) hue-rotate(228deg) brightness(92%) contrast(84%);
}

.topic-comments p{
    margin-bottom: 0px;
    font-size: 0.8rem;
}

.topic-reply.topic-reply2{
    margin-left: 50px;
}

.single-comment{
    margin-bottom: 15px;
    border: 1px solid #f1f1f1;
    border-radius: 4px;
    margin-top: 15px;
    position: relative;
}

.single-comment>div{
    padding: 15px;
}

.comment-date{
    color: #999;
    /* border-bottom: 1px solid #f1f1f1; */
    padding-bottom: 5px;
}

.comment-item.sub-comment{
    margin-left: 30px;
}

.single-comment .btn-edit{
    border: 0px;
    background: none;
    display: flex;
    align-items: center;
    color: #999;
    padding: 0px;
    font-size: 0.85rem;
    font-family: 'Verdana';
    cursor: pointer;
    margin-right: 10px;
}

.single-comment .comment-user button{
    border: 0px;
    background: none;
    display: flex;
    align-items: center;
    color: #999;
    padding: 0px;
    font-size: 0.85rem;
    font-family: 'Verdana';
    cursor: pointer;
}

.single-comment .btn-edit img, .single-comment .comment-user button img{
    filter: invert(68%) sepia(0%) saturate(242%) hue-rotate(228deg) brightness(92%) contrast(84%);
    margin-right: 5px;
}

.comment-user{
    display: flex;
    align-items: center;
}

.comment-username{
    font-size: 1rem;
    font-family: 'Verdana';
    font-weight: normal;
    margin-right: 20px;
}

.comment-item {
  position: relative;
}

.subcomments-list {
  margin-left: 40px;
}

.comment-item.sub-comment::before {
  content: "";
  position: absolute;
  left: -25px;
  top: -15px;
  bottom: 0;
  width: 1px;
  background: #999;
}

.comment-item.sub-comment::after {
  content: "";
  position: absolute;
  left: -25px;
  top: 15px;
  width: 14px;
  height: 14px;
  border: 1px solid #999;
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 10px;
  box-sizing: border-box;
  background: white;
  z-index: 1; 
}

.subcomments-list > .comment-item:last-child::before,
.subcomments-list > .comment-item.is-last::before {
  bottom: auto;
  height: 32px; 
}

.comment-item.sub-comment:not(:has(> .subcomments-list))::before {
  bottom: auto;
  height: 24px; 
}

body.dark .topic-content{
    border-color: #1a2426;
}

body.dark .topic-footer{
    border-color: #1a2426;
    background: #1a2426;
}

body.dark .topic-footer a{
    color: #dfdfdf;
} 

body.dark .topic-footer a img{
    filter: invert(98%) sepia(0%) saturate(2054%) hue-rotate(242deg) brightness(113%) contrast(75%);
}

body.dark .comment-username{
    color: #fff;
}

body.dark .topic-comments p{
    color: #fff;
}

body.dark .single-comment{
    border-color: #1a2426;
}

body.dark .comment-item.sub-comment::after{
    background: #010c0e;
    border-color: #1a2426;
}

body.dark .comment-item.sub-comment::before{
    background: #1a2426;
}

.like-count{
    display: flex;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.topic-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.topic-pagination ul {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.topic-pagination a,
.topic-pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    background: #f1f1f1;
    color: #333;
    transition: 0.2s ease;
}

.topic-pagination a:hover {
    background: #e0e0e0;
}

.topic-pagination .active {
    background: #ff0032;
    color: #fff;
    font-weight: bold;
}

.topic-content .tpuser-info a{
    color: #080808;
}

.topic-content .tpuser-info a:hover{
    text-decoration: underline;
}

.comment-image img{
    width: 100%;
    max-width: 800px;
}

@media (max-width: 625px){
    .topic-image-container{
        display: -ms-grid;
        display: grid;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(1, 1fr);
        gap: 10px;
    }
    .add-new-ad img{
        width: 20px;
    }
    .topic-content, .single-comment>div{
        padding: 10px;
    }
    .tppost-data h4, .comment-date{
        font-size: 0.6rem;
    }
    .topic-footer a{
        font-size: 0.7rem;
    }
    a:hover, button:hover{
        text-decoration: none;
    }
    .comment-username{
        margin-right: 10px;
    }
    .single-comment .comment-user button span, .single-comment .btn-edit span{
        display: none;
    }
    .comment-item.sub-comment::before{
        left: -15px;
    }
    .comment-item.sub-comment::after{
        left: -15px;
    }
    .comment-item.sub-comment{
        margin-left: 15px;
    }
    .subcomments-list {
        margin-left: 5px;
    }
    .topic-header button, .topic-header a{
        font-size: 0.75rem;
    }
    .topic-header button span, .topic-header a span{
        display: none;
    }
    .tox .tox-toolbar__primary button {
        min-width: 40px;
        min-height: 40px;
    }
    .tppost-data h4 span{
        width: 20px;
        height: 20px;
        margin-right: 0px;
    }
    .topic-footer button{
        font-size: 0.7rem;
    }
    .topic-header p{
        font-size: 0.75rem;
    }
    .topic-box .topic-header{
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding-left: 10px;
        padding-right: 10px;
    }
    .topic-footer{
        padding-left: 10px;
        padding-right: 10px;
    }
    .topic-header p:first-of-type{
        padding-left: 0px;
    }
    .topic-header div:first-of-type p{
        margin-bottom: 5px;
    }
    .topic-header div:last-child p{
        margin-top: 5px;
    }
    .topic-name{
        font-size: 1.3rem;
    }
    .main-category .cat-forum-left{
        padding-left: 0px;
    }
    .cat-forum-left div h4{
        color: #fff;
        text-shadow: 1px 1px 3px #111;
        font-size: 1.2rem;
    }
    .main-category{
        position: relative;
        height: 150px;
    }
    .main-category .cat-forum-left img{
        width: 100%;
        height: 100%;
        position: absolute;
        top: 5px;
        left: 10px;
        right: 0px;
        bottom: 0;
        -o-object-fit: cover;
        object-fit: cover;
        -o-object-position: top;
        object-position: center;
    }
    .main-category:after{
        content: "";
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(181, 175, 175, 0) 35%, rgba(0, 0, 0, 0.9) 100%);
    }
    .forum-wrapper .ads-header{
        padding-left: 0px;
        padding-right: 0px;
    }
    .forum-wrapper{
        padding-left: 15px;
        padding-right: 15px;
    }
    .forum-wrapper .add-new-ad{
        color: #fff;
    }
    .main-category{
        flex-direction: column;
        align-items: flex-start;
        overflow: hidden;
    }
    .cat-forum-right{
        z-index: 1;
        width: 100%;
        justify-content: space-around;
        position: absolute;
        bottom: 0;
        left: 0;
        background: rgba(1, 1, 1, 0.7);
        padding: 5px 5px;
        color: #cbcbcb;
    }
    .cat-forum-right img{
        filter: invert(85%) sepia(21%) saturate(0%) hue-rotate(170deg) brightness(93%) contrast(93%);
    }
    .cat-forum-left div{
        z-index:1;
    }
    .cat-forum-left a{
        color: #fff;
        text-shadow: 1px 1px 3px #111;
        font-size: 1.2rem;
    }
    .main-category .cat-forum-left p {
        margin: 0px;
        margin-top: 5px;
        color: #fff;
        font-size: 1rem;
    }
    .forum-wrapper form{
        width: 100%;
    }
    .upload-file{
        margin-top: 20px;
    }
    .upload-file span{
        font-size: 14px;
    }
    .theme-preview {
        align-items: flex-start;
        flex-direction: column;
    }
    .theme-preview .cat-forum-right{
        padding-left: 0px;
        justify-content: flex-start;
        width: 100%;
        position: relative;
        background: none;
        padding-bottom: 0px;
        justify-content: space-between;
    }
    .theme-preview .cat-forum-left span{
        margin-bottom: 2px;
    }
    .theme-preview .cat-forum-left h3{
        margin-bottom: 0px;
    }
    .main-category.main-category-sub{
        height: auto;
    }
    .main-category.main-category-sub:after{
        background: none;
    }
    .main-category.main-category-sub .cat-forum-right{
        position: relative;
        background: none;
        padding: 0px;
        margin-top: 5px;
        justify-content: space-between;
        color: #999;
    }
    .main-category.main-category-sub .cat-forum-left div h4 {
        text-shadow: none;
        font-size: 1rem;
        color: #393939;
    }
    .main-category.main-category-sub .cat-forum-left p{
        color: #999;
        font-size: 0.85rem;
    }
    .main-category.main-category-sub .cat-forum-right img{
        filter: invert(62%) sepia(0%) saturate(0%) hue-rotate(324deg) brightness(100%) contrast(86%);
    }
    .main-category.main-category-sub .cat-forum-left p{
        margin-top: 2px;
    }
}