/* Basic Reset & Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4; /* Light background for contrast */
}

/* Header and Navigation */
header {
    background-color: #2c3e50; /* Dark blue-gray */
    color: #ecf0f1; /* Light gray/white text */
    padding: 1rem 0;
    position: fixed; /* Stick to top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it's above slideshow */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo img {
    height: 50px; /* Adjust as needed */
    width: auto;
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-item {
    margin-left: 20px; /* Space between items */
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3498db; /* A highlight color */
}

/* Hamburger Menu (Initially hidden on larger screens) */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #ecf0f1;
    transition: all 0.3s ease-in-out;
}

/* Slideshow */
.slideshow-container {
    width: 100%;
    height: 100vh; /* Full viewport height */
    position: relative; /* For absolute positioning of image */
    overflow: hidden; /* Hide parts of image if not fitting perfectly */
    background-color: #000; /* Fallback if images are slow to load */
    margin-top: 70px; /* Adjust based on header height + padding */
}

#slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, might crop */
    object-position: center; /* Center the image content */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* Start invisible */
    transition: opacity 1s ease-in-out; /* 1 second dissolve */
}

#slideshow-image.visible {
    opacity: 1;
}

/* Responsive adjustments for Menu */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide normal menu */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Below header, adjust if header height changes */
        left: 0;
        background-color: #34495e; /* Slightly different dark blue-gray */
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        display: flex; /* Show when active */
    }

    .nav-item {
        margin: 0;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #2c3e50; /* Separator */
    }
    .nav-link:hover {
        background-color: #2c3e50;
    }

    .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .hamburger {
        display: block; /* Show hamburger */
    }

    /* Hamburger animation (optional X shape) */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Adjust slideshow margin if header height changes significantly on mobile */
    .slideshow-container {
        margin-top: 70px; /* Ensure this matches header height effectively */
    }
}
/* --- Main Content Area for Centering the Text Window --- */
main {
    flex-grow: 1; /* Allows main to take up remaining vertical space */
    display: flex; /* Enable flexbox for centering its child */
    justify-content: center; /* Horizontally center the text-window-container */
    align-items: center;    /* Vertically center the text-window-container */
     /* padding: 20px; Add some padding around the centered window (optional) */
    box-sizing: border-box; /* Include padding in height calculation */
}

/* --- The Text Window Container --- */
.text-window-container {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 90%; /* Responsive width, takes 90% of parent (main) */
    max-width: 800px; /* Maximum width on larger screens */
    /* Height is determined by its content and the max-height of .text-content */
    /* We add padding and max-height to the inner .text-content div for better scrollbar behavior */
    overflow: hidden; /* Ensures border-radius clips the inner scrolling content */
}

/* --- The Actual Scrollable Content Area --- */
.text-content {
    padding: 20px 30px; /* Padding inside the window, around the text */
    max-height: 90vh; /* Max height before scrolling (60% of viewport height) */
                         /* This makes it adaptive to screen height */
    overflow-y: auto; /* Show vertical scrollbar only if content exceeds max-height */
}

.text-content h2 {
    margin-top: 0;
    color: #333; /* Or your preferred heading color */
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

.text-content p {
    margin-bottom: 1em;
    color: #555; /* Slightly lighter text color for paragraphs */
}

.text-content p:last-child {
    margin-bottom: 0; /* Remove bottom margin from the last paragraph */
}
