/* default template - css for book only, not for editor */

/* nothing goes here */
.katex {
    font-size: 1em;
}

.bf-3 .all-pages .image {
    filter: invert(1);
}

.bf-4 .all-pages .image {
    filter: invert(0.81);
}

.all-pages h2, .all-pages h3, .all-pages .text-big {
    text-align: left !important;
}

.no-wrap-text {
    white-space: nowrap;
}

.block-katex-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.all-pages .image-scroll {
    overflow: auto;
}

.all-pages .katex-display {
    padding: 10px 0;
}

.all-pages .flex-responsive-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.all-pages .image-tikz {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.all-pages .image-tikz img {
    margin: 0;
}

.all-pages .ts-swipe-left-right .image-tikz {
    justify-content: flex-start;
}

@media screen and (max-width: 500px) {
    .all-pages h2,
    .all-pages h3 {
        hyphens: auto;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
    }   
}

/* Se skrollováním */
.pages-2 .image {
    width: 12em;
}

.pages-3 .image-1 {
    width: 20em;
}

.pages-3 .image-2 {
    width: 25em;
}

.pages-4 .image-1,
.pages-4 .image-2 {
    min-width: 9.5em;
}

.pages-4 .image-5 {
    min-width: 8em;
}

.pages-4 .image-3 {
    width: 21em;
}

.pages-4 .image-4 {
    min-width: 9em;
}


.pages-4 .image-6 {
    min-width: 14em;
}

.pages-5 .image-1 {
    width: 8em;
}

.pages-5 .image-2 {
    width: 12em;
}

.pages-5 .image-3 {
    width: 15em;
}

.pages-5 .image-4 img:nth-of-type(1) {
    min-width: 9em;
    width: 9em;
}

.pages-5 .image-4 img:nth-of-type(2) {
    min-width: 8.1em;
    width: 8.1em;
}

.pages-5 .image-4 img:nth-of-type(3) {
    min-width: 6.5em;
    width: 6.5em;
}

.pages-5 .images-5 .image-5-1 img {
    width: 9em;
    min-width: 9em;
}

.pages-5 .images-5 .image-5-2 img {
    width: 10.6em;
    min-width: 10.6em;
}

.pages-5 .images-5 .image-5-3 img {
    width: 10.6em;
    min-width: 10.6em;
}

.pages-5 .images-5 .image-5-4 img {
    width: 8.8em;
    min-width: 8.8em;
}

.pages-5 .image-6 img:nth-of-type(1),
.pages-5 .image-6 img:nth-of-type(2) {
    width: 11em;
    min-width: 11em;
}

.pages-5 .image-6 img:nth-of-type(3) {
    width: 9em;
    min-width: 9em;
}

.pages-5 .image-7-1 img {
    width: 11em;
    min-width: 11em;
}

.pages-5 .image-7-2 img {
    width: 12.6em;
    min-width: 12.6em;
}

.pages-5 .image-7-3 img {
    width: 10.8em;
    min-width: 10.8em;
}

.pages-5 .image-8 img:nth-of-type(1) {
    width: 9.2em;
    min-width: 9.2em;
}

.pages-5 .image-8 img:nth-of-type(2) {
    width: 10.8em;
    min-width: 10.8em;
}

.pages-5 .image-8 img:nth-of-type(3) {
    width: 9em;
    min-width: 9em;
}


.pages-5 .image-9 img:nth-of-type(1) {
    width: 10.8em;
    min-width: 10.8em;
}

.pages-5 .image-9 img:nth-of-type(2) {
    width: 12.4em;
    min-width: 12.4em;
}

.pages-5 .image-9 img:nth-of-type(3) {
    width: 11.4em;
    min-width: 11.4em;
}


.pages-5 .image-10-1 img {
    width: 13.3em;
    min-width: 13.3em;
}

.pages-5 .image-10-2 img {
    width: 14.1em;
    min-width: 14.1em;
}

.pages-5 .image-10-3 img {
    width: 13.1em;
    min-width: 13.1em;
}

.pages-7 .image-1 img:nth-of-type(1) {
    width: 12.5em;
    min-width: 12.5em;
}

.pages-7 .image-1 img:nth-of-type(2) {
    width: 18em;
    min-width: 18em;
}

.pages-7 .image-2 img:nth-of-type(1) {
    width: 12em;
    min-width: 12em;
}

.pages-7 .image-2 img:nth-of-type(2) {
    width: 21em;
    min-width: 21em;
}

.pages-7 .image-3 img:nth-of-type(1) {
    width: 13.5em;
    min-width: 13.5em;
}

.pages-7 .image-3 img:nth-of-type(2) {
    width: 20em;
    min-width: 20em;
}

.pages-7 .image-4 img:nth-of-type(1) {
    width: 10em;
    min-width: 10em;
}

.pages-7 .image-4 img:nth-of-type(2) {
    width: 18em;
    min-width: 18em;
}

.pages-8 .image {
    width: 6.5em;
}

.pages-11 .image {
    width: 12em;
}

.katex-wrap {
    text-align: center;
    line-height: 4;
    overflow: auto;
    padding: 1em 0;
}



.all-pages .flex-responsive-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 25px;
}

.all-pages .flex-responsive-wrap > p {
    margin: 0 auto;
}


/* Bez scrollování
.all-pages .image {
    max-width: 100%;
}

.pages-2 .image img {
    width: 15em;
}

.pages-3 .image-1 img {
    width: 23em;
}

.pages-3 .image-2 img {
    width: 29em;
}

.pages-4 .image-1 img,
.pages-4 .image-2 img,
.pages-4 .image-5 img {
    width: 29em;
}

.pages-4 .image-3 img {
    width: 24em;
}

.pages-4 .image-4 img {
    width: 33em;
}


.pages-4 .image-6 img {
    width: 41em;
}

.pages-5 .image-1 img {
    width: 10em;
}

.pages-5 .image-2 img {
    width: 14em;
}

.pages-5 .image-3 img {
    width: 18em;
}

.pages-5 .image-4 img {
    width: 29em;
}

.pages-5 .image-5 img {
    width: 46em;
}

.pages-5 .image-6 img,
.pages-5 .image-8 img {
    width: 36em;
}

.pages-5 .image-7 img,
.pages-5 .image-9 img {
    width: 41em;
}

.pages-5 .image-10 img {
    width: 50em;
}

.pages-7 .image-1 img,
.pages-7 .image-4 img {
    width: 45em;
}

.pages-7 .image-2 img,
.pages-7 .image-3 img {
    width: 46em;
}

.pages-8 .image img {
    width: 8em;
}

.pages-11 .image img {
    width: 15em;
}*/