/**************************************************************
 * Overall Header (two rows)
 **************************************************************/
header {
    background-color: #1a237e;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Top row: company logo (left), powered-by (center), menu icon (right) */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5em 1em;
}

.header-left {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.company-logo {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 4px;
}

.header-center {
    flex: 1;
    text-align: center;
    font-size: 0.85em;
    color: #eee;
}

.header-center a {
    color: #eee;
    text-decoration: underline;
}

.header-center a:hover {
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
}

.menu-icon {
    font-size: 1.2em;
    cursor: pointer;
    user-select: none;
}

/* Second row => "NZK Lyrics Hymnal" */
.header-bottom {
    padding: 0.5em 1em;
    text-align: center;
}

#page-title {
    margin: 0;
    font-size: 1.5em;
    line-height: 1.2;
    padding: 0;
}

/**************************************************************
 * Side Drawer (Hamburger Menu)
 **************************************************************/
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 1001;
    display: none;
}

.menu-overlay.show {
    display: block;
}

.menu-overlay-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 260px;
    height: 100%;
    background-color: #1a237e;
    box-shadow: -3px 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    padding: 1em;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1em;
}

.drawer-title {
    font-size: 1.2em;
    font-weight: bold;
}

.drawer-close-btn {
    font-size: 1.5em;
    cursor: pointer;
}

.menu-overlay-content a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 0.5em 0;
    border-bottom: 1px solid #3949ab;
    margin-bottom: 0.5em;
}

.menu-overlay-content a:hover {
    background-color: #3949ab;
}

/**************************************************************
 * Search Bar + Results
 **************************************************************/
#search-section {
    margin: 1em auto;
    max-width: 600px;
    text-align: center;
}

#searchInput {
    width: 100%;
    max-width: 600px;
    font-size: 1em;
    padding: 0.6em;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
    margin-bottom: 1em;
}

#searchResults {
    margin-top: 0.5em;
    text-align: left;
}

.search-result-item {
    padding: 0.5em;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-result-item:hover {
    background-color: #f0f2ff;
}

/**************************************************************
 * Hymn Navigation (single-step)
 **************************************************************/
#nav-buttons-row {
    display: flex;
    gap: 0.6em;
    justify-content: center;
    margin: 1em auto;
    max-width: 600px;
    flex-wrap: wrap;
    align-items: center;
}

.arrow-button {
    border: none;
    background-color: #f0f0f0;
    color: #444;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.arrow-button:hover:not(:disabled) {
    background-color: #d4d4d4;
}

.arrow-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-button {
    padding: 0.4em 0.6em;
    border: 1px solid #1a237e;
    background-color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #1a237e;
    transition: background-color 0.3s, color 0.3s;
}

.nav-button:hover {
    background-color: #3949ab;
    color: #fff;
}

.nav-button.active {
    background-color: #1a237e;
    color: #fff;
}

/**************************************************************
 * Single displayed hymn container
 **************************************************************/
#single-hymn-container {
    margin: 1em auto;
    max-width: 600px;
    width: 100%;
}

.feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stanza-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1em;
}

.stanza-number-circle {
    width: 35px;
    height: 35px;
    background-color: #e8eaf6;
    border-radius: 50%;
    text-align: center;
    margin-bottom: 6px;
}

.stanza-number-circle span {
    line-height: 35px;
    font-weight: bold;
    color: #3f51b5;
}

.stanza-text p {
    margin: 0;
    color: #333;
    line-height: 1.4em;
    font-size: 1.2em;
}

.chorus-block {
    margin-bottom: 1.5em;
}

.chorus-text {
    margin: 0;
    color: #333;
    line-height: 1.4em;
    font-size: 1.2em;
    font-style: italic;
    font-family: 'Georgia', serif;
}

.feature-card {
    margin-bottom: 2em;
}

.hymn-title {
    color: #1a237e;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 0.2em;
}

.hymn-english-title {
    color: #3949ab;
    font-size: 1.1em;
    margin-bottom: 0.2em;
    font-style: italic;
}

.hymn-key {
    font-size: 0.95em;
    color: #444;
    margin-bottom: 1em;
}

/* You have now successfully moved all general styles from <style> into this file. */