.hidden {
    display: none;
}

body {
    font-family: 'Lora', serif;
    background: linear-gradient(to bottom, #8FBC8F, #556B2F); /* Gradient background for main section */
    color: white;
    color: #333;
    margin: 0; /* Remove margin to align the header with the viewport */
    line-height: 1.6;
}

.header {
    background: url('https://github.com/WhiteRiverSustainability/smallsteps/blob/main/Images/nav.jpg?raw=true') center/cover #90a997;
    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 {
    position: relative;
}

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: 3px 0; /* Add some spacing between title and nav */
    text-align: center;
}

.form-container, .results, .accordion-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
}

.section {
    margin-bottom: 20px;
    font-size: 1em; /* Average font size */
}

.input-group {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="number"],
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em; /* Average font size */
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px; /* Average font size */
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

.results img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px; /* Optional: to match the border radius of the form */
}

.accordion-container {
    max-width: 800px; /* Ensure the container does not exceed the form width */
    margin: 0 auto; /* Center the container */
}

.accordion {
    background-color: #000;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px; /* Average font size */
    transition: 0.4s;
    margin-bottom: 10px;
    border-radius: 5px;
    box-sizing: border-box; /* Ensure padding and width are within the container */
}

.active, .accordion:hover {
    background-color: #45a049;
}

.accordion:after {
    content: '\002B'; /* Unicode character for "plus" sign (+) */
    color: white;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.active:after {
    content: "\2212"; /* Unicode character for "minus" sign (-) */
}

.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box; /* Ensure padding and width are within the container */
}

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