div.contents{
	text-align: center;
}

ul.charpter li{
	display: inline-block;
    list-style: none;
    width: 400px;
    height: 30px;
}

a{
	text-decoration: none;
}


ul.novel_info li{
	list-style: none;
	display: inline-block;
}

li._blank{
	width: 30px;
}

ul.pagination li{
	display: inline-block;
    list-style: none;
}

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

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

div#page_num-form{
	position: relative;
/*	left: 690px;*/
}

.novel-title h5 {
    text-align: center;
    font-weight: bold;
    margin-bottom: 1.0rem;
    color: #343a40;
}

.chapter-item {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-size: 1rem;
    color: #333;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.chapter-item:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.page-item {
    display: inline-block;
}

.page-link {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: #fff;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-link:hover {
    background-color: #0056b3;
}

.current-page {
    font-weight: bold;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .novel-title h5 {
        font-size: 1.25rem;
    }

    .chapter-item {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .pagination {
        gap: 0.5rem;
    }

    .page-link {
        padding: 0.25rem 0.5rem;
    }
}

.novel-info-card {
    display: flex;
    align-items: center; /* Ensure the image and text are aligned in the middle */
    background-color: #f8f9fa;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    margin: 0.375rem auto;
}

.novel-cover {
    width: 120px; /* Fixed width for the cover */
    height: 160px; /* Fixed height for the cover */
    margin-right: 1rem;
    flex-shrink: 0; /* Ensure the image doesn't shrink */
    background-color: #f0f0f0; /* Background color as a placeholder */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
}

.novel-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
}

.novel-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.novel-title {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #343a40;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}

.novel-author, .novel-status {
    color: #555;
    font-size: 1rem;
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .novel-info-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .novel-cover {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .novel-title {
        text-align: center;
    }
}

.novel-header {
    display: flex !important;
    align-items: center !important;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px solid #ddd;
    margin-top: 0.375rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap ; /* Allows wrapping on smaller screens */
}

.novel-cover-container {
    flex-shrink: 0;
    width: 120px; /* Fixed width for the cover image container */
    height: 160px; /* Fixed height for the cover image container */
    margin-right: 1rem;
    background-color: #e0e0e0; /* Background when image fails to load */
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.novel-cover {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fits without distorting */
    border-radius: 0.25rem;
}*/

.novel-info {
    flex-grow: 1;
    min-width: 0; /* Prevents the text from overflowing */
}

.novel-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.novel-author, .novel-status {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .novel-header {
        flex-direction: column; /* Stack cover and info vertically on mobile */
        align-items: flex-start;
    }

    .novel-cover-container {
        width: 100px;
        height: 140px;
        margin-bottom: 0.5rem;
    }

    .novel-title {
        white-space: normal; /* Allows wrapping of the title text on mobile */
    }
}



