/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Full-page background */
body {
    background-image: url('background.jpg'); /* Replace with your background image URL */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Ensures background image stays fixed */
    font-family: Arial, sans-serif;
    color: #fff;
    min-height: 100vh; /* Ensure the body covers the full viewport height */
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth; /* Smooth scrolling */
}

/* Page Wrapper */
.page-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Header styling */
header {
    background-color: rgba(0, 128, 0, 0.8); /* Opaque green */
    color: #fff;
    padding: 20px;
    text-align: center;
    position: fixed;
    width: 100%; /* Full width */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure header is on top */
    border-radius: 0 0 20px 20px; /* Rounded corners (bottom) */
}

/* Navigation styling */
nav {
    background-color: rgba(0, 128, 0, 0.8); /* Opaque green */
    padding: 10px;
    position: fixed;
    top: 80px; /* Adjust to be below the header */
    width: 100%; /* Full width */
    z-index: 1000; /* Ensure nav is on top */
    border-radius: 20px; /* Rounded corners for all four corners */
    display: flex;
    justify-content: center;
}

/* Navigation list styling */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Align items horizontally */
    gap: 10px; /* Space between items */
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Light hover effect */
    border-radius: 5px;
}

/* Main content area */
.main-content {
    margin-top: 130px; /* Space for header and navigation */
    padding: 20px;
    flex: 1; /* Allow main content to grow and fill available space */
}

/* Section styling */
section {
    position: relative; /* Ensure the background is positioned relative to the section */
    padding: 40px 20px; /* Padding inside each section */
    text-align: center;
    margin: 20px auto; /* Center the section horizontally */
    border-radius: 15px; /* Rounded corners for the section */
    background-color: rgba(255, 255, 255, 0.5); /* More transparent pale white background */
    width: 80%; /* Adjust to fit the content width or use a max-width */
    max-width: 1200px; /* Optional: to limit the maximum width */
}

/* Specific section styling */
section h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

section p {
    font-size: 18px;
}

/* Footer styling */
footer {
    background-color: rgba(0, 128, 0, 0.8); /* Opaque green */
    color: #fff;
    text-align: center;
    padding: 10px;
    width: 100%; /* Full width */
    border-radius: 20px 20px 0 0; /* Rounded corners (top) */
    position: relative; /* Position relative to document flow */
}

/* Media Queries */

/* Small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    header, nav, footer {
        width: 100%;
        border-radius: 0;
    }

    nav {
        top: 60px; /* Adjust to be below the header */
    }

    .main-content {
        margin-top: 110px; /* Adjust space for header and navigation */
    }

    section {
        width: 100%;
        margin: 10px 0;
    }

    nav ul {
        flex-direction: column; /* Stack navigation items vertically */
    }

    nav ul li {
        margin: 5px 0; /* Adjust spacing for vertical layout */
    }
}

/* Medium devices (tablets, 601px to 768px) */
@media only screen and (min-width: 601px) and (max-width: 768px) {
    header, nav, footer {
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0 0 10px 10px;
    }

    nav {
        top: 70px; /* Adjust to be below the header */
    }

    .main-content {
        margin-top: 120px; /* Adjust space for header and navigation */
    }

    section {
        width: 90%;
        margin: 15px auto;
    }
}

/* Large devices (desktops, 769px and up) */
@media only screen and (min-width: 769px) {
    header {
        width: 80%;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0 0 20px 20px; /* Rounded corners for the header (bottom) */
    }

    nav {
        width: auto; /* Auto width to fit content */
        max-width: 1200px; /* Optional: to limit the maximum width */
        left: 50%;
        transform: translateX(-50%); /* Center horizontally */
        border-radius: 20px; /* Rounded corners for all four corners */
    }

    footer {
        width: 80%;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0; /* Rounded corners for the footer (top) */
    }

    .main-content {
        margin-top: 130px; /* Space for header and navigation */
    }

    section {
        width: 80%;
        margin: 20px auto;
    }
}
