body {

    /*padding: 0px!important;
    padding-top: 0px!important;
    padding-bottom: 0px!important;
    margin: 0px!important;*/

    background-color: #2288c5!important;

    /*background-image: none;*/
    background-attachment: fixed;
    background-image: url(../img/bg-pattern.svg);
    background-size: cover;
    padding-bottom: 30px!important;
}

.glyphicon{
    /*line-height: unset!important;*/
}

.input-group .glyphicon{
    line-height: 1!important;
}

.dropdown-toggle[aria-expanded="true"]:after {
    transform: rotate(180deg);
}
/*for animation*/
.dropdown-toggle:after {
    transition: 0.7s;
}

.open>a>.fa-caret-left,.open>a>.fa-caret-down{
    transform: rotate(-90deg);
    transition: all ease-out 0.5s;
}

.container {
    width: 100%;
   /* padding-right: 15px;
    padding-left: 15px;*/
    margin-right: auto;
    margin-left: auto;
}

.row {
    /*margin-right: -15px;
    margin-left: -15px;*/
}

.wrap {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}
.content {
    /*padding: 0px!important;*/
}
.page-header {
    margin: 15px 0px 0px 0px!important;
}

.selection {
    position: absolute;
    background: #57b9556e;
    pointer-events: none;
    border: 1px dotted #d9ffd9;
}
.imgbox{
    position:relative;
    transition: transform .2s;
    transform-origin: 0% 100%;
    z-index:99999;
}
img.img-selectable:hover {
    cursor:crosshair;
   // transform: scale(1.5);
    //transform-origin: 0% 100%;
    //z-index:9999999;
}

.view_isright .checkbox-danger input.right_one_or_few[type="checkbox"]:checked + label::after {
    content: "\f00d";
    padding-left: 4px!important;
    margin-top: 0px!important;
}
.view_isright .checkbox-success input.right_one_or_few[type="checkbox"]:checked + label::after {
    padding-left: 3px!important;
    margin-top: 0px!important;
}



input.right_subsequence[data-value="1"]:checked + label::after,
input.right_subsequence[data-value="2"]:checked + label::after,
input.right_subsequence[data-value="3"]:checked + label::after,
input.right_subsequence[data-value="4"]:checked + label::after,
input.right_subsequence[data-value="5"]:checked + label::after,
input.right_subsequence[data-value="6"]:checked + label::after,
input.right_subsequence[data-value="7"]:checked + label::after,
input.right_subsequence[data-value="8"]:checked + label::after,
input.right_subsequence[data-value="9"]:checked + label::after,
input.right_subsequence[data-value="10"]:checked + label::after
{
    font-weight: bolder!important;
    padding-left: 4px!important;
    margin-top: -2px!important;
    font-size: 14px!important;
    font-family: "Open Sans", sans-serif!important;
}
input.right_subsequence[data-value="1"]:checked + label::after {
    content: "1"!important;
}
input.right_subsequence[data-value="2"]:checked + label::after {
    content: "2"!important;
}
input.right_subsequence[data-value="3"]:checked + label::after {
    content: "3"!important;
}
input.right_subsequence[data-value="4"]:checked + label::after {
    content: "4"!important;
}
input.right_subsequence[data-value="5"]:checked + label::after {
    content: "5"!important;
}
input.right_subsequence[data-value="6"]:checked + label::after {
    content: "6"!important;
}
input.right_subsequence[data-value="7"]:checked + label::after {
    content: "7"!important;
}
input.right_subsequence[data-value="8"]:checked + label::after {
    content: "8"!important;
}
input.right_subsequence[data-value="9"]:checked + label::after {
    content: "9"!important;
}
input.right_subsequence[data-value="10"]:checked + label::after {
    content: "10"!important;
}


mark{
    background-color:#debf1a!important;
    padding:0!important;
}
.custom-navbar i.nav-icon {
    font-size: 30px;
    font-weight: 300;
    display: block;
    margin: 0 auto 10px auto;
    text-align: center;
}

.custom-navbar .nav-link {
    display: block;
    padding: 0 20px;
    color: #154569;
    font-size: 16px;
    font-weight: 800;
    text-shadow: 1px 1px 2px #ffffff, 0px 0px 2px #006baf;
}

.custom-navbar .nav-link:hover {
    text-decoration:none;
    color: #fff;
}


.custom-navbar .navbar-nav {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}
.custom-navbar {
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 70px;
}
#center-navbar{
    margin: 0 auto;
    text-align: center;
    width:666px
}


.custom-navbar .nav-link.active-page:before {

}

.side-nav li a{
    padding:10px
}

.search-result-item-body{
	margin-left:0px!important
}

.search-result-item .image-link{
    display: inline-block;
     margin: 0!important; 
    float: left;
    width: unset!important;	
	
}

.logo {

}

.vdivider{
    display: block;
    height: 100%;
    width: 1px;
    background: linear-gradient(rgba(51, 51, 51, 0), rgba(51, 51, 51, 0.35), rgba(102, 102, 102, 0));
}
.hdivider{
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(270deg, rgba(51, 51, 51, 0), rgba(51, 51, 51, 0.35), rgba(102, 102, 102, 0));
}

ul.smiles-menu{
    -moz-column-count: 3;
    -moz-column-gap: 5px;
    -webkit-column-count: 3;
    -webkit-column-gap: 5px;
    column-count: 3;
    column-gap: 5px;

}

#ajax-loading {
    background: rgba(0, 0, 0, 0.37) url(/upl/i/loading.gif) no-repeat center center;
    border-bottom-left-radius: 10px;
    -webkit-border-bottom-left-radius: 10px;
    -moz-border-radius-bottomleft: 10px;
    -khtml-border-bottom-left-radius: 10px;
    float: right;
    width: 50px;
    height: 26px;
}

#ajax-loading, #ajax-error {
    position: fixed;
    top: 0 !important;
    z-index: 999000;
    padding: 4px;
    font-size: 11px;
    max-width: 400px;
    max-height: 200px;
    white-space: nowrap;
    right: 0px;
}



.scroll-y{
    overflow-y: scroll;
    overflow-x: hidden;
}
.scroll-x{
    overflow-x: scroll;
    overflow-y: hidden;
}

.feed,.chat .chat-messages{
    max-height:270px
}

.comments .chat-messages{
    max-height:345px
}
.walls .chat-messages{
    max-height:345px
}
.text-overflow {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }


body {
  scrollbar-face-color: #000000;
  scrollbar-shadow-color: #2D2C4D;
  scrollbar-highlight-color:#7D7E94;
  scrollbar-3dlight-color: #7D7E94;
  scrollbar-darkshadow-color: #2D2C4D;
  scrollbar-track-color: #7D7E94;
  scrollbar-arrow-color: #C1C1D1; 
}


::-webkit-scrollbar
{
  width: 5px;  /* for vertical scrollbars */
  height: 5px; /* for horizontal scrollbars */
}

::-webkit-scrollbar-track
{
    background: rgb(70, 86, 108);
    opacity: 0.4;        
  
}

::-webkit-scrollbar-thumb
{
  background: rgb(39, 49, 61);
  opacity: 0.4;  
}


.pointer{cursor:pointer}

.btn-notclickable{
    cursor:default !important;
}

.modal-transparent{
    color: #d6d6d6;
}

.modal-content-transparent{
    background: none repeat scroll 0 0 rgba(87, 107, 135, 0.65);
}
.modal-header-transparent {
    border-bottom: 1px solid #33445b;
}
.modal-footer-transparent {
    border-bottom: 1px solid #33445b;
    background-color: transparent;
}
.modal-body-transparent {
    background: rgba(255, 255, 255, 0.88);
    color: #484848;
}





.chat-messages{
    /*height:240px*/
}

.text-normal{
    font-weight: 100;
}

.search-result-item-del {
    background-color: rgba(128, 3, 3, 0.4)!important;
}


.form-horizontal .checkbox-in{
    min-height: 12px;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0px 
}
    
    
.checkbox-in label::before {
    left: 0px;
    top: 0px;
    margin-left: -10px;

}

.checkbox-in label::after {
    left: 0;
    top: 2px;
    margin-left: -11px;
    padding-left: 3px;
    padding-top: 1px;
} 

.vd{
    position: fixed;
    top: 0px;
    left: 0px;
    width: 25%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    z-index: 10000;
    color: #0037ff;
    background-color: rgba(0, 0, 0, 0.92);
    font-weight: bolder;    
}   


.smiles-menu {
    background: rgba(75, 88, 108, 0.69)!important;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 3px !important;
    color: white;
bottom: 100%;
        margin: 0 0 6px 0;
    top: inherit;
    border: 1px solid rgb(68, 77, 91)!important;
    
    
}

.smiles-menu:after {
content: '';
    display: inline-block;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgb(75, 88, 108)!important;
    position: absolute;
    bottom: -6px;
    left: 10px;
    
}
ul.smiles-menu{  
    padding: 5px;
  
}
.smiles-menu > li > a{
    text-align: center;
    padding: 0px;
    
}

.sidebar-labels .alert{
    margin:0;
    padding:0
}

.sidebar-nav-title .action-link {
 margin-right: 0px; 
    
}

.sidebar-labels {
    list-style: none;
    padding: 0px 0px 0px 10px;
}

.sidebar-alerts .alert {
    margin-bottom: 0;
    padding: 9px 0px 9px 10px;
}
.sidebar-alerts .alert a{
    color: inherit;
    text-decoration: none;
}


.sidebar-nav-title i[class*=fa] {
    width: 16px;
    margin-right: 8px;
    float: left;
    line-height: 20px;
    font-size: 14px;
    opacity: .4;
    text-align: right;
}

.sidebar-nav-title{
     /*border-top: 1px solid #78a1c5;  */
         display: block;
    padding: 10px 0px; 
    margin:0
}

.sidebar-nav-title a {
    color: inherit;
    -webkit-transition: background-color 0.2s;
    -o-transition: background-color 0.2s;
    transition: background-color 0.2s;
    text-decoration: none;

    border-radius: 4px;
}

.side-nav li i[class*=glyphicon] {
    width: 16px;
    margin-right: 8px;
    float: left;
    line-height: 20px;
    font-size: 14px;
    opacity: .4;
    text-align: right;
    top: 0px;
}

.login-widget .form-actions, .registration-widget .form-actions {
    margin: 0 -17px;
    padding: 17px 20px 18px!important;
}

span.editable  {
	
	width: 100%;
	display: inline-block;
	padding: 8px;
	height: 100%;	
	
}
.valigned{
	vertical-align: middle!important;
}

.centered{
    text-align: center!important;
}


.checkbox{
	margin:0!important
}

.mb-3{
    margin-bottom:3px
}
.mb-5{
    margin-bottom:5px
}
.mb-10{
    margin-bottom:10px
}

.mt-3{
     margin-top:3px
 }
.mt-5{
    margin-top:5px
}
.mt-10{
    margin-top:10px
}

.pb-10{
    padding-bottom:10px
}
.pt-10{
    padding-top:10px
}

audio {
    filter: sepia(20%) saturate(70%) grayscale(1) contrast(99%) invert(12%);
    width: 200px;
    height: 25px;
}
video {
    width: 200px;
    height: 150px;
}

#run_qfile audio {
    width: 300px;
    height: 35px;
}
#run_qfile video {
    width: 640px;
    height: 480px;
}

#run_qimage img {
    height:300px;
}

#run_qtitle{
    margin-top:0;
}

.bs-actionsbox{
    float:none;
}
.bootstrap-select{
    max-width: 100%;
}

.bootstrap-select > .dropdown-toggle{
background-color: rgba(51, 51, 51, 0.425);
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
-o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;

}
 
.widget:not(.widget-tabs) .tab-content {
    /*overflow: visible;*/
}

#run_modal .close {
    font-size: 2.5rem;
}

.modal-title {
    display:inline
}
.modal-header .close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
}

.login-widget .checkbox label::before{
    /*margin-left: -17px;*/
}

.glyphicon-spin {
    -webkit-animation: spin 1000ms infinite linear;
    animation: spin 1000ms infinite linear;
}
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}
@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

.table-nothover > tbody > tr:hover,.table-nothover > tbody > td:hover,.table-nothover,.table-nothover:hover{
    background-color: transparent!important;
    -webkit-transition: unset!important;
    -o-transition: unset!important;
    transition: unset!important;
}
tr.td-nothower-inner{
     background-color: rgba(38, 38, 38, 0.3)!important;
}

.table-nothover > tbody > tr > td{
    border-top: 0!important;
    border-bottom: 1px solid rgba(51, 51, 51, 0.35)!important;
}
.table-nothover > tbody > tr:last-child > td{
    border-bottom: 0!important;
}

.mb-0{margin-bottom:0!important}
.p-0{padding:0!important}

.rotate{
    -moz-transition: all 0.2s linear;
    -webkit-transition: all 0.22s linear;
    transition: all 0.22s linear;
}

.rotate.down{
    -moz-transform:rotate(90deg);
    -webkit-transform:rotate(90deg);
    transform:rotate(90deg);
}

button.close {
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
    font-size: 26px;
    font-weight: 300;
    line-height: 0.75;
    text-shadow: none;
    opacity: 0.5;
}


ul.wysihtml5-toolbar a.btn.wysihtml5-command-active {
    background-color: #234150;
}

.modal-header h1, .modal-header .h1, .modal-header h2, .modal-header .h2, .modal-header h3, .modal-header .h3 {
    margin-top: 0;
    margin-bottom: 0;
}

.modal-title .label {
    padding: 8px 12px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    font-size: 20px;
    vertical-align: top;
}

.card.card-expand {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    border-radius: 0;
    margin: 0!important;
    width:100%;
    height:100%;

}

.divider-horizontal {
    display: block;
    width: 100%;
    height: 1px;
    margin: 10px 0;
    background: linear-gradient(to right, rgba(51, 51, 51, 0), rgba(51, 51, 51, 0.5), rgba(102, 102, 102, 0));
    clear: both;
}
#navbar-inner {
    margin: 0!important;
    clear: both;
}


/* xSmall */
@media(max-width:767px){
   /* .widget-tabs .body {

        padding: 6px 8px;

    }*/

    body {
        padding-left: 5px;
        padding-right: 5px;
    }

    .form-horizontal .control-label {
        text-align: left;
        margin-bottom: 0;
        padding-top: 6px;
    }


    .col-lg-12{
        /*padding-left: 3px!important;
        padding-right: 3px!important;*/
    }
    .custom-navbar .nav-link{
        padding: 0px;
    }

    .custom-navbar {
        margin-top: 10px;
    }

    .custom-navbar .navbar-collapse{
       /* display:none!important*/
    }
    .custom-navbar .navbar-collapse.in{
        /*display:flex!important;
        margin-top: 30px;*/
    }




    .page-header .navbar-form{
        margin: 0;
    }
    .page-header .nav > li > a {
        line-height: 28px;
    }
    .logo {
        min-width: 120px;
        padding-left: 15px;
    }

    ul.messenger.messenger-fixed.messenger-on-right, ul.messenger.messenger-fixed.messenger-on-left {
        width: 100%;
    }

    ul.messenger.messenger-fixed.messenger-on-top.messenger-on-right, ul.messenger.messenger-fixed.messenger-on-bottom.messenger-on-right {
        right: 10px;
        left: 10px;
    }

    ul.messenger.messenger-fixed.messenger-on-top.messenger-on-left, ul.messenger.messenger-fixed.messenger-on-bottom.messenger-on-left {
        left: 10px;
        margin-left: 10px;
    }

    #run_qimage img{
        height:100px
    }
    #run_ttitle,#run_qtitle{
        font-size:18px
    }

    .page-header .search-query {
        width: 130px;
    }

    .page-header .search-query:focus {
        width:260px;
    }

}

/* Small */
@media(min-width:768px) and (max-width:991px){
   /* .widget-tabs .body {

        padding: 6px 8px;

    }*/


    body {
        padding-left: 5px;
        padding-right: 5px;
    }


    .col-lg-12{
        /*padding-left: 5px!important;
        padding-right: 5px!important;*/
    }

    .custom-navbar {
        margin-top: 20px;
    }
    .logo {
        padding-left: 15px;
        margin-top: 5px;
    }
    #run_qimage img{
        height:100px
    }
    #run_qimage img{
        height:100px
    }
    #run_ttitle,#run_qtitle{
        font-size:16px;
        vertical-align: top;
    }

    #run_qid {
        padding: 4px 6px;
        -moz-border-radius: 6px;
        -webkit-border-radius: 6px;
        font-size: 16px;
        vertical-align: top;
    }
    #navbar-inner {
        padding-bottom: 10px;
    }

    .page-header .search-query {
        width: 260px;
    }

    .page-header .search-query:focus {
        width:450px;
    }

}

/* Medium */
@media(min-width:992px) and (max-width:1199px){

    body {
        padding-left: 10px;
        padding-right: 10px;
    }

    .col-lg-12{
       /* padding-left: 10px!important;
        padding-right: 10px!important;*/
    }
    .custom-navbar {
        margin-top: 20px;
    }
    .logo {
        padding-left: 15px;
        margin-top: 5px;
    }
    #run_qimage img{
        height:100px
    }
    #run_ttitle,#run_qtitle{
        font-size:18px
    }


    #navbar-inner {
        padding-bottom: 10px;
    }
    .page-header .search-query {
        width: 260px;
    }

    .page-header .search-query:focus {
        width:450px;
    }

}

/* Large */
@media(min-width:1200px){
    #navbar-inner {
        padding-bottom: 10px;
    }

    .custom-navbar {
        margin-top: 20px;
    }
    .logo {
        padding-left: 30px;
        margin-top: 5px;
    }

    body {
        padding-left: 10%;
        padding-right: 10%;
    }
    .page-header .search-query {
        width: 260px;
    }

    .page-header .search-query:focus {
        width:450px;
    }

}

.dbutton {
    width:99%;
    cursor: pointer;
    position: relative;
    display: block;
    padding: 10px 6px;
    font: normal 15px 'Trebuchet MS', Trebuchet, sans-serif;
    color: #0077c7!important;
    text-decoration: none!important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    border-top: 1px solid #aebda8;
    border-left: 1px solid #a4b5a1;
    border-right: 1px solid #a4b5a1;
    border-bottom: 1px solid #99aa95;
    background: #e2ece1;
    background: -webkit-linear-gradient(#e2ece1, #d6e1d1);
    background: -moz-linear-gradient(#e2ece1, #d6e1d1);
    background: -o-linear-gradient(#e2ece1, #d6e1d1);
    background: linear-gradient(#e2ece1, #d6e1d1);
    border-radius: 6px;
    box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(244, 247, 197, 0.45);
}
.dbutton:hover {
    background: #eef8ed;
}

.dbutton i {
    display: inline-block;
    width: 25px;
    margin: -3px 3px -3px 2px;
    vertical-align: middle;
}

.dbutton .dlabel {
    position: relative;
    color: #839180!important;
    top: -4px;
}

.dbutton .dtext {
    display: block;
    font-size: 9px;
    line-height: 0;
    margin-left: 35px;
    color: #839180!important;
    text-shadow: none;
    font-family: verdana, sans-serif;
    position: relative;
}
.st0{fill:#2faa2b;}
.st1{fill:#3D8749;}

.letterspace {
    font-family: monospace;
    letter-spacing: 20px;
    border: 0;
    background-image: linear-gradient(to left, black 70%, rgba(255, 255, 255, 0) 0%);
    background-position: bottom;
    background-size: 20px 1px;
    background-repeat: repeat-x;
    background-position-x: 20px;
     outline : none;
}

.input-math{
    font-size:24px;
    min-height: 50px
}

.form-control.input-math {
    height: unset!important;
    cursor: text;
}
.ML__contains-highlight {
    background: #32688a!important;
}
@media not (pointer: coarse) {
    math-field::part(virtual-keyboard-toggle) {
        //display: none;
    }
}
math-field::part(virtual-keyboard-toggle) {
    color: white;
}


.sectio{
    border-top: 1px solid #e5e5e5;
    margin-top: 15px;
    padding-top: 10px;
    color: #6d6d6d;
}

.modal .label{
    border-radius:5px!important
}

.modal.blur {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.imgbox {
    position: relative;
    display: inline-block; /* подстраивается под размер картинки */
}

.imgbox-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6); /* полупрозрачный фон */
    color: #fff; /* белый текст */
    padding: 5px 10px; /* отступы */
    border-radius: 4px; /* закруглённые углы */
    font-size: 8px;
    line-height: 1.2;
    white-space: nowrap; /* текст не переносится */
    opacity:0.7
}

.glyphicon-1::before { content: "1"; }
.glyphicon-2::before { content: "2"; }
.glyphicon-3::before { content: "3"; }
.glyphicon-4::before { content: "4"; }
.glyphicon-5::before { content: "5"; }
.glyphicon-6::before { content: "6"; }
.glyphicon-7::before { content: "7"; }
.glyphicon-8::before { content: "8"; }
.glyphicon-9::before { content: "9"; }
.glyphicon-10::before { content: "10"; }

.glyphicon-1::before,
.glyphicon-2::before,
.glyphicon-3::before,
.glyphicon-4::before,
.glyphicon-5::before,
.glyphicon-6::before,
.glyphicon-7::before,
.glyphicon-8::before,
.glyphicon-9::before,
.glyphicon-10::before {
    font-family: sans-serif;
    display: inline-block;
    width: 16px;
    text-align: center;
    font-weight: bolder;
    font-size: 21px;
}




/* Затемненный фон для увеличения */
.zoom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(0 0 0 / 31%);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

/* Увеличенное изображение */
.zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.25s ease;
    box-shadow: 0 0 20px rgb(0 0 0 / 50%);
    border: 10px solid #111111ab;
    border-radius: 5px;
}

/* Курсор для исходных изображений */
.zoomable {
    cursor: zoom-in;
}

.select-areas-delete-area:before{
    color:red
}

.target-action-txt[data-action="del_row"] {
    color: red;
}

.bold-black{
    color:black;
    font-weight:bolder
}