body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #f5f5f5;
}

.site-banner {
    max-width: 940px;
    margin: 0 auto 5px auto;
    border-bottom: 1px solid #2d2d2d; /* divider line */
    padding-bottom: 10px;             /* spacing above divider */
}

.site-banner img {
    width: 100%;      /* scale to the banner container */
    height: auto;     /* keep aspect ratio */
    display: block;   /* remove inline spacing */
    border-radius: 8px; /* optional, matches your style */
    border: 1px solid #2d2d2d;
}

.container {
    max-width: 900px;
    margin: 10px auto;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

a {
    color: #4da3ff;
}

a:hover {
    color: #82c4ff;
}

table {
    border-collapse: collapse;
    margin: 20px auto;
    background-color: #181818;
}

th, td {
    padding: 8px 10px;
    border-bottom: 1px solid #333;
    text-align: center;
    white-space: nowrap;
}

th {
    background-color: #222;
    font-weight: bold;
}

label {
    margin-right: 5px;
}

select {
    background-color: #1e1e1e;
    color: #f5f5f5;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 8px;
}

.nav-card {
    display: block;
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
    background: #2f2f2f;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #4da3ff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
    transition: 0.2s;
}

.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.8);
}

.subtitle {
    text-align: center;
    color: #bbbbbb;
    margin-top: -10px;
}

/* Loading animation */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    color: #bbbbbb;
    font-size: 0.95rem;
}

.loader-spinner {
    border: 4px solid #333;
    border-top: 4px solid #4da3ff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

/* Summary box */
.summary-box {
    margin-top: 20px;
    padding: 16px;
    background-color: #262238;
    border-radius: 10px;
    border: 1px solid #3b4a5a;
    font-size: 0.95rem;
}

.summary-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-align: center;
}

.summary-item {
    margin: 4px 0;
}

/* Predicted winner highlight */
.predicted-winner-cell {
    font-weight: bold;
    background-color: #24313f;
}

/* Center CSV-rendered prediction tables WITHOUT clipping */
.prediction-wrapper {
    width: 100%;
    overflow-x: auto;
    text-align: center;
}

.prediction-wrapper table {
    display: inline-block;
    margin: 0 auto;
    width: auto;
    max-width: none;
}

/* Download button */
.download-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background-color: #2b5fb8;
    color: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

.download-btn:hover {
    background-color: #3c74d4;
}

/* Chart container */
.chart-container {
    margin-top: 30px;
    background-color: #181818;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #333;
}