/* Template created by tcse-cms.com | Author: Vitaly V. Chuyakov | URL: http://tcse-cms.com */
body {
    background-color: var(--gray);
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
    background-size: cover;
    letter-spacing: normal;
}
.wrapper {
    background-color: var(--white);
    border: 0 1px solid var(--gray);
    box-shadow: 0 0 16px var(--gray);
    margin: 0 auto;
    max-width: var(--breakpoint-xl);
}
a {
    color: var(--black);
    text-decoration:  none;
}
a:hover {color: var(--danger)}
.a-text-secondary {font-size: 0.9em;}
.a-text-secondary a {color: var(--secondary);}
.text-lightgrey a {color: var(--gray);}
.text-lightgrey {color: var(--gray); font-size: 1.1em;}
#dofullsearch {display: none;}

/* ============================================================== */
/* Переназначение стилей DLE */
/* ============================================================== */
.ui-dialog-buttonset button {
    display: inline-block;
    margin-bottom: 0;
    margin-left: 5px;
    font-weight: normal;
    text-align: center;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    border-radius: 4px;
    color: var(--gray-dark);
    background-color: var(--white);
    border-color: rgba(0, 0, 0, 0.1);
}
.bbcodes, .btn-border {
    border: 0 none;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    height: 36px;
    border-radius: 0px;
    line-height: 22px;
    outline: none;
    background-color: transparent;
    border-color: #fe0d01;
    color: #fe0d01;
    border: 1px solid #fe0d01;
    padding: 7px 22px;
    text-decoration: none !important;
    box-shadow: none;
    transition: all ease .1s;
}
.btn:hover, .bbcodes:hover, .ui-button:hover {
    background-color: var(--light);
    color: var(--black);
}
.page-link:hover {
    background-color: transparent; 
}


/* ============================================================== */
/* основной шаблон main.tpl */
/* ============================================================== */

/*логотип сайта*/
.header-logo {
    margin: 10px 0;
}
.header-logo a:hover {
    text-decoration: none;
    color: var(--dark);
}
/*подвал сайта */
.bg-footer a {
    color: var(--white);
}
.bg-footer {
    background-color: #1f2124;
}

/* ============================================================== */
/* краткая новость, шаблон shortstory.tpl */
/* ============================================================== */
.short-news-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

/* ============================================================== */
/* полная новость, шаблон fullstory.tpl */
/* ============================================================== */
.full-content img {
    max-width: 100%;
    margin: 10px;
}
.full-content a {
    color: var(--bs-primary);
}
.block-rating {
    padding: 10px 0;
}

/* ============================================================== */
/* похожие новости, шаблон relatednews.tpl */
/* ============================================================== */
.related-card>.card-columns {
    column-count: 2;
}

/* ============================================================== */
/* комментарии, шаблон comments.tpl */
/* ============================================================== */
.smartcomments img {
    max-width: 100%;
}

/* ============================================================== */
/* облако тегов*/
/* ============================================================== */
.tagcloud a {
    line-height: 36px;
    position: relative;
    font-size: 12px;
    margin: 0 5px 5px 5px;
    padding: 8px 7px;
    color: #7a7a7a;
    border: 1px solid var(--gray);
    border-radius: 5px;
    text-decoration: none;
}

.tagcloud a:hover {
    color: var(--white);
    background-color: #287ae9;
}

.clouds_xsmall {
    display: inline-block;
}

.tags-line span {
    display: inline-block;
    padding: 0 10px 10px 0;
}

.tags-line span.clouds_xlarge {
    font-weight: 800;
}

.tags-line span.clouds_large {
    font-weight: 700;
}

.tags-line span.clouds_medium {
    font-weight: 600;
}

.tags-line span.clouds_small {
    font-weight: 300;
}

.tags-line span.clouds_xsmall {
    font-weight: 200;
}

.tags-line .tags_more {
    font-weight: 600;
    padding-top: 20px;
}

@media (min-width: 320px) and (max-width: 640px) {

    /* если ширина экрана от 320px до 640px */
    .tagcloud2 a {
        line-height: 36px;
        position: relative;
        font-size: 12px;
        margin: 0 5px 5px 5px;
        padding: 8px 7px;
        border: 0px solid var(--gray);
        background-color: var(--orange);
        color: var(--white);
        border-radius: 5px;
        text-decoration: none;
    }

    .tagcloud2 a:hover {
        color: var(--white);
        background-color: var(--teal);
    }

    .tagcloud2 {
        color: var(--white);
    }

    h1, .h1 {
        font-size: 1.5rem;
    }
}

/* ============================================================== */
/* Градиент на фото https://mdbootstrap.com/docs/jquery/css/gradients/#image */
/* ============================================================== */
.img-gradient{
    position:relative;
    display:inline-block;
}
.img-gradient:after {
    content:'';
    position:absolute;
    left:0; top:0;
    width:100%; height:100%;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(4,4,4,0) 50%, rgba(255,255,255,0) 100%);
    }
.img-gradient img{
  display:block;
}
/* ============================================================== */
/* текст наложения на картинку */
/* ============================================================== */
.card-img-overlay-bottom {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.25rem;
}
.card-img-overlay-top {
    position: absolute;
    right: 0;
    top: 0;
    left: 0;
    padding: 1.25rem;
}

#my-footer a {color: var(--white);}
#my-footer a:hover {color: var(--gray);}

/* ============================================================== */
/* Кадрирование изображений https://tpverstak.ru/cropping-images-css-svg/ */
/* ============================================================== */
.crop-box-h150 {
    position: relative;
    overflow:hidden;
    min-height: 150px;
}
.crop-box-h150 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.crop-box-h195 {
    position: relative;
    overflow:hidden;
    min-height: 195px;
}
.crop-box-h195 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.crop-box-h390 {
    position: relative;
    overflow:hidden;
    min-height: 390px;
}
.crop-box-h390 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.img-gradient .h-100 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
/* ============================================================== */
/* Фиксированные блоки для ленты новостей */
/* ============================================================== */
.box-h195 {
    height: 195px; 
    overflow:hidden;
}
.box-h390 {
    height: 390px; 
    overflow:hidden;
}
.box-h780 {
    height: 780px; 
    overflow:hidden;
}
.box-h800 {
    height: 800px; 
    overflow:hidden;
}

#my-footer  .a-text-footer-icon a,
#my-footer  .a-text-footer-icon {
    color: #636466; font-size: 0.9em;
}
.border-footer-icon {
    border-color: #636466!important;
}

/* OwlCarousel2 - исправление стрелок навигации в блоках с видео роликами */
.owl-theme .owl-nav {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    color: #95a5a6;
    font-size: 44px;
}
.owl-prev {
    position: absolute;
    left: 0;
    top: 45%;
}
.owl-next {
    position: absolute;
    right: 0;
    top: 45%;
}
.owl-carousel .owl-nav button.owl-prev {
   margin-left: -60px; 
   font-size: 44px;
}
.owl-carousel .owl-nav button.owl-next {
   margin-right: -60px; 
   font-size: 44px;
}

#owl-three .owl-nav button.owl-prev {
   font-size: 44px;
}
#owl-three .owl-nav button.owl-next {
   font-size: 44px;
}

#owl-three .owl-nav button.owl-prev:hover,
#owl-three .owl-nav button.owl-next:hover {
   background-color: transparent;
}

/*=======================*/
/* Дерево комментариев */
ol.comments-tree-list {
    list-style: none;
}
ol.comments-tree-list {
    margin-left: -40px;
}

li.comments-tree-item ol.comments-tree-list:nth-child(even) {
    margin-left: -10px;
}
li.comments-tree-item ol.comments-tree-list:nth-child(odd) {
    margin-left: -10px;
}
li.comments-tree-item ol.comments-tree-list:nth-child(1) {
    margin-left: 0px;
}
@media (min-width: 320px) and (max-width: 576px) {
    ol.comments-tree-list {
        margin-left: -40px;
    }

    li.comments-tree-item ol.comments-tree-list:nth-child(even) {
        margin-left: -40px;
    }
    li.comments-tree-item ol.comments-tree-list:nth-child(odd) {
        margin-left: -40px;
    }
    li.comments-tree-item ol.comments-tree-list:nth-child(1) {
        margin-left: -40px;
    }

}


#profile label {
    display: contents;
    margin-bottom: 0.5rem;
}

/* фиксим ширину страницы для форм в 100% */
form {
    width: 100%;
}

form#registration,
form#dle-comments-form,
form#lostpassword,
form#sendmail,
form#dlemasscomments,
form#loginform {
    width: 100%;
}


/*кнопка наверх*/
.b-top {z-index:2600;position:fixed;left:0;bottom:90px;width:34%;margin-left:50%;opacity: 0.5;filter:alpha(opacity=50);}
.b-top:hover {opacity:1;filter:alpha(opacity=100);cursor:pointer;}
.b-top-but {z-index:2600;position:absolute;display:block;left:56px;bottom:0;margin:0 0 0 100%;padding:32px 12px 4px;
color:white;background:#D8D5C2 url(/templates/b-j-top.png) no-repeat 50% 11px;border-radius:7px;}

.navbar-smartzone {
    background-color: #ff5722;
    color: #fff;
}

