body {
    display: flex;
    flex-direction: column;
    background: #291F1D;
    min-height: 100vh;
    margin: 0;
}

body {
    color: #fff;
    font-family: 'Geologica', sans-serif;
}

#portrait {
    width: 100%;
    max-width: 400px;
    height: auto;
    align-self: center;
}

#navbar {
    font-family: 'Geologica', sans-serif;
    background: #291F1D;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

nav div a {
    font-size: 16px;
}

#navbar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 30px;
    margin-right: 20px;
    gap: 15px;
    padding: 0;
    
}

#navbar ul li a {
    color: #fff;
    padding: 0.75rem;
    margin: 0 0.25rem;
    text-decoration: none;
}

#navbar ul li a:hover{
    color: rgb(194, 194, 194);
    text-decoration: none;
}

#navbar img {
    width: 200px;
    height: auto;
}

/* header */

#head img {
    width: 100%;
}

.header-image-container {
    position: relative;
    width: 100%;
    display: inline-block;
}

.header-image-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* This creates the inner shadow overlay */
    box-shadow: 
        inset 0px 90px 90px -10px rgba(0, 0, 0, 0.9), 
        inset 0px -90px 90px -10px rgba(0, 0, 0, 0.9);
    pointer-events: none; 
}

.header-image-container img {
    width: 100%;
    display: block;
    height: 250px;
    object-fit: cover;
    object-position: top center;
}

#header .bio {
    text-align: left;
    font-size: 25px;
}

.bio {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bio #portrait {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .bio {
        flex-direction: row;
        align-items: center;
    }
    .bio-text {
        order: 1;
        flex: 1;
    }

    #portrait {
        order: 2;
        width: 35%;
    }
    nav div a {
        font-size: 25px;
    }
    .header-image-container img {
        height: 450px;
    }


    .bio #portrait {
        order: 2;
        width: 35%;
        max-width: none; /* This deletes the mobile limit so he can be big on PC */
    }

    #head img {
        height: 750px;
        object-fit: cover;
    }



}

.bio h3 {
    font-size: 40px;
}

.bio p, q {
    display: block;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 3px solid #737373;
}

.song {
    background: #110d0c;
}

img {
    max-width: 100%;
    height: auto;
}

#video {
    display: block;
    margin: 0 auto;
    width: 100%;
    max width: 100%;
    max-width:1000px;
    height: auto !important;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
}

#header .bio p, #header .bio q {
    text-justify: auto;
}

#header .bio h2 {
    margin-left: 200px;
    font-size: 60px;
}

h1 {
    text-align: center;
    font-size: 70px;
}

#head .description p {
    font-size: 24px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}

#characters h1 {
    margin-top: 50px;
}

#characters img {
    max-width: 250px;
    height: auto;
}

/* This controls the individual character boxes */
.character-card {
    display: flex;
    flex-direction: column; /* Forces the text to stack UNDER the image */
    align-items: center; /* Centers the text perfectly below the picture */
}

/* Optional: Make the text look nice */
.character-card p {
    margin-top: 10px; /* Adds a little breathing room above the text */
    font-weight: bold; /* Makes the names pop */
    font-size: 24px;
}

.character-gallery {
    display: flex;           /* Turns on the grid system */
    flex-direction: row;     /* Forces them left-to-right */
    justify-content: center; /* Centers the whole trio on the page */
    gap: 300px;               /* Puts the space between them */
}

footer {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background-color: #222;
}

.locked-roster {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.locked-roster img {
    width: 200px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.5;
}

footer a {
    color: #fff;
    text-decoration: none;
}