.reading-tools{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
    padding:10px 14px;
    background:#fafafa;
    border:1px solid #eee;
    border-radius:12px;
}

.reading-title,
.font-btn{
    display:flex;
    align-items:center;
}

.reading-title{
    gap:8px;
    font-weight:700;
    color:#444;
}

.font-control{
    display:flex;
    gap:8px;
}

.font-btn{
    justify-content:center;
    gap:2px;
    width:42px;
    height:42px;
    border:0;
    border-radius:10px;
    background:#fff;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    cursor:pointer;
    font:700 1em/1 inherit;
    white-space:nowrap;
    transition:.25s;
    user-select:none;
    -webkit-user-select:none;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
}

.font-btn i,
.font-btn span{
    line-height:1;
}

.font-btn i{
    font-size:.95em;
}

.font-btn:hover{
    background:var(--primary-color);
    color:#fff;
    transform:translateY(-2px);
}

.font-btn:active{
    transform:scale(.94);
}

.font-btn.reset{
    width:60px;
}

#content{
    transition:.25s;
}

@media(max-width:767px){

    .reading-tools{
        padding:10px;
    }

    .reading-title{
        font-size:14px;
    }

    .font-btn{
        width:36px;
        height:36px;
        font-size:13px;
    }

    .font-btn.reset{
        width:52px;
    }

}

/* ===========================
   ARTICLE CONTENT
=========================== */

.article{
    font-size:17px;
    line-height:1.8;
    color:#333;
    word-break:break-word;
    overflow-wrap:break-word;
}

/* Paragraph */

.article p{
    margin:0 0 18px;
}

/* Heading */

.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article h6{
    font-weight:700;
    line-height:1.4;
    color:#111;
}

.article h1{
    font-size:34px;
    margin:40px 0 18px;
}

.article h2{
    font-size:30px;
    margin:38px 0 16px;
    padding-bottom:10px;
    border-bottom:2px solid #f2f2f2;
}

.article h3{
    font-size:25px;
    margin:32px 0 15px;
}

.article h4{
    font-size:22px;
    margin:28px 0 14px;
}

.article h5{
    font-size:19px;
    margin:25px 0 12px;
}

.article h6{
    font-size:17px;
    margin:22px 0 10px;
}

/* Lists */

.article ul,
.article ol{
    margin:0 0 20px 28px;
    padding:0;
}

.article li{
    margin:8px 0;
    line-height:1.8;
}

/* Definition list */

.article dl{
    margin:18px 0;
}

.article dt{
    font-weight:700;
    margin-top:12px;
}

.article dd{
    margin-left:20px;
    margin-bottom:12px;
}

/* Links */

.article a{
    color:#0066cc;
    text-decoration:none;
}

.article a:hover{
    text-decoration:underline;
}

/* Images */

.article img{
    max-width:100%;
    height:auto;
    display:block;
    margin:20px auto;
    border-radius:8px;
}

.article figure{
    margin:25px auto;
    text-align:center;
}

.article figcaption{
    margin-top:8px;
    color:#777;
    font-size:14px;
    font-style:italic;
}

/* Picture */

.article picture{
    display:block;
}

/* Video */

.article video,
.article iframe{
    display:block;
    width:100%;
    max-width:100%;
    margin:25px auto;
    border:0;
    border-radius:8px;
}

/* Table */

.article table{
    width:100%;
    border-collapse:collapse;
    margin:25px 0;
    display:block;
    overflow-x:auto;
    white-space:nowrap;
}

.article caption{
    margin-bottom:10px;
    font-weight:700;
}

.article th,
.article td{
    border:1px solid #ddd;
    padding:12px;
}

.article th{
    background:#f7f7f7;
    font-weight:700;
}

.article tr:nth-child(even){
    background:#fafafa;
}

/* Quote */

.article blockquote{
    margin:25px 0;
    padding:18px 22px;
    background:#fafafa;
    border-left:5px solid #ff4d6d;
    font-style:italic;
    color:#555;
}

/* Inline quote */

.article q{
    font-style:italic;
}

/* Code */

.article pre{
    margin:20px 0;
    padding:18px;
    overflow:auto;
    background:#272822;
    color:#fff;
    border-radius:6px;
}

.article code{
    font-family:Consolas,Monaco,monospace;
    font-size:.95em;
}

.article pre code{
    color:inherit;
}

/* Text */

.article strong,
.article b{
    font-weight:700;
}

.article em,
.article i{
    font-style:italic;
}

.article u{
    text-decoration:underline;
}

.article del,
.article s{
    text-decoration:line-through;
}

.article ins{
    text-decoration:none;
    background:#ffff99;
}

.article mark{
    background:#fff59d;
    padding:2px 4px;
}

.article small{
    font-size:.9em;
    color:#666;
}

.article sup{
    font-size:75%;
}

.article sub{
    font-size:75%;
}

/* HR */

.article hr{
    border:0;
    border-top:1px solid #e5e5e5;
    margin:35px 0;
}

/* Details */

.article details{
    margin:20px 0;
    border:1px solid #ddd;
    border-radius:6px;
    padding:10px 15px;
}

.article summary{
    cursor:pointer;
    font-weight:700;
}

/* Address */

.article address{
    margin:20px 0;
    font-style:italic;
}

/* Abbr */

.article abbr{
    border-bottom:1px dotted #999;
    cursor:help;
}

/* Selection */

.article ::selection{
    background:#ffe082;
}

/* First paragraph */

.article > p:first-of-type{
    font-size:18px;
}

/* Responsive */

@media(max-width:767px){

    .article{
        font-size:16px;
        line-height:1.75;
    }

    .article h1{
        font-size:30px;
    }

    .article h2{
        font-size:26px;
    }

    .article h3{
        font-size:22px;
    }

    .article h4{
        font-size:20px;
    }

    .article table{
        font-size:15px;
    }
}