/* The Old Forest - Elven Art Deco Nature Theme */

/* Color Palette - Pastel Forest & Elven Shades */
:root {
    --forest-sage: #c8d5b9;
    --elven-mint: #d4e7d7;
    --soft-moss: #a8c5a0;
    --pale-sky: #d6e8f0;
    --twilight-lavender: #e1d4e8;
    --dawn-rose: #f0dfe3;
    --cream: #f9f6f0;
    --soft-bark: #8b7d6b;
    --deep-forest: #4a5d47;
    --text-dark: #3a3a3a;
    --text-medium: #5a5a5a;
    --accent-gold: #d4af37;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Garamond', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--elven-mint) 0%, var(--pale-sky) 50%, var(--dawn-rose) 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 16px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background-color: rgba(249, 246, 240, 0.95);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    min-height: 100vh;
}

/* Header Styles */
header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    height: 200px;
    border-bottom: 3px solid var(--soft-moss);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/standard/Channel background 2.jpg') center/cover no-repeat;
    filter: blur(4px);
    opacity: 0.7;
    z-index: 0;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 198px;
    height: 198px;
    background: url('images/standard/Old Forest Logo square.jpg') center/contain no-repeat;
    z-index: 1;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

header h1 {
    font-family: 'Segoe UI', 'Candara', 'Verdana', 'Geneva', sans-serif;
    font-size: 3rem;
    color: #b8e6b8;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

header .subtitle {
    font-family: 'Segoe UI', 'Candara', 'Verdana', 'Geneva', sans-serif;
    font-size: 1.1rem;
    color: #b8e6b8;
    font-style: italic;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
}

/* Art Deco Ornaments */
.header-ornament {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right,
        transparent 0%,
        var(--deep-forest) 20%,
        var(--accent-gold) 50%,
        var(--deep-forest) 80%,
        transparent 100%);
    margin: 0.5rem auto;
    max-width: 400px;
    position: relative;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.header-ornament::before,
.header-ornament::after {
    content: '◆';
    position: absolute;
    color: var(--accent-gold);
    font-size: 0.8rem;
    top: -8.5px;
}

.header-ornament::before {
    left: calc(50% - 60px);
}

.header-ornament::after {
    right: calc(50% - 60px);
}

.footer-ornament {
    height: 2px;
    background: linear-gradient(to right,
        transparent 0%,
        var(--deep-forest) 20%,
        var(--accent-gold) 50%,
        var(--deep-forest) 80%,
        transparent 100%);
    margin: 0.5rem auto;
    max-width: 400px;
    position: relative;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.footer-ornament::before,
.footer-ornament::after {
    content: '◆';
    position: absolute;
    color: var(--accent-gold);
    font-size: 0.8rem;
    top: -8.5px;
}

.footer-ornament::before {
    left: calc(50% - 60px);
}

.footer-ornament::after {
    right: calc(50% - 60px);
}


/* Navigation */
nav {
    background: linear-gradient(to bottom, var(--soft-moss), var(--forest-sage));
    border-bottom: 2px solid var(--deep-forest);
}

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

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem 2rem;
    color: var(--cream);
    text-decoration: none;
    font-family: 'Segoe UI', 'Candara', 'Verdana', 'Geneva', sans-serif; /* Added sans-serif */
    font-weight: bold; /* Changed to bold */
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--accent-gold);
}

nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: var(--cream);
}

/* Sub-Navigation */
.subnav {
    background: linear-gradient(to bottom, var(--elven-mint), var(--pale-sky));
    border-bottom: 2px solid var(--soft-moss);
}

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

.subnav li {
    margin: 0;
}

.subnav a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--deep-forest);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.subnav a:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-bottom-color: var(--accent-gold);
    color: var(--text-dark);
}

/* Back to Top Link */
.back-to-top {
    text-align: right;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.back-to-top a {
    color: var(--soft-bark);
    text-decoration: none;
    font-size: 0.9rem;
    font-style: italic;
    transition: color 0.3s ease;
}

.back-to-top a:hover {
    color: var(--deep-forest);
}

/* Image Showcase */
.image-showcase {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(74, 93, 71, 0.05) 2px,
            rgba(74, 93, 71, 0.05) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(74, 93, 71, 0.05) 2px,
            rgba(74, 93, 71, 0.05) 4px
        ),
        linear-gradient(to bottom, var(--soft-moss), var(--forest-sage));
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--soft-moss);
    position: relative;
    padding: 0;
}

.showcase-ornament {
    height: 300px;
    width: auto;
    opacity: 0.7;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
}

.showcase-ornament.left {
    margin-right: 0;
}

.showcase-ornament.right {
    transform: scaleX(-1);
    margin-left: 0;
}

#rotatingImage {
    width: auto;
    height: 300px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: relative;
    z-index: 1;
    flex-shrink: 1;
}

#rotatingImage.loaded {
    opacity: 1;
}

/* Gallery Rotating Image - for extra-wide images */
#galleryRotatingImage {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

#galleryRotatingImage.loaded {
    opacity: 1;
}

/* Gallery showcase container - adjusted for wide images with ornaments on top */
#galleryShowcase {
    height: 250px;
    position: relative;
}

#galleryShowcase .showcase-ornament {
    height: 250px;
    z-index: 3;
    position: absolute;
    top: 0;
}

#galleryShowcase .showcase-ornament.left {
    left: 0;
}

#galleryShowcase .showcase-ornament.right {
    right: 0;
}

/* Main Content */
main {
    padding: 3rem 2.5rem;
    background-color: var(--cream);
}

article h2 {
    font-family: 'Segoe UI', 'Candara', 'Verdana', 'Geneva', sans-serif;
    font-size: 2.0rem;
    color: var(--deep-forest);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.05em;
}

article h3 {
    font-family: 'Segoe UI', 'Candara', 'Verdana', 'Geneva', sans-serif;
    font-size: 1.6rem;
    color: var(--deep-forest);
    margin: 1rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--soft-moss);
}

article h4 {
    font-family: 'Segoe UI', 'Candara', 'Verdana', 'Geneva', sans-serif;
    font-size: 1.3rem;
    color: var(--soft-bark);
    margin: 1.5rem 0 0.5rem;
}

.content-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(to right,
        rgba(212, 231, 215, 0.3) 0%,
        rgba(249, 246, 240, 0) 50%);
    border-radius: 8px;
}

.content-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.content-section p.quote {
    text-align: center !important;
}

.content-section p.footnote {
    text-align: left !important;
}

.content-section ul,
.content-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Dramatis Personae - Character Cards */
.character-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns exactly */
    gap: 1.5rem;
    margin: 2rem 0;
}

.character-card {
    background: linear-gradient(135deg, var(--elven-mint) 0%, rgba(249, 246, 240, 0.8) 100%);
    border: 2px solid var(--soft-moss);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.character-card img {
    width: 100%;
    height: 256px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--soft-moss);
}

.character-info {
    padding: 1rem; /* Reduced padding */
}

.character-info h4 {
    font-family: 'Segoe UI', 'Candara', 'Verdana', 'Geneva', sans-serif;
    font-size: 1.2rem; /* Slightly smaller */
    color: var(--deep-forest);
    margin: 0 0 0.5rem 0;
    border: none;
    padding: 0;
}

.character-title {
    font-style: italic;
    color: var(--soft-bark);
    font-size: 0.85rem; /* Smaller */
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--accent-gold);
    padding-left: 0.75rem;
}

.character-description {
    color: var(--text-dark);
    font-size: 0.9rem; /* Slightly smaller */
    line-height: 1.5;
    text-align: justify;
    margin-bottom: 0;
}

/* Responsive - adjust for smaller screens */
@media (max-width: 992px) {
    .character-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .character-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
    
    .character-card img {
        height: 200px; /* Larger on mobile since full width */
    }
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, var(--elven-mint) 0%, var(--forest-sage) 100%);
    border: 2px solid var(--soft-moss);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.info-box p {
    margin-bottom: 0.75rem;
}

.info-box strong {
    color: var(--deep-forest);
}

/* Location Info */
.location-info .info-box {
    text-align: center;
}

/* Quotes */
.quote {
    font-family: 'Georgia', 'Garamond', 'Times New Roman', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--soft-bark);
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(225, 212, 232, 0.3) 20%,
        rgba(225, 212, 232, 0.3) 80%,
        transparent 100%);
    border-top: 1px solid var(--twilight-lavender);
    border-bottom: 1px solid var(--twilight-lavender);
    line-height: 1.8;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    background: white;
    border: 2px solid var(--elven-mint);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: var(--deep-forest);
    background: var(--elven-mint);
}

/* Story Entries */
.story-entry {
    background: white;
    border-left: 4px solid var(--twilight-lavender);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.story-meta {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-style: italic;
    margin-bottom: 1rem;
}

.story-entry p:last-child {
    margin-bottom: 0;
}

/* Links */
a {
    color: var(--deep-forest);
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--soft-moss);
}

/* Footer */
footer {
    background: linear-gradient(to top, var(--soft-moss), var(--forest-sage));
    color: var(--cream);
    text-align: center;
    padding: 2rem;
    border-top: 3px solid var(--deep-forest);
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.9;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        height: 180px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    header::before {
        width: 140px;
        height: 140px;
        top: 0;
        left: 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    main {
        padding: 2rem 1.5rem;
    }

    article h2 {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .image-showcase {
        height: 200px;
    }
}

@media (max-width: 480px) {
    header {
        height: 150px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header .subtitle {
        font-size: 1rem;
    }

    header::before {
        width: 100px;
        height: 100px;
        top: 0;
        left: 0;
    }

    main {
        padding: 1.5rem 1rem;
    }

    article h2 {
        font-size: 1.5rem;
    }

    article h3 {
        font-size: 1.3rem;
    }

    nav a {
        padding: 0.7rem;
    }
}
