

.folder {
    background-color: #24262e;
    height: 92%;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
    border-radius: 5px 5px 0 0;
    background-size: cover;
}

.folder {
    height: 92%;
    position: absolute;
    width: 100%;
    border-radius: 5px 5px 0 0;
    box-sizing: border-box;
    overflow: auto;
    padding: 15px;
}

#dynamic-page {
    position: relative; /* Required for z-index to take effect */
    z-index: 5; /* This will be higher than the parent .folder */
    height: 92%;
    position: absolute;
    margin-top: 10px;
    width: 100%;
    border-radius: 5px 5px 0 0;
    box-sizing: border-box;
    overflow: auto;
    padding: 15px;
}

.folder > * {
    position: relative; /* This is necessary to manipulate z-index */
    box-sizing: border-box;
    overflow: auto;
    z-index: 100; /* This ensures children are above the parent's stacking context */
    margin-bottom: 100px;
}

/* Styles for the scrollbar track */
#dynamic-page::-webkit-scrollbar {
    width: 15px; /* Width of the scrollbar */
    border-radius: 5px; /* Roundness of the scrollbar */
}

/* Styles for the scrollbar thumb (the draggable part) */
#dynamic-page::-webkit-scrollbar-thumb {
    background-color: #FF4D4D; /* Red color for the scrollbar */
    border-radius: 5px; /* Consistent roundness with the scrollbar track */
}

/* Optional: Styles for the scrollbar thumb when it's active or being hovered over */
#dynamic-page::-webkit-scrollbar-thumb:hover {
    background: #733434; /* Darker red when hovering */
}

#dynamic-page::-webkit-scrollbar-thumb:active {
    background: #733434; /* Even darker red when clicking */
}

/* Optional: if you want to style the scrollbar track */
#dynamic-page::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1); /* Transparent track, you can change it as needed */
    border-radius: 5px;
}


.disclaimer_note {
    background-color: #16171a;
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary_card {
    background-color: #16171a;
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tags {
    margin-top: 20px;
    display: flex;
    gap: 10px;                /* Space between tags */
    flex-wrap: wrap;          /* Wraps to next line on smaller screens */
}


.tags span {
    padding: 5px 10px;
    border-radius: 25px;
    font-weight: bold; /* Make text bold */
    background-color: #FF4D4D;
    cursor: pointer;
    color: rgb(0, 0, 0);
}

.tags span:hover {
    padding: 5px 10px;
    border-radius: 25px;
    background-color: #2c2c2c;
    color: white;
}

/* Media Query for responsiveness */
@media (max-width: 600px) {
    .summary_container {
        padding: 10px;
    }
}


.novel_nav {
    display: flex;
    margin-top: 20px;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    flex-wrap: wrap;          /* Wraps to next line on smaller screens */
}

.disclaimer-menu {
    display: flex;
    text-align: center;
    justify-content: space-between;
}


.prev-chapter, 
.next-chapter, 
.show-comments,
.return,
.continue_novel,
.proceed-chapter,
.leave-chapter {
    background-color: #333333;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.search-chapter-form input {
    padding: 8px 10px;
    border-radius: 5px;
    width: 20px;
    border: 1px solid #ccc;
}

#webnovel-section {
    overflow-x: hidden;  /* Hide overflow content, thus removing the scrollbar */
}



.prev-chapter:hover, 
.next-chapter:hover, 
.show-comments:hover,
.return:hover,
.continue_novel:hover,
.proceed-chapter:hover,
.leave-chapter:hover {
    background-color: #555555;
}

.author_note {
    background-color: #16171a;
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    font-style: italic;
}

.chapter_content {
    background-color: #16171a;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.chapter_content h2 {
    text-align: center;
    margin-bottom: 10px;
}

.chapter_content p {
    color: white;
    margin-bottom: 10px;
}

.chapter_content strong {
    color: #FF4D4D;
}

.comments {
    background-color: #16171a;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    gap: 10px; /* space between messages */
    max-height: 400px; /* adjust as necessary */
    overflow-y: auto; /* allows scrolling */
    margin-bottom: 50px;
}

.comment {
    display: flex;
    margin-left: 10px;
    margin-right: 10px;
    flex-direction: column;
    align-items: flex-end; /* aligns the comment blocks to the end side */
    margin-bottom: 4px;
}

.comment.user {
    align-items: flex-start; /* aligns user comments to the left */
}

.comment.editor {
    align-items: flex-end; /* aligns editor/author comments to the right */
}

.comment-header {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 4px; /* gives space between header and body */
}

.comment.user .comment-header {
    align-items: flex-start; /* aligns the user's header to the left */
}

.comment.editor .comment-header {
    align-items: flex-end; /* aligns the editor's header to the right */
}

.comment-header .name,
.comment-header .title {
    margin: 0; /* removes margin */
    display: block; /* allows for individual line breaks */
}

.comment.user .comment-header .name {
    margin-left: 10px;
}

.comment.editor .comment-header .name {
    margin-right: 10px;
}

.name {
    font-weight: bold;
    color: #FFF; /* Adjust as needed */
}

.title {
    font-style: italic;
    color: #FF4D4D;
}

.comment-body {
    border-radius: 15px;
    word-wrap: break-word;
    display: flex;
    overflow: hidden; /* ensures the background doesn't leak outside the border-radius */
    margin-top: 4px; /* gives space between header and body */
}

.comment-text {
    padding: 8px;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.profile-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px; /* spacing between image and text for user */
    margin-left: 0; /* for editor, image is on the right */
}

.comment.user .comment-body {
    background-color: #f0f0f0;
    color: #333;
    align-self: flex-start;
}

.comment.editor .comment-body {
    background-color: #FF4D4D; /* Editor's comment bubble color */
    color: white;
    align-self: flex-end;
}

.comment.editor .comment-text {
    flex-direction: row-reverse; /* for placing image on the right */
}

.comment.editor .profile-image {
    margin-left: 10px; /* spacing between image and text for editor */
    margin-right: 0;
}

.consent_prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #16171a;
    padding: 15px;
    margin-top: 10px;
    margin: 0 auto; 
    border-radius: 5px;
    max-width: 1000px;
    flex-direction: column; /* Stacks the flex items vertically */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    align-self: start; /* This makes the flex container only as wide as its content */
}


.continue_novel {
    margin-top: 20px;
    order: 2;      
    margin-bottom: 20px;                /* Display the button before the text */
}

.available {
    background-color: #FF4D4D;
}

#search-input {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    margin: 0 10px;
    width: 100px;
    text-align: center;  /* Added line for centering text */
}


