body {
    margin: 0;
    padding: 0;
    background-color: black; /* Ensures background is black */
    text-align: center; /* Helps center inline elements */
}

.content-container {
    width: 90%; /* Matches the navbar width */
    max-width: 1170px; /* Prevents it from getting too wide */
    min-height: 300px; /* Ensures a minimum height */
    margin: 20px auto; /* Centers the container */
    background-color: #b3b3ff; /* Light indigo */
    border: 3px solid #4b0082; /* Deep indigo */
    border-radius: 10px; /* Slightly rounded edges */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    padding: 20px; /* Space inside the container */
    display: flex;
    flex-direction: column; /* Stack chapter divs inside */
    gap: 15px; /* Space between chapter divs */
}

.page-title {
    color: #44087d;
    border-bottom: 2px solid #44087d;
}



.wiki-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    text-align: center;
}

.wiki-link {
    position: relative;
    display: inline-block;
    width: 240px;
    height: 400px;
}

.wiki-link a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.wiki-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.wiki-link a:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.wiki-overlay-text {
    position: absolute;
    top: 12px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: "Book Antiqua", "Times New Roman", Times, serif;
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 2;
}

.wiki-subtitle {
    font-family: "Book Antiqua", "Times New Roman", Times, serif;
    font-size: 24px; /* Half of 48px */
    font-weight: bold;
    text-align: center;
    color: #4b0082;
    border-bottom: 1px solid #4b0082;
    padding: 10px 0;
    margin-top: 20px;
    margin-bottom: 10px;
}

.character-thumb-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0;
}

.character-thumb {
    width: 128px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.character-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


.character-article {
    font-family: "Chalkboard SE", "Comic Sans MS", Arial, sans-serif;
    font-size: 30px;
    color: #4b0082; /* Matches title color */
    line-height: 1.6;
    text-align: left;
    padding: 10px 20px;
}

.character-float-img {
    float: left;
    width: 400px;
    height: 800px;
    object-fit: cover;
    margin-right: 20px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.wiki-hotlink {
  font-weight: bold;
  text-decoration: underline;
  color: inherit; /* keeps the link color matching surrounding text */
}
