.hidden {
    display: none;
}

body {
    font-family: 'Lora', serif;
    background-color: #556B2F; /* Dark earthy green */
    color: #333;
    margin: 0; /* Remove margin to align the header with the viewport */
    line-height: 1.6;
}

.header {
    background-color: #90a997;
    background-image: url('https://github.com/WhiteRiverSustainability/smallsteps/blob/main/Images/nav.jpg?raw=true');
    background-size: cover;
    background-position: center center; /* Center the middle of the image */
    color: white;
    height: 80vh; /* Make the header take up most of the viewport height */
    display: flex;
    flex-direction: column; /* Align the title and nav vertically */
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative; /* To position the text properly */
}

.header::after {
    content: "";
    background-color: rgba(0, 0, 0, 0.5); /* Add a semi-transparent layer for better text readability */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; /* Ensure it's behind the text */
}

nav ul {
    list-style: none;
    padding: 0;
    z-index: 2; /* Ensure it's above the semi-transparent layer */
    position: relative;
    display: flex; /* Use flexbox for horizontal alignment */
    justify-content: center; /* Center the navigation items */
    gap: 20px; /* Add space between the items */
}

nav ul li {
    display: inline;
    margin-right: 10px;
    position: relative;
    padding: 10px 20px; /* Add padding for spacing */
}

nav ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    height: 100%;
    width: 1px;
    background-color: white; /* Separator color */
    opacity: 0.5; /* Slightly transparent */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.5em; /* Adjust font size */
    text-shadow: 1px 1px 2px #000; /* Add text shadow for better readability */
    padding: 10px 20px; /* Ensure the padding is applied to the anchor */
    border-radius: 4px; /* Add border radius for smoother corners */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

nav ul li a:hover {
    outline: 2px solid white; /* Add a white outline on hover */
}

h1 {
    font-size: 6vw; /* Mobile device friendly */
    z-index: 2;
    position: relative;
    margin-bottom: 3px; /* Add some spacing between title and nav */
    margin-top: 3px;
    align-items: center;
    white-space: nowrap;
    overflow: inherit;
    text-align: center;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(to bottom, #8FBC8F, #556B2F); /* Gradient background for main section */
    color: white;
    min-height: 100vh; /* Ensure it takes full height of viewport */
    text-align: center;
}

.file-list ul {
    list-style: none;
    padding: 0;
    margin: 20px 0; /* Add some margin for spacing */
    max-width: 800px; /* Set a max-width for better layout */
}

.file-list ul li {
    margin: 10px 0;
    padding: 10px; /* Add padding for better spacing */
    background-color: #fff; /* White background for list items */
    color: #333; /* Dark text color */
    border-radius: 5px; /* Rounded corners for list items */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Light shadow for list items */
    transition: transform 0.3s; /* Smooth transition for hover effects */
}

.file-list ul li:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}

.file-list ul li a {
    color: #000000;
    text-decoration: none;
    font-size: 1.2em;
    display: block; /* Make the link take up the entire list item */
}

.file-list ul li a:hover {
    text-decoration: underline;
}

/* Modal styling */
#fileModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.7); /* Black with opacity */
    display: flex; /* Use flexbox to center the modal content */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* Increased width */
    max-width: 2400px; /* Double the max-width for better layout */
    border-radius: 10px; /* Rounded corners for modal */
    height: 80vh; /* Make the modal taller */
    overflow: hidden; /* Ensure content fits inside the modal */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Add a shadow for better visibility */
}

#fileFrame {
    width: 100%;
    height: 100%; /* Adjusted height to fit within the modal */
    border: none; /* Remove border for iframe */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 8vw; /* Adjust font size for smaller screens */
    }

    .main-content {
        padding: 10px; /* Reduce padding for smaller screens */
    }

    .file-list ul {
        margin: 10px 0; /* Reduce margin for better fit */
    }

    .file-list ul li {
        padding: 8px; /* Reduce padding for smaller screens */
    }

    .modal-content {
        width: 95%; /* Adjust modal width for smaller screens */
        padding: 15px; /* Reduce padding for modal */
    }
}
