* {
    font-family: "Open Sans", sans-serif;
    outline-color: #d6002a!important;
}

body {
    padding-top: 70px;
}

.container {
    max-width: 1600px;
    width: 100%;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover,
a:active {
    color: #777;
    text-decoration: underline;
}

h1 a,
h1 a:hover,
h1 a:active {
    color: inherit;
}

br.show-on-mobile {
    display: none;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-primary:active {
    background-color: #fff !important;
    color: #333 !important;
}

.btn-primary:focus {
    background-color: #fff !important;
    color: #333 !important;
    border-color: #fff !important;
}

.site-footer {
    height: 100px;
    line-height: 100px;
    background-color: #1e1e1e;
    color: #fff;
    bottom: 0;
}

    .site-footer a {
        color: #fff;
        text-decoration: none;
    }

.site-footer a:hover,
.site-footer a:active {
    color: #fff;
    text-decoration: underline;
}

    .site-footer sup {
        top: -1px;
        margin-left: 3px;
    }

.site-footer .line {
    margin: 0 15px;
}

.hello-block {
    background-color: #333;
    margin-top: -20px;
    color: #fff;
    text-align: center;
    -webkit-border-radius: 0 0 10px 10px;
    -moz-border-radius: 0 0 10px 10px;
    border-radius: 0 0 10px 10px;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.hello-btn {
    background-color: #fff;
    color: #333;
    border-color: #fff;
    border-style: solid;
    background-image: none;
}

.hello-btn:hover,
.hello-btn:active {
    background-color: #333;
    border-color: #fff;
    text-decoration: none;
}

#censor {
    -webkit-border-radius: 5px 0 0 5px;
    -moz-border-radius: 5px 0 0 5px;
    border-radius: 5px 0 0 5px;
    margin-right: 4px;
}

#censor:after {
    content: '';
    position: absolute;
    height: -webkit-calc(100% + 6px);
    height: -moz-calc(100% + 6px);
    height: calc(100% + 6px);
    width: 4px;
    top: -3px;
    right: -6px;
    border-top: 4px solid #fff;
    border-bottom: 4px solid #fff;
    background-color: #333;
}

#blog {
    -webkit-border-radius: 0 5px 5px 0;
    -moz-border-radius: 0 5px 5px 0;
    border-radius: 0 5px 5px 0;
}

.header-right-wrapper {
}

a.navbar-brand {
    color: #333!important;
    font-weight: bold;
    font-size: 2em;
}

input.span2.search-query.ajax-typeahead {
    height: 34px;
    padding: 8px 10px;
    float: left;
    outline-style: none;
    border: 1px solid #333;
}

.navbar-right {
    margin-right: 0;
}

#search {
    -webkit-border-radius: 5px 0 0 5px;
    -moz-border-radius: 5px 0 0 5px;
    border-radius: 5px 0 0 5px;
    width: 300px;
}

.btn.btn-primary {
    border-color: #333;
    background-color: #333;
    background-image: none;
    padding-right: 10px;
    padding-left: 10px;
}

.btn.btn-warning {
    background-image: none;
    padding-right: 10px;
    padding-left: 30px;
}

.btn.btn-default {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    background: #e0e0e0;
}

.search-table-title .btn.btn-default {
    white-space: normal;
}

button.btn.btn-mini {
    padding-right: 10px;
    padding-left: 10px;
}

#bybook {
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

#navbar-collapse {
    line-height: 50px;
}

.book-img {
    height: 100%;
    width: 100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: block;
}

.book-name {
    font-weight: bold;
}

.book-description {
    margin-top: 7px;
    display: block;
}

.book-info .desc {
    height: -webkit-calc(100% - 22px);
    height: -moz-calc(100% - 22px);
    height: calc(100% - 22px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-right .dropdown {
    float: right;
    margin-left: 10px;
}

.navbar-right .dropdown-menu {
    width: 300px;
    padding: 10px;
}

.navbar-right .dropdown-menu li {
    line-height: 18px;
}


.popular-wrapper {
    padding: 5px;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.thumbnails {
    display: flex;
    justify-content: space-between;
}

.thumbnails-title, .blog-header, .genres-header {
    margin-bottom: 5px;
    font-size: 2em;
}

.book-thumbnail {
    width: 20%;
    position: relative;
    padding: 3px;
    border: 1px solid transparent;
    height: 320px;
}

    .book-thumbnail:hover {
        border-color: #333;
    }

.book-link {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.book-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin-left: -3px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.8em;
    padding: 10px;
    visibility: hidden;
    -moz-opacity: 0;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transition: 0.3s all ease;
    -moz-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    transition: 0.3s all ease;
}

.book-info a,
.book-info a:hover,
.book-info a:active {
    color: #fff;
}

.book-info a:hover,
.book-info a:active {
    text-decoration: underline;
}

.book-name, .book-author {
    overflow: hidden;
}

.read-button {
    position: absolute;
    width: -webkit-calc(100% - 10px);
    width: -moz-calc(100% - 10px);
    width: calc(100% - 10px);
    font-size: 1.2em;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: 1px solid #333;
    color: #fff;
    background-color: transparent;
    outline: #555555;
    outline-offset: 5px;
    left: 5px;
    bottom: 5px;
    text-align: center;
    text-decoration: none !important;
    -webkit-transition: background-color .3s ease-in-out;
    -moz-transition: background-color .3s ease-in-out;
    -o-transition: background-color .3s ease-in-out;
    transition: background-color .3s ease-in-out;
}


.read-button:hover {
    background-color: #333;
    color: #fff;
    text-decoration: none !important;
    -webkit-transition: background-color .3s ease-in-out;
    -moz-transition: background-color .3s ease-in-out;
    -o-transition: background-color .3s ease-in-out;
    transition: background-color .3s ease-in-out;
}

.read-button:active {
    background-color: transparent;
    border-color: #fff;
    text-decoration: none !important;
    -webkit-transition: background-color .3s ease-in-out;
    -moz-transition: background-color .3s ease-in-out;
    -o-transition: background-color .3s ease-in-out;
    transition: background-color .3s ease-in-out;
}

.main-container {
    padding: 0;
}

.w100p {
    width: 100%;
}


.span9 {
    display: inline-block;
    float: left;
    width: 70%;
}

.span3 {
    display: inline-block;
    float: left;
    width: 30%;
    height: 100%;
    background-color: #ebebeb;
}

.right-block {
    padding: 10px 0;
}

.search-table-author.author-search {
    width: auto;
}

.search-table-books.author-search {
    width: 20%;
}

.search-table-books.author-search a {
    color: #333;
}

.search-table-books.author-search a:hover {
    color: #777;
}

.new-blogs a, .genres a {
    color: #333;
}

    .new-blogs a:hover, .genres a:hover {
        color: #777;
    }

div.row.bottom-info {
    border: 3px solid #333;
    -webkit-border-radius: 10px 10px 0 0;
    -moz-border-radius: 10px 10px 0 0;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    padding: 15px;
    color: #333;
    margin-bottom: -3px;
}

.search-block {
    padding: 15px;
}

.bottom-search-block {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background-color: #333;
    -webkit-box-shadow: inset 0  5px 0 rgba(0,0,0,0.75);
    -moz-box-shadow: inset 0 0 5px 0 rgba(0,0,0,0.75);
    box-shadow: inset 0 0 5px 0 rgba(0,0,0,0.75);
}

.search-row {
    height: 2em;
    line-height: 2em;
}

    .search-row:not(:last-of-type) {
        margin-bottom: 5px;
    }

.bottom-search-row {

}

    .bottom-search-row a {
        color: #fff;
        text-decoration: none;
    }

    .bottom-search-row a:hover {
        color: #fff;
        text-decoration: underline;
    }

.top-search-row {

}

    .top-search-row a {
        color: #333;
    }

    .top-search-row a:hover {
        color: #777;
    }

span.search-criterion {
    float: left;
    padding-left: 5px;
    -webkit-border-radius: 5px 0 0 5px;
    -moz-border-radius: 5px 0 0 5px;
    border-radius: 5px 0 0 5px;
    width: 130px;
    margin-right: 30px;
}

span.bottom-search-criterion {
    background-color: #fff;
}

span.top-search-criterion {
    float: left;
    color: white;
    background-color: #333;
}

.search-alphabet {
    text-align: left;
}

.search-options {
    width: 20%;
}

.search-lang-switcher, .search-numbers {
    float: right;
}

.site-path {
    padding: 10px;
    margin-bottom: 10px;
    background-color: #333;
    color: #fff;
}

.site-path a {
    color: #fff;
}

.site-path a:hover {
    color: #999;
}

.other-books {
    background: #f9f9f9;
    padding: 5px 10px;
    font-size: 13px;
}

.unstyled {
    padding: 0;
    list-style: none;
}

.big-book-info a {
    color: #333;
}

.big-book-info a:hover {
    color: #777;
}

.big-book-img {
    width: 100%;
    height: auto;
}

.book-wrapper h1 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 0 10px;
    text-align: left;
}

.book-wrapper h2 {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 10px;
    text-align: left;
}

#big-book-description {
    color: #373737;
    font-style: italic;
}

.big-book-value {
    font-weight: bold;
}

.big-book-buttons {
    margin-top: 10px;
    text-align: center;
}

#read-book, #download-book {
    width: -webkit-calc(50% - 2px);
    width: -moz-calc(50% - 2px);
    width: calc(50% - 2px);
    font-size: 1.2em;
    white-space: normal;
}

.pagination-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.pagination>.active>a {
    background-color: #333;
    border-color: #333;
}

.pagination>.active>a:hover {
    background-color: #333;
    border-color: #333;
    font-weight: bold;
}

.pagination>li>a {
    color: #333;
}

.pagination>li>a:hover {
    color: #333;
}

.pagination-form {
    line-height: 34px;
    margin: 0;
    display: inline;
}

.pagination-form .input-append {
}

.pagination-form input {
    height: 34px;
    background-color: #fff;
    border-color: #ddd;
    border-style: solid;
    border-width: 1px;
}

.pagination-form button {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.reader-span3 {
    position: relative;
    display: inline-block;
    float: left;
    width: 30%;
    height: auto;
}

.book-reader-wrapper {
    position: fixed;
}

#book-reader-return {
    width: 100%;
    border-color: #333;
    background-color: #333;
    background-image: none;
}

.red-btn {
    border-color: #333;
    background-color: #333;
    background-image: none;
}

.reader-span3 .red-btn,
.reader-span9 .red-btn {
    white-space: normal;
}

.btn.btn-warning {
    border-color: #ff6550;
    background-color: #ff6550;
}

.text-warning {
    color: #ff6550;
}

.label.label-warning {
    border-color: #ff6550;
    background-color: #ff6550;
}

.red-btn:hover {
    font-weight: normal;
    border-color: #930029;
    background-color: #930029;
}

h1 .text-success,
h1 .text-warning,
h2 .text-success,
h2 .text-warning {
    color: #333;
    font-style: normal;
    font-weight: bold;
}

h1.label {
    font-size:20px;
    line-height:30px;
    display: block
}

.input {
    width: 100%;
    margin: 5px 0;
    padding: 5px;
}

.download-wrapper {
    font-size: 1.2em;
    text-align: center;
    padding: 30px;
}

.download-success {
    font-size: 10em;
    color: #00c300;
}

.download-wrapper a#download-ref {
    color: #333;
}

td.search-table-title a {
    font-weight: bold;
}

td.search-table-title a,
td.search-table-author a,
td.search-table-genre a,
td.search-table-series a {
    color: black;
}

td.search-table-title a:hover,
td.search-table-author a:hover,
td.search-table-genre a:hover,
td.search-table-series a:hover {
    color: #333;
}

th.search-table-cover, td.search-table-cover,
th.search-table-title, td.search-table-title,
th.search-table-author, td.search-table-author {
    width: auto;
}

th.search-table-genre, td.search-table-genre,
th.search-table-series, td.search-table-series {
    width: auto;
}

td.search-table-title p {
    display: block;
    font-size: 0.8em;
    color: #333;
    font-style: normal;
}

.search-table td {
    word-break: break-word;
    hyphens: manual;
    hyphenate-character: '-';
}

img.search-table-cover {
    width: 100%;
    height: auto;
}

#search-request {
    color: #333;
    font-style: italic;
}

#hypercontext p img {
    align-self: center;
    max-width: 100%;
    height: auto;
}

.pagination {
    margin-bottom: 0;
}

.pagination-form  {
    display: inline-block;
}

.pagination-form input {
    text-align: center;
    width: 85px;
    -webkit-border-radius: 5px 0 0 5px;
    -moz-border-radius: 5px 0 0 5px;
    border-radius: 5px 0 0 5px;
}

.pagination-form button.btn.btn-success.red-btn  {
    float: right;
}

.reader-span9 {
    display: none;
}

.ya-page_js_yes .ya-site-form_inited_no { display: none; }
.scrollup {
    width:40px;
    height:40px;
    -moz-opacity: .5;
    opacity: .5;
    filter: alpha(opacity=50);
    position:fixed;
    bottom:20px;
    right:20px;
    display:none;
    background: #333;
    text-align: center;
    color: #fff;
    font-size: 24px;
    line-height: 40px;
    -webkit-transition: all .5s ease-out;
    -moz-transition: all .5s ease-out;
    -o-transition: all .5s ease-out;
    transition: all .5s ease-out;
}

.scrollup:hover {
    -moz-opacity: .8;
    opacity: .8;
    filter: alpha(opacity=80);
    color: #fff;
    -webkit-transition: all .5s ease-out;
    -moz-transition: all .5s ease-out;
    -o-transition: all .5s ease-out;
    transition: all .5s ease-out;
}

.thumbnail {
    width: 100%;
}

div.dropdown {
    display: inline-block;
}

.search-table-title p.sub {
    font-size: 0.9em;
    font-style: normal;
    color: #333;
    margin-bottom: 0;
}

.m-b-15 {
    margin-bottom: 15px;
    display: block;
}

#rform {
    -webkit-transition: top .3s ease-in-out;
    -moz-transition: top .3s ease-in-out;
    -o-transition: top .3s ease-in-out;
    transition: top .3s ease-in-out;
}

@media all and (max-width: 1600px) {
    .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .container .span9 .container {
        padding-left: 0;
    }
}

@media all and (max-width: 1300px) {
    .hello-block {
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
    }

    div.row.bottom-info {
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
    }
}

@media all and (max-width: 1200px) {
    .search-block {
        margin: 10px 0;
        float: left;
        width: 100%;
    }

    .search-row {
        height: auto;
    }

    span.search-criterion {
        float: left;
        margin-right: 0;
        padding: 5px 0;
        text-align: center;
        width: 100%;
        -webkit-border-radius: 10px 10px 0 0;
        -moz-border-radius: 10px 10px 0 0;
        border-radius: 10px 10px 0 0;
        font-weight: bold;
    }

    span.search-alphabet {
        width: 100%;
        text-align: center;
        float: left;
        padding: 10px;
    }

    span.top-search-alphabet {
        border-left: 2px solid #333;
        border-right: 2px solid #333;
    }

    span.bottom-search-alphabet {
        border-left: 2px solid #fff;
        border-right: 2px solid #fff;
    }

    span.search-options {
        float: left;
        width: 100%;
        -webkit-border-radius: 0 0 10px 10px;
        -moz-border-radius: 0 0 10px 10px;
        border-radius: 0 0 10px 10px;
        margin-bottom: 10px;
    }

    span.bottom-search-options {
        background-color: #fff;
        color: #333;
    }

    span.top-search-options {
        background-color: #333;
        color: #fff;
    }

    a.search-lang-switcher, a.search-numbers {
        float: left;
        width: 50%;
        text-align: center;
        font-weight: bold;
    }

    a.bottom-search-lang-switcher, a.bottom-search-numbers {
        color: #333;
    }

    a.top-search-lang-switcher, a.top-search-numbers {
        color: #fff;
    }
}

@media all and (max-width: 992px) {
    #search-button-text {
        display: none;
    }

    .nav-radio-text {
        display: none;
    }

    .site-footer {
        height: auto;
        line-height: 32px;
        padding: 30px 15px 60px;
    }

    .site-footer a {
        display: block;
    }

    .site-footer .line {
        display: none;
    }
}

@media all and (max-width: 768px) {
    .container .span9 .container {
        padding-right: 0;
    }
    th.search-table-cover, td.search-table-cover,
    th.search-table-title, td.search-table-title,
    th.search-table-author, td.search-table-author {
        width: auto;
    }

    th.search-table-genre, td.search-table-genre,
    th.search-table-series, td.search-table-series {
        display: none;
    }

    .nav-radio-text {
        display: inline;
    }

    .btn.btn-primary.dropdown-toggle {
        width: 100%;
    }

    div.nav.navbar-nab.btn-group.navbar-left {
        margin-top: 10px;
        width: 100%;
    }

    div.nav.navbar-nab.btn-group.navbar-left form div {
        display: flex;
        flex-direction: column;
    }

    div.nav.navbar-nab.btn-group.navbar-left form div div {
        display: flex;
        flex-direction: row;
    }

    div.nav.navbar-nab.btn-group.navbar-left form div div > .btn.btn-primary {
        -webkit-border-radius: 0 5px 0 0;
        -moz-border-radius: 0 5px 0 0;
        border-radius: 0 5px 0 0;
    }

    div.nav.navbar-nab.btn-group.navbar-left form div div > button.btn-mini {
        width: 100%;
    }

    input#search {
        width: 100%;
        -webkit-border-radius: 5px 0 0 0;
        -moz-border-radius: 5px 0 0 0;
        border-radius: 5px 0 0 0;
    }

    button#bybook {
        -webkit-border-radius: 0 0 0 5px;
        -moz-border-radius: 0 0 0 5px;
        border-radius: 0 0 0 5px;
    }

    .thumbnails {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .book-thumbnail {
        width: 100%;
        margin-bottom: 20px;
        height: auto;
    }

    .book-info {
        position: relative;
        width: 100%;
        background-color: #fff;
        color: #333;
        visibility: visible;
        -moz-opacity: 1;
        opacity: 1;
        filter: alpha(opacity=100);
        display: block;
        bottom: auto;
        height: auto;
    }

    .book-info a, .book-info a:hover, .book-info a:active {
        color: #333;
    }

    .book-info .desc {
        max-height: 500px;
        height: auto;
    }

    .read-button {
        position: relative;
        width: 100%;
        display: block;
        left: auto;
        bottom: auto;
    }

    .read-button:hover,
    .read-button:active {
        color: #fff !important;
    }

    .book-thumbnail:hover {
        border-color: transparent;
    }

    .navbar-right .dropdown {
        float: none;
        width: 100%;
        margin-left: 0;
    }

    .navbar-right .dropdown-menu {
        width: 100%;
        padding: 10px;
        position: relative;
        margin-bottom: 10px;
    }

    .reader-span9 {
        display: inline-block;
        width: 100%;
    }

    .reader-span3 {
        display: none;
    }

    .span9 {
        width: 100%;
    }

    .span3 {
        width: 100%;
    }
}

@media all and (max-width: 640px) {
    #read-book, #download-book {
        width: 100%;
        margin-top: 7px;
    }
    div.controls {
        text-align: center;
    }

    br.display-on-mobile {
        display: block;
    }

    .popular-wrapper {
        height: auto;
    }

    .book-info {
        visibility: visible;
        -moz-opacity: 1;
        opacity: 1;
        filter: alpha(opacity=100);
    }

    .thumbnails-title {
        text-align: center;
        font-size: 2.5em;
        font-weight: bold;
    }

    .book-img {
        min-height: 400px;
    }

    .book-info {
        font-size: 1.3em;
    }

    .book-info .desc {
        position: relative;
    }

    .book-info .desc:after {
        content: '';
        display: block;
        width: 100%;
        height: 30px;
        bottom: 0;
        left: 0;
        position: absolute;
        z-index: 2;
        background: -moz-linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 43%, rgba(255,255,255,0) 100%); /* ff3.6+ */
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255,255,255,0)), color-stop(57%, rgba(255,255,255,1)), color-stop(100%, rgba(255,255,255,1))); /* safari4+,chrome */
        background: -webkit-linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 43%, rgba(255,255,255,0) 100%); /* safari5.1+,chrome10+ */
        background: -o-linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 43%, rgba(255,255,255,0) 100%); /* opera 11.10+ */
        background: -ms-linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 43%, rgba(255,255,255,0) 100%); /* ie10+ */
        background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 43%, rgba(255,255,255,0) 100%); /* w3c */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=0 ); /* ie6-9 */
    }

    .read-button {
        font-size: 1.8em;
    }

    .right-block {
        text-align: center;
        font-size: 1.2em;
    }

    .genres-header, .blog-header {
        text-align: center;
        font-size: 2.5em;
    }

    div.row.bottom-info {
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
    }

    span.search-criterion {
        font-size: 1.2em;
    }

    span.search-alphabet {
        font-size: 1.5em;
    }

    a.search-lang-switcher, a.search-numbers {
        font-size: 1.2em;
    }

    h1 {
        font-size: 30px;
    }
}

@media all and (max-width: 400px) {
    #blog, #censor {
        font-size: 16px;
    }
}