@media print {

    * {
        box-sizing: border-box;
        filter: none !important;
    }

    /* ------------ pages ------------ */

    @page {
        size: A4;
    }
    
    @page :first {
        margin: 10mm;
        @bottom-left {
            content: none !important;
        }

        @bottom-right {
            content: none !important;
        }
    }

    @page :last {
        margin: 10mm;
        @bottom-left {
            content: none !important;
        }

        @bottom-right {
            content: none !important;
        }
    }

    @page :left {
        margin-top: 8mm;
        margin-bottom: 12.5mm;
        margin-left: 8mm;
        margin-right: 25mm;
        /* background-color: pink; */

        @bottom-left {
            content: counter(page);
            font-size: 10pt;
            padding-bottom: 5mm;
            color: #000;
        }
    }

    
    @page :right {
        margin-top: 8mm;
        margin-bottom: 12.5mm;
        margin-left: 25mm;
        margin-right: 8mm;
        /* background-color: chocolate; */

        @bottom-right {
            content: counter(page);
            font-size: 10pt;
            padding-bottom: 5mm;
            color: #000;
        }
    }

    /* ------------ variables ------------ */

    :root {
        --text-size: ;
        --text-small: 12pt;
        --text-large: 12pt;
        --text-caption: 8pt;
        --headline-size: 18pt;
        --text-color: ;
        --background-color: ;
        --element-color-1: ;
        --element-color-2: ;
        --padding-small: .2rem;
        --padding-medium: .4rem;
        --padding-large: .8rem;
        --column-small: 25%;
        --column-large: 75%;
    }

    /* ------------ general resets ------------ */ 

    html {
        width: 100%;
        height: 100%;
    }

    body {
        width: 100%;
        height: 100%;
    }

    .main-wrapper {
        display: block;
        overflow: visible !important;
        width: 100%;
    }

    .header-wrapper {
        z-index: 40;
        width: 100% !important;
        height: 100% !important;
        padding: 0mm;
        background-color: lightsalmon;
    }

    .content-wrapper {
        background-color: yellow;
    }

    .btc-wrapper {
        padding: 0;
        overflow: visible !important;
        flex-shrink: 1;
        border-left: 1mm solid black;
    }

    .infos-for-print {
        height: 100%!important;
        width: 100% !important;
        display: block;
        background-color: pink;
        filter: url(#n1);
    }

    .ask-samantha-wrapper, .ask-samantha {
        padding: 0;
    }

   

      body,
    .content-wrapper,
    .btc-wrapper,
    .ask-samantha,
    .main-wrapper {
        overflow: visible !important;
    }

    .content-wrapper {
        width: 100%;
        height: fit-content;
    }

    .border {
        display: block;
        left: 25%;
        filter: none;
        height: 100%;
        position: relative;
        width: 2mm;
    }

    .btc-single-image-wrapper {
        page-break-inside: auto;
    }

    iframe {
        display: none;
    }

    #btc-about {
        display: none;
    }

    .ask-samantha,
    .ask-samantha-wrapper {
        padding-left: 0;
    }

    .ask-samantha-wrapper {
        /* padding-top: 1rem; */
    }

    .samantha-answer p,
    .samantha-question {
        font-size: 8pt !important;
    }

    .samantha-question {
        background-color: white;
        padding: var(--padding-medium);
        font-size: var(--text-small);
        width: calc( 100% - 2rem);
        margin: 0 1rem;
        margin-top: 1rem;
    }

    .separator, .btc-article {
        background-color: lightgreen;
        /* padding-right: 15mm; */
    }

    .separator {
        width: calc(100% - 6mm);
        margin-left: 3mm;
        margin-right: 3mm;
        border-bottom: 1mm solid black;
    }

    .btc-article {
        width: 100%;
    }

    .btc-article h2 {
        font-size: 5rem;
    }

    .issue-link {
        z-index: 50;
        display: none;
        filter: none;
    }

    .btc-wrapper > * {
        filter: none;
    }

     .ask-samantha-wrapper {
        filter: none;
    }

    /* ------------ first page ------------ */ 

    .backcover {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .header-wrapper > img {
        width: 100%;
        height: 100%;
        display: none !important;
    }

    .issue-link {
        font-size: 15pt;
        max-width: 20vw;
    }

    .index-pagenumbers {
        visibility: visible !important;
    }


    /* ------------ general article to print ------------ */ 

    .no-print {
        display: none !important;
    }

    .print-mode {
        display: block;
    }

    .hide-print {
        display: none !important;
    }

    .two-thirds {
        width: 100%;
    }

    .footnote-container {
        padding: 0 2rem 2rem 2rem;
    }

    /* ------------ article specific ------------ */ 

    #juggling h2 {
        font-size: 4.5rem !important;
    }

    #juggling .btc-single-image-wrapper {
        padding-top: 0;
        padding-bottom: 0;
    }

    /* 
    #juggling .two-columns{
        padding-left: 1rem;
        padding-top:1rem;
        padding-bottom: 0;
        padding-right: 0;
    } 
    */

    #what-to-do-with-a-thousand-books .footnote-container {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }

    #pockets-for-fun-why-not-an-entire-bag .two-columns {
        columns: 1;
        width: 100%;
        padding-left: 2rem;
    }

    /* 
    #sharpen-your-knife-before-cutting-the-food > :nth-child(2) p{
        font-size: 10pt !important;
        line-height: 10pt;

    }
*/


    #sharpen-your-knife-before-cutting-the-food> :nth-child(2)> :nth-child(2) {
        line-height: 0;

    }

    /* 
    #sharpen-your-knife-before-cutting-the-food .btc-text-post-wrapper{
        padding-top:0;

        }
*/

    #sharpen-your-knife-before-cutting-the-food> :nth-child(2) {
        padding-bottom: 0;

    }

    #sharpen-your-knife-before-cutting-the-food .two-columns {
        columns: 1;
    }

    p:has(a[href='#columnbreak']) {
        break-after: auto;
        padding-bottom: 12pt;
    }

    #pockets-for-fun-why-not-an-entire-bag {
        padding-bottom: 1rem;
    }

    #pockets-for-fun-why-not-an-entire-bag .two-columns img {
        height: auto;
        width: 40%;
    }

    /* #pockets-for-fun-why-not-an-entire-bag .two-columns > :nth-child(21) {
        padding-bottom: 55mm;
    } */

    /* #a-big-leap img {
        break-inside: auto !important;
        page-break-inside: auto !important;
        orphans: 0;
        widows: 0;
        } */

    #gaykeeping> :nth-child(3) {
        columns: 1 !important;
    }

    #new-advice-for-beginners-after-potter > .btc-text-post-wrapper {
        padding-left: 4rem;
    }

    #new-advice-for-beginners-after-potter > h2 {
        page-break-before: always;
    }

    /*   #this-state-of-alertness > :nth-child(20), */
    /* #this-state-of-alertness > :nth-child(28), */
    /*  #whats-up-estonia, */
    /*    #the-adobe-dance, */
    /*    #sharpen-your-knife-before-cutting-the-food, */

    .samantha-answer {
        page-break-after: always;
    }

    .no-page-break {
        page-break-after: auto !important;
    }

    #so-many-big-time-choices .btc-single-image-wrapper {
        height: 90%;
        width: auto;
        padding-left: 5%;
    }

    #the-adobe-dance li {
        padding-bottom: 12pt;
    }

    #so-many-big-time-choices> :nth-child(2) {
        padding-bottom: 0;
    }

    #so-many-big-time-choices> :nth-child(4) {
        padding-top: 0;
    }

    #so-many-big-time-choices .btc-single-image-wrapper img {
        height: 100%;
    }

    #juggling > :nth-child(3) {
        page-break-after: always;
        padding-top: 3rem;
    }

    /* #juggling > :nth-child(5) {
        page-break-after: always;
    } */

    #juggling > :nth-child(9) {
        page-break-after: always;
    }

            /* #juggling > :nth-child(9) {
        page-break-after: always;
    } */

    #juggling > :nth-child(15) {
        page-break-after: always;
    }

/* #juggling > :nth-child(13) {
        page-break-after: always;
    } */


    /* ------------ anna ------------ */

    #making-it-more-than-work > .footnote-container {
        font-size: 10pt;
        width: 100%;
        height: fit-content;
        padding: 1rem 4rem;
        display: block;
        columns: 2;
        gap: 1rem;
        padding: 1rem;
        line-height: 10pt;
    }

    #making-it-more-than-work {
        width: 100%;
        padding: 0;

    }

    .footnote-text {
        font-size: var(--column-large);
    }

    .btc-anna-text-wrapper {
        padding: 1rem 2rem;
        /* text-indent: 0; */
        width: 100%;
    }

    .btc-anna-text-wrapper>h2 {
        font-size: var(--text-small) !important;
        padding: 0 !important;
        text-indent: 0 !important;
    }

    #making-it-more-than-work> :nth-child(6) {
        order: 7;
    }

    #making-it-more-than-work> :nth-child(7) {
        order: 6;
    }

    #a-big-leap .full-width {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* #making-it-more-than-work > :nth-child(3) p {
        font-size: 8pt !important;
    } */

/* ------------ links written ------------ */

    #the-adobe-dance a::after,
    #mayday-mayday a::after {
        content: " [" attr(href) "]";
        color: black;
        white-space: normal;
        word-break: break-all;
    }

    #the-adobe-dance a,
    #mayday-mayday a {
        text-decoration: none;
        color: black;
    }

    .mail-toggle::after {
        content: " (bigtimechoices@artun.ee)";
    }

    #business-admin a {
        white-space: pre-wrap; /* CSS3 */    
        white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
        white-space: -pre-wrap; /* Opera 4-6 */    
        white-space: -o-pre-wrap; /* Opera 7 */    
        word-wrap: break-word; /* Internet Explorer 5.5+ */
    }

/* ------------ things to hide  ------------ */

    a:contains("About") {
        display: none !important;
    }

    .samantha-question-form-wrapper,
    .footer-wrapper,
    .samantha-desktop-fullscreenbutton,
    .index-toggle,
    .print,
    #nav {
        display: none !important;
    }

    img {
        /* page-break-before: auto; 
            page-break-after: auto; */
        page-break-inside: auto;
        width: 100%;
        height: auto;
        /* max-height: 100%; */
        /* padding: 2mm; */
    }

    .two-thirds .image {
        width: 90% !important;
        margin: 0 auto;
    }

    #atendencytowardsconfusion .image {
        width: 75% !important;
        margin: 0 auto;
    }

    /* ------------ things to show  ------------ */

    .issue-link {
        display: block !important;
    }

/* ------------ reset overflows ------------ */



    /* ------------ INTRO FOR PRINT ------------ */


    /* ------------ hide in print classes ------------ */

    .no-print {
        display: none !important;
    }

}