body {
    justify-content: center;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #006400; /* Dark green background color */
    background-image: url('/static/forest_form.jpg'); /* Correct path to your forest image */
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff; /* Text color to ensure readability */
}

h2 {
    text-align: center;
    margin-top: 2rem; /* Optional: Add some top margin for spacing */
    color: #fff; /* Ensure the text color is white for readability against the background */
}


header {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background for header */
    color: #fff;
    padding: 1rem 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    padding: 2rem;
    background-color: rgba(0, 100, 0, 0.7); /* Semi-transparent dark green background for main content */
    border-radius: 10px;
    margin: 2rem;
}

footer {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background for footer */
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #fff; /* White border for footer */
}

/* Styling for form elements */
form {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto;
}

form label {
    margin-top: 1rem;
    color: #333; /* Darker color for form labels */
}

form input[type="text"],
form input[type="number"],
form select {
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%; /* Make input fields full width */
    box-sizing: border-box; /* Ensure padding is included in width */
}

form input[type="submit"] {
    padding: 0.7rem;
    margin-top: 1rem;
    border: none;
    border-radius: 5px;
    background-color: #008000; /* Green submit button */
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
    background-color: #005700; /* Darker green on hover */
}

form input[type="submit"]:active {
    background-color: #003f00; /* Even darker green on click */
}

form input[type="text"]:focus,
form input[type="number"]:focus,
form select:focus {
    outline: none;
    border-color: #008000; /* Green border on focus */
    box-shadow: 0 0 5px rgba(0, 128, 0, 0.5); /* Green glow on focus */
}


button {
    padding: 0.7rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    background-color: #333; /* Dark button */
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto; /* Auto width to avoid taking up 50% of the container */
}

.center-button {
    display: flex;
    justify-content: center;
    margin-top: 20px; /* Adjust margin as needed */
}

button:hover {
    background-color: #555; /* Lighter dark on hover */
}

button:active {
    background-color: #111; /* Even darker on click */
}
