body {
    background-color: #999; /* Gray */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

div.content-color {
    width: 100%;
    max-width: 1080px;
    margin: 0px auto;
/*    background-color: #C7EDCC; /* Eye-friendly color */*/
    padding: 1rem;
    box-sizing: border-box;
}

div.charpter_detail {
    line-height: 1.6; /* Adjust line height for readability */
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    text-align: left;
    font-size: 1rem; /* Default font size */
}


div.charpter_name{
	text-align: center;
	line-height: 40px;
}


.chapter-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    color: #495057;
}

.chapter-content {
    line-height: 1.6;
    margin-bottom: .8rem;
    word-wrap: break-word; /* Ensure long words break to avoid overflow */
    font-size: 16px;
    background-color: #fff;
    color: #212529;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}


ul.pagination {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    list-style: none;
}

li.blank-block{
	width: 25px;
}

div#page {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}


#page ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0;
    list-style: none;
    margin: 20px 0;
}

#page ul li a {
    display: inline-block;
    padding: 5px 12px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

#page ul li a:hover {
    background-color: #0056b3;
}

#page ul li a[style*="not-allowed"] {
    background-color: #6c757d;
    cursor: not-allowed;
}


div#page_num-form {
    position: relative;
}

.container {
    padding: .2rem;
    max-width: 1080px;
    margin: .2rem auto;
}
.chapter-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}


.chapter-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.settings-panel {
    margin-bottom: 1.2rem;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
/*    border-radius: 8px;*/
}

label {
    font-size: 0.9rem;
    margin-right: 5px;
    font-weight: bold;
}

.settings-panel select,
.settings-panel input {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}


@media (max-width: 768px) {
    .chapter-title {
        font-size: 1.25rem; /* Smaller title font on smaller screens */
    }

    .chapter-content {
        font-size: 0.9rem; /* Slightly smaller content font on smaller screens */
        padding: 1rem;
    }

    #page ul {
        gap: 10px;
    }

    #page ul li a {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .settings-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .settings-panel label {
        font-size: 0.8rem;
    }

    .settings-panel select,
    .settings-panel input {
        margin-right: 0;
        width: 100%; /* Full width on mobile */
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .chapter-title {
        font-size: 1rem; /* Even smaller title font on very small screens */
    }

    .chapter-content {
        font-size: 0.8rem; /* Smaller content font on very small screens */
        padding: 0.5rem;
    }
}
