* {
    box-sizing: border-box;
}
body {
    font-family: Verdana, Arial, sans-serif;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    font-size: 1rem;
}
#wrapper {
    position: relative;
}
.toast {
    opacity: 1 !important;
}
.container {

}
.center-child-block > div {
     margin: 0 auto;
}
b {
    display: inline-block;
    word-break: break-all;
}

header, footer {
    background-color: #311b92 !important;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .btn-back img {
    width: 22px;
    height: 22px;
    min-width: 22px;
    fill: #ffffff;
    align-self: center;
    text-align: justify;
}
#reader-body > .container{

}
#reader-body img {
    max-width: 100%;
    height: auto;
    text-align: center;
    display: block;
    margin: 0 auto;
}
#reader-body i {
    vertical-align: initial;
}
a.tg img {
    height: 28px;
    width: 28px;
    min-width: 28px;
}
a.note {
    text-align: start;
    font-size: smaller;
    vertical-align: super;
    padding-left: 4px;
    text-decoration: underline;
}
sup {
    text-align: start;
    font-size: smaller;
    vertical-align: super;
    padding-left: 4px;
    text-decoration: underline;
}

.reader-title {
    margin: 5px 6px 6px 8px;
    flex: 1;
}

h1 {
    color: #ffffff;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    flex: 1;
    margin: 0;
}
h2, h3, h4, h5, h6, .subtitle {
    font-size: 18px;
    padding: 15px 0;
    font-weight: bold;

}
.chapter {
    color: white;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

section, section p:not([class]) {
    hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}
section > p:not([class]) > img {

}

br {

}

p, div {
    overflow-wrap: break-word;
}

.epigraph {
    text-align: right;
}

.poem {
    text-align: center;
}
.poem .stanza p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px auto;
}

.mg-0 {
    margin-left: 10px;
}
.mg-1 {
    margin-left: 10px;
}
.mg-2 {
    margin-left: 20px;
}
.mg-3 {
    margin-left: 30px;
}
.mg-4 {
    margin-left: 40px;
}
.mg-5 {
    margin-left: 50px;
}
.mg-6 {
    margin-left: 60px;
}

.pagination a {
    text-decoration: none;
    color: #311b92;
    white-space: nowrap;
}

.pagination a:nth-of-type(2) {
    flex: 1;

}
.pagination a:nth-of-type(2) i {
    vertical-align: baseline !important;
    line-height: 27px;
}

h2 span, h3 span, h4 span {
    display: block;
}

#reader-body {
    padding-top: 60px;
    padding-bottom: 100px;
    font-weight: normal!important;
    background-color: #311b92;
    color: #f8fafc;
}

#loader-fullscreen {
    position: fixed;
    display: none;
    background-color: #311b92;
    opacity: 0.8;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    transition: all 0.3s;
}
#loader-fullscreen > div {
    height: 100%;
    color: white;
    background-color: #311b92;
    transition: all 0.3s;
}
#loader-fullscreen.active {
    display: block;
    transition: all 0.3s;
}
i, button, a {
    transition: all 0.3s;
    vertical-align: middle;
}

li.actual a {
    font-weight: bold;
    text-decoration: dotted;
}

#header {
    position: fixed;
    height: 60px;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: all .3s ease;
    box-shadow: 0 1px 25px rgba(0,0,0, .1);
}
#header.hide {
    top: -61px;
}

#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
    height: 60px;
    transition: all .3s ease;
    box-shadow: 0 1px 25px rgba(0,0,0, .1);
}
#footer.hide {
    bottom: -61px;
}

#footer .menu-row, #header .menu-row {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}
#footer .menu-row div, #header .menu-row div {

}
#footer .menu-row i,
#header .menu-row i {
    font-size: 28px;
    color: white;
}
footer .menu-row a,
header .menu-row a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}
footer .menu-row a:hover,
header .menu-row a:hover {
    color: grey !important;
}
footer .btn,
header .btn {
    color: white;
}
button.btn span {

}
footer a i:hover,
header a i:hover,
footer .btn:hover,
footer .btn:hover i,
header .btn:hover i,
header .btn:hover {
    color: grey !important;
}
#btn-moon,
#btn-sun {
    display: none;
}

.sidebar {

}
.sidebar .sidebar-box {
    border: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.125);

}

.sidebar .sidebar-box.tg {
    box-shadow: 0 0 5px 0 #32AEE1;
}

.sidebar .sidebar-box.insta {
    box-shadow: 0 0 5px 0 #E317C8;
}

.sidebar .sidebar-box.vk {
    box-shadow: 0 0 5px 0 #5181B8;
}

.tg-btn {
    background-color: #32AEE1;
    border-radius: 5px;
    color: #FFFFFF;
    display: block;
    line-height: 50px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}
.tg-btn:hover {
    text-decoration: none;
    box-shadow: 0 0 10px 0 #32AEE1;
    color: white;
}

.insta-btn {
    border-radius: 5px;
    background: linear-gradient(to right, #FCDD31, #E317C8);
    color: #FFFFFF;
    display: block;
    line-height: 50px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}
.insta-btn:hover {
    text-decoration: none;
    box-shadow: 0 0 10px 0 #E317C8;
    color: white;
}

.vk-btn {
    border-radius: 5px;
    background: #5181B8;
    color: #FFFFFF;
    display: block;
    line-height: 50px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}
.vk-btn:hover {
    text-decoration: none;
    box-shadow: 0 0 10px 0 #5181B8;
    color: white;
}

.sidebar .sidebar-content {
    padding: 0 10px;
    max-width: 270px;
    margin: 0 auto;
    text-align: center;
}
.sidebar .sidebar-content a img {
    border-radius: 200px;
    width: 30px;
    vertical-align: middle;
}
.sidebar .sidebar-content img {
    width: 26px;
    vertical-align: text-top;
    display: inline !important;
}
.sidebar .sidebar-content img.qr {
    height: 100%;
    width: 100%;
    max-height: 200px;
    max-width: 200px;
}
.sidebar .sidebar-content p {
    font-size: 14px;
}
.sidebar .sidebar-content .sidebar-title {
    font-size: 20px;
    font-weight: 900;
    margin: 15px 0;
}
.grey-line {
    border-bottom: 1px solid #311b92;
}








@media (min-width: 576px) {

    .container {
        padding: 5px 10px;
    }

}

@media (min-width: 992px) {

    h1 {
        font-size: 18px;
    }
    .chapter {
        font-size: 14px;
    }

    .reader-title {
        margin: 5px 12px 6px 12px;
    }

}
