/* TrashDash NC Website Styles */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f7f7f7;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1522034402915-54f9781a6b4d?auto=format&fit=crop&w=1280&q=80') no-repeat center/cover;
    /* Using unsplash image to evoke outdoors and community – remove if offline */
    color: #fff;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.btn {
    background-color: #2e8b57;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #276c46;
}

/* Navbar */
.navbar {
    background-color: #2e8b57;
    padding: 0.5rem;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar li {
    margin: 0 1rem;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.navbar a:hover {
    color: #ffe066;
}

/* Sections */
.section {
    padding: 2rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.section h2 {
    margin-bottom: 1rem;
    color: #2e8b57;
    font-size: 2rem;
}

/* Lists */
.participate ol {
    margin-left: 1.5rem;
    padding-left: 0;
}

.participate li {
    margin-bottom: 0.5rem;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

label {
    margin-top: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

button[type="submit"] {
    margin-top: 1rem;
    align-self: flex-start;
}

/* Footer */
.footer {
    background-color: #2e8b57;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

/* QR code image */
.qr-container {
    text-align: center;
    margin-bottom: 1rem;
}

.qr {
    max-width: 200px;
    width: 100%;
    height: auto;
    border: 2px solid #2e8b57;
    padding: 0.5rem;
    background-color: #fff;
}

/* === Flyer homepage styles === */
.flyer-home {
    background-color: #e7f2d9; /* light green background matching flyer */
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.flyer-wrapper {
    position: relative;
    max-width: 768px;
    margin: 0 auto;
}

.flyer-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Invisible overlay link for sign up button area on flyer */
.signup-overlay {
    position: absolute;
    /* Position these values relative to the flyer design; adjust as needed */
    top: 56%;
    left: 58%;
    width: 38%;
    height: 18%;
    z-index: 10;
    cursor: pointer;
    text-decoration: none;
}

/* Ensure overlay doesn’t show any visible content */
.signup-overlay:hover {
    /* Optional: highlight area for debugging; remove border for production */
    outline: 2px dashed rgba(0,0,0,0.1);
}

/* Overlay the working QR code on top of the flyer */
.qr-overlay {
    position: absolute;
    /* Position approximated based on the flyer design */
    /* Position overlay roughly over the flyer’s printed QR code */
    top: 60%;
    left: 6%;
    width: 24%;
    height: auto;
    z-index: 12;
}

.flyer-home .footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #2e8b57;
    color: #fff;
    font-size: 0.9rem;
}