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

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

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

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

header h1 a:hover {
    color: #D65D7A;
}

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

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

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

nav ul li a:hover {
    color: #D65D7A;
}

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

h2, h3 {
    color: #C54462;
}

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

.book-item {
    background-color: #2c2c2c;
    border-radius: 8px;
    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: #333;
}

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

.book-details {
    background-color: #2c2c2c;
    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: #C54462;
    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: #C54462;
    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: #C54462;
    color: #fff;
    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, transform 0.2s ease;
}

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

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

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

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

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

/* Light mode (default) styles */
body {
    background-color: #f4f4f4;
    color: #333;
}

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

body.dark-mode header,
body.dark-mode footer {
    background-color: #9E3650;
}

body.dark-mode .profile-card,
body.dark-mode .book-details {
    background-color: #2c2c2c;
    color: #f0f0f0;
}

body.dark-mode .profile-username,
body.dark-mode .book-title,
body.dark-mode .book-author {
    color: #f0f0f0;
}

/* 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;
}

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

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

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

body.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;
}

body.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: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px 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 15px rgba(0, 0, 0, 0.15);
}

.profile-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.profile-info {
    padding: 15px;
    text-align: center;
}

.profile-info .profile-username {
    font-size: 1.2rem;
    margin: 0;
    color: #C54462;
}

.profile-image-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.profile-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.profile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform: scale(1.05);
}

.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.profile-overlay-username {
    color: #fff;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
    opacity: 1;
}

.play-icon {
    font-size: 5em;
    color: #fff;
    opacity: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.profile-image-container:hover .play-icon {
    transform: scale(1.2);
    color: #C54462; /* Change color on hover */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.profile-image-container:hover .play-icon {
    animation: pulse 1s infinite;
}

/* Light mode styles */
body.dark-mode .profile-image-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.7) 100%);
}

body.dark-mode .profile-overlay-username {
    color: #333;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
}

body.dark-mode .play-icon {
    color: #333;
}

body.dark-mode .profile-image-container:hover .play-icon {
    color: #C54462;
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    .profile-image-wrapper {
        width: 100%;
        max-width: 600px;
    }

    .profile-overlay-username {
        font-size: 2.5em;
    }

    .view-profile-btn {
        padding: 15px 30px;
        font-size: 1.2em;
    }
}

.quiz-container {
    background-color: #2c2c2c;
    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: #444;
    margin-bottom: 30px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #C54462;
    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: #444444;
    border: 2px solid #555555;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    background-color: #555555;
    border-color: #666666;
}

.quiz-option.selected {
    background-color: #C54462;
    border-color: #9E3650;
    color: #fff;
}

.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: #C54462;
    color: #fff;
    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: #9E3650;
}

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

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

/* Light mode styles */
body.dark-mode .quiz-container {
    background-color: #fff;
}

body.dark-mode .quiz-progress {
    background-color: #e0e0e0;
}

body.dark-mode .quiz-question h4 {
    color: #333;
}

body.dark-mode .quiz-option {
    background-color: #f0f0f0;
    border-color: #ddd;
    color: #333;
}

body.dark-mode .quiz-option:hover {
    background-color: #e0e0e0;
}

body.dark-mode .quiz-option.selected {
    background-color: #C54462;
    color: #fff;
}

body.dark-mode .quiz-results {
    background-color: #e8f4fd;
    color: #2c3e50;
}

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

.read-more-btn {
    background-color: #C54462;
    color: #fff;
    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: #9E3650;
}

body.dark-mode .read-more-btn {
    background-color: #9E3650;
    color: #fff;
}

body.dark-mode .read-more-btn:hover {
    background-color: #C54462;
}

.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: #C54462;
    color: #fff;
    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: #9E3650;
}

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

body.dark-mode .read-more-btn,
body.dark-mode .read-less-btn {
    background-color: #C54462;
    color: #fff;
}

body.dark-mode .read-more-btn:hover,
body.dark-mode .read-less-btn:hover {
    background-color: #9E3650;
}

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

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

.model-nav-button:hover {
    background-color: rgba(197, 68, 98, 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: #C54462;
    color: #f0f0f0;
    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: #D65D7A;
    transform: scale(1.05);
}