em {
    font-style: italic;
}
#chapter-select-inline {

    line-height: 35px;
    height: 35px;
    display: inline-block;
    border-radius: 3px;
    padding: 0 5px;
    margin: 0 3px;
    cursor: pointer;
    text-transform: capitalize;
    width: 150px;
}
a.control-button.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-group {
            display: inline-flex;
            gap: 10px;
        }

        .btn {
            padding: 6px 12px;
            font-size: 16px;
            color: black;
            background-color: #5bc0de;
            border: none;
            border-radius: 5px;
            text-decoration: none;
            transition: background-color 0.3s;
        }

        .btn:hover {
            background-color: #f18121;
        }
            a:hover {
                text-decoration: none;
                color: #fff;
            }
            p {
                font-size: 22px;
            }
        .btn:disabled {
            background-color: #6c757d; 
            cursor: not-allowed; 
            opacity: 0.65; 
            pointer-events: none; 
        }

        .disabled-button {
            background-color: #6c757d; 
            cursor: not-allowed; 
            opacity: 0.65;
            pointer-events: none; 
        }
        .chapter-content img {
            max-width: 100%;
            display: block;
            margin: 0 auto;
        }
.breadcrumb {
    list-style: none;
    padding-bottom: 10px;
    padding-top: 10px;
}
.breadcrumb li {
    display: inline;
    line-height: 23px;
}
.breadcrumb li+li:before {
    padding: 0 5px;
    color: black;
    content: "/\00a0";
}
.title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 3rem;
    color: #424242;
    font-family: sans-serif;
    font-weight: 600;
}
.breadcrumb a span {
    font-size: 14px;
    font-weight: 600;
    color: #424242;
}
.chapter-nav {
    margin-top: 4px;
    text-align: center;
    position: relative;
}
.btn-chapter-nav {
    padding: 7px 10px !important;
    font-size: 14px !important;
    border-radius: 3px !important;
    line-height: 1.2 !important;
}
.chapter-select-container {
  font-family: Arial, sans-serif;
  user-select: none;
}
.chapter-dropdown-button {
  background-color: #fff;
  color: #000;
  border: 1px solid #444;
  padding: 3px 12px;
  cursor: pointer;
  min-width: 150px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
    }
    
.chapter-dropdown-list {
  position: absolute;
  bottom: 100%; /* Đổ lên trên */
  left: 0;
  background: #242526;
  border: 1px solid #444;
  max-height: 250px;
  overflow-y: auto;
  width: 100%;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.7);
  z-index: 9999;
}
.chapter-dropdown-list li a {
  display: block;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
}
.chapter-dropdown-list li a:hover,
.chapter-dropdown-list li a.selected {
  background-color: #3a3b3c;
}
.chapter-dropdown-button .arrow {
  margin-bottom: 0.2rem;
}
.menu-button {
    padding: 0px 20px;
    font-size: 16px;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.alert {
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
    margin: 5px;
}
.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}
.btn-secondary {
    background-color: #428bca;
    border-color: #357ebd;
    margin: 3px;
    padding: 3px 14px;
    border-radius: 4px;
    transition: all 0.25s ease-in-out;
    font-weight: 500;
}
.btn-secondary:hover,
.btn-secondary.active {
    background-color: #5cb85c;
    color: #fff;
    border-color: #4cae4c;
}
.chapter_control_wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: transparent;
}

.chapter_control {
    max-width: 980px;
    margin: 0 auto;
    padding: 4px 10px;
    background-color: #242526;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #fff;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid #444;
    border-radius: 4px 4px 0 0;
}

.chapter_control a.home {
    font-size: 30px;
    margin-right: 15px;
    vertical-align: middle;
    text-align: center;
    display: inline-block;
    line-height: 10px;
}
.chapter_control .changeserver span {
    position: absolute;
    font-weight: 600;
    font-size: 11px;
    left: 13px;
    top: 9px;
}
 .chapter_control a.home {
    font-size: 30px;
    margin-right: 15px;
    vertical-align: middle;
    text-align: center;
    display: inline-block;
    line-height: 10px;
}
.changeserver {
    position: relative;
}
.div_middle {
    width: 90%;
    margin: 0 auto;
    height: 100%;
    padding-right: 200px;
}
.box {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 3px rgb(10 10 10 / 10%), 0 0 0 1px rgb(10 10 10 / 10%);
    color: #4a4a4a;
    display: block;
    padding: 1.25rem;
}
.server-images {
    text-align: center;
    padding-bottom: 40px;
    position: relative;
    margin-top: 20px;
}
.chapter_control .prev, .chapter_control .next{
    display: inline-block;
    background: #fff;
    color: #000 !important;
    text-align: center;
    border-color: #d43f3a;
    border-radius: 35px;
    line-height: 35px;
    height: 35px;
    width: 35px;
    margin: 0 3px;
}
.spanList {
    line-height: 35px;
    height: 35px;
    display: inline-block;
    border-radius: 3px;
    padding: 0 5px;
    margin: 0 3px;
    cursor: pointer;
    text-transform: capitalize;
    background: #FFF;
    color: #000;
}
.chapter-list {
    list-style-type: none; 
    padding: 0; 
}

.chapter-list {
    column-count: 2; 
    column-gap: 20px;
    max-height: 400px; 
    overflow-y: auto; 
}

.chapter-list li {
    break-inside: avoid;
    margin-bottom: 10px;
}


.chapter-list a:hover {
    text-decoration: underline; 
}
.pagination {
    display: flex;
    justify-content: center; 
    align-items: center;
    margin: 20px 0;
}

.pagination a {
    margin: 0 10px;
    text-decoration: none;
}

.pagination input {
    margin-left: 10px;
    width: 80px; 
}

.pagination button {
    margin-left: 5px;
}
.pagination-box {
    background-color: #f8f9fa; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    padding: 15px; 
    margin: 20px 0; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

.pagination a {
    background-color: #25252b; 
    color: #fff; 
    padding: 10px 15px; 
    border-radius: 5px; 
    transition: background-color 0.3s; 
}

.pagination a:hover {
    background-color: #25252bb3;
}

.pagination input {
    margin-left: 10px;
    width: 80px; 
    padding: 5px; 
    border: 1px solid #ddd;
    border-radius: 5px; 
}
 .btn-group {
            display: inline-flex;
            gap: 10px;
        }

        .btn {
            padding: 10px 20px;
            font-size: 16px;
            color: white;
            background-color: #28a745;
            border: none;
            border-radius: 5px;
            text-decoration: none;
            transition: background-color 0.3s;
        }

        .btn:hover {
            background-color: #218838;
        }
            a:hover {
                text-decoration: none;
                color: #fff;
            }
            p {
                font-size: 16px;
            }
        .btn:disabled {
            background-color: #6c757d; 
            cursor: not-allowed; 
            opacity: 0.65; 
            pointer-events: none; 
        }
@media (max-width: 1099px) {
.div_middle {
    width: 100%;
    padding: 0 10px;
    }
}
@media only screen and (max-width: 1023px) {
    .chapter-nav {
            margin-top: 20px;
            text-align: center;
            position: relative;
            display: none;
        }
    .chapter-nav2 {
            margin-top: 20px;
            text-align: center;
            position: relative;
        }
}
@media only screen and (min-width: 1024px) {
    .main{
        padding-left:40px;
        padding-top: 50px;
    }
    .chapter-nav {
            margin-top: 20px;
            text-align: center;
            position: relative;
        }
    .chapter-nav2 {
            margin-top: 20px;
            text-align: center;
            position: relative;
            display: none;
        }
}