/* Base styles shared between pages */
body {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #333;
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}



.nav-links {
    text-align: center;
    margin-bottom: 30px;
}

.nav-links a {
    color: #ff4d4d;
    text-decoration: none;
    margin: 0 10px;
}

/* Common table styles */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 14px;
}

th {
    background-color: white;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 12px;
    text-align: center;
}

td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('../fonts/Proxima\ Nova/proximanova_regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('../fonts/Proxima\ Nova/proximanova_bold.otf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    color: #212529;
}

.subtitle {
    color: #666;
    font-size: 16px;
    margin: 8px 0 24px 0;
    line-height: 1.5;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* xRank table styles */
#xrankTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

#xrankTable th {
    padding: 12px 8px;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    color: #444;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

#xrankTable th:hover {
    background: #e9ecef;
}

#xrankTable td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

/* Position column */
#xrankTable th:first-child,
#xrankTable td:first-child {
    width: 50px;
    min-width: 50px;
    position: sticky;
    left: 0;
    background: white;
    z-index: 2;
}

/* Team column */
#xrankTable th:nth-child(2),
#xrankTable td:nth-child(2) {
    width: 200px;
    min-width: 200px;
    text-align: left;
    position: sticky;
    left: 50px;
    background: white;
    z-index: 1;
}

/* Other columns */
#xrankTable th:not(:first-child):not(:nth-child(2)),
#xrankTable td:not(:first-child):not(:nth-child(2)) {
    width: 60px;
    min-width: 60px;
}

/* Team cell with logo */
.team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* xRank column headers */
#xrankTable .column-header {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #666;
    border-bottom: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Add divider between actual and expected stats */
#xrankTable th:nth-child(11),
#xrankTable td:nth-child(11) {
    border-left: 2px solid #dee2e6;
} 

footer {
    text-align: center; /* Center the text inside the footer */
    margin: 0 auto; /* Center the footer itself horizontally */
    padding: 20px; /* Add some padding for better spacing */
    background-color: #f8f9fa; /* Optional: Add a background color */
    border-top: 1px solid #e9ecef; /* Optional: Add a border at the top */
}

footer p {
    margin: 0; /* Remove default margin for the paragraph */
}