@font-face {
    font-family: OpenSansSemibold;
    src: url(../fonts/OpenSans-SemiBold.ttf);
}
@font-face {
    font-family: OpenSansBold;
    src: url(../fonts/OpenSans-Bold.ttf);
}
@font-face {
    font-family: OpenSansRegular;
    src: url(../fonts/OpenSans-Regular.ttf);
}

.bf-2 .navbar-default {
    background-color: #eae3d5;
    border-color: #cecece;
}
.bf-2 .navbar-default .navbar-brand {
    color: #777777;
}
.bf-2 .navbar-default .navbar-brand:hover,
.bf-2 .navbar-default .navbar-brand:focus {
    color: #5e5e5e;
    background-color: transparent;
}
.bf-2 .navbar-default .navbar-text {
    color: #777777;
}
.bf-2 .navbar-default .navbar-nav > li > a {
    color: #777777;
}
.bf-2 .navbar-default .navbar-nav > li > a:hover,
.bf-2 .navbar-default .navbar-nav > li > a:focus {
    color: #333333;
    background-color: transparent;
}
.bf-2 .navbar-default .navbar-nav > .active > a,
.bf-2 .navbar-default .navbar-nav > .active > a:hover,
.bf-2 .navbar-default .navbar-nav > .active > a:focus {
    color: #555555;
    background-color: #e7e7e7;
}
.bf-2 .navbar-default .navbar-nav > .disabled > a,
.bf-2 .navbar-default .navbar-nav > .disabled > a:hover,
.bf-2 .navbar-default .navbar-nav > .disabled > a:focus {
    color: #cccccc;
    background-color: transparent;
}
.bf-2 .navbar-default .navbar-toggle {
    border-color: #dddddd;
}
.bf-2 .navbar-default .navbar-toggle:hover,
.bf-2 .navbar-default .navbar-toggle:focus {
    background-color: #dddddd;
}
.bf-2 .navbar-default .navbar-toggle .icon-bar {
    background-color: #888888;
}
.bf-2 .navbar-default .navbar-collapse,
.bf-2 .navbar-default .navbar-form {
    border-color: #e7e7e7;
}
.bf-2 .navbar-default .navbar-nav > .open > a,
.bf-2 .navbar-default .navbar-nav > .open > a:hover,
.bf-2 .navbar-default .navbar-nav > .open > a:focus {
    background-color: #e7e7e7;
    color: #555555;
}
@media (max-width: 767px) {
    .bf-2 .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: #777777;
    }
    .bf-2 .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
    .bf-2 .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
        color: #333333;
        background-color: transparent;
    }
    .bf-2 .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
    .bf-2 .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
    .bf-2 .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
        color: #555555;
        background-color: #e7e7e7;
    }
    .bf-2 .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
    .bf-2 .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
    .bf-2 .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
        color: #cccccc;
        background-color: transparent;
    }
}
.bf-2 .navbar-default .navbar-link {
    color: #777777;
}
.bf-2 .navbar-default .navbar-link:hover {
    color: #333333;
}
.bf-2 .navbar-default .btn-link {
    color: #777777;
}
.bf-2 .navbar-default .btn-link:hover,
.bf-2 .navbar-default .btn-link:focus {
    color: #333333;
}
.bf-2 .navbar-default .btn-link[disabled]:hover,
fieldset[disabled] .bf-2 .navbar-default .btn-link:hover,
.bf-2 .navbar-default .btn-link[disabled]:focus,
fieldset[disabled] .bf-2 .navbar-default .btn-link:focus {
    color: #cccccc;
}


.bf-4 .navbar-default {
    background-color: #222222;
    border-color: #656363;
}
.bf-4 .navbar-default .navbar-brand {
    color: #9d9d9d;
}
.bf-4 .navbar-default .navbar-brand:hover,
.bf-4 .navbar-default .navbar-brand:focus {
    color: #ffffff;
    background-color: transparent;
}
.bf-4 .navbar-default .navbar-text {
    color: #9d9d9d;
}
.bf-4 .navbar-default .navbar-nav > li > a {
    color: #9d9d9d;
}
.bf-4 .navbar-default .navbar-nav > li > a:hover,
.bf-4 .navbar-default .navbar-nav > li > a:focus {
    color: #ffffff;
    background-color: transparent;
}
.bf-4 .navbar-default .navbar-nav > .active > a,
.bf-4 .navbar-default .navbar-nav > .active > a:hover,
.bf-4 .navbar-default .navbar-nav > .active > a:focus {
    color: #ffffff;
    background-color: #080808;
}
.bf-4 .navbar-default .navbar-nav > .disabled > a,
.bf-4 .navbar-default .navbar-nav > .disabled > a:hover,
.bf-4 .navbar-default .navbar-nav > .disabled > a:focus {
    color: #444444;
    background-color: transparent;
}
.bf-4 .navbar-default .navbar-toggle {
    border-color: #333333;
}
.bf-4 .navbar-default .navbar-toggle:hover,
.bf-4 .navbar-default .navbar-toggle:focus {
    background-color: #333333;
}
.bf-4 .navbar-default .navbar-toggle .icon-bar {
    background-color: #ffffff;
}
.bf-4 .navbar-default .navbar-collapse,
.bf-4 .navbar-default .navbar-form {
    border-color: #101010;
}
.bf-4 .navbar-default .navbar-nav > .open > a,
.bf-4 .navbar-default .navbar-nav > .open > a:hover,
.bf-4 .navbar-default .navbar-nav > .open > a:focus {
    background-color: #080808;
    color: #ffffff;
}
@media (max-width: 767px) {
    .bf-4 .navbar-default .navbar-nav .open .dropdown-menu > .dropdown-header {
        border-color: #080808;
    }
    .bf-4 .navbar-default .navbar-nav .open .dropdown-menu .divider {
        background-color: #080808;
    }
    .bf-4 .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: #9d9d9d;
    }
    .bf-4 .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
    .bf-4 .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
        color: #ffffff;
        background-color: transparent;
    }
    .bf-4 .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
    .bf-4 .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
    .bf-4 .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
        color: #ffffff;
        background-color: #080808;
    }
    .bf-4 .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
    .bf-4 .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
    .bf-4 .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
        color: #444444;
        background-color: transparent;
    }
}
.bf-4 .navbar-default .navbar-link {
    color: #9d9d9d;
}
.bf-4 .navbar-default .navbar-link:hover {
    color: #ffffff;
}
.bf-4 .navbar-default .btn-link {
    color: #9d9d9d;
}
.bf-4 .navbar-default .btn-link:hover,
.bf-4 .navbar-default .btn-link:focus {
    color: #ffffff;
}
.bf-4 .navbar-default .btn-link[disabled]:hover,
fieldset[disabled] .bf-4 .navbar-default .btn-link:hover,
.bf-4 .navbar-default .btn-link[disabled]:focus,
fieldset[disabled] .bf-4 .navbar-default .btn-link:focus {
    color: #444444;
}


.bf-3 .navbar-default {
    background-color: #4e4e4e;
    border-color: #2d2d2d;
}
.bf-3 .navbar-default .navbar-brand {
    color: #9d9d9d;
}
.bf-3 .navbar-default .navbar-brand:hover,
.bf-3 .navbar-default .navbar-brand:focus {
    color: #ffffff;
    background-color: transparent;
}
.bf-3 .navbar-default .navbar-text {
    color: #9d9d9d;
}
.bf-3 .navbar-default .navbar-nav > li > a {
    color: #9d9d9d;
}
.bf-3 .navbar-default .navbar-nav > li > a:hover,
.bf-3 .navbar-default .navbar-nav > li > a:focus {
    color: #ffffff;
    background-color: transparent;
}
.bf-3 .navbar-default .navbar-nav > .active > a,
.bf-3 .navbar-default .navbar-nav > .active > a:hover,
.bf-3 .navbar-default .navbar-nav > .active > a:focus {
    color: #ffffff;
    background-color: #323232;
}
.bf-3 .navbar-default .navbar-nav > .disabled > a,
.bf-3 .navbar-default .navbar-nav > .disabled > a:hover,
.bf-3 .navbar-default .navbar-nav > .disabled > a:focus {
    color: #444444;
    background-color: transparent;
}
.bf-3 .navbar-default .navbar-toggle {
    border-color: #333333;
}
.bf-3 .navbar-default .navbar-toggle:hover,
.bf-3 .navbar-default .navbar-toggle:focus {
    background-color: #3e3e3e;
}
.bf-3 .navbar-default .navbar-toggle .icon-bar {
    background-color: #ffffff;
}
.bf-3 .navbar-default .navbar-collapse,
.bf-3 .navbar-default .navbar-form {
    border-color: #101010;
}
.bf-3 .navbar-default .navbar-nav > .open > a,
.bf-3 .navbar-default .navbar-nav > .open > a:hover,
.bf-3 .navbar-default .navbar-nav > .open > a:focus {
    background-color: #080808;
    color: #ffffff;
}
@media (max-width: 767px) {
    .bf-3 .navbar-default .navbar-nav .open .dropdown-menu > .dropdown-header {
        border-color: #080808;
    }
    .bf-3 .navbar-default .navbar-nav .open .dropdown-menu .divider {
        background-color: #080808;
    }
    .bf-3 .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: #9d9d9d;
    }
    .bf-3 .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
    .bf-3 .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
        color: #ffffff;
        background-color: transparent;
    }
    .bf-3 .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
    .bf-3 .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
    .bf-3 .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
        color: #ffffff;
        background-color: #232323;
    }
    .bf-3 .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
    .bf-3 .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
    .bf-3 .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
        color: #444444;
        background-color: transparent;
    }
}
.bf-3 .navbar-default .navbar-link {
    color: #9d9d9d;
}
.bf-3 .navbar-default .navbar-link:hover {
    color: #ffffff;
}
.bf-3 .navbar-default .btn-link {
    color: #9d9d9d;
}
.bf-3 .navbar-default .btn-link:hover,
.bf-3 .navbar-default .btn-link:focus {
    color: #ffffff;
}
.bf-3 .navbar-default .btn-link[disabled]:hover,
fieldset[disabled] .bf-3 .navbar-default .btn-link:hover,
.bf-3 .navbar-default .btn-link[disabled]:focus,
fieldset[disabled] .bf-3 .navbar-default .btn-link:focus {
    color: #444444;
}


.ts-highlight-background{
    background-color: #ffff00;
    border: #ffff00;
}

::selection {
    background: #71c9ff; /* WebKit/Blink Browsers */
}
::-moz-selection {
    background: #71c9ff; /* Gecko Browsers */
}

.highlight-not-found{
    background-color: #ffeee7;
}

.notes-not-found{
    background-color: #ffeee7;
}

.notes-item-remove{
    float: right;
}

.ios-padder {
    height: 20px;
    height: max(20px, constant(safe-area-inset-top));
    height: max(20px, env(safe-area-inset-top));
    display: none;
}

.disable-selection{
    -webkit-user-select: none;  /* Chrome all / Safari all */
    -moz-user-select: none;     /* Firefox all */
    -ms-user-select: none;
}

#ts-havent-highlights{
    display: none;
    padding-bottom: 10px;
    padding-top: 10px;
}

#ts-havent-notes{
    display: none;
    padding-bottom: 10px;
    padding-top: 10px;
}

.notes-item{
    border-top: 1px solid #DDDDDD;
    margin-top: 15px;
    margin-bottom: 10px;
    padding-top: 10px;
}

.hr-out-of-popover-content{
    margin-top: 0px;
    border-top: 1px solid #DDDDDD;
}

.popover{
    border-color: #DDDDDD;
}

.user-data-menu-icon:nth-child(1){
    width: 15px;
}

.popover-title{
    border: none;
}

.mini-navbar{
    font-family: OpenSansRegular;
}

.book-settings-subheading{
    font-family: OpenSansSemibold;
    font-size: 14px !important;
}

#ts-user-data-menu{
    font-family: OpenSansSemibold;
    font-size: 12px !important;
}

#ts-user-settings-menu{
    font-family: OpenSansSemibold;
    font-size: 12px !important;
}

#ts-user-search-menu{
    font-family: OpenSansSemibold;
    font-size: 12px !important;
}

#ts-menu + div {
    font-family: OpenSansRegular;
    font-size: 14px !important;
}

#ts-user-data-menu a[type="button"], #ts-user-settings-menu a[type="button"]{
    color: #7E7E7E;
    box-shadow: none;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #DDDDDD;
    font-size: 12px !important;
}

#ts-user-data-menu a[type="button"].active, #ts-user-settings-menu a[type="button"].active{
    color: #337AB7;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #337AB7;
    font-size: 12px !important;
}

.ts-highlight-img{
    background: url("../images/highlight.svg") no-repeat;
    display: inline-block;
    height: 16px;
    width: 18px;
    position: relative;
    top: 3px;
    left: -2px;
}

#ts-user-search-menu{
    width: 100%;
}

#ts-search + .popover, #settings + .popover, #ts-notes + .popover, #ts-menu + .popover{
    margin-top: 0px !important;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.search-title{
    margin-left: 10px;
    position: relative;
    top: -1px;
}

#ts-user-search-menu > div{
    float: left;
    border-bottom: 1px solid #DDDDDD;
    padding: 10px;
    width: 10%;
    text-align: center;
}

#ts-user-search-menu > div.active{
    border-bottom: 1px solid #337AB7;
    width: 70%;
    text-align: center;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;

}

#ts-user-search-menu a:hover{
    text-decoration: none;
    color: #337AB7;
}

.active > .ts-highlight-img{
    background: url("../images/highlight-active.svg") no-repeat;
}

.d-none{
    display: none;
}

.ts-notes2-img{
    background: url("../images/notes.svg") no-repeat;
    display: inline-block;
    height: 16px;
    width: 18px;
    position: relative;
    top: 4px;
    left: -2px;
}

.active > .ts-notes2-img{
    background: url("../images/notes-active.svg") no-repeat;
}

.ts-quotes-img{
    background: url("../images/quotes.svg") no-repeat;
    display: inline-block;
    height: 16px;
    width: 18px;
    position: relative;
    top: 4px;
    left: -2px;
}

.active > .ts-quotes-img{
    background: url("../images/quotes-active.svg") no-repeat;
}

.ts-navbar-settings-icon-img{
    background: url("../images/navbar-settings.svg") no-repeat;
    background-size: 17px 16px;
    display: inline-block;
    height: 16px;
    width: 18px;
    position: relative;
    top: 3px;
    left: -2px;
}

.active > .ts-navbar-settings-icon-img{
    background: url("../images/navbar-settings-active.svg") no-repeat;
    background-size: 17px 16px;
}

.slider.slider-horizontal .slider-track{
    height: 1px;
}

.slider-selection {
    background-image: linear-gradient(to bottom, #337AB7 0%, #337AB7 100%);
}

.slider.slider-horizontal .slider-handle {
    margin-top: -8px;
}


.popover{
    border-radius: 5px;
}

.popover-title{
    background-color: transparent;
}

.bottom-share{
    margin-top: -5px;
}

#overlayDiv{
    position: fixed;
    top: 0;
    width: 100%;
    display: none;
    min-height: 100vh;
    height: 100%;
    z-index: 999;
}

.no-background{
    background-color: transparent;
}

.popover-overlay{
    display: block !important;
    background-color: black;
    opacity: 0.5;
    -webkit-transition: all 300ms linear;
    -ms-transition: all 300ms linear;
    -moz-transition: all 300ms linear;
    transition: all 300ms linear;
}

.popover-no-overlay{
    display: none !important;
    background-color: black;
    opacity: 0;
    -webkit-transition: all 300ms linear;
    -ms-transition: all 300ms linear;
    -moz-transition: all 300ms linear;
    transition: all 300ms linear;
}

.no-padding-full-height{
    padding-top: 0px !important;
    -webkit-transition: all 300ms linear;
    -ms-transition: all 300ms linear;
    -moz-transition: all 300ms linear;
    transition: all 300ms linear;
}

.full-height{
    /*height: auto !important;*/
    /*height: 580px !important;*/
}

#modalAnnotation{
    z-index: 99999;
}

/*.nav-up{*/
    /*top: -65px;*/
    /*-webkit-transition: all 300ms linear;*/
    /*-ms-transition: all 300ms linear;*/
    /*-moz-transition: all 300ms linear;*/
    /*transition: all 300ms linear;*/
/*}*/

/*.nav-down{*/
    /*top: 0px;*/
    /*-webkit-transition: all 300ms linear;*/
    /*-ms-transition: all 300ms linear;*/
    /*-moz-transition: all 300ms linear;*/
    /*transition: all 300ms linear;*/
/*}*/


.no-padding{
    padding: 0px;
}

.ss-left{
    left: 0px;
}

.ss-right{
    right: 0px;
}

.container {
    padding-left: 20px;
    padding-right: 20px;
}

.navbar:not(input){
    -moz-user-select: none; -webkit-user-select: none; -ms-user-select:none; user-select:none;-o-user-select:none;
}

.popover:not(input){
    -moz-user-select: none; -webkit-user-select: none; -ms-user-select:none; user-select:none;-o-user-select:none;
}

.swipe-start{
    position: absolute;
    top: 50px;
    width: 15%;
    background-color: transparent;
    height: 100%;
    z-index: 20;
}

/*Mathjax odstranění poslední svislé čáry*/
.math span:last-child{
    border-left-style: none !important;
}

/* Vyhledání objektu*/
.search-object{
    border: 1px solid red;
}
.katex-searchable.search-object {
    border: 0;
}
.katex-searchable.search-object .katex-display {
    border: 1px solid red;
}

/* Lístek u poznámky*/
.notes-children{
    border-bottom: 1px solid white;
    border-top: 1px solid white;
    position: absolute;
    left: 0px;
    color:black;
    width:15px;
    opacity: 0.8;
    z-index: 21;
    cursor: pointer;
}

.search-item-text{
    margin-bottom: 5px !important;
    display: block !important;
    color: #333;
    margin-top: 0px !important;
    border-top: 1px solid #DDDDDD;
    padding-top: 20px;
    padding-bottom: 10px;
    font-family: OpenSansRegular;
    font-size: 14px;
}

.search-item-text > a {
    position: relative;
    top: -5px;
}

.search-item-text *{
    margin-top: 0px !important;
}

.search-item-text:hover{
    text-decoration: none;
    color: black;
}

.search-item-text img {
    width: auto;
    max-width: 100%;
}

.input-group{
    margin-top: 5px;
    margin-bottom: 10px;
}

.search-highlight {
    background-color: #FFFCBA;
}

.show-null{
    text-align: center;
    color: #979797;
    padding: 20px 0 20px 0;
}

.show-null img{
    width: 40px;
    padding-bottom: 10px;
}

.nav>li>a {
    padding: 10px 10px;
}
.popover{
    color: #333333;
}
.ts-font-selector{
    font-size:16px;
    cursor: pointer;
}

.btn-font{
    padding: 0px 7px 7px 0px;
}

.btn-font > span{
    padding: 7px;
    background-color: #F8F8F8;
    border: none;
}

.btn-font > span.ts-font-selected{
    padding: 6px 7px 6px 7px;
    background-color: #D6E4F1;
    color: #337AB7;
    border: none;
}

.btn-font:focus, .btn-font:active{
    outline: none;
    box-shadow: none;
    -webkit-box-shadow: none;
}

.ts-font-selected{
    /*border-bottom: 1px solid red;
    text-decoration: underline;
    -moz-text-decoration-color: red;
    text-decoration-color: red;*/
    /*color: #337AB7;
    background-color: #D6E4F1;*/
}

.font-palatino{
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.font-helvetica{
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}

.font-times{
    font-family: "Times New Roman", Times, serif;
}

.font-georgia{
    font-family: Georgia, serif;
}

.font-arial{
    font-family: Arial, Helvetica, sans-serif;
}

body{
    *min-width: 1200px !important; *width: 1200px;
    font-size: 16px;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    position: relative;
}




.popover-content{
    max-height: 400px !important;
    overflow-y: auto !important;
    *margin-bottom: 10px;
    *padding: 0px;
}

.notes-item-note{
    margin-top: 10px;
    border-top: 1px solid lightgrey;
    font-weight: 600;
}

.notes-item-chapter{
    display: inline-block;
    margin-bottom: 5px;
}

.background-circle{
    width: 32px;
    height: 32px;
    margin-right: 5px;
    margin-left: 5px;

    border-radius: 50%;
    display: inline-block;
    text-align: center;
    line-height: 32px;
    cursor: pointer;
    color: #337AB7;
}

.background-circle-border{
    border: 1px solid #337AB7;
}

.background-paper{
    width: 30px;
    height: 30px;
    margin-right: 5px;
    display: inline-block;
    text-align: center;
    line-height: 47px;
    cursor: pointer;
    background: url('../images/paper.png');
    background-repeat: repeat;
    background-size: 250px 297px;
}

.background-paper-selected{
    border: 1px solid #337AB7;
}

.ts-background-paper{
    background: url('../images/paper.png');
    background-repeat: repeat;
    background-size: 250px 297px;
}


/*.color-select-cover{*/
    /*width: 364px;*/
    /*margin-left: auto;*/
    /*margin-right: auto;*/
    /*padding-top: 10px;*/
    /*padding-bottom: 10px;*/
/*}*/

.color-select-cover {
    width: unset;
    margin-left: 18px;
    margin-right: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

@media screen and (max-width: 400px) {

    /*.background-circle{*/
        /*width: 38px;*/
        /*height: 38px;*/
        /*margin-right: 5px;*/
        /*!*border: 1px solid #666666;*!*/
        /*border-radius: 50%;*/
        /*display: inline-block;*/
        /*text-align: center;*/
        /*line-height: 38px;*/
        /*cursor: pointer;*/
    /*}*/
    /*.color-select-cover{*/
        /*width: 301px;*/
        /*margin-left: auto;*/
        /*margin-right: auto;*/
        /*padding-top: 10px;*/
        /*padding-bottom: 10px;*/
    /*}*/

    /*.background-paper{*/
        /*width: 38px;*/
        /*height: 38px;*/
    /*}*/


}



.background-circle-selected{
    border: 1px solid #337AB7;
}

.bf-1:not(.navbar){
    background-color: #ffffff !important;
    color: #333333 !important;
}
.bf-2:not(.navbar){
    background-color: #f8f1e3 !important;
    color: #504e49 !important;
}
.bf-3:not(.navbar){
    background-color: #5a5a5c !important;
    color: #ffffff !important;
}
.bf-4:not(.navbar){
    background-color: #121212 !important;
    color: #b0b0b0 !important;
}
.bf-5:not(.navbar){
    background-color: #ffffff;
}

.background-color-1{
    background-color: white !important;
}
.background-color-2{
    background-color: #d7d7d7 !important;
}
.background-color-3{
    background-color: #c3c3c3 !important;
}
.background-color-4{
    background-color: #afafaf !important;
}
.background-color-5{
    background-color: #878787 !important;
}
.background-color-6{
    background-color: #666666 !important;
    color: #ffffff;
}

.hiddenn-jsmy{
    display: none;
}
.message{
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #555;
    color: #fff;
    font-size: 12px;
    font-family: sans-serif;
    text-decoration: none;
    opacity: .9;
    padding: 10px 20px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    border-radius: 16px;
    -webkit-transition: background 200ms linear;
    -moz-transition: background 200ms linear;
    -o-transition: background 200ms linear;
    transition: background 200ms linear;
    -webkit-backface-visibility: hidden;
}

.text-white{
    color: #ffffff !important;
}
.text-white:hover{
    color: #000000 !important;
}

.highlight{
    opacity: 0.8;
    cursor: pointer;
    z-index: 999;
}
.highlight > .highlight{
    /*border-top: 2px solid red;*/
    z-index: 9991;
}


.highlight > .highlight > .highlight{
    border-top: 4px solid red;
    z-index: 9992;
}
.highlight-border{
    border-bottom: 1px solid #333;
}



/*
.highlight-1{
    background-color: #1c94c4;
    color: white;
}
.highlight-2{
    background-color: #f24e53;
    color: white;
}
.highlight-3{
    background-color: #00b20f;
    color: white;
}
.highlight-4{
    background-color: #c193c2;
    color: white;
}
.highlight-5{
    background-color: #e9955c;
    color: white;
}
*/




.highlight-1{
    background-color: #BAE1FF;
}
.highlight-2{
    background-color: #FFB3BA;
}
.highlight-3{
    background-color: #B4F9C3;
}
.highlight-4{
    background-color: #DEBAFF;
}
.highlight-5{
    background-color: #FFDFBA;
}
.highlight-6{
    background-color: transparent;
    text-decoration: none;
}

.highlight.highlight-6{
    border-bottom: 2px solid  #337AB7;
}


.highlight-delete{
    background-color: transparent;
    text-decoration: none;
    border: 1px solid red;
}

.highlight-all{
    background-color: transparent;
    text-decoration: none;
}

.activ-color{
    border: 1px solid #337AB7;
}

.highlight-notes-1{
    background-color: #43A1E9;
    color: white;
}
.highlight-notes-2{
    background-color: #EA4251;
    color: white;
}
.highlight-notes-3{
    background-color: #37CB57;
    color: white;
}
.highlight-notes-4{
    background-color: #A36AD8;
    color: white;
}
.highlight-notes-5{
    background-color: #E69940;
    color: white;
}
.highlight-notes-6{
    background-color: transparent;
    text-decoration: none;
}
.highlight-notes-delete{
    background-color: transparent;
    text-decoration: none;
}
.highgligh-underline-img{
    width: 60%;            /*13px*/
    margin-top: -2px;
}
.highgligh-trash-img{
    width: 60%;            /*16px*/
    margin-top: -6px;
    margin-left: -10px;
}
.highgligh-share-img{
    width: 18px;
    margin-top: -5px;
}
.this-chapter{
    float: left;
    font-family: OpenSansRegular;
    font-size: 14px;
}

.dev-tools-item{
    padding: 10px;
    border-top: 1px solid #DDDDDD;
    color: #337AB7;
}

.dev-tools-item:hover{
    cursor: pointer;
    background-color: #D6E4F1;
}




.pre-highlight{
    background-color: #dedede;
}
.share-highlight{
    opacity: 1;
    *border-bottom: 1px solid #00b0ed;
    background: #71c9ff
}

.highlight-notes{
    *color: white;
    *background-color: #b2ab48;
    *border: 1px solid #666666;
}
h1{
    font-size: 260%;
}
h2{
    font-size: 220%;
}
h3{
    font-size: 180%;
}
h4{
    font-size: 140%;
}
h5{
    font-size: 100%;
}

.popover{
    *max-width:400px;
    width:400px;
    z-index: 99999999999 !important;

}

.popover-color-select{
    max-width: 320px!important;
}


#content{
    font-size: 100%;
    *overflow-x: auto;
    *transform-origin: top left;
    *transform:skewY(170deg) scale(0.9,1);
}

.ts-main-navbar{
    opacity: 0.95;
}

.ts-main-navbar .navbar-brand
{
    position: absolute;
    width: 100%;
    left: 0;
    text-align: center;
    margin: auto;
}



.ts-main-navbar .navbar{
    *opacity: 0.5 !important;
    min-height: 44px;
}
.ts-main-navbar .navbar:hover{
    opacity: 1 !important;
}
.ts-main-navbar .navbar:focus{
    opacity: 1 !important;
}

@media (min-width: 200px){
    .navbar>.container .navbar-brand, .navbar>.container-fluid .navbar-brand {
        margin-left: 0px;
    }
}

.ts-main-navbar .navbar-nav {
    margin:0;
    display: inline-block;
}
.ts-main-navbar .navbar-nav > li {
    float:none;
    display:inline-block;
}



.ts-main-navbar .navbar-nav > li.open > ul.dropdown-menu {
    position: absolute;
    border: 1px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}
.ts-main-navbar .navbar-right {
    float: right !important;
}

.ts-main-navbar .navbar-right .dropdown-menu {
    left: auto;
    right: 0;
    opacity: 1;
    background-color: #ffffff !important;
}
@media (max-width: 479px){
    .navbar-nav .open .dropdown-menu {
        background-color: #ffffff;
    }
}




input.ui-slider-input {
    display: block;
    float: left;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    padding: 4px;
    width: 40px;
    height: 20px;
    line-height: 20px;
    border-width: 1px;
    border-style: solid;
    outline: 0;
    text-align: center;
    vertical-align: text-bottom;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}


.ui-bar-a, .ui-page-theme-a .ui-bar-inherit, html .ui-bar-a .ui-bar-inherit, html .ui-body-a .ui-bar-inherit, html body .ui-group-theme-a .ui-bar-inherit {
    background-color: #e9e9e9;
    border-color: #ddd;
    color: #333;
    text-shadow: 0 1px 0 #eee;
    font-weight: 700;
}

.ui-btn-corner-all, .ui-btn.ui-corner-all, .ui-slider-track.ui-corner-all, .ui-flipswitch.ui-corner-all, .ui-li-count {
    -webkit-border-radius: .3125em;
    border-radius: .3125em;
}

.ui-slider-track {
    position: relative;
    overflow: visible;
    border-width: 1px;
    border-style: solid;
    height: 15px;
    margin: 0 15px 0 68px;
    top: 6px;
}

.ui-shadow-inset {
    -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.2);
    -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.2);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.2);
}

.ts-navigation-icon {
    font-size: 24px;
    line-height: 24px;
}
.ts-main-navbar .navbar-nav > li > a {
    *padding-top: 15px;
    *padding-bottom: 15px;
}

.ts-main-navbar .navbar-nav > li > a {
    padding-top: 12px;
    padding-bottom: 12px;
}

@media screen and (max-width: 479px) {
    .ts-navigation-icon {
        font-size: 18px;
        line-height: 22px;
    }

    .ts-main-navbar .navbar-nav > li > a {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .nav>li>a.ts-navigation-icon {
        padding: 10px 5px;
    }

    #ts-menu{
        padding-left: 10px;
    }

    .closebook-border{
        margin-left: 5px;
    }

    #ts-close-book{
        margin-right: 5px;
    }
}

@media screen and (max-width: 359px) {
    .ts-navigation-icon {
        font-size: 15px;
        line-height: 18px;
    }

    .ts-main-navbar .navbar-nav > li > a {
        padding-top: 16px;
        padding-bottom: 16px;
        padding-left: 2px;
    }

    .ts-main-navbar .navbar-nav > li > a#ts-menu {
        padding-left: 15px;
    }
}

.ts-loader{
    width: 200px; height: 200px; display: block; margin-left: auto;margin-right: auto;
}


.fs-container {
    *width: 1170px;
    *margin: 50px;
}
.literally {
    width: 1170px;
    height: 1000px;
}
.literally img.background, .literally > canvas {
    position: absolute;
}
.toolset {
    margin: 1rem;
}
.tool {
    background: hsla(199, 26%, 44%, 0.5);
    padding: 0.25rem;
    margin: 0.25rem;
    border-radius: 0.25rem;
    color: #000;
    text-align: center;
    text-decoration: none;
    position: relative; // give after context later
}
.tool.current {
    color: #fff;
    background: hsla(199, 26%, 44%, 1);
}
.tool:hover {
    text-decoration: underline;
    background: hsla(199, 26%, 44%, 0.75);
}
.toolLabel {
    font-size: 1.25rem;
}
#tools-sizes.disabled {
    pointer-events: none;
}
#tools-sizes.disabled .tool:after {
    content: ' ';
    background: hsla(0, 100%, 100%, 0.75);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 0.25rem;
}

.canvas-color-black{
    color: #000000 !important;
}
.canvas-color-blue{
    color: blue !important;
}
.canvas-color-red{
    color: red !important;
}

.canvas-tool-size-5{
    font-size: 5px;
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    min-width: 16px;
    min-height: 16px;
    overflow: hidden;
}

.canvas-tool-size-10{
    font-size: 10px;
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    min-width: 16px;
    min-height: 16px;
    overflow: hidden;
}

.canvas-tool-size-15{
    font-size: 15px;
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    min-width: 16px;
    min-height: 16px;
    overflow: hidden;
}

.canvas-tool-size-20{
    font-size: 20px;
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    min-width: 16px;
    min-height: 16px;
    overflow: hidden;
}

.canvas-tool-size-25{
    font-size: 25px;
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    min-width: 16px;
    min-height: 16px;
    overflow: hidden;
}
.canvas-tool-size-50{
    font-size: 50px;
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    min-width: 16px;
    min-height: 16px;
    overflow: hidden;
}


.divider-vertical {
    height: 18px;
    padding-top: 16px;
    padding-bottom: 16px;
    border-left: 1px solid #F2F2F2;
    border-right: 1px solid #FFF;

}

.ts-main-navbar .navbar-nav > li.canvas-palette{
    display: none;
}

body{
    overflow-x: hidden;
}

.table-responsive{

    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;

    border: none;


}


* {
    -webkit-overflow-scrolling: touch;
}

.swiper-slide{
    height: 100% !important;
    /*overflow-y: scroll;*/
    overflow-x: hidden;
}


.container {
    padding-left: 0px;
    padding-right: 0px;
}

.swiper-slide{
    padding-left: 20px;
    padding-right: 20px;
}


#ss0, #ss2 {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.noselectt{
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.history-wrapper{
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1021;


}

.history-wrapper .history-href{

    border-radius: 4px 0px 0px 4px;

    color: #ffffff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;


    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;


    line-height: 40px;

    opacity: 0.6;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    display: inline-block;
}

.history-wrapper .history-dismiss{

    border-radius: 0px 4px 4px 0px;

    color: #ffffff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;


    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: 1px;

    line-height: 40px;

    opacity: 0.6;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    display: inline-block;
}

/*.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    position: relative;
    min-height: 1px;
    padding-left: 0px;
    padding-right: 0px;
}
*/

img{
    width: 100%;
    height: auto;
}

.ts-swipe-left-right{
    padding-top: 30px;
    border: 1px dashed #858585;
    background-size: 35px auto;

}

.ts-swipe-left-right-background{
    background-image: url("swipe-left-right.png");
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 35px auto;
}

.MathJax {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Chrome/Safari/Opera */
    -khtml-user-select: none;    /* Konqueror */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently
                                  not supported by any browser */
}

/* Zajistí že tabulka může přetíkat, ale zároveň je povoleno zalamování textu */
@media screen and (max-width: 767px){
    .table-responsive>.table>thead>tr>th, .table-responsive>.table>tbody>tr>th, .table-responsive>.table>tfoot>tr>th, .table-responsive>.table>thead>tr>td, .table-responsive>.table>tbody>tr>td, .table-responsive>.table>tfoot>tr>td {
        white-space: normal;
    }
}







/*--------Menu--------*/
/*.fs-odsadit-menu {*/
    /*margin-left: 28px;*/
    /*display: inline-block!important;*/
/*}*/

#menu-uniq .glyphicon + a, #menu-uniq .glyphicon > a{
    margin-left: 28px;
    display: inline-block!important;
}

#menu-uniq .glyphicon + a, #menu-uniq .glyphicon > a{
    /*color: #333;*/
}



/*.fs-odsadit-menu:hover {*/
    /*color: #333;*/
/*}*/

#menu-uniq ul{
    margin-left: 20px;
}

.menu-item:hover{
    color: #333;
}


#menu-uniq ul li a{
    display: block;
    padding: 10px 10px;
    border-radius: 4px; /*4px*/
}

#menu-uniq li a:hover, #menu-uniq li a:focus {
    text-decoration: none;
    color: #333;
    /*background-color: #f2f2f2;*/
}

#menu-uniq ul li.active {
    color: #337AB7 !important;
    background-color: #d2dfeb; /*777*/
    border-radius: 4px; /*4px*/

}
#menu-uniq ul li.active a {
    color: #333 !important;
}
#menu-uniq ul li.active a:hover {
    color: #333!important;
    background-color: transparent;
}

ul#menu-uniq ul li{
    /*margin-left: 8px;*/
}

span + a {
    margin-left: 0px !important;
}


/*
   Na body core pridava triedu/y podla toho, ci kniha bezi v prohlizeci alebo appke:
    platform
            -web    (vsetky prohlizece a operacne systemy)
            -ios
            -android
            -windows
            -macos
            -app    (==ios|android|windows|macos)
   Teda vzdy je bud len web, alebo app a zaroven dana platforma.

   V knihe sa potom daju pouzit nasledujuce triedy na SKRYTIE prvku:
    platform
            -web-hidden    (skryje na webe, v appke necha zobrazene)
            -ios-hidden
            -android-hidden
            -windows-hidden
            -macos-hidden
            -app-hidden    (==ios-hidden|android-hidden|windows-hidden|macos-hidden)
*/
body.platform-web .platform-web-hidden,
body.platform-app .platform-app-hidden,
body.platform-ios .platform-ios-hidden,
body.platform-android .platform-android-hidden,
body.platform-windows .platform-windows-hidden,
body.platform-macos .platform-macos-hidden {
    display: none;
}

/******************************************************
*******************************************************
                       navbar
*******************************************************
*******************************************************/
.ts-notes-img{
    background: url("../images/pin.svg") no-repeat;
    display: inline-block;
    height: 25px;
    width: 25px;
    position: relative;
    top: 1px;
}

.notes-share{
    text-align: right;
    margin-right: -10px;
    font-family: OpenSansRegular;
    font-size: 14px;
}
.this-chapter-checkbox,
.this-chapter-checkbox-2,
.this-chapter-checkbox-search {
    width: 20px;
}

.notes-share-2{
    text-align: right;
    font-family: OpenSansRegular;
    font-size: 14px;
}

#ts-notes[aria-describedby] > span.ts-notes-img{
    background: url("../images/pin-active.svg") no-repeat;
}

#ts-digest-form{
    margin-bottom: 10px;
    border: 1px #DDDDDD solid;
}

.settings-img{
    background: url("../images/navbar-settings.svg") no-repeat;
    display: inline-block;
    height: 25px;
    width: 25px;
}

#settings[aria-describedby] > span.settings-img{
    background: url("../images/navbar-settings-active.svg") no-repeat;
}

.ts-search-img{
    background: url("../images/search.svg") no-repeat;
    display: inline-block;
    height: 25px;
    width: 25px;
}

#ts-search[aria-describedby] > span.ts-search-img{
    background: url("../images/search-active.svg") no-repeat;
}

.ts-closebook-img{
    background: url("../images/exit.svg") no-repeat;
    display: inline-block;
    height: 25px;
    width: 25px;
    position: relative;
    top: 3px;
}

#ts-searchstring{
    height: 40px;
    font-size: 24px;
    font-family: OpenSansBold;
    border: none;
    outline: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.closebook-border{
    position: relative;
    top: -7px;
    left: -9px;
    display: inline-block;
    border-left: 1px solid #DDDDDD;
    height: 23px;
}

.container > .navbar-nav{
    margin-top: 3px !important;
}

#ts-searchtrigger{
    width: 38px;
    border-radius: 38px;
    background-color: #337AB7;
    border: none;
    padding: 0 !important;
}

#ts-deletetrigger{
    background-color: transparent;
    border: none;
}

#ts-deletetrigger > img{
    width: 14px;
}

input#ts-searchstring:focus{
    outline: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.ts-developer-tools{
    font-family: OpenSansRegular;
    font-size: 14px;
}

img.searchtrigger-img{
    width: 10px;
}

.ts-menu-img{
    background: url("../images/content.svg") no-repeat;
    display: inline-block;
    height: 25px;
    width: 25px;
    position: relative;
    top: 3px;
}

#ts-menu[aria-describedby] > span.ts-menu-img{
    background: url("../images/content-active.svg") no-repeat;
}

.nav-prev-img{
    background: url("../images/arrow-left.svg") no-repeat;
    display: inline-block;
    height: 25px;
    width: 25px;
}

.nav-next-img{
    background: url("../images/arrow-right.svg") no-repeat;
    display: inline-block;
    height: 25px;
    width: 25px;
}

.nav-reload-img{
    background: url("../images/navbar-refresh.svg") no-repeat;
    display: inline-block;
    height: 25px;
    width: 25px;
}

#nav-reloader{
    margin-top: -5px;
}

.ts-search-text{
    background: url("../images/search.svg") no-repeat;
    display: inline-block;
    height: 16px;
    width: 16px;
    background-size: 16px 16px;
    font-size: 12px;
}

.active > a > .ts-search-text{
    background: url("../images/search-active.svg") no-repeat;
    height: 16px;
    width: 16px;
    background-size: 16px 16px;
}

.ts-search-images{
    background: url("../images/images.svg") no-repeat;
    display: inline-block;
    height: 16px;
    width: 16px;
    background-size: 16px 16px;
    font-size: 12px;
}

.active > a > .ts-search-images{
    background: url("../images/images-active.svg") no-repeat;
    height: 16px;
    width: 16px;
    background-size: 16px 16px;
}

.ts-search-videos{
    background: url("../images/video.svg") no-repeat;
    display: inline-block;
    height: 16px;
    width: 16px;
    background-size: 16px 16px;
    font-size: 12px;
}

.active > a > .ts-search-videos{
    background: url("../images/video-active.svg") no-repeat;
    height: 16px;
    width: 16px;
    background-size: 16px 16px;
}

.ts-search-equations{
    background: url("../images/equation.svg") no-repeat;
    display: inline-block;
    height: 16px;
    width: 16px;
    background-size: 16px 16px;
    font-size: 12px;
}

.active > a > .ts-search-equations{
    background: url("../images/equation-active.svg") no-repeat;
    height: 16px;
    width: 16px;
    background-size: 16px 16px;
}

#highlight-trigger > span,
#notes-trigger > span,
#share-trigger > span{
    position: relative;
    left: 2px;
    top: 1px;
}

#ts-menu + div > h3.popover-title{
    text-transform: uppercase;
    color: #7E7E7E;
    box-shadow: none;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #DDDDDD;
    font-weight: 400;
}

#lightbox:focus{
    outline: none;
}

html, body{
    height: 100% !important;
}

::-webkit-scrollbar-thumb:hover {
    background: yellow;
}

.pg-zoom {
    position: absolute;
    height: 20px!important;
    width: 20px!important;
    border: none!important;
    padding: 0!important;
    bottom: 5%;
    right: 5%;
}

/*.pg-glyph{*/
    /*padding: 6px 6px 12px 6px;*/
/*}*/

#menu-uniq .glyphicon{
    padding: 6px 6px 12px 6px;
}

/*test*/
.menu-uniq a:only-child {
    padding-left: 38px!important;
}


#menu-uniq .glyphicon > a:not(.menu-item){
    font-family: OpenSansRegular;
    margin-left: 0px!important;
    padding-left: 17px!important;
    color: #333;
    position: absolute;
    padding-top: 1px;
}

#menu-uniq>li+li{
    margin-top: 0!important;
}


#menu-uniq .glyphicon > a:not(.menu-item):hover{
    text-decoration: none;
    background-color: transparent!important;
}

.nav-pills li:hover{
    background-color: #eee;
    border-radius: 4px!important;
}

.nav-pills>li.active>a{
    background-color: transparent!important;
}

.nav-pills>li.active{
    background-color: #d2dfeb;
    border-radius: 4px!important;

}
/*----*/
.nav-pills>li.active>a  {
    color: #333;
}

#menu-uniq ul{
    padding-left: 0!important;
    list-style: none!important;
}
#menu-uniq .btn:active, #menu-uniq .btn.active{
    -webkit-box-shadow: none!important;
    box-shadow: none!important;
}

#menu-uniq ul li.active span{
    color: #373737!important;
}

.swiper-slide{
    width: 100%!important;
}

.menu-uniq li {
    display: flex;
}

.is-mobile .modal button.close {
    font-size: 44px;
    line-height: 0.8;
    margin-top: -10px;
}

.platform-ios #id-citation-modal .modal-dialog {
    margin-top: 30px;
    margin-top: max(30px, constant(safe-area-inset-top));
    margin-top: max(30px, env(safe-area-inset-top));
}

.katex-display.ts-swipe-left-right-background {
    background-image: none;
}
.katex-display.ts-swipe-left-right {
    padding-top: 0;
}
.katex-display>.katex {
    padding: 5px;
}

.katex-error + .tooltip .tooltip-inner {
    background-color: #cc0000;
}
.katex-error + .tooltip.top .tooltip-arrow {
    border-top-color: #cc0000;
}

.katex {
    font-size: 1.1em;
}


figure.table.table-responsive {
    display: block;
}
figure.table.table-responsive.ts-swipe-left-right-background {
    background-image: none;
}
figure.table.table-responsive.ts-swipe-left-right {
    padding-top: 0;
}

[data-lightbox]:hover {
    cursor: zoom-in;
}

.img-with-audio {
    cursor: pointer;
}


#reading-progress-bar {
    width: 100%;
    background-color: #e7e7e7;
    margin-bottom: -1px;
}
#reading-progress-value {
    height: 2px;
    background-color: #7e7e7e;
    width: 0;
}





.ts-main-navbar .settings-text-to-speech button .fa {
    padding-right: 4px;
}
.ts-main-navbar .settings-text-to-speech select {
    width: 49%;
}

#selection-speech-synthesis.reading {
    background-color: #337AB7;
}
#selection-speech-synthesis.reading .fa {
    color: white !important;
}
#selection-speech-synthesis:focus {
    outline: none;
}
@media (max-width: 400px) {
    .ts-main-navbar .settings-text-to-speech select {
        width: 44%;
    }
}
@media (max-width: 360px) {
    .ts-main-navbar .settings-text-to-speech select {
        width: auto;
        float: none !important;
        margin-top: 8px;
    }
}



.not-animated-yet {
    opacity: 0;
}





.ck-content .image img {
    background-color: white;
}


.ts-main-navbar .container {
    width: auto;
}



.notes-content .ts-remove-note, 
.notes-content .ts-remove-highlight {
    margin-right: 5px;
}
.notes-content .ts-remove-note img.highgligh-trash-img,
.notes-content .ts-remove-highlight img.highgligh-trash-img {
    width: 100%;
    margin-left: 0;
}





.highlight-6, .highlight-notes-6 {
    border-bottom: 1px solid red;
}
.annotation-select-trigger.highlight-6,
.notes-select-trigger.highlight-notes-6,
.color-select-trigger.highlight-6,
.notes-color-select-trigger.highlight-notes-6 {
    border-bottom: 0;
}
.notes-color-select-trigger.highlight-notes-6 {
    text-decoration: underline;
    font-size: 21px;
}



.ck-content .panel code {
    background: none;
}


a {
    /* treba oba, pretoze inak nepokryje vsetky pripady */
    word-break: break-word;
    hyphens: auto;
}

@media screen and (max-width: 480px) {
    .ck-content h1,
    .ck-content h2,
    .ck-content h3 {
        hyphens: auto;
    }
}


@media screen and (min-width: 480px) {
    #ts-main-navbar .navbar-nav.navbar-right {
        margin-right: 5px;
    }
    #ts-main-navbar .navbar-nav:not(.navbar-right) {
        margin-left: 5px;
    }
}


/* nove upravy menu */
#menu-uniq a.menu-item {
    
}
#menu-uniq .glyphicon > a.menu-item-nonchapter,
#menu-uniq a.menu-item-nonchapter {
    color: #337ab7;

    /* nazev strany je zanoreny (meh) v glyphicon, ktora toto nastavuje na inu hodnotu, a potom text vypada
    inak (tensi) nez ine obyc. strany, ale my chceme aby aj obyc aj nonchapter vypadali stejne*/
    -webkit-font-smoothing: auto;
}
#menu-uniq a.menu-item-demo {
    color: darkgray;
    cursor: not-allowed;
}
#menu-uniq a.menu-item:hover {
    
}
#menu-uniq a.menu-item-nonchapter:hover {
    color: #333;
}
#menu-uniq a.menu-item-demo:hover {
    color: darkgray;
    background-color: transparent;
}

#menu-uniq li.no-hover-bg:hover {
    background-color: transparent;
}



/* dev start - na debugovanie 3 typov poloziek v menu */
/*
#menu-uniq a.menu-item-demo {
    border: 2px solid #bbb;
}
#menu-uniq a.menu-item {
    border: 2px solid blue;
}
#menu-uniq a.menu-item-nonchapter {
    border: 2px solid red;
}
#menu-uniq a.menu-item:before,
#menu-uniq a.menu-item-demo:before,
#menu-uniq a.menu-item-nonchapter:before {
    font-size: 80%;
    top: 0px;
    left: 0;
    position: absolute;
    background: white;
    position: relative;
}
#menu-uniq a.menu-item:before {
    content: "menu-item " attr(href) " ";
    color: blue;
}
#menu-uniq a.menu-item-demo:before {
    content: "demo " attr(href) " ";
    color: #bbb;
}
#menu-uniq a.menu-item-nonchapter:before {
    content: "nonchapter " attr(href) " ";
    color: red;
}
*/
/* dev end */










/* ==================================== TONDOVA OPRAVA ANIMACIE SEARCH ==================================== */
/* (asi polovica sa opakuje vetsinu kodu, a upravuju len cast, teda by slo jednoducho mergnut so starym css) */
#ts-user-search-menu {
    width: 100%;

    display: flex;
    border-bottom: 1px solid #DDDDDD;
}

#ts-user-search-menu > div {
    float: none;
    border-bottom: none;
    padding: 10px;
    width: 10%;
    text-align: center;
    margin: 0 auto;
}

#ts-user-search-menu > div a {
    cursor: pointer;
}

#ts-user-search-menu > div.active {
    border-bottom: 1px solid #337AB7;
    width: 70%;
    text-align: center;
    -webkit-animation: widthSearchMenu 0.3s ease forwards;
            animation: widthSearchMenu 0.3s ease forwards;
    /*transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;*/
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    transition: none;
    margin-bottom: -1px;
}

#ts-user-search-menu > div.active a {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    -webkit-animation: searchMenuText 0.3s ease forwards;
            animation: searchMenuText 0.3s ease forwards;
}

#ts-user-search-menu > div .search-title {
    margin-left: 10px;
    position: relative;
    top: -1px;
    opacity: 0;
    display: none;
}

#ts-user-search-menu > div.active span.search-title {
    display: block;
    opacity: 1;
}

@-webkit-keyframes widthSearchMenu {
    0% {
        width: 10%;
    }

    100% {
        width: 70%;
    }
}

@keyframes widthSearchMenu {
    0% {
        width: 10%;
    }

    100% {
        width: 70%;
    }
}

@-webkit-keyframes searchMenuText {
    0% {
        display: none;
        opacity: 0;
    }

    33% {
        display: none;
        opacity: 0;
    }

    66% {
        display: flex;
        opacity: 0;
    }

    100% {
        display: flex;
        opacity: 1;
    }
}

@keyframes searchMenuText {
    0% {
        display: none;
        opacity: 0;
    }

    33% {
        display: none;
        opacity: 0;
    }

    66% {
        display: flex;
        opacity: 0;
    }

    100% {
        display: flex;
        opacity: 1;
    }
}
/* ==================================== end ==================================== */





#next-page-button {
    position: fixed;
    bottom: 10px;
    bottom: calc(10px + var(--demo-overlay-bottom-height, 0px));
    right: 11px;
    color: gray;
    border-radius: 5px;
    padding: 7px 7px;
    height: 35px;
    z-index: 900;
    opacity: 0;
    background-color: rgba(255,255,255,0.8);
    transition: opacity 0.3s;
}
#next-page-button:hover {
    background-color: #e1e1e1;
    color: black;
    cursor: pointer;
    opacity: 1 !important;
}
#next-page-button .next-page-button-arrow {
    background: url(../images/arrow-right.svg) no-repeat;
    display: inline-block;
    height: 25px;
    width: 25px;
}
#next-page-button:hover .next-page-button-arrow {
    filter: brightness(0);
}
#next-page-button .next-page-button-label {
    font-family: OpenSansRegular;
    position: relative;
    top: -9px;
}








span.nbsp-ghost {
    width: 1ch;
    display: inline-block;
    border: 1px solid black;
    background: #9fc2ff;
    background: #ff8585;
    height: 1em;
    position: relative;
    top: 2px;
}




:root {
    /* toto je extra "volny riadok" na koniec kazdej strany, avsak k tomu sa este dalej ripocitavaju pripadne dalsie hodnoty */
    --page-bottom-padding: 50px;
}

.is-not-mobile .ck-content,
.is-mobile .swiper-slide {
    padding-bottom: var(--page-bottom-padding);
    padding-bottom: calc(env(safe-area-inset-bottom) + var(--page-bottom-padding));
}






/* ==================================== DEMO OVERLAY ====================================== */

@font-face {
    font-family: 'Montserrat';
    src: url("../fonts/Montserrat-VariableFont_wght.ttf") format('truetype');
    font-weight: 100 900; /* Rozsah hrúbky */
    font-style: normal; /* Normálny štýl */
    font-display: swap; /* Rýchle zobrazenie textu s dočasným fallback fontom */
}

@font-face {
    font-family: 'Montserrat';
    src: url("../fonts/Montserrat-Italic-VariableFont_wght.ttf") format('truetype');
    font-weight: 100 900; /* Rozsah hrúbky */
    font-style: italic; /* Italický štýl */
    font-display: swap;
}

#demo-overlay-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999999999;
    /* font-family: OpenSansRegular, Arial; */
    text-align: center;
    box-shadow: 0px 0px 3px 0px #545454;
    transition: all 0.3s;
    
    font-family: Montserrat, Helvetica, sans-serif;
    font-size: 115%;

    font-weight: 500;
    transform: translateY(150%);

    background-color: rgba(0,0,0,0.8);
}
#demo-overlay-bottom.demo-overlay-bottom-animation-enabled {
    animation: animDemoOverlayBottom cubic-bezier(.35, 1.37, .75, 1.63) 0.5s;
    animation-fill-mode: forwards;
    animation-delay: 1s;
}

#demo-overlay-bottom:hover {
    box-shadow: 0px 0px 18px 0px #7b7b7b;
    cursor: pointer;
}

.is-mobile #demo-overlay-bottom {
    box-shadow: 0px 0px 9px 0px #7b7b7b;
}

#demo-overlay-bottom .demo-overlay-bottom-block-link {
    width: 100%;
    display: inline-block;

    padding: 17px 15px;

    color: white;
}

#demo-overlay-bottom .demo-overlay-bottom-message-linklike {
    text-decoration: underline;
}

@keyframes animDemoOverlayBottom {
    from {
        transform: translateY(150%);
    }

    to {
        transform: translateY(0);
    }
}

@media only screen and (min-height: 700px) and (min-width: 400px) {
    #demo-overlay-bottom {
        font-size: 110%;

        font-size: 130%;
    }
    #demo-overlay-bottom .demo-overlay-bottom-block-link {
        padding: 20px 15px;
    }
}
@media only screen and (max-height: 400px) {
    #demo-overlay-bottom {
        font-size: 80%;
    }
    #demo-overlay-bottom .demo-overlay-bottom-block-link {
        padding: 10px 8px;
    }
}





#demo-overlay-modal .modal-body {
    padding: 30px;
}
#demo-overlay-modal .modal-content {
    text-align: center;
    font-family: Montserrat, Helvetica, sans-serif;
    color: white;

    background-color: #ffffffdb;
    
}
#demo-overlay-modal #demo-overlay-modal-logo {
    margin-top: 10px;

    width: 60px;
}
#demo-overlay-modal p {
    margin: 40px 0px;

    font-size: 18px;
    color: #333333;
}
#demo-overlay-modal .demo-overlay-modal-link {
    text-decoration: underline;

    color: #666;
}
#demo-overlay-modal .demo-overlay-modal-link:hover {
    text-decoration: none;
}
#demo-overlay-modal button,
#demo-overlay-modal a.btn {
    font-size: 14px;
    margin: 5px;

    font-weight: 600;
    color: white;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    text-transform: uppercase;
    width: 98%;
    width: calc(100% - 10px);

    /* TODO: preco je na safari hrubsie? */
    -webkit-font-smoothing: auto;
}

#demo-overlay-modal .btn.btn-default {
    background: #71c9ff;
    border-color: #71c9ff;
    border-width: 2px;
}
#demo-overlay-modal .btn.btn-default:hover {
    background: transparent;
    border-color: #71c9ff;
    color: #71c9ff;
}
#demo-overlay-modal .btn.btn-primary {
    background: #1a50a0;
    border-color: #1a50a0;
    border-width: 2px;
}
#demo-overlay-modal .btn.btn-primary:hover {
    border-color: #1a50a0;
    color: #1a50a0;
    background: transparent;
}
@media screen and (min-width: 768px) {
    #demo-overlay-modal .btn.btn-default {
        margin-right: -18px;
    }
    #demo-overlay-modal .btn.btn-primary {
        margin-left: -18px;
    }
}


/* --------- magic from SO v1 start - vertically centered modal --------- */
@media print {    
    #demo-overlay-modal {
        text-align: center;
    }
    /* @media screen and (min-width: 768px) { */
        #demo-overlay-modal:before {
            display: inline-block;
            vertical-align: middle;
            content: " ";
            height: 100%;
        }
    /* } */
    #demo-overlay-modal .modal-dialog {
        display: inline-block;
        text-align: left;
        vertical-align: middle;
    }
}
/* --------- magic from SO v1 end - vertically centered modal --------- */


/* --------- magic from SO v2 start - vertically centered modal --------- */
/* Vertikálne centrovanie modalu */
/* aby fungovalo tam musi mat selektor vyssiu prioritu, avsak potom sa dozuje sirka */
.modal-dialog {



    /* margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
}

.modal-dialog {
    -display: flex;
    -align-items: center;
    -min-height: 100vh; /* Zabezpečí, že modal bude centrovaný aj na malej obrazovke */
}

#demo-overlay-modal .modal-dialog {
    display: flex;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
    margin: 0 10px;
}
@media (min-width: 768px) {
    #demo-overlay-modal .modal-dialog {
        margin: 0px auto;
    }
}


/* --------- magic from SO v2 end - vertically centered modal --------- */

.demo-overlay-enabled.is-not-mobile .ck-content,
.demo-overlay-enabled.is-mobile .swiper-slide {
    padding-bottom: calc(var(--page-bottom-padding) + 70px);
    padding-bottom: calc(env(safe-area-inset-bottom) + var(--page-bottom-padding) + 70px);
}

#demo-overlay-modal .close {
    position: absolute;
    right: 0px;
    top: 0;
    opacity: 0.5;
}

#demo-overlay-modal .close:after {
    content: "";
    background: url(../images/close_icon-publi-web.svg);
    height: 15px;
    width: 15px;
    display: inline-block;
    margin-top: 10px;
    margin-right: 10px;
}

#demo-overlay-modal .close:hover {
    opacity: 0.75;
}

/* ==================================== DEMO OVERLAY - end ====================================== */



