body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

header {
    background-color: #2a7b2a;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #2a7b2a;
        flex-direction: column;
        text-align: center;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        padding: 10px 0;
    }
}

.hero {
    text-align: center;
    padding: 50px 20px;
    color: black;
}

.about, .events, .links, .members{
    padding: 10px 20px;
    text-align: center;
    color: black;
}

.events ul {
    list-style: none;
    padding: 0;
}

.events li {
    margin-bottom: 10px;
}

/* Sponsor Section */
.sponsors {
    text-align: center;
    padding: 20px;
}

/* Hero Section - History Page */
.history-hero {
    text-align: center;
    padding: 10px 20px;
    background: url('history-banner.jpg') no-repeat center center/cover;
    color: black;
}

/* History Content */
.history-content {
    padding: 10px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.history-content h2 {
    color: #2a7b2a;
    margin-top: 20px;
}

/* Fixtures Page */
.fixtures {
    text-align: center;
    padding: 10px 20px;
}

.fixtures label, .fixtures select {
    font-size: 1.2em;
    margin-bottom: 15px;
}

#fixtures-container {
    margin-top: 10px;
}

.fixtures-box {
    display: none;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
    max-width: 600px;
    margin: 10px auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.fixtures-box h2 {
    color: #2a7b2a;
}

.fixtures-box ul {
    list-style: none;
    padding: 0;
}

/* Style for results tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    background-color: #2a7b2a; /* Green header */
    color: white;
    padding: 10px;
}

td {
    padding: 8px;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #d0e4f5; /* Light blue */
}

tr:nth-child(odd) {
    background-color: #f0f0f0; /* Grey */
}

.results-box {
    display: none;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
}

.results, .documents{
    padding-left: 20px;
}

.update-date {
    font-size: 0.9em;
    color: #666;
}

/* Collapsible buttons */
.collapsible {
    background-color: #2a7b2a;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 1.1em;
    margin-top: 5px;
    border-radius: 5px;
}

.collapsible:hover {
    background-color: #226622;
}

.content {
    display: none;
    padding: 10px;
    border-left: 3px solid #2a7b2a;
    background-color: #f9f9f9;
    margin-bottom: 5px;
}

/* Events Section */
.events {
    text-align: center;
    padding: 40px 20px;
}

/* Event Cards */
.events-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.event-card {
    background: white;
    border-radius: 10px;
    border-style: double;
    border-color: #2a7b2a;
    padding: 20px;
    width: 250px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.event-card h2 {
    color: #2a7b2a;
}


/* Feature Photo Section */
.feature-photo {
    text-align: center;
    margin: 20px auto;
    max-width: 800px;
}

.feature-photo img {
    width: 100%;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.photo-comment {
    margin-top: 10px;
    font-style: italic;
    color: #333;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.slideshow-section {
    text-align: center;
    width: 90%;
    max-width: 800px;
    padding: 15px;
    border: 3px solid #4CAF50; /* Green border */
    border-radius: 10px;
    background: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slideshow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    height: 60vh; /* Adjusts height based on viewport */
    overflow: hidden;
}

.slideshow img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures full image is visible */
    border-radius: 5px;
}

.slideshow img.active {
    display: block;
}

@media (max-width: 768px) {
    .slideshow {
        height: 40vh; /* Adjusts for smaller screens */
    }
}


/* Navigation buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Contact Page Layout */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.contact-form, .contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

/* Form Styling */
.contact-form form {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.contact-form label {
    margin-top: 10px;
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form button {
    margin-top: 15px;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    width:100px;
}

.contact-form button:hover {
    background: #218838;
}

/* Map Styling */
.contact-info iframe {
    width: 100%;
    border-radius: 8px;
}

footer {
    text-align: center;
    padding: 5px;
    background-color: #2a7b2a;
    color: white;
    margin-top: 20px;
    position: relative;
    margin-bottom: 0;
}

footer a {
    color: white;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

footer a:hover {
    color: #1877F2; /* Facebook Blue */
}

.fa-facebook {
    margin-left: 10px;
}

#LBA {
    width: 30px;
    height: 30px;
    margin-top: 10px;
}


/* Login Page */
.login-container {
    text-align: center;
    max-width: 400px;
    margin: 50px auto;
}

.error {
    color: red;
}

/* Members Area */

.comments textarea {
    width: 80%;
    height: 50px;
    margin: 20px;
}

.comments {
    margin: 20px;
}

.comments button, .logbutton {
    display: block;
    margin: 20px;
    background-color: #2a7b2a;
    color: white;
}

.sponsors-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.sponsor-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    width: 250px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sponsor-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.sponsor-card p {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sponsors-container {
        flex-direction: column;
        align-items: center;
    }

    .sponsor-card {
        width: 80%;
    }
}
