body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url(/files/content/img/cannabis_PNG54.png);
    background-position: center center; /* Centers the image both horizontally and vertically */
    background-size: cover; /* Makes sure the image covers the entire background without being stretched */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-attachment: fixed; /* Keeps the image fixed when scrolling */
    color: #333;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adds a semi-transparent overlay to make content more readable */
    z-index: -1; /* Ensures it stays behind the content */
}


/*  START OF NAVBAR */

header {
    background: linear-gradient(90deg, #0c6300, #145214); /* Dark green gradient */
    color: black;
    padding: 1em;
    text-align: center;
    border-bottom: 3px solid #33cc33; /* Bright green accent line */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    position: sticky;
    top: 0;
    z-index: 1000; /* Makes sure it stays on top */
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem; /* Increased padding for larger clickable area */
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px; /* Matches the border-radius of the content boxes */
}

nav ul li a:hover {
    background-color: #1c1c1c; /* Bright green background on hover */
    color: #33cc33; /* Dark grey text on hover */
}

@media (max-width: 600px) {
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        padding: 10px 20px;
    }
}

/*  END OF NAVBAR */

main {
    padding: 20px;
}

h2 {
    color: #333;
}

footer {
    background-color: #0c6300;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/*  START OF CONTENT-BOX */

.content-box {
    background-color: #1c1c1c; /* Dark grey background */
    color: #f5f5f5; /* Very light grey for softer contrast (instead of pure white) */
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 10px;
    border-top: 5px solid #0c6300; /* Bright green accent border at the top */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Sharper shadow for depth */
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition for hover effect */
}

.content-box:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); /* More pronounced shadow on hover */
    border-top-color: #33cc33; /* Change top border to a brighter green on hover */
}

.content-box p {
    font-size: 16px;
    line-height: 1.6; /* Optimal line height for better readability */
}

.content-box h2 {
    font-size: 24px;
    margin-bottom: 10px; /* Ensure enough space below headings */
    color: #33cc33; /* Accent color for headings */
}

h2 {
    font-weight: bold;
    font-size: 24px;
    color: #33cc33; /* Green accent for headings */
}

p {
    font-size: 16px;
    line-height: 1.6;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 1rem;
}

ul li {
    margin-bottom: 0.5rem;
}

a {
    color: #33cc33; /* Accent color for links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;

    @media (max-width: 600px) {
        .content-box {
            padding: 1.5rem;
            max-width: 100%; /* Allows the box to take full width on mobile */
        }
    
        .content-box p {
            font-size: 14px; /* Slightly smaller font for mobile */
            line-height: 1.5;
        }
    
        .content-box h2 {
            font-size: 20px;
        }
    }
}

/*  END OF CONTENT-BOX */
