body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background-color: #00AFF0;
    color: #FFFFFF;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
}

header h1 a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

header h1 a:hover {
    color: #0077A3;
}

nav ul {
    padding: 0;
    list-style-type: none;
    margin-top: 1rem;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #0077A3;
}

main {
    flex: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

h2, h3 {
    color: #00AFF0;
    font-family: 'Montserrat', sans-serif;
}

.book-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.book-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.book-item a {
    text-decoration: none;
    color: inherit;
}

.book-cover {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.book-title {
    font-size: 1.1em;
    margin: 10px;
    color: #00AFF0;
}

.book-author {
    font-size: 0.9em;
    margin: 0 10px 10px;
    color: #7f8c8d;
}

.book-details {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.book-details .book-cover {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .book-details .book-cover {
        float: left;
        margin-right: 30px;
        margin-bottom: 0;
    }
}

.book-details h2 {
    color: #00AFF0;
    margin-top: 0;
}

.book-details p {
    margin-bottom: 10px;
}

.book-summary {
    line-height: 1.8;
    margin-top: 20px;
}

.related-books {
    margin-top: 40px;
}

.related-books h3 {
    margin-bottom: 20px;
}

.related-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.related-book-item {
    text-align: center;
}

.related-book-cover {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer {
    background-color: #00AFF0;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    .book-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .book-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.book-categories {
    margin-top: 10px;
    margin-bottom: 20px;
}

.category-tag {
    display: inline-block;
    background-color: #ffd700;
    color: #333;
    padding: 5px 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.category-tag:hover {
    background-color: #ffcc00;
}

.categories-list, .authors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.category-item, .author-item {
    background-color: #f0f0f0;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.category-item:hover, .author-item:hover {
    background-color: #e0e0e0;
}

.category-count, .author-count {
    font-size: 0.9em;
    color: #666;
    margin-left: 5px;
}

/* Dark mode styles */
html.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

html.dark-mode body {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

html.dark-mode header,
html.dark-mode footer {
    background-color: #2c3e50;
    color: #f0f0f0;
}

html.dark-mode header h1 a,
html.dark-mode header nav ul li a {
    color: #f0f0f0;
}

html.dark-mode header nav ul li a:hover {
    color: #00AFF0;
}

html.dark-mode .book-item,
html.dark-mode .book-details {
    background-color: #2c3e50;
    color: #f0f0f0;
}

html.dark-mode .book-title,
html.dark-mode .book-author {
    color: #f0f0f0;
}

html.dark-mode .category-tag {
    background-color: #00AFF0;
    color: #f0f0f0;
}

html.dark-mode .category-tag:hover {
    background-color: #ffd700;
}

/* Dark mode toggle button */
#darkModeToggle {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#darkModeToggle:hover {
    background-color: #555;
}

html.dark-mode #darkModeToggle {
    background-color: #f0f0f0;
    color: #333;
}

html.dark-mode #darkModeToggle:hover {
    background-color: #ddd;
}

/* Related book summary preview */
.book-summary-preview {
    font-size: 0.9em;
    margin-top: 10px;
    color: #666;
}

html.dark-mode .book-summary-preview {
    color: #aaa;
}

.profile-media {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.media-item {
    margin: 0;
    text-align: center;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.media-item figcaption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

html.dark-mode .media-item figcaption {
    color: #aaa;
}

/* Add these styles to your existing CSS file */

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.profile-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.profile-image-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.profile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-username {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #333;
}

.profile-card a {
    text-decoration: none;
    color: inherit;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode styles */
html.dark-mode .profile-card {
    background-color: #333333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

html.dark-mode .profile-username {
    color: #f0f0f0;
}

.location-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.location-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.location-tag:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

html.dark-mode .location-tag {
    background-color: #3a3a3a;
    color: #f0f0f0;
}

html.dark-mode .location-tag:hover {
    background-color: #4a4a4a;
}

.age-group-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.age-group-item {
    background-color: #f0f0f0;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
}

.age-group-item a {
    text-decoration: none;
    color: #333;
}

.age-group-name {
    font-weight: bold;
}

.age-group-count {
    font-size: 0.9em;
    color: #666;
}

html.dark-mode .age-group-item {
    background-color: #3a3a3a;
}

html.dark-mode .age-group-item a {
    color: #f0f0f0;
}

html.dark-mode .age-group-count {
    color: #aaa;
}

.profile-count {
    font-size: 0.8em;
    color: #666;
}

html.dark-mode .profile-count {
    color: #aaa;
}

.quiz-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.quiz-progress {
    height: 6px;
    background-color: #e0e0e0;
    margin-bottom: 30px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #00AFF0;
    width: 0;
    transition: width 0.3s ease;
}

.quiz-question {
    margin-bottom: 30px;
}

.quiz-question h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2em;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-option {
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.quiz-option.selected {
    background-color: #00AFF0;
    border-color: #0077A3;
    color: white;
}

.quiz-option input[type="radio"] {
    display: none;
}

#quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.quiz-nav-button, .quiz-submit {
    background-color: #00AFF0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
}

.quiz-nav-button:hover, .quiz-submit:hover {
    background-color: #0077A3;
}

.quiz-results {
    text-align: center;
    padding: 30px;
    background-color: #e8f4fd;
    border-radius: 8px;
    margin-top: 30px;
}

.quiz-results h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4em;
}

/* Dark mode styles */
html.dark-mode .quiz-container {
    background-color: #333333;
}

html.dark-mode .quiz-progress {
    background-color: #444;
}

html.dark-mode .quiz-question h4 {
    color: #f0f0f0;
}

html.dark-mode .quiz-option {
    background-color: #444444;
    border-color: #555555;
    color: #f0f0f0;
}

html.dark-mode .quiz-option:hover {
    background-color: #555555;
}

html.dark-mode .quiz-option.selected {
    background-color: #00AFF0;
    color: #f0f0f0;
}

html.dark-mode .quiz-results {
    background-color: #333333;
    color: #f0f0f0;
}

html.dark-mode .quiz-results h4 {
    color: #3498db;
}

.read-more-btn {
    background-color: #00AFF0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
    font-weight: bold;
}

.read-more-btn:hover {
    background-color: #0077A3;
}

html.dark-mode .read-more-btn {
    background-color: #0077A3;
}

html.dark-mode .read-more-btn:hover {
    background-color: #00AFF0;
}

.profile-biography {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.biography-content {
    transition: max-height 0.5s ease;
    overflow: hidden;
    max-height: 100px; /* Adjust this value based on your design */
}

.model-bio-text {
    margin: 0;
}

.model-bio-text.truncate {
    position: relative;
}

.model-bio-text.truncate::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.read-more-container {
    text-align: center;
    margin-top: 20px;
}

.read-more-btn,
.read-less-btn {
    background-color: #00AFF0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
    font-weight: bold;
}

.read-more-btn:hover,
.read-less-btn:hover {
    background-color: #0077A3;
}

html.dark-mode .model-bio-text.truncate::after {
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0), rgba(26, 26, 26, 1));
}

html.dark-mode .read-more-btn,
html.dark-mode .read-less-btn {
    background-color: #00AFF0;
}

html.dark-mode .read-more-btn:hover,
html.dark-mode .read-less-btn:hover {
    background-color: #0077A3;
}

.chaturbate-embed-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.model-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 175, 240, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.model-nav-button:hover {
    background-color: rgba(0, 175, 240, 1);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.chaturbate-embed {
    margin: 0 50px;
}

.model-bio-text.truncate {
    max-height: 100px; /* Adjust this value as needed */
    overflow: hidden;
    position: relative;
}

.model-bio-text.truncate::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}





@media (max-width: 768px) {
    .profile-details {
        padding: 10px;
    }
    .chaturbate-embed-container {
        flex-direction: column;
    }
    .chaturbate-embed {
        width: 100%;
    }
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-tags {
    margin-top: 30px;
    margin-bottom: 30px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tag {
    background-color: #e9ecef;
    color: #4a90e2;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.tag:hover {
    background-color: #dee2e6;
    transform: scale(1.05);
}

.navbar-brand {
    color: #FFFFFF;
    font-size: 2.5rem; /* Increased from 2rem to 2.5rem */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Styles for the footer link */
.footer-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary-color);
}

/* If the nav-link class is not already styled, add these styles as well */
.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* Styles for all links in the footer */
footer a, .footer-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

footer a:hover, .footer-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* If you want to specifically target the DMCA link */
footer .dmca-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

footer .dmca-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.profile-preview-gallery {
    margin-bottom: 30px;
}

.preview-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Increased from 200px to 300px */
    gap: 20px; /* Increased from 15px to 20px for more spacing */
    margin-top: 20px;
}

.preview-image-item {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.preview-image-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .preview-images-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .preview-images-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .preview-images-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Dark mode styles */
html.dark-mode .preview-image-item {
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

html.dark-mode .preview-image-item:hover {
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.15);
}