body {
    background-color: #0a0a0a;
    background-image: url('WuvwtS.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #d4af37;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 20px;
}

body > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    background-color: #2b2b2b;   /* dark grey */
    border: 2px solid #555;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.header h1 {
    margin: 0;
    color: #d4af37;
}

.subtitle {
    margin: 5px 0;
    font-style: italic;
}

.credits {
    font-size: 0.9rem;
    opacity: 0.7;
}

.story-text {
    font-size: 18px;      /* increase from default ~16px */
    line-height: 1.7;
    max-width: 650px;
    white-space: pre-line; /* improves readability */
    text-align: justify;    /* center the text */
    margin: 0 auto;        /* center the box itself horizontally if needed */
}

.story-panel {
    background-color: #0a0a0a;
    border: 2px solid #444;
    padding: 30px;
    width: 750px;          /* fixed width */
    min-height: 300px;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
}

.title-box, .subtitle-box {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 15px auto;
    padding: 18px 20px;

    font-family: "Georgia", serif;
    letter-spacing: 1px;
    text-align: center;

    color: #2e2e2e;
    text-transform: uppercase;
    font-size: 1.5rem; /* adjust for subtitle if needed */
    
    background: linear-gradient(
        145deg,
        #b5b5b5,
        #9a9a9a 40%,
        #7f7f7f
    );

    border: 3px solid #5f5f5f;
    border-radius: 6px;

    box-shadow:
        inset -4px -4px 6px rgba(0,0,0,0.3),
        inset 4px 4px 6px rgba(255,255,255,0.4),
        0 6px 0 #4d4d4d,
        0 8px 15px rgba(0,0,0,0.5);

    cursor: default; /* not clickable */
}

.btn {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 15px auto;
    padding: 18px 20px;

    font-size: 1.2rem;
    font-family: "Georgia", serif;
    letter-spacing: 1px;

    color: #2e2e2e;
    text-transform: uppercase;

    background: linear-gradient(
        145deg,
        #b5b5b5,
        #9a9a9a 40%,
        #7f7f7f
    );

    border: 3px solid #5f5f5f;
    border-radius: 6px;

    box-shadow:
        inset -4px -4px 6px rgba(0,0,0,0.3),
        inset 4px 4px 6px rgba(255,255,255,0.4),
        0 6px 0 #4d4d4d,
        0 8px 15px rgba(0,0,0,0.5);

    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

/* HOVER — subtle highlight */
.btn:hover {
    background: linear-gradient(
        145deg,
        #c2c2c2,
        #aaaaaa,
        #8f8f8f
    );
}

/* PRESS EFFECT */
.btn:active {
    transform: translateY(6px);
    box-shadow:
        inset -4px -4px 6px rgba(0,0,0,0.4),
        inset 4px 4px 6px rgba(255,255,255,0.3),
        0 0 0 #4d4d4d;
}

/* Index / Library Page */
.library-title {
    font-family: 'MedievalSharp', 'Palatino Linotype', serif;
    font-size: 3rem;
    color: #c8a84b;
    text-shadow: 2px 2px 4px #000;
    letter-spacing: 4px;
}

.book-list {
    list-style: none;
    padding: 0;
    max-width: 400px;
    margin: 2rem auto;
}

.book-list li {
    border: 1px solid #c8a84b;
    margin: 0.75rem 0;
    background: rgba(0, 0, 0, 0.6);
}

.book-list a {
    display: block;
    padding: 1rem 1.5rem;
    color: #c8a84b;
    text-decoration: none;
    font-family: 'Palatino Linotype', serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: all 0.2s ease;
}

.book-list a:hover {
    background: rgba(200, 168, 75, 0.15);
    letter-spacing: 4px;
    color: #fff;
}

#continueHint {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: right;
}