/* General reset for better styling control */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6; /* Ensure readability */
}

/* Header Section */
header {
    background-color: #3498db; /* Change color to fit your theme */
    padding: 20px;
    text-align: left;
}

.header-container .site-name {
    font-size: 24px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Content Section */
.content-section {
    margin: 40px auto;
    text-align: center;
    width: 80%;
    max-width: 1200px; /* Ensure content does not stretch beyond this */
    overflow: hidden;
}

.content-container {
    width: 100%;
    margin: 0 auto;
}

.content-image {
    max-width: 100%;
    height: auto;
}

.content-text {
    margin-top: 20px;
    font-size: 18px;
    color: #555;
}

/* Profile Section */
.profile-section {
    padding: 20px;
    background-color: #ffffff;
    text-align: center;
    clear: both; /* Ensure the section clears any floated content */
    margin-bottom: 40px;
}

/* Profile Container */
.profile-container {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin: 0 auto; /* Center the container */
}

.profile-container h2 {
    color: #343a40;
    font-size: 2.5rem;
}

.profile-container p {
    color: #6c757d;
    font-size: 1.2rem;
}

/* Profile Image */
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 20px 0;
    border: 2px solid #dee2e6;
}

/* Profile Details */
.profile-details {
    font-size: 1.1rem;
    color: #495057;
}

/* Bio Info Section */
.bio-info-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: left;
}

.bio-info-container h3 {
    font-size: 1.5rem;
    color: #343a40;
    margin-bottom: 10px;
}

.bio-info-container p {
    margin-bottom: 10px;
    color: #6c757d;
    font-size: 1.1rem;
}

/* Chat Nickname and Rating Section */
.chat-nickname-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.chat-nickname-container .nickname {
    font-size: 1.2rem;
    color: #343a40;
    font-weight: bold;
}

.chat-nickname-container .rating {
    font-size: 1.2rem;
    color: #ffc107;
}

/* Languages Section */
.languages-section {
    margin-top: 20px;
    text-align: left;
    color: #495057;
}

.languages-section h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #343a40;
}

.languages-section ul {
    list-style-type: none;
    padding-left: 0;
}

.languages-section li {
    margin-bottom: 5px;
}

/* Thumbnails Row (related models) */
.thumbnails-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0;
}

/* Model Thumbnails Row */
.model-thumbnails-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.model-thumbnail {
    flex: 1 1 calc(16.66% - 10px); /* 6 items in a row with some margin */
    margin-bottom: 20px;
    text-align: center;
}

.model-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.model-name {
    margin-top: 10px;
}

.model-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.model-link:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Related Models Thumbnail Section */
.related-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0;
    clear: both; /* Make sure it doesn't overlap any previous floated content */
}

.related-thumbnail {
    flex: 1 1 calc(16.66% - 10px); /* 6 items in a row */
    margin-bottom: 20px;
    text-align: center;
}

.related-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 2px solid #dee2e6;
    transition: transform 0.3s ease;
}

.related-thumbnail img:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.related-thumbnail .model-name {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #333;
}

.related-thumbnail .model-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.related-thumbnail .model-link:hover {
    text-decoration: underline;
    color: #2c3e50; /* Darker hover color */
}

/* Footer Section */
footer {
    background-color: #343a40;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

footer p {
    color: #fff;
    font-size: 1rem;
}