/* Template created by tcse-cms.com | Author: Vitaly V. Chuyakov | URL: http://tcse-cms.com */


/* ============================================================== */
/* Переназначение стилей 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-h230 {
    position: relative;
    overflow:hidden;
    min-height: 230px;
}
.crop-box-h230 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.crop-box-h270-cover {
    position: relative;
    overflow:hidden;
    min-height: 270px;
}
.crop-box-h270-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.crop-box-h270-contain {
    position: relative;
    overflow:hidden;
    min-height: 270px;
}
.crop-box-h270-contain img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    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-h230 {
    height: 230px; 
    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;
}


/*=======================*/
/* Дерево комментариев */
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%;
}




.s2tg-contact-form {
    background: #6ec3e2;
    border-radius: 10px;
}
/*.s2tg-contact-form__input_phone {
    background: url(tel.svg) center left 15px no-repeat, #2c398f;
}
.s2tg-contact-form__input_name {
    background: url("user.svg") center left 15px no-repeat, #2c398f;
}
.s2tg-contact-form__file-button {
    background: url("file.svg") center left 15px no-repeat, #2c398f;
}*/


.myDropDown
{
   height: 60vh;
   overflow: auto;
}

.dropdown:hover >.dropdown-menu{
  display: block !important;
}
.dropdown-submenu:hover > .dropdown-menu{
  display: block !important;
    left: 100%;
    margin-top: -37px;
}

.dropdown-item{
  font-size: small; /* 13px */
}
.dropdown-toggle::after{
  font-size: var(--font-md);
  margin-bottom: -2px;
}
.dropdown-menu li a.active{
  color:#fff;
}

.custom-toggle-arrow{
      font-size: 18px;
      margin-top: 1px;
      line-height: 12px;
}