/* ============================================================
   Whose Crit Is It, Anyway? — Stylesheet
   ============================================================ */

/* ── FONT ── */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
}

/* ── BASE ── */
body {
    font-family: "Lato", sans-serif;
}

/* ── SLIDESHOW ── */
/* Used across most pages for any hidden slide elements */
.mySlides {
    display: none;
}

/* ── IMAGES ── */
/* Generic centered, responsive images */
.center-50 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    border: 1px solid black;
}
.big-center {
    display: block;
    margin: auto;
    width: 100%;
}

/* Responsive image floated left (cast.html, party.html, s1e1.html) */
.responsive-l {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    height: auto;
    margin: 5%;
    float: left;
    border: 1px solid black;
}

/* Responsive image floated right (cast.html, party.html, s1e1.html) */
.responsive-r {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    height: auto;
    margin: 5%;
    float: right;
    border: 1px solid black;
}

/* ── TABLE CELLS ── */
/* Used in cast.html, party.html, s1e1.html, world.html, factions.html */
.wc-cell-l {
    width: 50%;
    height: 22px;
    text-align: right;
    vertical-align: top;
    padding: 5px;
}

.wc-cell-r {
    width: 50%;
    height: 22px;
    text-align: left;
    padding: 5px;
}

.wc-row {
    height: 22px;
}

/* ── LAYOUT DIVS ── */
/* Left column, narrow (30%) — cast.html, party.html, s1e1.html */
.wc-div-1l {
    max-width: 30%;
    float: left;
    display: table-cell;
    padding-right: 20px;
    margin: 1% 1% 1% 0%;
    align-items: center;
}

/* Right column, wide (70%) — cast.html, party.html, s1e1.html */
.wc-div-1r {
    max-width: 70%;
    float: right;
    display: table-cell;
    padding: 0 10px 0 20px;
}

/* Left column, wide (70%) — cast.html, party.html, s1e1.html */
.wc-div-2l {
    max-width: 70%;
    float: left;
    display: table-cell;
    padding: 0 20px 0 10px;
}

/* Right column, narrow (30%) — cast.html, party.html, s1e1.html */
.wc-div-2r {
    max-width: 30%;
    float: right;
    display: table-cell;
    padding-right: 10px;
    margin: 1% 0% 1% 0%;
}

/* Card row wrapper — cast.html, party.html, s1e1.html */
.wc-div-row {
    margin: 10px;
    padding: 10px;
    max-width: 1000px
}

/* ── PROSE ── */
/* Body text, left-aligned — cast.html, party.html, s1e1.html */
.wc-prose {
    text-align: left;
    padding: 10px 10px 0 10px;
}

/* Body text variant with full padding — cast.html, party.html, s1e1.html */
.wc-prose-r {
    text-align: left;
    padding: 10px 10px 10px 10px;
}

.wc-center {
    text-align: center;
    text-wrap: balance;
}

.name {
    margin-bottom: 0;
    text-align: center;
}
.role {
    margin-top: 0;
    text-align: center;
}
/* Indented paragraph — s1e1.html */
p.indent {
    text-indent: 30px;
    padding-left: 10px;
    padding-right: 10px;
}

/* ── STICKY TOP NAVBAR ── */
/* Used across all pages */
.top {
    position: sticky;
    width: 100%;
    z-index: 1;
    top: 0;
    background-color: black;
    margin: auto;
    text-align: center;
    overflow: auto;
    display: block;
    white-space: normal;
    float: none;
    padding: 8px 16px;
    text-wrap: balance;
}
.navbutton {
    border: none;
    display: inline-block;
    padding: 4px 8px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: #d7942a;
    background-color: black;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    margin-bottom: 8px;
}

.navbutton:hover {
    color: #000 !important;
    background-color: #d7942a !important;
    border: none;
}

.active-navbutton {
    border: none;
    display: inline-block;
    padding: 4px 8px;
    vertical-align: middle;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    margin-bottom: 8px;
    color: black;
    background-color: #d7942a;
    text-decoration: none;
}
/* ── BUTTONS (index.html) ── */
.button {
    border: 4px outset;
    border-radius: 20px;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: #d7942a;
    background-color: black;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    margin-bottom: 8px;
}

.button:hover {
    color: #000 !important;
    background-color: #d7942a !important;
    border-radius: 20px;
    border: 4px inset;
}

.active-button {
    color: black;
    background-color: #d7942a;
}

/* Generic button (factions.html, world.html) */
button {
    background: transparent;
    border: 2px solid #d84f0a;
    color: #d84f0a;
    transition: background 0.2s, color 0.2s;
}

button:hover {
    background: #d84f0a;
    color: white;
}
.sandwich-top {
    line-height: 95%;
}
.sandwich-bottom{
    line-height: 95%;
}
/* ── INDEX PAGE CONTAINERS ── */
.container-bold {
    display: block;
    background-color: #d8dbe2;
    padding: 10px;
    border: 5px solid #a9bcd0;
    border-radius: 20px;
    margin: 10px;
    align-items: center;
}

.next-show {
    background-color: #d7942a;
    border: 4px solid black;
    border-radius: 10px;
    width: 70%;
    margin: auto;
    margin-bottom: 10px;
}

.social-media {
    background-color: #a9bcd0;
    border-radius: 10px;
    font-size: 30px;
    text-align: center;
    max-width: 200px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Generic containers  */
.container {
    display: block;
    background-color: #d8dbe2;
    padding: 10px;
    border: 3px solid #a9bcd0;
    border-radius: 20px;
    margin: 10px auto;
    align-items: center;
    overflow: hidden;
    max-width: 1000px;
}

.container div {
    background-color: #d8dbe2;
    padding: 10px;
    font-size: 30px;
    text-align: center;
}
.bg {
    width: 100%;
    background-color:#1e283e;
}
.image-container {
    display: block;
    background-color: #d8dbe2;
    padding: 10px;
    border: 3px solid #a9bcd0;
    border-radius: 20px;
    margin: 10px auto;
    align-items: center;
    overflow: scroll;
    max-width: 1000px;
    scrollbar-color: #d7942a black;
}
.content {
    margin-left: auto;
    margin-right: auto;
    max-width: 2000px;
    background-color:#1e283e;
    padding-top: 10px;
}
.story-content {
    max-width: 2000px;
    background-color:#1e283e;
    padding-top: 10px;
    margin-left: 100px;
    margin-right: auto;
}
.title {
    max-width: min(500px, 90%);
    width: fit-content;
    margin: auto;
    background-color: #d8dbe2;
    padding: 16px 32px 16px 32px;
    border-radius: 20px;
    border: 5px solid #a9bcd0;
    text-align: center;
    text-wrap: balance;
}
.story-title {
    width: fit-content;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    background-color: #d8dbe2;
    padding: 16px 32px 16px 32px;
    border-radius: 20px;
    border: 5px solid #a9bcd0;
    text-wrap: balance;
}
/* —— Page numbers for stories —— */
.pagenum-container {
    display: flex;
    height: 100px;
    width: 100%;
    align-items: center;
}
.pagenum-container div {
    width: 50%;
    height: 10px;
    background-color: #222;
}
.pagenum-container img {
    width: 100px;
    height: 100px;
    margin: 0;
    top: 50%;

}
/* ── SIDE NAVIGATION (s1e1.html) ── */
#side-nav {
    position: fixed;
    top: 46px; /* clears the top navbar */
    left: 0;
    width: 100px;
    height: calc(100vh - 46px);
    background: #111;
    border-right: 1px solid #2a2a2a;
    overflow-y: auto;
    z-index: 90;
    display: flex;
    flex-direction: column;
    padding: 18px 0 24px;
}

#side-nav .nav-title {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #dddddd;
    padding: 0 16px 14px;
    border-bottom: 1px solid #222;
    margin-bottom: 10px;
}

#side-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

#side-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    text-decoration: none;
    color: #dddddd;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    line-height: 1.3;
    transition: color 0.2s, background 0.2s;
    position: relative;
}

#side-nav a .pip {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: 1.5px solid #555;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

#side-nav a:hover {
    color: #ccc;
}

#side-nav a:hover .pip {
    border-color: #ccc;
}

#side-nav a.active {
    color: #e8d9b8;
    background: rgba(232, 217, 184, 0.08);
}

#side-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e8d9b8;
}

#side-nav a.active .pip {
    background: #e8d9b8;
    border-color: #e8d9b8;
    transform: scale(1.3);
}

/* ── READING PROGRESS BAR (s1e1.html) ── */
.nav-progress {
    margin: 14px 16px 0;
    padding-top: 14px;
    border-top: 1px solid #222;
}

.nav-progress-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #dddddd;
    margin-bottom: 7px;
}

.progress-track {
    height: 2px;
    background: #222;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #e8d9b8;
    border-radius: 2px;
    transition: width 0.1s linear;
}
/* ── RESPONSIVE OVERRIDES  ── */
/* Push page content right to make room for sidebar */

@media (max-width: 768px) {
    #side-nav {
        display: none;
    }

    .container{
        margin-left: 8px;
        margin-right: 8px;
    }
    .story-content {
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 600px) {
    .wc-div-1l,
    .wc-div-2r {
        max-width: 100%;
        width: 100%;
        float: none;
        display: block;        /* overrides display: table-cell */
        padding-right: 0;
        margin: 0 0 10px 0;
    }

    .wc-div-1r,
    .wc-div-2l {
        max-width: 100%;
        width: 100%;
        float: none;
        display: block;        /* overrides display: table-cell */
        padding: 0;
    }

    .responsive-l,
    .responsive-r {
        float: none;
        display: block;
        margin: 0 auto 10px;
        width: 50%;
    }
}
/* For very very small screens */
@media (max-width: 480px) {
    button,
    .active-navbutton,
    .navbutton {
        font-size: 0.75rem;
        padding: 4px 5px;
    }
}
