/*
Theme Name: Box Truyện
Theme URI: https://wordpress.org/themes/boxtruyen/
Author: Vô Danh
Author URI: https://wordpress.org/
Description: Theme truyện cho WordPress
Version: 5.0.1
*/

/* --- Cấu trúc cơ bản --- */
body {
    background: #e9ebee;
    color: #1d2129;
    direction: ltr;
    line-height: 1.34;
    margin: 0;
    padding: 0;
    unicode-bidi: embed;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    overflow-y: scroll;
}

#wrap {
    background-color: #fff;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    cursor: pointer;
    text-decoration: none;
    color: #337ab7;
}

a:hover {
    text-decoration: underline;
    color: #23527c;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* --- Header --- */
.navbar-default {
    background-color: #fff;
    border: none;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    margin-bottom: 0;
}

.navbar-brand, .navbar-nav>li>a {
    text-shadow: none;
}

.navbar-header a.logo-h1 {
    padding: 10px 15px;
    display: block;
    float: left;
    height: 50px;
}

.navbar-header .head-logo {
    height: 30px;
    width: auto;
}

.logo-h1 {
    margin: 0;
    font-weight: 400;
    font-size: 20px;
}

.the-h1 {
    display: none;
}

.navbar-default .navbar-nav>li>a {
    color: #333;
}

.navbar-toggle {
    margin-top: 8px;
    margin-right: 15px;
    margin-bottom: 8px;
    background-image: none;
    background-color: transparent;
    border: 1px solid #ddd;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #888;
}

.navbar-default .navbar-toggle:focus, .navbar-default .navbar-toggle:hover {
    background-color: #ddd;
}

.navbar-form {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* --- Breadcrumb --- */
.navbar-breadcrumb {
    background-color: #f5f5f5;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #ddd;
}

.breadcrumb-container {
    padding: 8px 15px;
    font-size: 13px;
    white-space: nowrap;
    overflow: auto;
}

/* --- Main Content --- */
.container {
    width: 1170px;
}

#main-content {
    padding: 15px 0;
}

.widget-title {
    font-size: 18px;
    margin: 0 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

/* --- Truyện List --- */
.list-truyen .row {
    margin-bottom: 15px;
}

.list-truyen .col-truyen-main {
    padding-left: 0;
}

.list-truyen .col-truyen-side {
    padding-right: 0;
}

.truyen-title {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 700;
}

.truyen-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* --- Single Post --- */
#story-detail .info-holder {
    padding-left: 15px;
}

#story-detail .book img {
    width: 150px;
    height: 200px;
}

#story-detail .title {
    margin: 0 0 10px;
    font-size: 24px;
}

#story-detail .info div {
    margin-bottom: 5px;
}

#story-detail .info .author {
    font-weight: 700;
}

.rate-story {
    margin-bottom: 10px;
}

#list-chapter .header {
    background-color: #f5f5f5;
    padding: 10px 15px;
    font-weight: 700;
}

#list-chapter ul.list-chapter li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

#list-chapter ul.list-chapter li:nth-child(even) {
    background-color: #f9f9f9;
}

/* --- Chapter Content --- */
#chapter-big-container {
    font-family: "Palatino Linotype", "Arial", "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.8;
}

/* --- Responsive --- */
@media (max-width: 1199px) {
    .container {
        width: 970px;
    }
}

@media (max-width: 991px) {
    .container {
        width: 750px;
    }
}

@media (max-width: 767px) {
    .container {
        width: 100%;
    }

    .navbar-header {
        float: none;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-nav {
        float: none !important;
        margin-top: 7.5px;
    }

    .navbar-nav>li {
        float: none;
    }

    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .collapse.in {
        display: block !important;
    }
}


/* === Bắt đầu sửa lỗi Phiên bản 7.1 === */
/* Đoạn code cũ gây lỗi đã được xóa bỏ */

/* --- A: Xóa viền vuông khi bấm vào nút --- */
.light-switch button,
.light-switch button:focus,
.light-switch button:active,
.light-switch button:hover {
    border: none !important;
    outline: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0;
}

/* --- B: Đặt vị trí cho icon trên Desktop --- */
.light-switch.navbar-right {
    margin-top: 7px;
    margin-right: 15px;
    margin-left: 0;
}

/* --- C: Chỉnh lại trên Mobile --- */
@media (max-width: 767px) {
    .light-switch.navbar-right {
        float: none !important;
        display: block;
        text-align: right;
        margin: 10px 15px 10px 0;
    }
}
/* === Kết thúc Phiên bản 7.1 === */