
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,500;0,700;1,300;1,500&display=swap');

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

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== MAIN LAYOUT ===== */
#header-links a {
    margin-left: 15px;
    text-decoration: none;
    font-weight: bold;
}

#container {
    width: 90%;
    max-width: 850px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: white;
}

/* ===== HEADER STYLES ===== */
header {
    background-color: #10331a;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

header h1 {
    margin-bottom: 15px;
    font-size: 2.2em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.image-caption {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 15px;
    color: #FFFACD;
    text-decoration: none;
    max-width: 800px; /* Limits width for better readability */
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.image-caption a {
    color: #FFFACD !important; /* Pale Yellow/Cream */
    text-decoration: underline;
    font-weight: bold; /* Makes the link slightly thicker for better phone reading */
}

/* This handles the link AFTER it has been clicked */
.image-caption a:visited {
    color: #F0F0F0; /* Light Grey so it's still readable even if "visited" */
}

/* This makes it glow white when you hover over it */
.image-caption a:hover {
    color: #FFFFFF;
    text-decoration: none; /* Optional: removes underline when hovering */
}

#header-image {
    width: 100%;
    height: 250px;
    margin-bottom: 5px;
    overflow: hidden;
    border-radius: 4px;
}

#header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#header-links {
    padding: 10px 0;
    margin: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 1.1em;
}

#header-links a {
    color: #ffcc00;
    text-decoration: none;
    padding: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

#header-links a:hover {
    color: #ffdd44;
    text-decoration: underline;
}

/* ===== MAIN CONTENT AREA ===== */
#main-content {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
}

/* ===== NAVIGATION STYLES ===== */
#left-nav, #right-nav {
    flex: 1;
    min-width: 180px;
}

#center-content {
    flex: 3;
    padding: 20px;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.navigation {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: #f9f9f9;
}

.navigation h2 {
    margin-top: 0;
    color: #10331a;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.navigation ul {
    list-style: none;
    padding: 0;
}

.navigation li {
    margin-bottom: 8px;
}

.navigation a {
    text-decoration: none;
    color: #33076b;
    display: block;
    padding: 5px 0;
    transition: color 0.2s ease;
}

.navigation a:hover {
    color: #5a0bb8;
    text-decoration: underline;
}

.author-section h3 {
    margin: 15px 0 8px 0;
    color: #222;
    font-size: 1.1em;
    cursor: pointer;
}

.author-section ul {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    border-left: 2px solid #ddd;
}

/* ===== ARTICLE CONTENT ===== */
.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    background-color: white;
}

.article h2, #center-content h2 {
    color: #33076b;
    margin: 1.5em 0 1em 0;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #eee;
}

.article p {
    margin-bottom: 1.2em;
    line-height: 1.8;
}

/* ===== MORPH IMAGE CONTAINER ===== */
#morph-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid #333;
}

#morph-container .bottom-img,
#morph-container .top-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.8s ease-in-out;
}

#morph-container .bottom-img {
    background-image: url('/images/karoogate.JPG');
    z-index: 1;
    opacity: 1;
}

#morph-container .top-img {
    background-image: url('/images/rockart.jpeg');
    z-index: 2;
    opacity: 0;
}

#morph-container:hover .top-img {
    opacity: 1;
}

#morph-container:hover .bottom-img {
    opacity: 0;
}

#morph-container::after {
    content: "Hover to see Rock art on Hanglip farm";
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    z-index: 3;
    opacity: 0.9;
}

/* ===== COMMENT SECTION ===== */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.comments-section h3 {
    color: #33076b;
    margin-bottom: 1.5rem;
    font-size: 1.5em;
}

/* Add this after .comments-section rules */
.comment-form {
    width: 100%;
    max-width: 100%;
    margin-top: 1.5rem;
}

/* Ensure the inputs are 100% width */
.comment-form input,
.comment-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.email-note {
    font-size: 0.85rem;
    color: #666;
    margin: -0.5rem 0 1rem 0;
    font-style: italic;
}

.comment-form button {
    background: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.comment-form button:hover {
    background: #0056b3;
}

.comment-form button:active {
    transform: translateY(1px);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px;
    color: white;
    font-size: 0.9em;
    margin-top: auto;
    background-color: #10331a;
    border-radius: 8px 8px 0 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    #main-content {
        flex-direction: column;
        padding: 15px;
    }
    
    #left-nav, #right-nav {
        margin: 0 0 20px 0;
        min-width: 100%;
    }
    
    #center-content {
        border: none;
        padding: 0;
    }
    
    #morph-container {
        height: 300px;
    }
    
    #morph-container::after {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .header-links a {
        padding: 0 10px;
        font-size: 0.9em;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    #header-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    #container {
        width: 100%;
        box-shadow: none;
    }
    
    .article, #center-content {
        padding: 15px;
    }
    
    .navigation {
        padding: 10px;
    }
    
    #morph-container {
        height: 250px;
    }
    
    #header-links a {
        display: block;
        padding: 8px 0;
        margin: 5px 0;
    }
/* Playwright script Styles */
.play-script {
    font-family: "Courier New", Courier, monospace;
    line-height: 1.2;
    max-width: 600px;
    margin: 2rem auto;
}

/* Character Names: Centered and Uppercase */
.play-script strong {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    text-transform: uppercase;
}

/* Dialogue: Indented from the sides */
.play-script p {
    margin: 0 10% 1rem 10%;
}

/* Stage Directions: Italicized and slightly more indented */
.play-script em {
    display: block;
    margin: 0.5rem 20%;
    font-style: italic;
}
/* ===== SLIDESHOW STYLES ===== */
#slider-container {
    background-color: #000; /* Dark background for letterboxing if needed */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    /* This creates a reserved space so the page doesn't jump */
    aspect-ratio: 16 / 9; 
}

.mySlides img {
    width: 100%;
    height: 100%;
    /* This keeps the image from stretching while filling the 16:9 box */
    object-fit: cover; 
    display: block;
}

/* Adjust for smaller screens so it doesn't get too tiny */
@media (max-width: 768px) {
    #slider-container {
        aspect-ratio: 4 / 3;
    }
}
/* ===== SLIDESHOW FADE ANIMATION ===== */
.mySlides {
    display: none;
    -webkit-animation-name: fade;
    -webkit-animation-duration: 0.8s;
    animation-name: fade;
    animation-duration: 0.8s;
}

@-webkit-keyframes fade {
    from { opacity: .4 } 
    to { opacity: 1 }
}

@keyframes fade {
    from { opacity: .4 } 
    to { opacity: 1 }
}

/* Optional: Smooth transition for the arrows too */
#slider-container a:hover {
    background-color: rgba(0,0,0,0.8);
    transition: background-color 0.3s ease;
}
/* 1. Allow the container to grow naturally with the content */
#container {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
}

/* 2. Ensure the flex area doesn't trap the height */
#main-content {
    flex: none !important; 
    display: block !important;
}

/* 3. Specifically target the Cusdis area to prevent internal scrolling */
#cusdis_thread {
    height: auto !important;
    overflow: visible !important;
    min-height: 300px; /* Gives it some breathing room while loading */
}

/* 4. Fix for mobile scroll issues */
@media (max-width: 480px) {
    body, html {
        overflow-x: hidden;
        height: auto !important;
    }
}
#cusdis_thread {
    min-height: 500px; /* Adjust this to roughly the height of a few comments */
    margin-bottom: 2rem;
}
/* 2. ADD YOUR TEXTBOX STYLE HERE (OR IN YOUR .CSS FILES) */
        .custom-textbox {
            font-family: 'Dancing Script', cursive;
            font-size: 1.4rem;
            line-height: 1.6;
            padding: 15px;
            margin: 15px 0;
            border-left: 4px solid #d4a373;
            background: rgba(255, 255, 255, 0.05);
            color: inherit;
        }
        
        .textbox-heading {
            display: block;
            font-weight: bold;
            font-size: 1.6rem;
            margin-bottom: 5px;
            color: #d4a373;
        }
.footer-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    margin-top: 10px;
}

.nav-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #444;
    text-decoration: none;
    color: #222;
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background-color: #222;
    color: #fff;
    border-color: #222;
}
.post-navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 0;
    clear: both; /* Ensures it stays below any floated content */
}

.btn-block {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #333;
    background-color: transparent;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-family: monospace;
    transition: 0.3s;
}

.btn-block:hover {
    background-color: #333;
    color: #fff;
}
/* This targets ONLY the images inside your specific nav box */
#container .image-nav-container .img-nav-link img {
    width: 70px !important;
    max-width: 70px !important;
    height: auto !important;
    display: inline-block !important;
}

/* This ensures the box itself doesn't force children to stretch */
#container .image-nav-container {
    display: flex !important;
    justify-content: center !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}
/* Force the container to NOT stretch its children */
.image-nav-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    height: auto !important;
}

/* Force the links to be only as wide as the 70px image */
.img-nav-link {
    flex: 0 0 70px !important; /* This is the 'magic' line */
    width: 70px !important;
    text-align: center !important;
    text-decoration: none !important;
}

/* Force the images to stay 70px */
.img-nav-link img {
    width: 70px !important;
    max-width: 70px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

.img-nav-link span {
    font-family: monospace;
    font-size: 0.85rem;
    color: #222;
}
.img-nav-link:hover img {
    transform: scale(1.05); /* Slight grow effect on hover */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
.footer-nav-box a {
    flex: 0 1 auto; /* Prevents the link from growing to fill space */
    width: 70px;    /* Matches your target image width */
}
/* 1. Reset the Footer Container */
footer .image-nav-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 30px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 20px auto !important;
}

/* 1. Make the images a bit larger */
footer .image-nav-container a img {
    width: 100px !important;      /* Increased from 70px */
    max-width: 100px !important;
    border: 1px solid #ccc;       /* Lighter border for a cleaner look */
}

/* 2. Fix the "Deep Navy" caption issue */
footer .image-nav-container a span {
    color: #eeeeee !important;    /* Light gray/white for dark backgrounds */
    /* OR use #333333 if your footer background is light */
    
    font-weight: bold;
    margin-top: 8px;
    text-transform: uppercase;    /* Makes the small text easier to read */
    letter-spacing: 1px;
}
/* Base style for the link container */
.footer-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333 !important; /* Forces dark grey/black instead of purple */
    transition: all 0.3s ease; /* Makes the hover effect smooth */
}

/* Style for the Header (#### equivalent) */
.footer-link h4 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: bold;
    color: inherit;
}

/* Style for the Images */
.footer-image {
    height: 300px !important;
    width: auto;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- THE HOVER EFFECTS --- */

/* Change text color to a nice accent (like a deep blue or red) */
.footer-link:hover {
    color: #0056b3 !important; 
}

/* Make the image pop out slightly and add a shadow */
.footer-link:hover .footer-image {
    transform: scale(1.02); /* Slight zoom */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-color: #0056b3;
}