/* ==========================================================
   Techoral App Reader Mode
   Version : 1.0
   Works only when body has class "app-reader"
   ========================================================== */


/* ==========================================================
   ENABLE READER MODE
   ========================================================== */

body.app-reader{
    background:#f4f6f8;
    color:#222;
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    font-size:19px;
    line-height:1.85;
    overflow-x:hidden;
}


/* ==========================================================
   REMOVE WEBSITE CHROME
   ========================================================== */

body.app-reader header,
body.app-reader nav,
body.app-reader footer,
body.app-reader aside,
body.app-reader .sidebar,
body.app-reader .left-sidebar,
body.app-reader .right-sidebar,
body.app-reader .newsletter,
body.app-reader .subscribe-box,
body.app-reader .social-share,
body.app-reader .share-buttons,
body.app-reader .sticky-share,
body.app-reader .advertisement,
body.app-reader .ads,
body.app-reader .adsbygoogle,
body.app-reader .cookie-banner,
body.app-reader .back-to-top{
    display:none !important;
}


/* ==========================================================
   ARTICLE CONTAINER
   ========================================================== */

body.app-reader article,
body.app-reader main,
body.app-reader .article,
body.app-reader .post,
body.app-reader .blog-post,
body.app-reader .content{

    width:100%;
    max-width:900px;

    margin:0 auto;

    padding:28px;

    background:#fff;

    box-shadow:0 8px 24px rgba(0,0,0,.08);

    border-radius:16px;

}


/* ==========================================================
   BOOTSTRAP CONTAINER
   ========================================================== */

body.app-reader .container{

    max-width:960px !important;

}

body.app-reader .container-fluid{

    padding-left:12px;

    padding-right:12px;

}


/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

body.app-reader h1{

    font-size:2.3rem;

    font-weight:700;

    line-height:1.25;

    margin-bottom:24px;

}

body.app-reader h2{

    font-size:1.8rem;

    margin-top:42px;

    margin-bottom:16px;

}

body.app-reader h3{

    font-size:1.45rem;

    margin-top:34px;

}

body.app-reader h4{

    margin-top:28px;

}

body.app-reader p{

    margin:18px 0;

}

body.app-reader ul,
body.app-reader ol{

    margin:20px 0;

    padding-left:26px;

}

body.app-reader li{

    margin-bottom:10px;

}


/* ==========================================================
   LINKS
   ========================================================== */

body.app-reader a{

    color:#1565c0;

    text-decoration:none;

}

body.app-reader a:hover{

    text-decoration:underline;

}


/* ==========================================================
   IMAGES
   ========================================================== */

body.app-reader img{

    max-width:100%;

    height:auto;

    display:block;

    margin:28px auto;

    border-radius:12px;

    cursor:pointer;

}


/* ==========================================================
   FIGURES
   ========================================================== */

body.app-reader figure{

    margin:32px auto;

    text-align:center;

}

body.app-reader figcaption{

    margin-top:12px;

    color:#777;

    font-size:14px;

}


/* ==========================================================
   CODE BLOCKS
   ========================================================== */

body.app-reader pre{

    background:#1e1e1e;

    color:#f5f5f5;

    border-radius:12px;

    padding:20px;

    overflow:auto;

    font-size:15px;

    line-height:1.6;

    margin:28px 0;

}

body.app-reader code{

    font-family:
        Consolas,
        Monaco,
        "Courier New",
        monospace;

}

body.app-reader :not(pre)>code{

    background:#ececec;

    padding:2px 6px;

    border-radius:4px;

}


/* ==========================================================
   BLOCKQUOTE
   ========================================================== */

body.app-reader blockquote{

    border-left:5px solid #7c3aed;

    background:#f8f8ff;

    padding:18px 24px;

    margin:30px 0;

    font-style:italic;

}


/* ==========================================================
   TABLES
   ========================================================== */

body.app-reader table{

    width:100%;

    border-collapse:collapse;

    margin:30px 0;

}

body.app-reader th{

    background:#f2f2f2;

}

body.app-reader th,
body.app-reader td{

    border:1px solid #ddd;

    padding:12px;

    text-align:left;

}

/* ==========================================================
   RESPONSIVE TABLE WRAPPER
   ========================================================== */

body.app-reader .table-responsive,
body.app-reader .table-wrapper{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    margin:28px 0;
}

body.app-reader .table-wrapper table{
    min-width:600px;
}


/* ==========================================================
   LISTS
   ========================================================== */

body.app-reader ul li::marker{
    color:#673ab7;
}

body.app-reader ol li::marker{
    font-weight:600;
}


/* ==========================================================
   HORIZONTAL RULE
   ========================================================== */

body.app-reader hr{
    border:0;
    border-top:1px solid #ddd;
    margin:40px 0;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

body.app-reader .btn{
    border-radius:8px;
}


/* ==========================================================
   ALERT BOXES
   ========================================================== */

body.app-reader .alert{
    border-radius:10px;
    border:none;
    padding:18px 22px;
    margin:28px 0;
}

body.app-reader .alert-info{
    background:#eef7ff;
}

body.app-reader .alert-success{
    background:#eefbf1;
}

body.app-reader .alert-warning{
    background:#fff8e6;
}

body.app-reader .alert-danger{
    background:#fff0f0;
}


/* ==========================================================
   BOOTSTRAP CARDS
   ========================================================== */

body.app-reader .card{
    border:none;
    box-shadow:none;
    background:transparent;
}


/* ==========================================================
   COPY BUTTON
   ========================================================== */

body.app-reader .code-toolbar{
    position:relative;
}

body.app-reader .copy-code{
    position:absolute;
    top:10px;
    right:10px;

    border:none;
    background:#ffffff;

    color:#333;

    padding:6px 12px;

    border-radius:6px;

    cursor:pointer;

    font-size:13px;

    transition:.2s;
}

body.app-reader .copy-code:hover{
    background:#7c3aed;
    color:#fff;
}


/* ==========================================================
   IMAGE LIGHTBOX
   ========================================================== */

body.app-reader .image-overlay{

    position:fixed;

    left:0;
    right:0;
    top:0;
    bottom:0;

    background:rgba(0,0,0,.9);

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:999999;

    cursor:zoom-out;
}

body.app-reader .image-overlay img{

    max-width:95%;

    max-height:92%;

    border-radius:8px;

    margin:0;
}


/* ==========================================================
   EMBEDDED VIDEOS
   ========================================================== */

body.app-reader iframe{

    width:100%;

    aspect-ratio:16/9;

    border:none;

    border-radius:12px;

    margin:24px 0;

}


/* ==========================================================
   IFRAME CONTAINERS
   ========================================================== */

body.app-reader .video-container{

    width:100%;

    overflow:hidden;

    border-radius:12px;

}


/* ==========================================================
   DETAILS
   ========================================================== */

body.app-reader details{

    margin:28px 0;

    padding:18px;

    background:#fafafa;

    border-radius:10px;

}

body.app-reader summary{

    cursor:pointer;

    font-weight:600;

}


/* ==========================================================
   TEXT SELECTION
   ========================================================== */

body.app-reader ::selection{

    background:#d9c4ff;

    color:#000;

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width:768px){

    body.app-reader{

        font-size:18px;

        line-height:1.8;

    }

    body.app-reader article,
    body.app-reader main,
    body.app-reader .article,
    body.app-reader .post,
    body.app-reader .blog-post,
    body.app-reader .content{

        padding:18px;

        border-radius:0;

        box-shadow:none;

    }

    body.app-reader h1{

        font-size:1.9rem;

    }

    body.app-reader h2{

        font-size:1.55rem;

    }

    body.app-reader h3{

        font-size:1.3rem;

    }

    body.app-reader pre{

        padding:16px;

        font-size:14px;

    }

    body.app-reader img{

        border-radius:8px;

        margin:20px auto;

    }

}


/* ==========================================================
   PRINT
   ========================================================== */

@media print{

    body.app-reader{

        background:#fff;

    }

    body.app-reader pre{

        white-space:pre-wrap;

    }

}


/* ==========================================================
   UTILITIES
   ========================================================== */

body.app-reader .text-center{
    text-align:center;
}

body.app-reader .text-right{
    text-align:right;
}

body.app-reader .w-100{
    width:100%;
}

body.app-reader .rounded{
    border-radius:10px;
}

body.app-reader .shadow{
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}