/* Character Creator Custom Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0a0a0a;
    color: #e0cfc0;
    min-height: 100vh;
}
.page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #121212;
    border-radius: 10px;
    box-shadow: 0 2px 12px #0008;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.header-container {
    background: #1a060c;
    border-bottom: 2px solid #d0021b;
    padding: 1.3rem 1rem 0.8rem 1rem;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

/* --- FIXED: SORC letters and title match original style --- */
.sorc-letters {
    display: inline-block;
    color: #d0021b;
    letter-spacing: 0.35em;
    font-weight: bold;
    font-size: 3rem !important;           /* match original h1 size */
    margin-bottom: 0.15em;
    margin-top: 0.2em;
    text-shadow: 1px 2px 8px #000, 0 0 6px #fdf6e3;  /* black shadow + cream glow */
}
h2.title-main {
    /* For: Slayers of Rings & Crowns title */
    color: #fff !important;                 /* white text */
    font-size: 2rem !important;
    font-weight: bold;
    margin-bottom: 0.3em;
    margin-top: 2em;
    text-shadow: 1px 2px 8px #000, 0 0 2px #d0021b;  /* black shadow + slight red edge */
}

/* --- END FIX --- */

.page-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.4rem 0 1.4rem 0;
    font-weight: bold;
    background: none;
    position: relative;
}
.page-nav a {
    color: #d0021b;
    text-decoration: none;
    padding: 0.35em 0.8em;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    flex: 0 0 auto;
    display: inline-block;
    min-width: 64px;
    text-align: center;
    font-size: 1em;
    margin: 0 2px;
}
.page-nav a.current-section, .page-nav a:hover, .page-nav a:focus {
    background: #d0021b;
    color: #fff;
}
@media (max-width: 600px) {
    .page-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 0.5em 0;
        margin: 1em auto 2em auto;
        background: #1a060c;
        border-radius: 100px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.28);
        min-height: 48px;
        width: 96%;
        max-width: 440px;
    }
    .page-nav::before,
    .page-nav::after {
        content: "";
        position: absolute;
        top: 0; bottom: 0;
        width: 28px;
        pointer-events: none;
        z-index: 2;
    }
    .page-nav::before {
        left: 0;
        background: linear-gradient(to right, #1a060c 80%, transparent);
        border-top-left-radius: 100px;
        border-bottom-left-radius: 100px;
    }
    .page-nav::after {
        right: 0;
        background: linear-gradient(to left, #1a060c 80%, transparent);
        border-top-right-radius: 100px;
        border-bottom-right-radius: 100px;
    }
    .page-nav::-webkit-scrollbar {
        height: 6px;
    }
    .page-nav::-webkit-scrollbar-thumb {
        background: #d0021b;
        border-radius: 4px;
    }
}

/* --- CARD IMAGES, LARGER, NOT CROPPED --- */
.image-card {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 32px auto 28px auto;
    border-radius: 8px;
    box-shadow: 0 1px 6px #222;
    background: #1a060c;
    border-left: 4px solid #d0021b;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-card img {
    width: 100%;
    height: 340px;
    object-fit: contain;        /* <--- CHANGE: show full image, no crop */
    object-position: center;    /* <--- center image in box */
    border-radius: 8px;
    display: block;
    background: #222;
}
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}
.arrow-right {
    right: 0;
}
.arrow-left {
    left: 0;
}
.arrow svg {
    width: 44px;
    height: 44px;
    opacity: 0.65;
    display: block;
}
@media (max-width: 600px) {
    .image-card img {
        height: 220px;
    }
    .image-card {
        max-width: 98vw;
    }
    .arrow svg {
        width: 28px;
        height: 28px;
    }
}

/* Utility and link styles */
p {
    margin-bottom: 1em;
}
a {
    color: #d0021b;
    text-decoration: underline;
    transition: color 0.2s, font-weight 0.2s;
}
a:hover, a:focus {
    color: #fff;
    font-weight: bold;
}
h1, h2, h3 {
    color: #d0021b;
    margin-top: 2em;
    margin-bottom: 0.6em;
}
/* OVERRIDE for title h2 */
h2.title-main {
    color: #fff !important;
    font-size: 2rem !important;
    font-weight: bold;
    margin-bottom: 0.3em;
    margin-top: 2em;
    text-shadow: 1px 2px 8px #000, 0 0 2px #d0021b;
}
.sorc-letters {
    color: #d0021b;
    font-size: 3rem !important;
    font-weight: bold;
    letter-spacing: 0.35em;
    display: inline-block;
    text-shadow: 1px 2px 8px #000, 0 0 6px #fdf6e3;
    margin-bottom: 0.15em;
    margin-top: 0.2em;
}
/* END OVERRIDE */
h2 {
    font-size: 2rem !important;   /* <--- header smaller */
    margin-bottom: 0.3em;
}
hr {
    border: none;
    border-top: 2px solid #d0021b;
    margin: 2em 0;
}

/* --- RESPONSIVE SORC LETTERS FIX --- */
@media (max-width: 400px) {
  .sorc-letters {
    font-size: 2.2rem !important;
  }
}
