.profile-thumbnail {
    position: absolute;
}
.profile-header {
    min-height: 260px;
    margin-left: 280px;
}
div.post-tabs {
    margin-top: 16px;
}
ul.posts {
    list-style-type: none;
    padding: 0px;
    margin: 16px 0px 0px 0px;
    border-top: 1px solid #e0e0e0;
}
div.post-tabs ul.posts {
    margin: 0px;
    border-top: none;
}
ul.posts li.post {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
}
ul.posts li.post:hover {
    background-color: #f0f0f0;
}
div.post-date {
    float: right;
}
div.post-author {
    font-weight: bold;
}
div.post-thumbnail {
    position: absolute;
}
div.post-content {
    margin-left: 48px;
    min-height: 48px;
}
div.post-footer {
    text-align: right;
}
ul.comments {
    list-style-type: none;
    padding: 0px;
    margin: 16px 0px 0px 0px;
}
ul.comments li.comment {
    margin-left: 32px;
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
}
ul.comments li.comment:nth-child(1) {
    border-top: 1px solid #e0e0e0;
}
ul.comments li.comment:hover {
    background-color: #f0f0f0;
}
div.comment-date {
    float: right;
}
div.comment-author {
    font-weight: bold;
}
div.comment-thumbnail {
    position: absolute;
}
div.comment-content {
    margin-left: 48px;
    min-height: 48px;
}
div.comment-form {
    margin: 16px 0px 16px 32px;
}
div.pagination {
    width: 100%;
    text-align: right;
    padding: 0px;
    margin: 0px;
}
div.flask-pagedown-preview {
    margin: 10px 0px 10px 0px;
    border: 1px solid #e0e0e0;
    padding: 4px;
}
div.flask-pagedown-preview h1 {
    font-size: 140%;
}
div.flask-pagedown-preview h2 {
    font-size: 130%;
}
div.flask-pagedown-preview h3 {
    font-size: 120%;
}
.post-body h1 {
    font-size: 140%;
}
.post-body h2 {
    font-size: 130%;
}
.post-body h3 {
    font-size: 120%;
}
.table.followers tr {
    border-bottom: 1px solid #e0e0e0;
}
.form-group {
    margin-bottom: 1rem;
}

.form-control-label {
    margin-bottom: 0.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1.5rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/*
.form-select {
    margin-left: auto;
    margin-right: auto;
    display: block; /* Allows for margin auto to work */
    width: 50%; 
    font-size: 1.5rem;
}
*/

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    margin-top: 1rem;
}

div.team-tabs {
    margin-top: 64px;
}


.vs-text {
    font-size: 24px;
    text-align: center;
    margin: 12px 0;
}

/* ── Game setup cards & chips ──────────────────────────── */
.setup-team-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-left: 5px solid #ddd;
}
.setup-team-card.team-a { border-left-color: #337ab7; }
.setup-team-card.team-b { border-left-color: #d9534f; }
.setup-team-label {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #999; margin-bottom: 8px;
}
.setup-chips {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.setup-chip { font-size: 0.8rem !important; }
.setup-ondeck-card {
    display: flex; align-items: center; justify-content: space-between;
    border: 1px solid #e0e0e0; border-radius: 6px;
    padding: 10px 14px; margin-bottom: 8px;
    background: #fff;
}

  .team-score {
    font-size: 2rem;
    color: #007bff; /* Bootstrap primary color */
    margin-bottom: 0;
    font-weight: bold;
}

.game-container {
    padding: 15px;
    border-bottom: 2px solid #dee2e6; /* Adds a bottom border to each game container */
}

.in-progress-game-container {
    padding: 15px;
    border: 2px solid #e6e310; /* Adds a bottom border to each game container */
}

.team-name {
    font-size: 2rem;
    font-weight: bold;
    margin: 0; /* Reduces spacing to keep elements tight */
    align-items: center;
}

.vs-text-box-score {
    font-size: 1.25rem;
    margin: 10px;
    color: #555;
}

.score {
    font-size: 2rem;
    color: #007bff; /* Bootstrap primary color */
}

.rematch-link a {
    color: #007bff; /* Ensures the rematch link is noticeable */
}

.date-info {
    font-size: 1rem;
    color: #666;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.row {
    margin-top: 0px;
    border-bottom: none;
    padding-bottom: 0px;
}
     .player-header {
    text-align: center;
    background-color: #f8f9fa; /* Light grey background */
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* subtle shadow */
    color: #333; /* Dark text for better readability */
    font-family: Arial, sans-serif; /* Font style */
}
        .svg-icon {
        cursor: pointer;
        width: 36px; /* Set consistent size for all icons */
        height: 36px;
        transition: fill 0.3s ease;
    }
    .horseshoe {
        cursor: pointer;
        fill: grey; /* Default color for SVG */
        width: 32px; /* Set the size of the horseshoes */
        height: auto;
        transition: fill 0.3s ease;
    }
    .horseshoe-sm {
        padding-top: 4px;
        fill: grey; /* Default color for SVG */
        width: 16px; /* Set the size of the horseshoes */
        height: auto;
        transition: fill 0.3s ease;
    }
  .horseshoe.selected {
      fill: gold; /* Selected color */
  }
  .leaner {
    cursor: pointer;
    fill: grey;
    stroke: grey;
  }
    .leaner.selected {
      fill: #0693e3;
      stroke: #0693e3;
    }
  .score-display {
    font-size: 1.5rem;
    margin-top: 20px;
}
  .reset-button {
        font-size: 1rem;
        margin-top: 20px;
    }
    .icon-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around; /* Centers items with space around them */
        margin-bottom: 20px;
    }
    .score-and-reset {
      display: flex;
      justify-content: space-between; /* This will push the child elements to the left and right */
      align-items: center; /* This will vertically center-align the child elements */
      margin-top: 20px; /* Optional: Adds space above the container */
  }
  .hidden {
        display: none;
  }

  .tt-menu {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    margin-top: 2px;
    max-height: 250px;
    min-width: 220px; /* You can adjust this value as needed */
    max-width: none; /* Remove the maximum width limit */
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
}

.tt-suggestion {
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    cursor: pointer;
}

.tt-suggestion:hover {
    background-color: #f5f5f5;
    color: #262626;
}

.tt-suggestion.tt-cursor {
    background-color: #0097cf;
    color: #ffffff;
}

.tt-suggestion p {
    margin: 0;
}

.sortable {
    cursor: pointer;
    text-decoration: underline;
    color: blue;
}

.sortable:hover {
    text-decoration: none;
}

.checkin-btn {
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 8px 0;
    display: inline-block;
}

.checkin-btn:not(.checked-in) {
    background-color: #5cb85c;
}

.checkin-btn:not(.checked-in):hover {
    background-color: #449d44;
}

.checkin-btn.checked-in {
    background-color: #d9534f;
}

.checkin-btn.checked-in:hover {
    background-color: #c9302c;
}

.player-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-left: 5px solid #ddd;
}
.player-card.team-a {
    border-left-color: #337ab7;
}
.player-card.team-b {
    border-left-color: #d9534f;
}
.player-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.player-card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}
.score-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
    margin-top: 8px;
    margin-bottom: 20px;
    background: #fafafa;
}
.score-input-label {
    font-weight: bold;
    text-align: center;
    margin-bottom: 4px;
}
/* System font stack */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Score page icons */
.horseshoe {
    width: 40px;
    height: auto;
}
.leaner {
    width: 32px;
    height: 32px;
}

/* ── Game card ─────────────────────────────────────── */
.game-card {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #ccc;
    border-radius: 6px;
    padding: 14px 16px 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.game-card-live {
    border-left-color: #f0ad4e;
}
.game-card-admin {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}
.gc-live-badge {
    font-size: 15px;
    letter-spacing: .04em;
}
.gc-matchup {
    margin-bottom: 4px;
}
.gc-team-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.2;
}
.gc-score {
    font-size: 2.125rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}
.gc-score-win  { color: #3c763d; }
.gc-score-loss { color: #aaa; }
.gc-winner-check {
    font-size: 15px;
    color: #3c763d;
    font-weight: 600;
    margin-top: 2px;
}
.gc-vs {
    font-size: 1.1rem;
    font-weight: 600;
    color: #aaa;
    padding-top: 10px;
    letter-spacing: .05em;
}
.gc-stats-row {
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    margin-top: 8px;
    overflow: hidden;
}
.gc-stat-player {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 6px;
    font-size: 1.2rem;
    color: #555;
}
.gc-stat-player-r {
    display: block;
    text-align: right;
    width: 100%;
}
.gc-stat-player-r .gc-stat-icons {
    justify-content: flex-end;
}
.gc-stat-icons {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}
.gc-stat-name {
    font-weight: 600;
}
.gc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    margin-top: 8px;
}
.gc-championship-banner {
    background: #fef9e7;
    color: #8a6d3b;
    font-size: 1.0rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 5px 8px;
    margin: -14px -16px 12px;
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid #f0ad4e;
}
.gc-rematch-btn {
    font-size: 15px;
}
.gc-date {
    font-size: 1.03rem;
    color: #999;
}

/* Stats row icons */
.horseshoe-sm {
    fill: #d4a800;
    width: 20px;
    height: auto;
    vertical-align: middle;
}
.leaner-sm {
    fill: #0693e3;
    stroke: #0693e3;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}
.sixpack-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f0b429;
    border: 2px solid #c97d10;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    vertical-align: middle;
}

/* ── Leaderboard cards ─────────────────────────────── */
.ldb-meta {
    font-size: 1.05rem;
    color: #999;
    margin-bottom: 10px;
}
.ldb-card {
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #fff;
}
.ldb-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #999;
    margin-bottom: 8px;
}
.ldb-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 1.3rem;
}
.ldb-row:last-child { border-bottom: none; }
.ldb-rank {
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}
.ldb-name {
    flex: 1;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ldb-name:hover { color: #337ab7; }
.ldb-stat {
    font-weight: 700;
    color: #333;
    font-size: 1.35rem;
}
.ldb-empty {
    font-size: 1.2rem;
    color: #ccc;
    padding: 4px 0;
}
.ldb-checkin-badge {
    font-size: 13px;
    padding: 4px 8px;
    vertical-align: middle;
    text-decoration: none;
}

/* ── Badge cards ────────────────────────────────────── */
.badge-section { margin: 16px 0 8px; }
.badge-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 10px;
}
.badge-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    text-align: center;
}
.badge-icon { width: 56px; height: 56px; }
.badge-label {
    font-size: 0.975rem;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
    line-height: 1.2;
}
.badge-year-group { margin-bottom: 16px; }
.badge-year-heading {
    font-size: 0.905rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

/* ── Game result badge display ──────────────────────── */
.badge-result-team {
    font-size: 1rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 16px 0 6px;
}
.badge-result-player {
    margin-bottom: 14px;
    padding-left: 8px;
}
.badge-result-player-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.badge-result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.badge-result-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.badge-result-info {
    display: flex;
    flex-direction: column;
}
.badge-result-name {
    font-size: 1.225rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}
.badge-result-desc {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.3;
    margin-top: 2px;
}

/* ── Badge guide page ───────────────────────────────── */
.badge-guide-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    text-align: center;
    padding: 8px 4px;
}
.badge-guide-icon { width: 64px; height: 64px; margin-bottom: 6px; }
.badge-guide-name {
    font-size: 0.975rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 4px;
}
.badge-guide-desc {
    font-size: 0.905rem;
    color: #666;
    line-height: 1.3;
    margin-bottom: 4px;
}
.badge-guide-tier {
    font-size: 0.845rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── Year navigation pills ─────────────────────────────── */
.year-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 20px; }
.year-pill {
    padding: 5px 13px; border-radius: 20px; font-size: 1.025rem; font-weight: 600;
    border: 1px solid #ddd; color: #555; text-decoration: none; background: #fff;
    transition: background 0.15s, color 0.15s;
}
.year-pill:hover { background: #f5f5f5; color: #333; text-decoration: none; }
.year-pill.year-pill-active { background: #333; color: #fff; border-color: #333; }

/* ── Section title ─────────────────────────────────────── */
.section-title {
    font-size: 1.0rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #999; margin: 24px 0 12px;
    padding-bottom: 8px; border-bottom: 2px solid #f0f0f0;
}

/* ── Standings table ───────────────────────────────────── */
.standings-table { font-size: 1.175rem; }
.standings-table thead th {
    font-size: 0.925rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: #888; background: #fafafa;
    padding: 8px 10px; border-bottom: 2px solid #e0e0e0 !important;
    vertical-align: middle;
}
.standings-table tbody td { padding: 10px 10px; vertical-align: middle; }
.standings-table tbody tr:hover { background: #f9f9f9; }
.standings-table .td-name { font-size: 1.225rem; font-weight: 600; }
.standings-table .td-pct { font-weight: 700; }
.standings-table .tr-summary td { background: #f7f7f7; font-weight: 600; }
.standings-table .tr-career td { background: #f2f2f2; font-weight: 700; }

/* ── Submit spinner ────────────────────────────────────── */
.spinning { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Profile hero ──────────────────────────────────────── */
.profile-hero {
    background: #fff; border: 1px solid #e0e0e0; border-left: 4px solid #ccc;
    border-radius: 6px; padding: 16px 20px; margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.profile-hero-name { font-size: 1.725rem; font-weight: 700; margin: 0 0 4px; color: #222; }
.profile-hero-meta { font-size: 1.125rem; color: #888; }