/* Add at the top, before other styles */
html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-size: 1vw; /* Responsive font size */
}

/* Base styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to top, #006400 0%, white 35%, #eeeeee 100%);
    min-width: 320px;
}
/* Column width adjustments - total should be 100% */
.main-leaderboard th:first-child,
.main-leaderboard td:first-child {
    width: 35% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
    padding: 12px 8px;
    font-size: 0.9vw !important;
}

.main-leaderboard th:not(:first-child),
.main-leaderboard td:not(:first-child) {
    width: 13% !important;
    text-align: center !important;
    padding: 12px 4px;
    font-size: 1.0vw !important;
}
/* Main leaderboard table styles - ensure no overflow */
.leaderboard-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.main-leaderboard {
    width: 100% !important;
    max-width: 800px !important;
    table-layout: fixed !important;
}

.main-leaderboard table {
    width: 100%;
    table-layout: fixed;
}

/* Column width adjustments - total should be 100% */
.main-leaderboard th:first-child,
.main-leaderboard td:first-child {
    width: 35% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
    padding: 12px 8px;
    font-size: 0.9rem;
}

.main-leaderboard th:not(:first-child),
.main-leaderboard td:not(:first-child) {
    width: 13% !important;
    text-align: center !important;
    padding: 12px 4px;
    font-size: 0.8rem;
}

/* Total column */
.main-leaderboard th:last-child,
.main-leaderboard td:last-child {
    width: 13% !important;
}
/* Main leaderboard table styles */
.main-leaderboard {
    width: 100%;
    max-width: 800px;
    table-layout: fixed;
}

/* Header and cell styles */
.main-leaderboard th,
.main-leaderboard td {
    font-size: 1rem; /* Keep text size consistent */
}

/* First column (team names) */
.main-leaderboard th:first-child,
.main-leaderboard td:first-child {
    width: 35%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    padding: 12px 8px;
}

/* Score columns */
.main-leaderboard th:not(:first-child),
.main-leaderboard td:not(:first-child) {
    width: 13%;
    text-align: center;
    padding: 12px 4px;
}

/* Total column */
.main-leaderboard th:last-child,
.main-leaderboard td:last-child {
    width: 13%;
}

/* Ensure table cells don't wrap */
.main-leaderboard td {
    white-space: nowrap;
}

.main-leaderboard {
    margin-left: 0vw;
}
.container {
    max-width: 1420px;
    padding: 0 20px;
    margin: 0 auto;
}

/* Navigation Bar Styling */
.nav-bar {
    background-color: #006400;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: flex;
    width: 100%;
    overflow: hidden;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-brand img {
    margin-right: 10px;
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.title {
    font-size: 2.8em;
    font-weight: bold;
    color: white;
    display: inline-flex;
    align-items: center;
    margin-right: 25px;
}

.subtitle {
    font-size: 2.0em;
    color: white;
    margin-right: 20px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.navbar-nav .nav-item {
    flex: 1;
}

.navbar-nav .nav-item .nav-link {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2em;
    padding: 5px 10px;
    white-space: nowrap;
    transition: color 0.3s;
    display: block;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #ddd;
}

.logo {
    width: 100px;
    max-width: 100%;
    height: auto;
    margin: 10px;
    padding: 5px;
}/* Update team card header size */
.team-card-header {
    font-size: 2vw; /* Increase from 4vw */
    padding: 2vw;
    text-align: center;
}

/* Update team card column headers */
.team-card thead th {
    font-size: 1vw; /* Increase from current size */
    padding: 2vw 1vw;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Keep player name column left-aligned */
.team-card thead th:first-child {
    text-align: left;
}

/* Keep other header styles */
.team-card td {
    font-size: 1.2vw;
    padding: 2vw 1vw;
}

/* Column widths for team cards */
.team-card th:first-child,
.team-card td:first-child {
    width: 25%;
    min-width: 25%;
    max-width: 25%;
    text-align: left;
    padding: 8px 12px;
    font-size: 1vw;
}

.team-card th:not(:first-child),
.team-card td:not(:first-child) {
    width: 15%;
    min-width: 15%;
    max-width: 15%;
    text-align: center;
    padding: 8px 0;
    font-size: min(1vw, 2px);
}

/* Header font sizes */
.team-card thead th {
    font-size: 0.8vw;
    padding: 8px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* First header maintains its padding */
.team-card thead th:first-child {
    padding: 8px 12px;
    text-align: left;
}

/* Row font sizes */
.team-card td {
    font-size: 1.2vw;
    padding: 8px 12px;
}

/* Hover effect for row widths */
.team-card tr:hover td:first-child {
    width: 40%;
    min-width: 40%;
    max-width: 40%;
}

.team-card tr:hover td:not(:first-child) {
    width: 12%;
    min-width: 12%;
    max-width: 12%;
}/* Main leaderboard table styles */
.leaderboard-container {
    display: grid;
    grid-template-columns: minmax(auto, 800px) minmax(auto, 350px) !important;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    align-items: start;
    max-width: 1150px !important;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Common table styles */
.main-leaderboard,
.ownership-stats,
.team-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header styles for all tables */
.ownership-stats h2,
.team-card-header,
.main-leaderboard thead tr,
.ownership-stats thead tr,
.team-card thead tr {
    background-color: #006400;
    color: white;
    font-weight: bold;
}

/* Table header cells */
.main-leaderboard th,
.ownership-stats th,
.team-card th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Table cells */
.main-leaderboard td,
.ownership-stats td,
.team-card td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    color: #333;
    text-align: center;
    vertical-align: middle;
}

/* Keep team name column left-aligned */
.main-leaderboard td:first-child,
.ownership-stats td:first-child,
.team-card td:first-child {
    text-align: left;
}

/* Hover effects */
.main-leaderboard tbody tr:hover,
.ownership-stats tbody tr:hover,
.team-card tbody tr:hover {
    background-color: #f8f8f8;
    transition: background-color 0.2s ease;
}

/* Score columns alignment */
.score-col {
    text-align: center;
}

/* Total score column */
.main-leaderboard th:last-child,
.main-leaderboard td:last-child {
    background-color: #006400;
    color: white;
    font-weight: bold;
}

/* Pagination controls */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    gap: 12px;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
}

.pagination-btn {
    background-color: #006400;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pagination-btn:hover {
    background-color: #005300;
}

.pagination-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#pageInfo {
    color: #333;
    font-size: 0.9rem;
}

/* Player scores container */
#playerScoresContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 5px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Base team card styles */
.team-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.team-card-header {
    background-color: #006400;
    color: white;
    font-weight: bold;
    padding: 0.8rem;
    text-align: center;
    font-size: 2vw;
}

/* Team card table styles */
.team-card table {
    width: 95%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Column widths and sizes */
.team-card th:first-child,
.team-card td:first-child,
.team-card td:not(:first-child) {
    width: 30%;
    min-width: 30%;
    max-width: 30%;
    text-align: left;
    padding: 8px 12px;
    font-size: min(1vw, 16px);
}

.team-card th:not(:first-child) {
    width: 14%;
    min-width: 14%;
    max-width: 14%;
    text-align: center;
    padding: 8px 0;
    font-size: min(1vw, 12px);
}

/* Header specific styles */
.team-card thead th {
    font-size: 0.8vw;
    padding: 8px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-card thead th:first-child {
    padding: 8px 12px;
    text-align: left;
}
.ownership-stats table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ownership-stats thead tr {
    background-color: #006400;
    width: 100%;
}

.ownership-stats th {
    padding: 12px 16px;
    text-align: left;
    color: white;
    font-weight: bold;
    white-space: nowrap;
}

/* Optional: if you want to control column widths */
.ownership-stats th:first-child {
    width: 70%; /* Adjust player name column width */
}

.ownership-stats th:last-child {
    width: 30%; /* Adjust percentage column width */
}

/* Team detail card styles */
.team-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-card-header {
    background-color: #006400;
    color: white;
    font-weight: bold;
    padding: 1rem;
    text-align: center;
    width: 100%;
    font-size: 1.1rem;
}

.team-card table {
    width: 95%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Column widths */
.team-card th,
.team-card td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Make player name column wider */
.team-card th:first-child,
.team-card td:first-child {
    width: 25%;
    text-align: left;
    padding-left: 12px;
}

/* Make score columns equal width */
.team-card th:not(:first-child),
.team-card td:not(:first-child) {
    width: 14%;
    text-align: center;
}

.team-card th {
    background-color: #f8f8f8;
    font-size: 0.95rem;
    color: #333;
    font-weight: bold;
}

.team-card td {
    color: #333;
}

/* Hover effect for rows */
.team-card tr:hover {
    background-color: #f8f8f8;
    transition: background-color 0.2s ease;
}

.team-name-link {
    cursor: pointer;
    transition: color 0.2s ease;
    color: #2dad5c; /* Light green color on hover */
    text-decoration: underline;
    font-weight: bold;
}

.team-name-link:hover {
    color: #4ade80; /* Light green color on hover */
    text-decoration: underline;
}

/* Column widths for team cards - both desktop and mobile */
.team-card th:first-child,
.team-card td:first-child {
    width: 30%;
    min-width: 30%;
    max-width: 30%;
}

.team-card th:not(:first-child),
.team-card td:not(:first-child) {
    width: 14%;
    min-width: 14%;
    max-width: 14%;
}

/* Make sure team card tables use fixed layout */
.team-card table {
    width: 95%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Update ownership stats table to match */
.ownership-stats th:first-child,
.ownership-stats td:first-child {
    width: 70%;
    min-width: 70%;
    max-width: 70%;
}

.ownership-stats th:last-child,
.ownership-stats td:last-child {
    width: 30%;
    min-width: 30%;
    max-width: 30%;
}

.ownership-stats table {
    table-layout: fixed;
}
/* Update ownership stats header and table styles */
.ownership-stats h2 {
    text-align: center;
    padding: 1rem 0;
    width: 100%;
    margin: 0;
    border-radius: 12px 12px 0 0;
    font-size: 1.2vw;
}
.ownership-stats {
    width: 100% !important;
    max-width: 350px !important;
    margin: 0;
    padding: 0;
    position: relative;
}
/* Mobile styles */
@media (max-width: 768px) {
    /* Base mobile styles */
    body {
        width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    /* Update ownership stats header and table styles */
    .ownership-stats h2 {
        text-align: center;
        padding: 1rem 0;
        width: 100%;
        margin: 0;
        border-radius: 12px 12px 0 0;
        font-size: 3.2vw;
    }
    .container {
        width: 100vw;
        max-width: 100vw !important;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }

    /* Navbar mobile styles */
    .nav-bar {
        background-color: #006400;
        padding: 2px;
        display: flex;
        align-items: center;
        justify-content: flex;
        max-width: 100%;
        min-width: 100%;
        width: 100%;
        overflow: hidden;
    }

    .navbar-nav {
        gap: 4vw;
    }

    .navbar-nav .nav-item .nav-link {
        color: white;
        font-weight: bold;
        text-decoration: underline;
        text-transform: uppercase;
        font-size: 3.8em;
        padding: 2px 2px;
        white-space: nowrap;
        transition: color 0.3s;
        display: block;
    }

    .brand-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .title {
        font-size: 12.6em;
        color: white;
        display: inline-flex;
        align-items: center;
    }

    .subtitle {
        font-size: 5.0em;
        color: white;
        padding-left: 3vw;
        display: block;
        text-align: center;
        margin: 0;
    }

    /* Leaderboard container mobile styles */
    .leaderboard-container {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        margin: 0;
        padding: 0;
        gap: 0;
        grid-template-columns: 1fr;
        overflow-x: hidden;
    }

    /* Team card mobile styles - updated */
    .team-card {
        width: 100vw;
        margin: 0 auto;
        overflow: hidden;
    }

    /* Table sizing */
    .team-card table {
        width: 95%;
        table-layout: fixed;
    }

    /* Column widths that sum to 100% */
    .team-card th:first-child,
    .team-card td:first-child {
        width: 25%;
        min-width: 25%;
        max-width: 25%;
        padding: 2.5vw 0vw;
        text-align: left;
    }

    .team-card th:not(:first-child),
    .team-card td:not(:first-child) {
        width: 12%;
        min-width: 12%;
        max-width: 12%;
        padding: 2.5vw 0;
        text-align: center;
    }

    .team-card-header {
        font-size: 6vw;
        padding: 3vw;
    }

    /* Make first column header bigger */
    .team-card thead th:first-child {
        font-size: 2.5vw;
        padding: 2.5vw 3vw;
    }

    /* Other column headers */
    .team-card thead th:not(:first-child) {
        font-size: 1.8vw;
        padding: 2.5vw 0;
    }

    /* Make only first column text bigger */
    .team-card td:first-child {
        font-size: 3vw;
        padding: 2.5vw 0;
    }

    /* Keep other columns normal size */
    .team-card td:not(:first-child) {
        font-size: 3.0vw;
        padding: 0 0;
    }

    /* First column padding */
    .team-card th:first-child,
    .team-card td:first-child {
        padding: 2.5vw 3vw;
    }

    /* Remove horizontal padding from score columns */
    .team-card th:not(:first-child),
    .team-card td:not(:first-child) {
        padding: 2.5vw 0;
    }

    /* Ownership stats mobile styles */
    .ownership-stats {
        width: 80%;
        max-width: 80%;
        min-width: 80%;
        margin: 1rem auto;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background-color: white;
        padding: 0;
    }

    .ownership-stats .pagination-controls {
        border-radius: 0 0 12px 12px;
    }

    .ownership-stats table {
        width: 100%;
        table-layout: fixed;
    }

    .ownership-stats th:first-child,
    .ownership-stats td:first-child {
        width: 55%;
        min-width: 55%;
        max-width: 55%;
        padding: 1.5vw 1vw;
    }

    .ownership-stats th:last-child,
    .ownership-stats td:last-child {
        width: 25%;
        min-width: 25%;
        max-width: 25%;
        padding: 1.5vw 1vw;
        text-align: left;
    }

    /* Team card column widths for mobile */
    .team-card table {
        table-layout: fixed;
        width: 95%;
        margin: 0 auto;
    }

    .team-card th:first-child,
    .team-card td:first-child {
        width: 35%;
        min-width: 35%;
        max-width: 35%;
        padding: 2.5vw 3vw;
        text-align: left;
    }

    .team-card th:not(:first-child),
    .team-card td:not(:first-child) {
        width: 13%;
        min-width: 13%;
        max-width: 13%;
        padding: 2.5vw 0;
        text-align: center;
    }

    /* Make sure table uses these widths */
    .team-card table {
        table-layout: fixed;
        width: 95%;
    }
    .main-leaderboard th:first-child,
.main-leaderboard td:first-child {
    width: 35% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
    padding: 12px 8px;
    font-size: 2.3vw !important;
}

.main-leaderboard th:not(:first-child),
.main-leaderboard td:not(:first-child) {
    width: 13% !important;
    text-align: center !important;
    padding: 12px 4px;
    font-size: 2.4vw !important;
}
}

/* Responsive nav adjustments */
@media (max-width: 1025px) {
    .nav-bar {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .navbar-nav {
        justify-content: center;
        align-items: center;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .container {
        width: 100%;
        margin: 0px;
        padding: 0px;
    }



    .nav-bar {
        background-color: #006400;
        padding: 2px;
        display: flex;
        align-items: center;
        justify-content: flex;
        max-width: 100%;
        min-width: 100%;
        width: 100%;
        overflow: hidden;
    }
    
      /* Add hover effects to the empty matches */
      .navbar-nav .nav-item .nav-link {
        color: white;
        font-weight: bold;
        text-decoration: underline;
        text-transform: uppercase;
        font-size: 3.8em;
        padding: 2px 2px;
        white-space: nowrap; /* Prevents wrapping for nav links */
        transition: color 0.3s;
        display: block; /* Ensure nav-link behaves like a block element */
      }
      .navbar-nav {
        gap: 4vw;
      }

    .brand-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .title {
        font-size: 12.6em;
        display: inline-flex;
        align-items: center;
    }

    .subtitle {
        display: block;
        text-align: center;
        margin: 0px;
    }

    .navbar-brand {
        display: inline-block;
        align-items: center;
        text-align: center;
    }
}



/* Mobile styles */
@media (max-width: 768px) {
    #playerScoresContainer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
    }

    .team-card {
        width: 100vw;
        margin: 0;
    }

    .team-card-header {
        font-size: 5.5vw;
        padding: 3vw;
    }

    .team-card thead th {
        font-size: 4vw;
        padding: 2.5vw 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .team-card td {
        font-size: 4vw;
        padding: 2.5vw 0;
    }

    .team-card th:first-child,
    .team-card td:first-child {
        padding: 2.5vw 3vw;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .leaderboard-container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    /* Force container and body to respect viewport width */
    .nav-bar {
        background-color: #006400;
        padding: 2px;
        display: flex;
        align-items: center;
        justify-content: flex;
        max-width: 100%;
        min-width: 100%;
        width: 100%;
        overflow: hidden;
    }
    
      /* Add hover effects to the empty matches */
      .navbar-nav .nav-item .nav-link {
        color: white;
        font-weight: bold;
        text-decoration: underline;
        text-transform: uppercase;
        font-size: 3.8em;
        padding: 2px 2px;
        white-space: nowrap; /* Prevents wrapping for nav links */
        transition: color 0.3s;
        display: block; /* Ensure nav-link behaves like a block element */
      }
      .navbar-nav {
        gap: 4vw;
      }
      .title {
        font-size: 12.6em;
        color: white;
      }
      .subtitle {
        font-size: 5.0em;
        color: white;
        padding-left: 3vw;
      }
      .navbar-brand {
        flex-direction: column;
        justify-content: center;
        align-items: center;
      }
    body {
        width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    .container {
        width: 100vw;
        max-width: 100vw !important;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }

    /* Leaderboard container adjustments */
    .leaderboard-container {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        margin: 0;
        padding: 0;
        gap: 0;
        overflow-x: hidden;
    }
    .team-card {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        margin: 0;
        padding: 0;
        border-radius: 0;
        overflow-x: hidden;
    }
    /* Table containers */
    .main-leaderboard,
    .ownership-stats {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        margin: 0;
        padding: 0;
        border-radius: 0;
        overflow-x: hidden;
    }

    /* Table styling */
    .main-leaderboard table,
    .ownership-stats table,
    .team-card table {
        width: 95vw;
        min-width: 95vw;
        table-layout: fixed;
    }
    .team-card th {
        font-size: 2.2vw;
    }
    /* Header and cell sizes */
    .team-card th,
    .main-leaderboard th,
    .ownership-stats th {
        font-size: 3.2vw;
        padding: 2vw 0;
        text-align: center;
        margin: 0;
    }

    .team-card td,
    .main-leaderboard td,
    .ownership-stats td {
        padding: 0.5vw;
        font-size: 3.5vw;
    }

    /* Player scores container */
    #playerScoresContainer {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    /* Team cards in player scores */
    #playerScoresContainer .team-card {
        width: 100vw;
        margin: 2vw 0;
    }

    /* Headers */
    .team-card-header {
        width: 100vw;
        padding: 2vw;
        font-size: 3.2vw;
        text-align: center;
    }

    /* Pagination controls */
    .pagination-controls {
        width: 100vw;
        padding: 2vw;
    }

    .pagination-btn {
        padding: 1.5vw 3vw;
        font-size: 2.8vw;
    }

    #pageInfo {
        font-size: 2.8vw;
    }

    /* Adjust cell padding for better spacing */
    .main-leaderboard td:first-child {
        padding-left: 2vw;
    }

    /* Make sure the team name is still prominent but not too large */
    .team-name-link {
        font-size: 2.5vw;
    }

    /* Adjust cell padding for team name column */
    .main-leaderboard td:first-child,
    .team-card td:first-child,
    .ownership-stats td:first-child {
        padding: 1.5vw 1vw; /* Reduced horizontal padding */
    }

    /* Adjust header padding to match */
    .main-leaderboard th:first-child,
    .team-card th:first-child,
    .ownership-stats th:first-child {
        padding: 2vw 1vw; /* Reduced horizontal padding */
    }

    /* Make score columns more compact */
    .main-leaderboard td:not(:first-child),
    .team-card td:not(:first-child),
    .ownership-stats td:not(:first-child) {
        padding: 1.5vw 0.5vw; /* Even smaller padding for score columns */
    }

    .main-leaderboard th:not(:first-child),
    .team-card th:not(:first-child),
    .ownership-stats th:not(:first-child) {
        padding: 2vw 0.5vw; /* Even smaller padding for score headers */
    }

    /* Fixed column widths for mobile */
    .main-leaderboard th:first-child,
    .main-leaderboard td:first-child {
        width: 20%;
        min-width: 20%;
        max-width: 20%;
    }

    .main-leaderboard th:not(:first-child),
    .main-leaderboard td:not(:first-child) {
        width: 16%;
        min-width: 16%;
        max-width: 16%;
    }

    /* Make sure table uses these widths */
    .main-leaderboard table {
        table-layout: fixed;
        width: 100vw;
    }

    /* Update team card text sizes for mobile only */
    .team-card-header {
        font-size: 4vw;
    }

    .team-card th {
        font-size: 8.2vw;
        padding: 2vw 1vw;
        text-align: center;
    }

    .team-card td {
        font-size: 3.5vw;
        padding: 2vw 1vw;
    }

    .team-card td:first-child {
        text-align: left;
        padding-left: 2vw;
    }

    .team-card td:not(:first-child) {
        text-align: center;
    }
}



/* Add margins only for mobile screens */
@media (max-width: 768px) {
    .ownership-stats {
        width: 80%;
        max-width: 80%;
        min-width: 80%;
        margin: auto;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        margin-bottom: 1rem;
        background-color: white;
        padding: 0;
    }
    .container h1 {
        font-size: 5.5vw; 
        padding: 2vw;
        padding-top: 4vw;
    }

    /* Update the header to match the rounded corners */
    .ownership-stats h2 {
        border-radius: 12px 12px 0 0;
        padding: 1rem 0;
    }

    /* Update the pagination controls to match */
    .ownership-stats .pagination-controls {
        border-radius: 0 0 12px 12px;
    }
}


/* Update mobile styles for ownership table */
@media (max-width: 768px) {
    .ownership-stats table {
        width: 100%;
        table-layout: fixed;
    }

    /* Adjust column widths for mobile */
    .ownership-stats th:first-child,
    .ownership-stats td:first-child {
        width: 35%;
        min-width: 35%;
        max-width: 35%;
        padding: 1.5vw 1vw;
    }

    .ownership-stats th:last-child,
    .ownership-stats td:last-child {
        width: 20%;
        min-width: 20%;
        max-width: 20%;
        padding: 1.5vw 1vw;
        text-align: left;
    }

    /* Ensure text doesn't overflow */
    .ownership-stats td,
    .ownership-stats th {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


/* Mobile-specific font sizes */
@media (max-width: 768px) {
    .main-leaderboard td:first-child {
        font-size: 3.5vw !important;
    }
    
    .main-leaderboard td:not(:first-child) {
        font-size: 3.5vw !important;
    }
}


/* Critical mobile styles */
@media (max-width: 768px) {
    /* Base container constraints */
    body, html {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }

    /* Form Elements */
    label {
        font-size: 4vw !important;
        margin: 2vw 4vw !important;
        height: 5vw !important;
        max-height: 60px !important;
        width: 10vw !important;
        min-width: 10vw !important;
        max-width: 10vw !important;
    }

    label[for="email"],
    label[for="teamName"] {
        width: 20vw !important;
        min-width: 20vw !important;
        max-width: 20vw !important;
    }

    label[for="tiebreaker"] {
        width: 40vw !important;
        min-width: 40vw !important;
        max-width: 40vw !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    select, input {
        width: 55vw !important;
        max-width: 55vw !important;
        min-width: 55vw !important;
        height: 8vw !important;
        padding: 1vw 2vw !important;
        font-size: 3.5vw !important;
        margin: 1vw 0 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    input#tiebreaker {
        width: 20vw !important;
        font-size: 4.5vw !important;
    }

    /* Main leaderboard mobile adjustments */
    .leaderboard-container {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .main-leaderboard {
        max-width: 100% !important;
        font-size: 3.5vw !important;
    }

    .main-leaderboard th,
    .main-leaderboard td {
        padding: 8px 4px !important;
        font-size: 3.5vw !important;
    }

    /* Ownership stats mobile adjustments */
    .ownership-stats {
        max-width: 100% !important;
        margin-top: 20px !important;
    }

    .ownership-stats table {
        font-size: 3.5vw !important;
    }

    /* Pagination controls mobile */
    .pagination-controls {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        margin-top: 10px !important;
    }

    .pagination-btn {
        font-size: 4vw !important;
        padding: 5px 10px !important;
    }

    #pageInfo {
        font-size: 3.5vw !important;
    }

    /* Player scores container mobile */
    #playerScoresContainer {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin-top: 20px !important;
    }

    .player-scores-table {
        font-size: 3.5vw !important;
        width: 100% !important;
    }

    .player-scores-table th,
    .player-scores-table td {
        padding: 8px 4px !important;
        font-size: 3.5vw !important;
    }

    /* Help modal mobile adjustments */
    .modal-content {
        width: 95% !important;
        margin: 10px !important;
        padding: 15px !important;
    }

    .modal-content h2 {
        font-size: 5vw !important;
        margin-bottom: 4vw !important;
    }

    .modal-content p {
        font-size: 3.8vw !important;
        line-height: 1.4 !important;
    }

    .close-button {
        font-size: 7vw !important;
        right: 3vw !important;
        top: 1vw !important;
    }

    /* Grid system mobile overrides */
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        width: 100% !important;
        padding: 0 10px !important;
    }
}

/* Grid System */
.col-md-1 { width: 6% !important; }
.col-md-2 { width: 9% !important; }
.col-md-3 { width: 24% !important; }
.col-md-4 { width: 33.33% !important; }
.col-md-5 { width: 41% !important; }
.col-md-6 { width: 50% !important; }
.col-md-7 { width: 58.33% !important; }
.col-md-8 { width: 66.67% !important; }
.col-md-9 { width: 75% !important; }
.col-md-10 { width: 83.33% !important; }
.col-md-11 { width: 91.67% !important; }
.col-md-12 { width: 100% !important; }

/* Help Link Style */
.help-link {
    color: #006400 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
}

.help-link:hover {
    color: #004d00 !important;
}

/* Modal Styles */
.modal {
    display: none !important;
    position: fixed !important;
    z-index: 1000 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(3px) !important;
}

.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Highest possible team styles */
.highest-possible-div {
    width: 75%;
    margin: 1rem auto;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
    max-height: 300px;
    overflow: hidden;
}

.highest-possible-div h3 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
    background-color: #006400;
    padding: 0.75rem;
    border-radius: 1rem 1rem 0 0;
}

.highest-possible-content {
    display: flex;
    flex-wrap: wrap;
    column-gap: 2rem;
    color: black;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 1rem;
}

.highest-possible-content p {
    width: calc(50% - 1rem);
    margin: 0.25rem 0;
    padding: 0.25rem 0.5rem;
    color: #4a5568;  /* Gray text for all players on desktop */
}
.highest-possible-content p {
    background-color: #e5e7eb !important;
}


/* Mobile styles */
@media (max-width: 768px) {
    .highest-possible-content p:nth-child(odd) {
        background-color: #f3f4f6 !important;
    }
    .highest-possible-content p:nth-child(even) {
        background-color: #ffffff !important;
    }
    .highest-possible-div {
        width: 90%;
        max-height: none;
        padding: 0;
    }

    .highest-possible-div h3 {
        font-size: 4.5vw;
        margin-bottom: 0;
    }

    .highest-possible-content {
        flex-direction: column;
        font-size: 3.5vw;
    }

    .highest-possible-content p {
        width: 100%;
        margin: 0.25rem 0;
        color: black;  /* Reset to black for mobile */
    }

    .highest-possible-content p:nth-child(odd) {
        background-color: #f3f4f6;  /* Alternating backgrounds only on mobile */
    }
}


 