@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;700&display=swap'); /* Serif font */
@import url('https://fonts.googleapis.com/css2?family=Zhi+Mang+Xing&display=swap'); /* Handwriting font */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap'); /* Keep Dancing Script for potential use */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;700&display=swap'); /* Original Sans Serif */
@import url('https://fonts.googleapis.com/css2?family=Chocolate+Classical+Sans&display=swap');

:root {
    /* Updated Palette inspired by the template */
    --primary-color: #d1bfa7; /* Muted Beige/Brown */
    --secondary-color: #a89a8e; /* Soft Greyish Brown */
    --accent-color: #8d6e63; /* Darker Warm Brown */
    --text-color: #4e4038; /* Dark Brown Text */
    --bg-color: #fdfbf7; /* Creamy Paper Background */
    --paper-bg: #ffffff; /* White for contrast elements like notes */
    --border-color: #e0d8ce; /* Light border color */

    /* Restore Fonts from v31 */
    --font-body: 'Noto Sans TC', sans-serif; /* Restore original body font */
    --font-display: 'Dancing Script', cursive; /* Keep or change */
    --font-handwriting: 'Zhi Mang Xing', cursive; /* For notes */
    --font-exchange:'Chocolate Classical Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color); /* Solid paper color */
    /* Add subtle texture */
    background-image: linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 20px 20px; /* Small grid for texture */
    line-height: 1.7; /* Slightly increased line height */
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.hide{display: none;}

/* Starry Background Effect */
#star-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.7);
    animation: twinkle 5s infinite ease-in-out;
    opacity: 0.5;
}
/* Updated Banner Navigation - Simple Text Links */
.banner-nav {
    background: none; /* Remove gradient */
    padding: 1.5rem 0 1rem 0; /* Adjust padding */
    box-shadow: none; /* Remove shadow */
    /* Add a subtle bottom border like a notebook line */
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 2rem;
    text-align: center; /* Center the nav */
}

.banner-nav nav ul {
    list-style: none;
    display: inline-flex; /* Align items inline */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px; /* Adjust gap */
}

.banner-nav nav ul li {
    margin: 0 15px; /* Adjust margin */
}

.banner-nav nav button {
    background: none;
    border: none;
    color: var(--accent-color); /* Use accent color for links */
    font-family: var(--font-display); /* Keep scripty for nav? Or change to serif? */
    font-size: 1.6em; /* Adjust size */
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    text-shadow: none; /* Remove text shadow */
    position: relative;
}
/* Add underline effect on hover/active */
.banner-nav nav button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    display: block;
    margin-top: 2px;
    right: 0;
    background: var(--primary-color);
    transition: width .3s ease;
    -webkit-transition: width .3s ease;
}

.banner-nav nav button:hover::after,
.banner-nav nav button.active::after {
    width: 100%;
    left: 0;
    background-color: var(--primary-color);
}

.banner-nav nav button:hover,
.banner-nav nav button.active {
    color: var(--primary-color); /* Highlight color on hover/active */
    transform: none; /* Remove scale transform */
    text-shadow: none;
}

/* Main Content Area - Centered, Fixed Width */
#content-area {
/*    max-width: 1000px; *//* Adjust max width as needed */
    margin: 2rem auto 3rem auto; /* Center horizontally, add bottom margin */
    padding: 0 2rem; /* Add horizontal padding */
    perspective: none; /* Remove perspective if not needed */
}

.page-content {
    background: rgba(255, 255, 255, 0.7); /* Slightly transparent white background */
    padding: 2.5rem 3rem; /* Adjust padding */
    border-radius: 5px; /* Subtle rounding */
    /* Use a border and shadow to look like a paper sheet */
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Softer shadow */
    margin-bottom: 2rem;
    animation: fadeIn 0.6s ease-out; /* Slightly faster fade */
    display: none;
    min-height: auto; /* Remove fixed min-height */
    border-left: 3px solid var(--primary-color); /* Add a binder effect */
}

.page-content.active {
    display: block;
}

/* Keep fadeIn animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-content h2 {
    font-family: var(--font-display); /* Keep scripty */
    font-size: 3em; /* Adjust size */
    color: var(--accent-color); /* Use accent color */
    text-align: center;
    margin-bottom: 0.8rem; /* Adjust spacing */
    text-shadow: none;
    font-weight: 700;
}

.page-content .slogan {
    font-family: var(--font-body); /* Use body font */
    font-size: 1.3em; /* Adjust size */
    font-style: italic;
    text-align: center;
    color: var(--secondary-color); /* Use secondary color */
    margin-bottom: 2.5rem; /* Adjust spacing */
    display: block;
}

/* Default Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust minmax */
    gap: 2rem; /* Adjust gap */
    align-items: start;
}

/* Remove Page Specific Layouts for now, use default */
/*
.page-origin .content-layout { ... }
.page-promises .content-layout { ... }
.page-wishes .content-layout { ... }
.page-future .content-layout { ... }
*/


/* Content Boxes (Text, Image, Gallery) - Restyled */
.text-box, .image-box, .gallery-box {
    background: none; /* Remove distinct background */
    padding: 1rem 0; /* Adjust padding - more vertical */
    border: none; /* Remove border */
    box-shadow: none; /* Remove shadow */
    transition: none; /* Remove hover transform */
    overflow: visible; /* Allow elements like tape to overflow */
    border-bottom: 1px dashed var(--border-color); /* Subtle separator */
    margin-bottom: 1rem; /* Space below separator */
}
.text-box:last-child, .image-box:last-child, .gallery-box:last-child {
     border-bottom: none; /* No border on last item */
     margin-bottom: 0;
}

/* Remove hover effect for boxes */
.text-box:hover, .image-box:hover, .gallery-box:hover {
    transform: none;
    box-shadow: none;
}

.text-box p {
    margin-bottom: 1rem; /* Adjust spacing */
    font-size: 1.1em; /* Adjust size */
    color: var(--text-color);
}
.text-box p:last-child {
    margin-bottom: 0;
}

.text-box svg.icon {
    width: 24px; /* Adjust size */
    height: 24px;
    margin-right: 8px; /* Adjust spacing */
    vertical-align: -0.25em; /* Fine-tune alignment */
    fill: var(--secondary-color); /* Use secondary color for icons */
}

.image-box {
    text-align: center;
}

.image-box img {
    max-width: 80%; /* Make images slightly smaller */
    height: auto;
    border-radius: 3px; /* Subtle rounding */
    cursor: pointer;
    /* Style like a pasted photo */
    border: 6px solid white;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: inline-block; /* Needed for margin auto centering with max-width */
    margin-bottom: 1rem; /* Space below image */
}
.image-box img:hover {
     transform: scale(1.03) rotate(1deg); /* Subtle hover */
     filter: none; /* Remove brightness filter */
}

.image-box p.caption-text { /* Add class for captions if needed */
    margin-top: 0; /* Remove extra top margin */
    font-size: 0.9em;
    font-style: italic;
    color: #777;
}

/* Remove Geometric Shapes for now */
.shape-circle, .shape-hexagon {
    display: none;
}

/* Gallery Box Specific Styles */
.gallery-box {
    overflow: hidden;
    position: relative;
    min-height: 250px; /* Adjust height */
    background-color: transparent; /* No background */
    padding: 0; /* No padding for gallery box itself */
     border-bottom: 1px dashed var(--border-color); /* Subtle separator */
    margin-bottom: 1rem;
}
/* Style gallery images like pasted photos */
.gallery-image {
    position: absolute;
    top: 10px; /* Offset for paper feel */
    left: 10px;
    width: calc(100% - 20px); /* Adjust width */
    height: calc(100% - 20px); /* Adjust height */
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.0) rotate(-2deg); /* Start slightly rotated */
    border: 6px solid white;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
    border-radius: 3px;
}

.gallery-image.active {
    opacity: 1;
    transform: scale(1) rotate(1deg); /* Rotate slightly differently */
}


/* --- Mood Exchange Page Styles --- */
.page-exchange .page-content {
    background-color: rgba(255, 255, 255, 0.6); /* Keep slightly transparent */
    border-left-color: var(--secondary-color); /* Different binder color */
    overflow: visible; /* Allow notes to overflow */
}
.quote-board-container .intro-text {
    border-bottom: none; /* Remove border from intro text */
    margin-bottom: 0;
    font-family: var(--font-body); /* Use body font for intro */
    font-size: 1.1em;
}
.quote-board-container .intro-text svg.icon {
    width: 20px;
    height: 20px;
}

.quote-board {
    position: relative;
    width: 100%;
    min-height: 5000px;/* Adjust height */
    padding: 1rem 0; /* Adjust padding */
    margin-top: 1rem; /* Adjust spacing */
    perspective: none;
    overflow: visible; /* Allow notes to stick out */
    border: none; /* Remove inner board border */
    background: none; /* Remove inner board background */
}

.quote-item {
    position: absolute;
    background-color: var(--paper-bg); /* White paper for notes */
    padding: 12px 18px; /* Adjust padding */
    border-radius: 3px; /* Slightly rounded corners */
    /* Torn paper edge effect */
    /* box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(0,0,0,0.05); */
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.15); /* Simple shadow */
    border: 1px solid #eee;
    width: 230px; /* Adjust width */
    cursor: grab;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), /* Smoother transition */
                box-shadow 0.4s ease,
                z-index 0s linear 0s;
    /* Remove transform-style and explicit top/left */
    z-index: 1;
    font-family: var(--font-exchange); /* Use handwriting font */
    font-size: 1.0em; /* Adjust handwriting size */
    line-height: 1.5; /* Adjust line height */
    color: #555; /* Slightly darker text for handwriting */
    overflow: hidden;
    max-height: 190px; /* Adjust initial height */
    transform-origin: center center;
    user-select: none;
    /* Add a pseudo-element for tape */
    /* position: relative; */ /* Needed for pseudo */
}
/* Optional: Tape effect */
.quote-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    width: 80px;
    height: 25px;
    background-color: rgba(255, 224, 130, 0.6); /* Washi tape color */
    border-left: 1px dashed rgba(0,0,0,0.1);
    border-right: 1px dashed rgba(0,0,0,0.1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    z-index: 10; /* Above the note */
}
/* 點開後的樣式 */
.quote-item.opened::before {
    background-color: rgba(255, 0, 0, 0.6); /* 紅色半透明 */
}

.quote-item.dragging {
    cursor: grabbing;
    box-shadow: 4px 5px 10px rgba(0, 0, 0, 0.25);
    z-index: 99;
    transition: none;
}

.quote-item .quote-date {
    font-size: 0.6em; /* Smaller date */
    font-family: var(--font-body); /* Use original body font for date */
    color: #aaa;
    margin-bottom: 6px;
    display: block;
    text-align: right;
}
.quote-section-title {
    font-family: var(--font-body); /* Serif for title */
    font-weight: 600; /* Slightly bolder for title */
    font-size: 0.8em;
    color: var(--accent-color);
    margin-bottom: 5px;
    display: block;
    text-align: left;
}
.quote-item .quote-content p {
    font-family: var(--font-exchange); /* Ensure content uses handwriting font */
    margin-bottom: 4px;
    font-size: 1em; /* Relative to parent handwriting size */
    word-wrap: break-word;
}
.quote-item .quote-content p strong { /* Speaker */
    font-family: var(--font-exchange); /* Handwriting for speaker */
    font-weight: normal; /* Normal weight for handwriting */
    color: var(--primary-color); /* Use primary color */
    margin-right: 5px;
}
.quote-item .quote-content p strong.boy{ 
    color: #0000ff;

}
.quote-item .quote-content p strong.girl{ 
    color: #ff0000;
}

.quote-item.active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2) rotate(0deg) !important; /* Slightly smaller scale */
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
    max-height: 75vh; /* Adjust max height */
    overflow-y: auto;
    width: 90%; /* Adjust width */
    max-width: 500px; /* Adjust max width */
    cursor: default;
    font-size: 1.0em; /* Slightly larger font when active */
    border-color: #ddd; /* Darker border when active */
}
/* Hide tape when active */
.quote-item.active::before {
    display: none;
}

/* --- Quote Navigation Arrows --- */
.quote-nav {
    display: none;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
    background-color: rgba(141, 110, 99, 0.5); /* Accent color semi-transparent */
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 10px; /* Adjust padding */
    font-size: 18px; /* Adjust font size */
    cursor: pointer;
    border-radius: 50%;
    width: 40px; /* Adjust width */
    height: 40px; /* Adjust height */
    line-height: 1;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.quote-nav.prev {
    /* Adjusted left based on active item max-width (500px) + padding */
    left: calc(50% - 250px - 30px); /* 500/2 + 30px gap */
}

.quote-nav.next {
    /* Adjusted right based on active item max-width (500px) + padding */
    right: calc(50% - 250px - 30px); /* 500/2 + 30px gap */
}

.quote-nav:hover {
    background-color: rgba(141, 110, 99, 0.8); /* Darker accent */
    border-color: white;
}
/* --- End Quote Navigation Arrows --- */

/* Lightbox Styles - Subtle changes */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(78, 64, 56, 0.92);
    z-index: 999;
}

.lightbox-modal.show {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out;
}

/* ✅ 這裡是 lightbox 實際框框的大小與樣式 */
.lightbox-content {
    width: 50vw;
    max-width: 600px;
    background: var(--paper-bg);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    text-align: center;
}

/* ✅ 圖片大小控制在內容框內 */
.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 60vh; /* 限高避免過長 */
    object-fit: contain;
    border-radius: 4px;
    border: 6px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}




.close-lightbox {
    top: 10px;
    right: 25px;
    color: #d1bfa7; /* Primary color */
    font-size: 40px;
    text-shadow: 0 0 4px rgba(0,0,0,0.6);
}
.close-lightbox:hover {
     color: #fff;
}

.lightbox-caption {
    color: #d1bfa7; /* Use primary color for better contrast */
    padding: 10px 0;
    height: auto; /* Auto height */
    min-height: 40px;
    font-size: 1em;
    font-style: italic;
}

/* Lightbox Navigation Arrows - Themed */

.prev, .next {
  padding: 14px; /* Adjust padding */
  margin-top: -30px;
  font-size: 20px;
  background-color: rgba(168, 154, 142, 0.4); /* Secondary color semi-transparent */
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px; /* Adjust padding */
  font-size: 18px; /* Adjust font size */
  cursor: pointer;
  border-radius: 50%; /* Circular */
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prev:hover, .next:hover {
    background-color: rgba(168, 154, 142, 0.7);
    border-color: rgba(255,255,255,0.7);
}
.next { right: 10px; border-radius: 50%; } /* Adjust position */
.prev { left: 10px; border-radius: 50%; } /* Adjust position */

.lightbox-content .prev, .lightbox-content .next {
  position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background-color: rgba(168, 154, 142, 0.4); /* 可保留你原本的風格 */
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    color: var(--secondary-color); /* Use secondary color */
    font-size: 0.9em;
    opacity: 0.9;
    border-top: 1px dashed var(--border-color); /* Add top border */
}

/* Wishlist / Promises Styling */
#wish-list, .text-box ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}
#wish-list li { /* Keep existing wishlist style */
     margin-bottom: 0.8rem;
     position: relative;
     padding-left: 25px; /* Space for custom bullet */
}
#wish-list li::before { /* Keep existing wishlist style */
     content: '♡'; /* Heart bullet */
     position: absolute;
     left: 0;
     top: 0;
     color: var(--primary-color);
     cursor: pointer;
     font-size: 1.2em;
}
#wish-list li.completed::before {
    content: '❤';
    color: red;
}

#wish-list li:hover::before {
    transform: scale(1.2);
}

.wish-item-clickable {
    cursor: pointer;
}

.text-box ul:not(.promise-category ul) li::before {
    content: none; /* Remove default heart if not promise list */
}
.text-box ul:not(.promise-category ul) li {
    padding-left: 0;
}

/* Promises Page Specific Styling */
#promises-container {
    padding-top: 1rem;
    border: none; /* Remove box border if inherited */
    box-shadow: none;
    background: none;
}
#promises-container h4 { /* Style the "Our Promises List" title */
    font-family: var(--font-display);
    font-size: 1.8em;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 1.5rem;
}
#promises-list-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.promise-category {
    padding: 1.5rem 1.2rem;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden; /* For containing shapes */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.promise-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.promise-category h5 { /* Category Title */
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.3em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--primary-color);
    text-align: center;
}

.promise-category ul {
    list-style: none;
    padding-left: 0;
}

.promise-item {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 30px; /* Space for shape/checkbox */
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.promise-category input[type="checkbox"] {
    position: absolute;
    right: 3px;
    top: 3px;
    margin: 8px;
    vertical-align: middle;
    cursor: pointer;
    accent-color: var(--primary-color);
    transform: scale(1.2);
    z-index: 2;
}

.promise-item label {
    vertical-align: middle;
    cursor: pointer;
    display: inline; /* Allow wrapping */
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.promise-item.completed label {
    color: #aaa;
    text-decoration: line-through;
    text-decoration-color: #ccc;
}
.promise-item.completed input[type="checkbox"] {
    accent-color: #bbb;
}

.promise-category::before {
    content: '';
    position: absolute;
    z-index: 0;
    opacity: 0.08; /* Subtle background shape */
    background-color: var(--primary-color); /* Use theme color */
    pointer-events: none;
}

.promise-category.shape-rect {
    border-left: 5px solid var(--primary-color); /* Add a colored edge */
}
.promise-category.shape-rect h5 {
    text-align: left; /* Align title left for this style */
}

.promise-category.shape-circle-bg::before {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    top: -40px;
    right: -50px;
    transform: rotate(15deg);
}

.promise-category.shape-square::before {
    width: 120px;
    height: 120px;
    border-radius: 0;
    bottom: -30px;
    left: -30px;
    transform: rotate(-25deg);
}

.full-width-box {
    grid-column: 1 / -1; /* Make the container span all columns */
}

#new-wish, #add-wish-btn, .text-box ul input[type="checkbox"] {
    font-family: var(--font-body); /* Consistent font */
}
#new-wish, #add-wish-btn {
    padding: 8px 12px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    font-size: 1em;
}
#new-wish {
    width: calc(100% - 95px); /* Adjust width calculation */
    margin-right: 5px;
}
#add-wish-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#add-wish-btn:hover {
    background-color: var(--accent-color);
}

.future-rect {
    margin: 5px;
    padding: 1.0rem;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden; /* For containing shapes */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
 --- Music Page Styles --- */
.page-music .page-content {
    background-color: rgba(255, 255, 255, 0.6); /* Consistent transparency */
    border-left-color: #a1c4a3; /* A soft green-ish color */
}

.music-list-container .intro-text {
    border-bottom: none;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 1.1em;
    text-align: center;
}
.music-list-container .intro-text svg.icon {
    fill: #a1c4a3; /* Match border */
}

.music-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-size: 1.05em;
}

.music-table th,
.music-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 10px; /* Adjust padding */
    text-align: left;
    vertical-align: middle;
}

.music-table th {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1em;
    border-bottom-width: 2px; /* Thicker border for header */
}

.music-table td:nth-child(1) { /* Number column */
    width: 50px;
    text-align: center;
    color: var(--secondary-color);
}

.music-table td:nth-child(3) { /* Play button column */
    width: 100px;
    text-align: center;
}

.play-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.play-button svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.play-button:hover {
    background-color: var(--accent-color);
}
.play-button:active {
    transform: scale(0.95);
}

.music-table tr.playing td {
    background-color: rgba(209, 191, 167, 0.1); /* Highlight playing row - primary color lightened */
    font-weight: bold;
}
.music-table tr.playing .play-button {
    background-color: var(--secondary-color); /* Change button color when playing */
}

/* Audio Player Styles */
#audio-player-container {
    /* Styles are inline for now, can move here if needed */
}
#audio-player {
     /* Use browser default controls for simplicity */
     filter: contrast(90%) brightness(110%); /* Subtle adjustment */
}
#now-playing {
    /* Styles are inline for now */
}

/* --- End Music Page Styles --- */
/* Responsive Design Adjustments */
@media (max-width: 1024px) {
    .page-content {
        padding: 2rem 2.5rem;
        border-left-width: 2px;
    }
    .quote-item {
        width: 210px;
        font-size: 1.4em;
    }
    .quote-item.active {
         width: 90%;
         max-width: 450px;
    }
    .quote-nav {
        width: 38px;
        height: 38px;
        font-size: 16px;
        padding: 8px;
    }
    .quote-nav.prev {
        left: calc(50% - 225px - 25px); /* Adjust for smaller active item */
    }
    .quote-nav.next {
        right: calc(50% - 225px - 25px);
    }
    #promises-list-area {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 1.5rem;
    }
    .promise-category { padding: 1.2rem 1rem; }
}

@media (max-width: 768px) {
    body { background-size: 30px 30px; } /* Larger texture grid */
    #content-area {
        margin: 1.5rem auto 2rem auto;
        padding: 0 1rem; /* Reduce padding */
    }
    .banner-nav { padding: 1rem 0 0.8rem 0; }
    .banner-nav nav ul { gap: 10px; }
    .banner-nav nav button { font-size: 1.3em; margin: 0 8px; }
     .page-content {
        padding: 1.5rem 1.5rem;
        border-left-width: 2px;
    }
    .page-content h2 { font-size: 2.4em; }
    .page-content .slogan { font-size: 1.1em; margin-bottom: 2rem; }
    .content-layout { gap: 1.5rem; }
     .lightbox-content { width: 90%; }
    .quote-board { min-height: 55vh; padding: 0.5rem 0; }
    .quote-item {
        width: 170px;
        padding: 10px 15px;
        font-size: 1.4em; /* Keep handwriting readable */
        max-height: 160px;
    }
     .quote-item.active {
         width: 90%;
         max-width: 90%; /* Allow wider on mobile */
         font-size: 1.5em;
         max-height: 70vh;
    }
    /* Move quote nav arrows to bottom corners */
    .quote-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
        top: auto; /* Unset fixed top */
        bottom: 15px; /* Position near bottom */
        transform: none; /* Remove vertical centering */
     }
    .quote-nav.prev {
         left: 10px;
    }
    .quote-nav.next {
        right: 10px;
    }
    /* Lightbox arrows smaller */
    .prev, .next {
        width: 40px; height: 40px; padding: 10px; font-size: 18px; margin-top: -20px;
    }
    .next { right: 5px; }
    .prev { left: 5px; }
}

@media (max-width: 480px) {
     .banner-nav nav button { font-size: 1.1em; margin: 0 5px; }
    #content-area { padding: 0 0.5rem; margin-top: 1rem; }
    .page-content { padding: 1rem 1rem; }
     .page-content h2 { font-size: 2em; }
     .page-content .slogan { font-size: 1em; }
    .text-box, .image-box, .gallery-box { padding: 0.5rem 0; }
    .text-box p { font-size: 1em; }
    .image-box img { max-width: 90%; border-width: 4px; }
    .quote-item {
        width: 140px; /* Smaller notes */
        font-size: 1.3em;
        padding: 8px 12px;
    }
    .quote-item::before { /* Smaller tape */
        width: 60px; height: 20px; top: -8px;
    }
}

