/* Reset margins and set box-sizing */
*, *::before, *::after {
        box-sizing: border-box;
}

html {
        /* Fixes page jump by forcing the scrollbar to always be visible */
        overflow-y: scroll;
}

body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        margin: 0;
        padding: 0;
        background-color: #f8fafc;
        color: #1e293b;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        overflow-x: hidden;
        /* Prevent selection of text/elements to protect content */
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
}

/* Container for desktop centering, 100% width on mobile */
.site-wrapper {
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

/* HEADER SECTION (Dark/Black) */
header {
        background-color: #0f172a;
        color: #ffffff;
        padding: 24px 20px 20px 20px;
        text-align: center;
        flex-shrink: 0;
}

header h1 {
        margin: 0;
        font-size: 1.8rem;
        font-weight: 700;
}

/* Styling for H2 in header */
header h2 {
        margin: 6px 0 0 0;
        font-size: 1.1rem;
        font-weight: 400;
        color: #ffffff;
}

/* MENU STYLING (Top and footer menus) */
.nav-menu {
        background-color: #f1f5f9;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
}

/* Blue line underneath the top menu */
.top-nav {
        border-bottom: 4px solid #0284c7;
}

.nav-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
}

.nav-menu a {
        display: block;
        padding: 14px 16px;
        color: #1e293b; /* Safe contrast color */
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 600;
        transition: color 0.2s ease;
}

.nav-menu a:hover {
        color: #0284c7;
}

/* MAIN CONTENT / TEXT BOX */
main {
        flex: 1 0 auto;
        padding: 30px 20px;
        width: 100%;
}

.text-box {
        background-color: #ffffff;
        border-left: 4px solid #0284c7;
        padding: 20px;
        border-radius: 0 8px 8px 0;
        box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
}

.text-box h2 {
        margin-top: 0;
        color: #0f172a;
        font-size: 1.4rem;
}

/* AUDIO PLAYER STYLING */
.audio-container {
        margin: 20px 0;
        width: 100%;
}

audio {
        width: 100%;
        display: block;
        border-radius: 8px;
        background-color: #f1f5f9;
}

/* SONG DESCRIPTION BOX */
.song-description {
        margin-top: 15px;
        padding: 15px;
        background-color: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
}

.song-description h3 {
        margin: 0 0 8px 0;
        font-size: 1.05rem;
        color: #0284c7;
        font-weight: 600;
}

.song-description p {
        line-height: 1.6;
        color: #334155;
        margin: 0;
        font-size: 0.95rem;
}

/* FOOTER SECTION */
footer {
        margin-top: auto;
        background-color: #f1f5f9;
        border-top: 4px solid #0284c7;
        flex-shrink: 0;
}

footer .nav-menu {
        background-color: #f1f5f9;
}

footer .nav-menu a {
        color: #1e293b;
}

footer .nav-menu a:hover {
        color: #0284c7;
}

/* FOOTER CREDITS (Light gray) */
.footer-credits {
        padding: 0 20px 20px 20px;
        text-align: center;
        font-size: 0.85rem;
        color: #334155;
}