/* static/css/style.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

nav {
    background-color: #333;
    padding: 1em;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 1em;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

.content {
    padding: 20px 5%;
    max-width: 90%;
    margin: 0 auto;
}

table {
	table-layout: fixed;
    width: 75%;
	margin: 0 auto;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center; /* Changed from left to center */
    vertical-align: middle;
}

th {
    background-color: #f2f2f2;
    width: 33.33%; /* Equal column widths for index tables */
	overflow: hidden;
    white-space: nowrap;
}

td {
    width: 33.33%; /* Equal column widths for index tables */
    white-space: nowrap;
	overflow: hidden;
}

/* Specific styling for index tables to ensure alignment */
#index-table-cup th,
#index-table-cup td,
#index-table-xfinity th,
#index-table-xfinity td,
#index-table-trucks th,
#index-table-trucks td {
    width: 33.33%;
}

/* Styling for series-year and race-details tables */
#series-table th,
#series-table td,
#race-table th,
#race-table td {
    width: 14.28%; /* Approximately equal width for 7 columns */
    white-space: nowrap;
}

/* Centered headers */
.center-header {
    text-align: center;
}

.center-header p {
    text-align: center;
}

/* Navigation links styling */
.nav-links {
    text-align: center;
    margin-bottom: 10px;
}

.nav-links a {
    margin-right: 50%;
}

.nav-links a:last-child {
    margin-right: 0;
}

/* Hover effects */
tr:hover {
    background-color: #f5f5f5;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media screen and (max-width: 600px) {
    th, td {
        font-size: 12px;
        padding: 4px;
    }
    .content {
        padding: 10px 2%;
        max-width: 96%;
    }
    table {
        font-size: 12px;
    }
}