@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');


/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

/* Body Styling */
body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 1rem;
}
/* Header Styling */
header {
    position: relative;
    background-image: url('./images/header_bg.jpg');
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;
    height: 250px;
    color: white;
}

/* Overlay for the header */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 35, 121, 0.6); /* Dark overlay */
    z-index: 1;
}

/* Container for the header elements */
.header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2; /* Place content above the overlay */
    padding: 0 20px;
    height: 100%;
}

/* Logo and title styling */
.header-logo-container {
    display: flex;
    align-items: center;
}

.header-logo {
    width: 50px;
    margin-right: 10px;
}

h1 {
    font-size: 1.5rem;
    margin: 0;
}

/* Login link styling */
.login-link {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1rem;
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-link:hover {
    text-decoration: underline;
}

/* Hamburger menu styling */
.hamburger-menu {
    position: absolute;
    top: 10px;
    right: 70px; /* Space from the login link */
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-menu img {
    width: 30px;
    height: 30px;
}

/* Navigation Drawer */
#nav-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: -100%; /* Adjust to display below header */
    right: 20px;
    background-color: #333;
    padding: 10px;
    border-radius: 5px;
    z-index: 3; /* Above header */
}

#nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#nav-menu ul li {
    margin: 10px 0;
}

#nav-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

#nav-menu ul li a:hover {
    text-decoration: underline;
}

/* Show navigation on toggle */
#nav-menu.active {
    display: block;
    top: 0;
}

/* Splash Section */
.splash {
    display: flex; /* Arrange content in a row */
    align-items: center; /* Vertically center-align the content */
    gap: 20px; /* Add space between the text and image */
    padding: 20px; /* Add some padding around the section */
}

.splash-text {
    flex: 1; /* Allow text to take up remaining space */
    text-align: left; /* Align text to the left */
    color: #333; /* Dark text color */
}

.splash-text h2 {
    font-size: 1.8em; /* Adjust heading size */
    margin-bottom: 10px; /* Add space below the heading */
}

.splash-text p {
    font-size: 1.1em; /* Adjust paragraph size */
    line-height: 1.6; /* Improve readability */
    margin-bottom: 15px; /* Add space below the paragraph */
}

.splash-button {
    background-color: #0073e6; /* Button color */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.splash-button:hover {
    background-color: #005bb5; /* Darker blue on hover */
}

.splash-image {
    flex: 1; /* Allow the image to take up equal space */
    max-width: 450px; /* Set a maximum width for the image */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure the image fits within its container */
    border-radius: 10px; /* Optional: Add rounded corners */
}

/* Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 40px 20px;
    background-color: #fff; /* White section background */
    color: #000000; /* Dark green text */
}

.feature-box {
    background-color: #f9f9f9; /* Light grey background for cards */
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    width: 300px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

.about-box {
    background-color: #f9f9f9; /* Light grey background for cards */
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    width: 100%;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    fill: #004400; /* Dark green icons */
    margin-bottom: 10px;
}

.feature-box h2 {
    font-size: 1.5em;
    margin: 10px 0;
}

.feature-box p {
    font-size: 1em;
    line-height: 1.5;
}

.feature-box .btn {
    display: inline-block;
    background-color: #004080;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.feature-box .btn:hover {
    background-color: #0469ce;
}
/* Ensure collapsible background doesn't interfere with tabs */
.collapsible {
    background: #f8f8f8;
    padding: 10px;
    border: 2px solid #dddddd;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    position: relative;
}

.collapsible .toggle-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.stats-section {
    display: none;
    margin-top: 10px;
}

.stats-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}


/* League Standings Container */
.league-standings {
    margin: 20px auto;
    padding: 10px;
    max-width: 1000px; /* Limit the width for better readability */
}

/* League Table */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Table Header */
.standings-table thead tr {
    background-color: #4CAF50;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}

/* Table Rows */
.standings-table tbody tr {
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

/* Alternating Row Colors */
.standings-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Hover Effect */
.standings-table tbody tr:hover {
    background-color: #d1e7dd;
}

/* Table Borders */
.standings-table th, .standings-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

/* Team Name Alignment */
.standings-table td:first-child, .standings-table th:first-child {
    text-align: center;
}

.standings-table td:nth-child(2) {
    text-align: left;
    padding-left: 15px;
}

/* Rank Column Styling */
.standings-table td:first-child {
    font-weight: bold;
    color: #4CAF50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .standings-table {
        font-size: 12px;
    }

    .standings-table th, .standings-table td {
        padding: 5px;
    }
}

/* Footer Section */
/* Footer Section */
footer {
    background-color: #004080;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px; /* Space between icons */
}

.social-link {
    display: inline-block;
    width: 30px;
    height: 30px;
}

.social-icon {
    max-width: 100%;
    height: auto;
    filter: brightness(0) invert(1); /* Ensures white icons on dark background */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1); /* Slight zoom effect */
    filter: brightness(1.5); /* Brightens on hover */
}


.footer-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

/* Submenu Styling */
.submenu-items {
    display: none; /* Hide submenus by default */
    list-style: none;
    padding: 0;
    margin-top: 5px;
}

.submenu-items li a {
    font-size: 0.9rem;
    padding-left: 20px;
}

/* Toggle display of submenu */
.submenu:hover .submenu-items {
    display: block;
}
/* Show navigation on toggle */
#nav-menu.active {
    display: block;
}

/* Add a small indicator to show submenus */
.submenu > a::after {
    content: " ▼";
}

.submenu:hover > a::after {
    content: " ▲";
}

/* Show submenu when the parent menu is active */
.submenu.active > .submenu-items {
    display: block;
}

/* Main Content Styling */
main {
    background: #fff;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Match Details Styling */
.match-details-container {
    margin-bottom: 2rem;
}

.match-details-overlay {
    background: #e6f2ff;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.match-header {
    font-weight: bold;
    margin-bottom: 1rem;
}

.match-report {
    width: 100%;
    border-collapse: collapse;
}

.match-report td {
    padding: 1rem;
    border-bottom: 1px solid #ccc;
}

.team-details img {
    max-width: 50px;
    height: auto;
}

.team-form {
    margin: 1rem 0;
}

.form-box {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    margin: 0.25rem;
}

.form-box.w { background-color: #28a745; color: #fff; } /* Win */
.form-box.l { background-color: #dc3545; color: #fff; } /* Loss */
.form-box.d { background-color: #ffc107; color: #fff; } /* Draw */

.matches-table {
    width: 100%;
    border-collapse: collapse; /* Ensures borders do not double up */
}

.matches-table tbody tr {
    border-bottom: 1px solid #ccc; /* Adds a border to each row */
}

.matches-table th,
.matches-table td {
    padding: 10px; /* Adds spacing within cells */
    text-align: left; /* Aligns text to the left */
}

/* Lineups Styling */
.lineup-team {
    margin: 1rem 0;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.lineup-list {
    list-style: none;
    padding: 0;
}

.lineup-player {
    display: flex;
    align-items: center;
    background-color: #f4f4f4;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
}

.lineup-box {
    background-color: #0073e6;
    color: #fff;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    border-radius: 5px;
}

/* Error Message */
.error-message {
    background-color: #dc3545;
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}
.match-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.match-table th, .match-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.match-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.match-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.match-table tr:hover {
    background-color: #f1f1f1;
}
@media (max-width: 768px) {
    /* Header */
    header {
        height: 200px;
    }

    .header-container {
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start;
    }

    h1 {
        font-size: 1.2rem;
    }

    .login-link {
        font-size: 0.9rem;
        top: 5px;
        right: 5px;
    }

    .hamburger-menu {
        top: 40px;
        right: 5px;
    }

    /* Splash Section */
    .splash {
        flex-direction: column; /* Stack image and text vertically */
        gap: 10px;
        text-align: center;
    }

    .splash-text {
        text-align: center;
    }

    .splash-image {
        max-width: 100%; /* Ensure images do not overflow */
    }

    /* Features Section */
    .features {
        flex-direction: column;
        gap: 15px;
    }

    .feature-box {
        width: 90%; /* Reduce card width */
    }

    /* League Standings Table */
    .standings-table th, .standings-table td {
        font-size: 0.9rem; /* Adjust table font size */
        padding: 8px;
    }

    .standings-table td:nth-child(2) {
        text-align: center; /* Center-align text */
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    /* Header */
    header {
        height: 150px;
    }


    h1 {
        font-size: 1rem;
    }

    .login-link {
        font-size: 0.8rem;
    }

    /* Buttons */
    .splash-button, .feature-box .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* Reduce padding/margins for smaller screens */
    body, main, .features, .splash {
        padding: 0.5rem;
    }

    /* League Standings Table */
    .standings-table th, .standings-table td {
        font-size: 0.8rem;
    }

    .standings-table {
        font-size: 0.75rem;
    }
}
/* Media Query for Mobile Screens */
@media (max-width: 768px) {
    .features {
        flex-direction: column; /* Stack items vertically */
        padding: 20px 10px; /* Reduce padding */
        gap: 15px; /* Reduce gap */
    }

    .feature-box {
        width: 100%; /* Full width for smaller screens */
    }

    .feature-box h2 {
        font-size: 1.2em; /* Slightly smaller font size */
    }

    .feature-box p {
        font-size: 0.9em; /* Adjust paragraph font size */
    }
}

/* Media Query for Extra Small Screens */
@media (max-width: 480px) {
    .features {
        padding: 15px 5px; /* Minimal padding */
    }

    .feature-box {
        padding: 15px; /* Reduce padding */
    }

    .feature-box h2 {
        font-size: 1em; /* Further reduce heading size */
    }

    .feature-box p {
        font-size: 0.85em; /* Adjust text for readability */
    }

    .feature-box .btn {
        padding: 8px 12px; /* Adjust button size */
        font-size: 0.9em; /* Adjust button text size */
    }
}
/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center align the content */
        text-align: center; /* Center align the text */
    }

    .about-content img {
        max-width: 100%; /* Allow image to scale to full width */
        margin: 0 0 15px 0; /* Remove right margin and add bottom margin */
    }

    .about-text {
        max-width: 100%; /* Allow text to take full width */
        text-align: center; /* Align text to center */
    }
}

/* Extra Small Screens (Phones) */
@media (max-width: 480px) {
    .about-content img {
        max-width: 90%; /* Slightly reduce image width */
        margin-bottom: 10px; /* Adjust spacing for smaller screens */
    }

    .about-text {
        font-size: 0.9rem; /* Adjust font size for better readability */
        line-height: 1.4; /* Improve text spacing */
    }

    .features {
        padding: 15px; /* Reduce padding for smaller screens */
    }
}
/* Add responsive scrolling for narrower screens */
@media (max-width: 768px) {
    .match-table {
        display: block;
        overflow-x: auto; /* Enable horizontal scrolling */
        white-space: nowrap; /* Prevent wrapping of table cells */
    }

    .match-table th,
    .match-table td {
        font-size: 0.9rem; /* Adjust font size for smaller screens */
        padding: 8px; /* Reduce padding */
    }
}

/* Convert table into a card-like layout for very small screens */
@media (max-width: 480px) {
    .match-table {
        display: flex;
        flex-direction: column;
        gap: 10px; /* Add spacing between rows */
    }

    .match-table thead {
        display: none; /* Hide table header */
    }

    .match-table tr {
        display: flex;
        flex-direction: column;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        background-color: #fff; /* Separate background for better card visibility */
    }

    .match-table td {
        display: flex;
        justify-content: space-between;
        font-size: 0.9rem;
        padding: 5px 0;
    }

    .match-table td::before {
        content: attr(data-label); /* Use the data-label attribute for headers */
        font-weight: bold;
        margin-right: 10px;
    }
}