/* Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}



/* Page wrapper to center image + nav together */
.hero {
    margin-top: 60px;              /* space from top of page */
    display: flex;
    flex-direction: column;
    align-items: center;           /* centers image block */
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Image */
.hero img {
    width: 100%;
    max-width: 900px;              /* controls width of image + nav */
    height: auto;
    border-radius: 10px;
    filter: brightness(70%);
}


/* Static nav bar */
nav.nav-static {
    position: static;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto 40px auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between; /* logo left, links right */
    align-items: center;
}

nav.nav-static .nav-links {
    list-style: none;      /* removes bullets */
    display: flex;         /* horizontal layout */
    gap: 25px;
    margin: 0;
    padding: 0;
}

/* Logo (left) */
nav .logo {
    color: black;
    font-size: 22px;
    font-weight: bold;
}

/* Nav link styling */
nav .nav-links a {
    color: black;
    text-decoration: none;
    font-size: 16px;
}

nav .nav-links a:hover {
    text-decoration: underline;
}

/* Centered Text Over Image */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.hero-text h1 {
    font-size: 48px;
    margin: 0;
}

.hero-text p {
    font-size: 22px;
    margin-top: 10px;
}

.page-title {
    text-align: center;
    margin-top: 40px;
    font-size: 36px;
}

.search-input {
    display: block;
    margin: 20px auto;
    padding: 10px 15px;
    font-size: 18px;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    border: 1px solid #ccc;
}


/* Grid layout for Tales and Songs */
.grid {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Styling for Songs */
/* SONG HEADER TWO-COLUMN LAYOUT */
.song-header {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 30px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* LEFT COLUMN */
.song-info {
    flex: 1;
}

.song-title {
    font-size: 36px;
    margin: 0;
}

.song-subtitle {
    font-size: 22px;
    margin-top: 10px;
    color: #444;
}

.song-description {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 20px;
}

.song-audio {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

/* RIGHT COLUMN */
.song-video {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.video-embed {
    width: 100%;
    max-width: 550px;
    height: 300px;
    border-radius: 10px;
    border: none;
}


/* PDF section title */
.pdf-section-title {
    text-align: center;
    margin-top: 40px;
    font-size: 26px;
    color: #444;
}

/* PDF grid */
.pdf-grid {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* PDF viewer box */
.pdf-box {
    text-align: center;
}

.pdf-viewer {
    width: 100%;
    height: 500px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.pdf-label {
    margin-top: 10px;
    font-size: 16px;
    color: #555;
}

/* Video section title */
.video-section-title {
    text-align: center;
    margin-top: 50px;
    font-size: 24px;
    color: #444;
    line-height: 1.5;
}

/* Styling for Tales */
.tale-card {
    display: block;
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tale-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tale-card-inner h2 {
    margin: 0;
    font-size: 24px;
}

.tale-card-inner p {
    margin-top: 10px;
    font-size: 16px;
    color: #666;
}

/* Tale page layout */
.tale-header {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 30px;
    display: flex;
    gap: 40px;
    align-items: flex-start; /* aligns top of image + text */
}

/* Image column: ~40% width */
.tale-cover {
    width: 45%;              /* larger image */
    max-width: 420px;        /* prevents overly huge scaling */
    border-radius: 10px;
}

/* Text column: ~60% width */
.tale-info {
    flex: 1;                 /* takes remaining space */
    max-width: 55%;
	text-align: center;
}

.tale-header {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.tale-subtitle {
    font-size: 22px;
    margin-top: 10px;
    color: #444;
}

.tale-info h1.page-title {
    margin-top: 0;
}

.tale-description {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 20px;
}

/* Audio player */
.tale-info audio {
    width: 80%;
    max-width: 400px;
    margin-top: 20px;
}


/* WOTW */
.intro-text {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

.intro-text a {
    color: #0066cc;
    text-decoration: none;
}

.intro-text a:hover {
    text-decoration: underline;
}

.wotw-container {
    max-width: 1000px;      /* smaller overall width */
    margin: 40px auto;      /* centers the entire grid */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;              /* more space between videos */
    padding: 0 30px;        /* prevents touching browser edges */
}

.wotw-entry {
    display: flex;
    justify-content: center;   /* centers the video inside each grid cell */
}

.wotw-video {
    width: 90%;                /* slightly smaller video */
    max-width: 300px;          /* prevents oversized videos */
    border-radius: 8px;
}
.wotw-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;     /* match video grid width */
    margin: 20px auto;     /* center the whole bar */
    padding: 0 30px;       /* match video grid padding */
}
.search-input {
    width: 250px;
    margin: 0;
}
.pagination {
    display: flex;
    gap: 8px;
}

.pagination button {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #eee;
    cursor: pointer;
}

.pagination button:hover {
    background: #ddd;
}

.pagination .active {
    background: #ccc;
    font-weight: bold;
}

/* About section */
.about-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 30px;
    line-height: 1.7;
    font-size: 18px;
}

.about-section h2 {
    margin-top: 40px;
    font-size: 26px;
}

.contributors-list {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.6;
}
