/* Hero Page Styles */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.character-banner {
    text-align: center;
    color: white;
    padding: 50px 20px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.character-description {
    width: 80%;
    margin: 20px auto;
    font-size: 18px;
    line-height: 1.6;
}

.character-connections {
    width: 80%;
    margin: 30px auto;
    text-align: center;
}

.character-connections h3 {
    color: #333;
    margin-bottom: 10px;
}

.character-connections p {
    color: #666;
    margin-bottom: 15px;
}

.character-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.character-connection-link {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.character-connection-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}
.character-carousel {
    margin: 20px 0;
}
.character-carousel .carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}
.character-carousel .carousel-item {
    flex: 0 0 auto;
    width: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.character-carousel .carousel-item img {
    width: 100% !important;
    height: 250px !important; /* Fixed height for all carousel images */
    object-fit: cover !important; /* Crop images to fit while maintaining aspect ratio */
    object-position: center !important; /* Center the image content */
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
    border: 5px solid black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
}

.character-carousel .carousel-item img:hover {
    transform: scale(1.05);
}
.character-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}
.character-navigation .nav-link {
    text-decoration: none;
    color: #007BFF;
    font-size: 16px;
    padding: 5px;
}
.character-navigation .nav-link:hover {
    text-decoration: underline;
}
/* Add padding to navigation links and images */
.character-navigation-top .nav-image.tiny {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.character-navigation-top .nav-image.tiny:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}
/* Ensure proper alignment for navigation links */
.character-navigation-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    min-height: 70px; /* Ensure consistent height */
}
.character-navigation-top .nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #007BFF;
    padding: 10px;
    transition: all 0.3s ease;
}
.character-navigation-top .nav-link.prev {
    justify-self: flex-start;
    flex-direction: row; /* Image then text */
}
.character-navigation-top .nav-link.next {
    justify-self: flex-end;
    flex-direction: row-reverse; /* Text then image */
}
.character-navigation-top .nav-link:hover {
    color: #0056b3;
    text-decoration: none;
}
/* Style for navigation text */
.character-navigation-top .nav-text {
    font-size: 14px;
    color: inherit;
    white-space: nowrap; /* Prevent text wrapping */
    flex-shrink: 0; /* Prevent text from shrinking */
}
/* Styles for carousel dots */
.carousel-dots {
    text-align: center;
    margin-top: 10px;
}
.carousel-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
}
.carousel-dots .dot.active {
    background-color: #007BFF;
}

/* Mobile responsive for hero page carousel */
@media (max-width: 768px) {
    .character-carousel .carousel-item img {
        height: 200px !important; /* Slightly smaller height for mobile */
    }
    
    /* Responsive navigation for mobile */
    .character-navigation-top {
        flex-direction: column;
        gap: 15px;
        min-height: auto;
    }
    
    .character-navigation-top .nav-link {
        justify-content: center;
    }
    
    .character-navigation-top .nav-text {
        font-size: 12px;
    }
    
    .character-navigation-top .nav-image.tiny {
        width: 40px;
        height: 40px;
        margin: 0 8px;
    }
}