
/* ====== GLOBAL ====== */

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: #d6d0c4;
    color: #3b2f1e;
/*    border: 10px solid red !important;   */
}

.container {
    max-width: 900px;
    margin: 20px auto;
}

.page {
    width: 1024px;
    margin: 0 auto;

    background:
        url('/img/left-edge.jpg') left top repeat-y,
        url('/img/right-edge.jpg') right top repeat-y,
        url('/img/parchment-strip.jpg') center top repeat;

    background-color: #d8c7a3;
}

/* ====== HEADER ====== */

.header {
    max-width: 1024px;
    height: 484px;
    margin: 0 auto;
    background: url('/img/header-4.jpg') center no-repeat;
    background-size: contain;
    position: relative;
    display: block;
}

.header h1 {
    position: absolute;
    left: -9999px;
    font-size: 84px;
    letter-spacing: 0px;
}

.tagline {
    text-align: center;
    font-style: italic;
    margin: 20px 0;
}

/* ====== SONG LIST ====== */

.container {
    max-width: 900px;
    margin: auto;
    padding: 10px;
}

.song {
    display: flex;
    align-items: center;
    gap: 10px;

    background: linear-gradient(
        to bottom,
        #f3e4c6 0%,
        #e7d3ad 100%
    );

    border: 1px solid #c8b089;
    border-radius: 6px;

    padding: 10px 12px;
    margin-bottom: 10px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        0 1px 2px rgba(0,0,0,0.1);
}

.song:hover {
    background: linear-gradient(
        to bottom,
        #f6e9cc 0%,
        #ead8b5 100%
    );
}

/* ACTIVE TRACK */
.song.active {
    background: #f3e4c6;
    border-color: #a88c5a;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.2);
}


/* PLAYER LEFT */
.player {
    width: 220px;
    margin-right: 10px;
}

.player audio {
    width: 100%;
    height: 40px;
}

/* TITLE */
.title {
    flex: 1;
    font-weight: bold;
}

/* SCRIPTURE */
.scripture {
    width: 90px;
    text-align: center;
    font-size: 14px;
    color: #5c4326;
}

/* MORE LINK */
.more {
    width: 70px;
    text-align: right;
}

.more a {
    text-decoration: none;
    color: #5c4326;
    font-weight: bold;
}

/* DO NOT fade the whole row */
.song.missing {
    /* remove opacity completely */
}

/* Grey out player only */
.song.missing audio {
    opacity: 0.4;
    pointer-events: none;
}

/* Grey out + italic title */
.song.missing .title {
    color: #9c8b6a;   /* muted parchment tone */
    font-style: italic;
}

/* ===== OVERLAY ===== */

.overlay {
    position: fixed;
    inset: 0; /* cleaner than top/left/right/bottom */
    background: rgba(0,0,0,0.6);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;
    width: 100vw;
    height: 100vh;
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    background: #f3e4c6;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;

    padding: 10px;           /* bigger tap area */
    line-height: 1;
}

/* Lyrics */
.lyrics-block {
    margin-top: 10px;
    line-height: 1.6;
    white-space: normal;
    color: #5c4326;
}
.lyrics-block a {
    text-decoration: underline;
}


/* Scripture */
.scripture-block {
    margin-top: 20px;
    font-style: italic;
}

.scripture a {
    color: #5c4326;
    text-decoration: none;
}

.scripture a:hover {
    text-decoration: underline;
}

.scripture-block a {
    color: #5c4326;
    text-decoration: none;
}

.scripture-block a:hover {
    text-decoration: underline;
}


/* ====== FOOTER ====== */

.footer {
    max-width: 1024px;
    height: 282px;
    margin: 0 auto;

    background: url('/img/footer-4.jpg') center no-repeat;
    background-size: contain;
}

@media (max-width: 600px) {
    .song {
        flex-direction: column;
        align-items: stretch;
    }

    .player {
        width: 100%;
    }

    .player audio {
        height: 50px;
    }

    .scripture, .more {
        text-align: left;
    }
}