﻿.button{margin-left:.5em;margin-bottom:10px;padding:10px 15px;background-color:#b84646;color:#fff;border:none;outline:none;cursor:pointer;border-radius:5px;font-size:smaller;display:inline-block;text-decoration:none}

input[type="checkbox" i]:disabled {
    visibility: hidden;
}
    .button-link {
        margin-left: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 5px;
        color: #1da2e7;
        border: none;
        outline: none;
        cursor: pointer;
        border-radius: 5px;
        font-size: smaller;
        display: inline-block;
        text-decoration: none;
        font-size: small
    }

    body {
        font-family: 'system-ui',sans-serif;
        margin: 0;
        background-color: #161b22;
        padding-left: 3px;
        padding-right: 3px;
    }

    .section-header {
        margin: 0 .25em .5em;
        border-bottom: 2px solid rgba(255, 255, 255, 0.14);
        font-weight: 600;
        font-size: .9em;
        box-sizing: border-box;
        padding: .5em 0;
        color: rgb(239, 215, 128,0.8);
        line-height: 20px;
    }

        .section-header span {
            margin-left: 0 !important;
            color: rgba(255, 255, 255, 0.40);
            font-size: smaller;
            float: right;
        }

     .section-header a {
        float: right;
    }

    /*.scrollable-content {
        overflow-y: auto;
        flex-grow: 1;
    }*/

    .accordion-item.my-team {
    }

        .accordion-item.my-team .my-team-badge {
            color: #F5BAA3;
            font-weight: 400;
            font-style: italic;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            pointer-events: none;
            text-transform: lowercase;
            white-space: nowrap;
            letter-spacing: 1px;
        }

    .my-team-placeholder .accordion-header::after {
        display: none !important;
    }

    .my-team-placeholder-badge {
        color: #ba6ae1 !important;
        font-style: normal !important;
    }

    .accordion-item.more-button {
        opacity: .6;
        background: transparent;
        border: solid 1px #30363d;
    }

        .accordion-item.more-button .accordion-header::after {
            display: none;
        }

        .accordion-item.more-button:hover {
            opacity: .9
        }

    .skeleton {
    }

        .skeleton::before {
            content: '';
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, #30363d 0%, #1b1e22 50%, #30363d 100%);
            animation: skeleton-loading 1.2s infinite linear;
            border-radius: 5px;
        }

    @keyframes skeleton-loading {
        0% {
            background-position: -200px 0;
        }

        100% {
            background-position: 200px 0;
        }
    }
    /* Combined from cricket.css for reference, but league.css has specifics */
    .accordion-header {
        padding-top: 7px !important;
        padding-bottom: 7px !important;
    }

        .accordion-header:hover, .accordion-header.active:hover {
            border-radius: 4px 4px 0 0;
            border-bottom: none;
        }

    #fantacy-league-main .accordion-item.active {
        background-color: #d0d0d030;
    }

    #fantacy-league-main .accordion-item {
        margin: 3px 0px;
        color: rgba(255, 255, 255, 0.92);
        line-height: 20px;
        background-color: transparent !important;
        border: transparent !important;
        border-bottom: solid 1px #30363d !important;
        border-radius: 0px !important;
    }

    .accordions-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .5em;
        width: 100%;
        box-sizing: border-box;
    }

    .accordion-header img {
        float: left;
        /* padding-top: 0px; */
        padding-right: 3px;
        opacity: 0.5;
    }

    .accordion-header::after {
        content: '❯'; /* Heavy right-pointing angle quotation mark ornament */
        position: absolute;
        right: 5px; /* Positioned to the left of teamrank */
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.2s ease-in-out;
        font-size: 1.1em; /* Arrow size */
        color: #938f8f; /* Arrow color */
    }

    .accordion-header.active::after {
        transform: translateY(-50%) rotate(90deg); /* Rotates to point downwards when active */
    }

    .accordion-header img {
        float: left;
        /* padding-top: 0px; */
        padding-right: 3px;
        opacity: 0.5;
    }

    .accordion-header .team-points-count,
    .accordion-header .today-score,
    .accordion-header .teamrank,
    .accordion-header .today-rank {
        pointer-events: none; /* Allows clicks to pass through to the header */
        opacity: 0.78;
    }

    .accordion-content pre {
        width: 100%;
        white-space: pre-wrap;
    }

    .accordion-content {
        padding: 10px 5px;
        transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
        overflow: hidden;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

        .accordion-content.active {
            max-height: 850px;
            padding-top: 10px;
            padding-bottom: 10px;
        }

        .accordion-content .canvas {
            margin-top: 20px
        }

    .today-rank {
        margin-left: 15px;
        line-height: 18px;
        font-weight: 600
    }

        .today-rank.positive {
            color: #08d708
        }

        .today-rank.nagetive {
            color: #ff8383 !important
        }

        .today-rank.final,
        .today-score.final {
            color: #B0B0B0 !important
        }

    .my-team-title-input {
        margin-right: 10px;
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        outline: none;
        font-size: 1em
    }

        .my-team-title-input:focus {
            border-color: #007bff;
            box-shadow: 0 0 0 2px #007bff40
        }

    .close-accordion-button, .save-to-server-button {
        cursor: pointer;
        transition: color .2s;
        border: solid 1px #3084ce;
        padding: 6px;
        border-radius: 15px;
        background: #f1d9d9;
        font-size: smaller;
        margin-top: 20px;
        color: #3084ce
    }

        .close-accordion-button:hover {
            color: #333
        }

    .add-accordion-button:hover {
        background-color: #218838
    }

    .player-score-table th, .player-score-table td:last-child {
        text-align: right;
        opacity: 0.78;
    }

    .captain-cell {
        font-weight: 700
    }

    .player-points-count {
        width: 30px;
        text-align: right;
        margin-left: 10px;
    }

    .today-score {
        /* font-family: 'Open Sans'; */
        display: inline-block;
        float: right;
        font-size: 10px;
        color: #08d708 !important;
        font-weight: 700;
        line-height: 20px;
        margin-right: 3px;
    }
    /* Combined from cricket.css for reference, but league.css has specifics */
    .teamrank {
        position: absolute;
        left: 4px;
        font-size: smaller;
        width: 15px;
        text-align: right;
        color: rgb(239, 215, 128, 0.8);
        opacity: 1 !important;
    }

    .player-score-table {
        width: calc(100% - 10px);
        margin: auto;
    }

        .player-score-table th, .player-score-table td {
            white-space: nowrap;
            padding: 3px 2px;
            border-bottom: 1px solid rgb(255,255,255,0.2) !important;
            font-size: 13px;
            text-align: left;
        }

            .player-score-table th, .player-score-table td:empty {
                width: 0;
                padding: 0
            }

    .section-header .number-cell {
        float: right;
        display: inline-block;
        width: 28px;
        font-size: smaller;
        color: rgb(255,255,255,0.68);
    }

    .number-cell {
        text-align: right !important;
        color: rgb(239, 215, 128,0.8);
        min-width: 25px;
    }

    .player-points-count, .team-points-count {
        display: inline-block;
        float: right;
    }

    .player-teamcode {
        float: right;
        color: rgb(155,155,155);
    }

    tr.scorecard.live {
    }

    tr.scorecard.removed-player {
        background: #fff !important
    }

    tr.scorecard.live td a {
        position: relative
    }

        tr.scorecard.live td a::after {
            content: '';
            position: absolute;
            top: 50%;
            right: -10px;
            transform: translateY(-50%);
            width: 6px;
            height: 6px;
            background-color: green;
            border-radius: 50%;
            animation: blink 2.5s infinite
        }

    tr.scorecard.removed-player td a::after {
        display: none !important
    }

    tr.scorecard.removed-player td {
        border-bottom: none !important;
        opacity: .65;
        background: #fff !important
    }

    .live-indicator-span {
        content: '';
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background-color: #00800091; /**#959695*/
        border-radius: 50%;
        /*animation: blink 1.5s infinite;*/
        margin-left: 3px;
        display: inline-block;
    }

    .tabs-header {
        display: flex;
        border-bottom: 2px solid #ccc;
    }

    .tab-button {
        background: none;
        border: none;
        padding: 0px;
        padding-right: 15px;
        width: 140px;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        padding-left: 0px;
        text-align: left;
        cursor: pointer;
        font-weight: normal;
    }

        .tab-button.active {
            font-weight: bold;
        }

    .tab-content {
        display: none;
    }

        .tab-content.active {
            display: block;
        }

    @keyframes blink {
        0%,100% {
            opacity: 1
        }

        50% {
            opacity: 0
        }
    }

    .my-team-widget-container #player-select-container {
        display: block;
        font-size: smaller;
    }

        .my-team-widget-container #player-select-container select,
        .my-team-widget-container #player-select-container input[type=text] {
            background: transparent;
            border-bottom: solid 1px rgba(255, 255, 255, 0.5) !important;
            /* color: #ccc; */
            /* border-radius: 15px; */
            border: none;
            /* margin-left: 29px; */
            padding: 4px 9px;
        }

    .my-team-player-checkbox-group {
        display: flex;
        flex-wrap: wrap;
    }

        .my-team-player-checkbox-group .player-checkbox-item {
            display: inline-flex;
            align-items: center;
            margin-right: 0;
            margin-bottom: 0;
            width: auto
        }

            .my-team-player-checkbox-group .player-checkbox-item input[type="checkbox"] {
                margin-right: 4px
            }

            .my-team-player-checkbox-group .player-checkbox-item label {
                margin-right: 0;
                font-weight: 400;
                color: #343a40;
                margin-bottom: 0
            }

    .captain-vice-captain-container {
        margin-top: 10px
    }

        .captain-vice-captain-container select {
            width: 100%;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 5px;
            margin-bottom: 10px
        }

.my-team-create-button {
    padding: 10px 15px;
    background-color: #6dad6e;
    color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color .3s;
    font-weight: 600
}

        .my-team-create-button:hover {
            background-color: #218838
        }

        .my-team-create-button:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }

    .manage-team-link {
        margin-top: 10px;
        padding: 5px 10px;
        display: block;
        text-align: center;
    }

    .error-message {
        color: red;
        margin-top: 10px
    }

    #upcoming-matches {
        font-size: small;
        padding: 10px
    }

    #live-matches {
        padding: .5em;
        margin-bottom: 0px !important;
        padding-bottom: 0px !important
    }

        #live-matches .day-panel {
            border: solid 1px red !important;
        }

        #live-matches:empty {
            display: none
        }

        #live-matches .match-container {
            padding-bottom: 1px !important;
        }

    #history-legends a {
        font-size: smaller;
        display: inline-block;
        padding: 3px 15px;
        margin: 3px;
        border-radius: 5px;
        text-decoration: none;
        color: #000
    }
    /* Combined from cricket.css for reference, but league.css has specifics */
    .scorecard a, .scorecard a:visited, .scorecard a:active {
        text-decoration: none !important;
        color: #1da2e7;
        display: inline-block;
    }

    .forecast-container {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        display: flex;
        gap: .5em;
        box-sizing: border-box;
        flex-wrap: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
        margin: 5px auto;
        min-height: 0 !important;
        border: none !important;
    }

        .forecast-container::-webkit-scrollbar {
            display: none
        }

    .day-panel {
        margin: auto;
        border: 1px solid #30363d;
        border-radius: 5px;
        display: inline-block;
        vertical-align: top;
        margin-bottom: 0;
        color: rgba(255,255,255,.64);
        margin-left: 0;
    }

    .panel-content {
        padding: 0
    }

    .match-container {
        line-height: 1.4;
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        width: auto;
        min-width: 320px;
        padding: 5px 10px 10px;
        border-radius: 5px;
        text-decoration: none;
        color: inherit;
        text-align: center;
    }

    .date {
        font-size: small;
        margin-bottom: .3em;
        height: 19px;
    }

    .team-name {
        word-wrap: break-word;
        font-weight: 600;
        max-width: 100%;
        text-align: left;
        font-size: smaller
    }

    .matchstatus {
        color: rgb(101, 100, 100);
        font-size: 12px;
        font-style: italic;
        float: right;
        line-height: 18px;
        display: inline-block;
        white-space: pre-line;
    }

    .loading-indicator {
        background-color: transparent;
        color: #000;
        padding: 0;
        border-radius: 0;
        z-index: 1000;
        display: none;
        align-items: center
    }

        .loading-indicator.show {
            display: flex
        }

    .spinner {
        border: 4px solid #0000004d;
        border-top: 4px solid #000;
        border-radius: 50%;
        width: 10px;
        height: 10px;
        animation: spin 1.2s linear infinite;
        margin-bottom: 0;
        margin-right: 5px
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg)
        }

        100% {
            transform: rotate(360deg)
        }
    }

    .csk {
        background: linear-gradient(to right,#0069ff,#FFD700,#b0ae2c);
        -webkit-background-clip: text;
        color: transparent;
        text-decoration: none
    }

    .mi {
        background-image: linear-gradient(to right,#005DAA,#00C0F5);
        -webkit-background-clip: text;
        color: transparent;
        text-decoration: none
    }

    .rr {
        background-image: linear-gradient(to right,#EC4899,#FF66C4);
        -webkit-background-clip: text;
        color: transparent;
        text-decoration: none
    }

    .rcb {
        background-image: linear-gradient(to bottom,#0e0d0de8,#e20c0c);
        -webkit-background-clip: text;
        color: transparent;
        text-decoration: none
    }

    .kkr {
        background-image: linear-gradient(to right,#3A045C,#FFD700,#FFD700);
        -webkit-background-clip: text;
        color: transparent;
        text-decoration: none
    }

    .srh {
        background-image: linear-gradient(to bottom,#f95302,#f95302,#302c2c);
        -webkit-background-clip: text;
        color: transparent
    }

    .gt {
        background-image: linear-gradient(to right, #2b2d31, #494b54, #a9a9a7);
        -webkit-background-clip: text;
        color: transparent
    }

    .dc {
        background-image: linear-gradient(to right,#3065cd,#102754,#3065cd);
        -webkit-background-clip: text;
        color: transparent;
        text-decoration: none
    }

    .pbks {
        background-image: linear-gradient(to right,#ca0000,#a08d2a);
        -webkit-background-clip: text;
        color: transparent;
        text-decoration: none
    }

    .lsg {
        background: linear-gradient(to right,#fa8f70,#8be24c,#00A650);
        -webkit-background-clip: text;
        color: transparent;
        text-decoration: none
    }

    .csk-border {
        border: 1px solid transparent; /* Adjust width as needed */
        border-image-source: linear-gradient(to right, #0069ff, #FFD700, #b0ae2c);
        border-image-slice: 1;
        /* Add other styles like padding, background etc. */
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px;
    }

    .mi-border {
        border: 1px solid transparent;
        border-image-source: linear-gradient(to right, #005DAA, #00C0F5);
        border-image-slice: 1;
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px;
    }

    .rr-border {
        border: 1px solid transparent;
        border-image-source: linear-gradient(to right, #EC4899, #FF66C4);
        border-image-slice: 1;
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px;
    }

    .rcb-border {
        border: 1px solid transparent;
        border-image-source: linear-gradient(to bottom,#0e0d0de8,#e20c0c);
        border-image-slice: 1;
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px;
    }

    .kkr-border {
        border: 1px solid transparent;
        border-image-source: linear-gradient(to right,#3A045C,#FFD700,#FFD700);
        border-image-slice: 1;
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px;
    }

    .srh-border {
        border: 1px solid transparent;
        border-image-source: linear-gradient(to bottom,#f95302,#f95302,#302c2c);
        border-image-slice: 1;
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px;
    }

    .gt-border {
        border: 1px solid transparent;
        /* Using the gradient from league.css */
        border-image-source: linear-gradient(to right,#464749,#494b54,#a9a9a7);
        border-image-slice: 1;
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px !important;
    }

    .dc-border {
        border: 1px solid transparent;
        border-image-source: linear-gradient(to right,#3065cd,#102754,#3065cd);
        border-image-slice: 1;
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px !important;
    }

    .pbks-border {
        border: 1px solid transparent;
        border-image-source: linear-gradient(to right,#ca0000,#a08d2a);
        border-image-slice: 1;
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px !important;
    }

    .lsg-border {
        border: 1px solid transparent;
        border-image-source: linear-gradient(to right,#fa8f70,#8be24c,#00A650);
        border-image-slice: 1;
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px;
    }

    .header-links span {
        margin: 0;
        font-size: smaller;
        line-height: 1.5
    }

    .header-links a {
        color: #1da2e7;
        text-decoration: underline;
        font-size: smaller
    }

        .header-links a:hover {
            color: #ddd
        }

    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: #0009
    }

    .modal-header {
        padding: 10px 15px;
        color: #fff;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px
    }

        .modal-header h4 {
            margin: 0;
            font-size: 1.1em
        }

    .close-modal-button {
        color: #fff;
        font-size: 28px;
        font-weight: 700;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0 5px;
        line-height: 1
    }

        .close-modal-button:hover, .close-modal-button:focus {
            color: #ccc;
            text-decoration: none
        }

    .header-link-button {
        background: none;
        border: none;
        color: #fff;
        text-decoration: underline;
        cursor: pointer;
        font-size: 1em;
        padding: 0;
        margin: 0
    }

        .header-link-button:hover {
            color: #ddd
        }
    /* Media queries and header styles are in cricket.css */
    @media (min-width:768px) {
        .accordions-wrapper {
            display: grid;
            grid-template-columns: repeat(2,1fr);
            gap: .5em;
            align-items: start;
            padding: .5em
        }

        .accordion-container {
            max-width: none
        }
    }

    @media (min-width:1200px) {
        .accordions-wrapper {
            grid-template-columns: repeat(3,1fr);
            gap: 25px;
            padding: 20px
        }
    }

    .accordions-wrapper.recent-matches {
        grid-template-columns: repeat(1,1fr) !important;
    }
    /*#series-points .accordion-item {
    background-color: #e6c2a526 !important;
}
*/
    #series-points .accordion-item.eliminated {
        opacity: .5;
        background-color: transparent;
    }

    #series-points .accordion-header {
        font-size: 13px;
        padding: 8px 22px 8px 20px;
    }

    #series-points .teamrank {
        left: 0px !important;
        width: 15px;
        text-align: right;
        line-height: 17px;
    }

    #series-points .MatchesPlayed,
    #series-points .MatchesLost,
    #series-points .MatchesWon,
    #series-points .NRR {
        font-weight: normal;
        font-size: 10px;
        line-height: 19px;
        width: 29px !important;
        color: rgb(121 245 102) !important;
    }

    #series-points .NRR {
        width: 40px !important;
    }

    #series-points .MatchesPlayed {
        color: rgb(255,255,255,0.68) !important
    }

    #series-points .MatchesLost {
        color: red !important;
        opacity: .6
    }

    #series-points .accordion-header .team-points-count {
        display: inline-block;
        width: 35px;
        text-align: right;
    }



    .chips-container .player-chip {
        background-color: #d0d0d030;
        padding: 5px 5px;
        cursor: pointer;
        font-size: 12px;
        color: #1da2e7;
        width: calc(100% - 10px);
        border-bottom: 1px solid rgb(255, 255, 255, 0.2) !important;
    }

        .chips-container .player-chip .role-span {
            font-size: 0.85em;
            opacity: 0.8;
            margin-left: 4px;
            color: rgb(204, 204, 204);
            position: absolute;
            right: 135px;
        }

    .player-chip .remove-chip-button {
        color: red;
        margin-right: 5px;
        float: right;
        border: solid 1px red;
        padding: 0px 5px;
        border-radius: 11px;
    }

    .my-team-captain-select, 
    .my-team-vice-captain-select,
    .my-team-winning-team-select{
        padding: 4px;
    }

    .manage-teams-link {
        font-size: smaller;
    }

    .player-chip-placeholder {
    }

    .remove-chip-button {
        color: red;
        font-weight: bold;
        font-size: 1.1em;
        padding: 0 5px;
        border-radius: 50%;
    }

    .pagination-container {
        text-align: right;
        padding: 8px 0;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }

    .page-link {
        color: #1da2e7;
        padding: 2px 8px;
        text-decoration: none;
        margin: 0 4px;
        border-radius: 4px;
        font-size: 13px;
        border: 1px solid transparent;
    }

        .page-link:hover {
            background-color: #30363d;
            border-color: #444c56;
        }

        .page-link.disabled {
            color: #555;
            pointer-events: none;
            cursor: default;
            visibility: hidden;
        }

    .page-info {
        color: rgba(255, 255, 255, 0.6);
        font-size: 13px;
    }
    /* --- Player Selection Modal --- */
    .my-team-player-selection-modal {
        display: none; /* Hidden by default */
        position: absolute; /* Changed from fixed to be relative to #series-points */
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        font-size: small;
    }

        .my-team-player-selection-modal .modal-content {
            background-color: #2d333b;
            padding: 5px;
            border: 1px solid #444c56;
            width: calc(100% - 11px);
            border-radius: 8px;
            position: relative;
            display: flex;
            flex-direction: column;
            margin: 5px auto;
            height: calc(100% - 22px);
        }

            .my-team-player-selection-modal .modal-content .my-team-modal-close-button {
                color: #1da2e7;
                /* position: absolute; */
                top: 10px;
                right: 20px;
                /* font-size: 28px; */
                /* font-weight: bold; */
                cursor: pointer;
                text-align: right;
                margin-right: 7px;
            }

                .my-team-player-selection-modal .modal-content .my-team-modal-close-button:hover,
                .my-team-player-selection-modal .modal-content .my-team-modal-close-button:focus {
                    color: white;
                }

        .my-team-player-selection-modal .modal-tab-container {
            border-bottom: 1px solid #444c56;
            margin-bottom: 10px;
            flex-shrink: 0;
            padding-top: 10px;
        }

        .my-team-player-selection-modal .modal-tab-button {
            background-color: #22272e;
            color: #c9d1d9;
            border: 1px solid #444c56;
            border-bottom: none;
            padding: 5px 10px;
            cursor: pointer;
            transition: background-color 0.3s;
            border-radius: 4px 4px 0 0;
            margin-right: 2px;
            font-size: small !important;
        }

            .my-team-player-selection-modal .modal-tab-button:hover {
                background-color: #373e47;
            }

            .my-team-player-selection-modal .modal-tab-button.active {
                background-color: #2d333b;
                border-bottom: 1px solid #2d333b;
                position: relative;
                top: 1px;
            }

        .my-team-player-selection-modal .modal-tab-content-container {
            overflow-y: auto; /* Make this container scrollable */
        }

        .my-team-player-selection-modal .modal-tab-content {
            display: none;
        }

        .my-team-player-selection-modal .modal-player-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 7px;
        }

        .my-team-player-selection-modal .modal-player-item {
            display: flex;
            align-items: center;
        }

            .my-team-player-selection-modal .modal-player-item label {
                margin-left: 6px;
                cursor: pointer;
                color: #c9d1d9;
            }
    /* Styles for the new login modal overlay */
    .login-modal-overlay {
        display: none; /* Hidden by default */
        position: fixed; /* Stay in place */
        z-index: 2000; /* Sit on top of other content */
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto; /* Enable scroll if needed */
        background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .login-modal-overlay .modal-content {
            position: relative;
            background-color: #fff;
            margin: auto;
            padding: 0;
            border: 1px solid #888;
            width: 90%;
            max-width: 450px;
            box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
            border-radius: 8px;
            overflow: hidden; /* Ensures the iframe corners are rounded */
        }
    /* This class can be used on a button inside the login iframe to close it */
    .notifyParentAndClose {
    }

    .login-container {
        position: relative;
        max-width: 400px;
        margin: 30px auto;
        padding: 20px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        text-align: center;
    }

        .login-container h2 {
            margin-bottom: 20px;
            color: #333;
        }

        .login-container .form-group {
            margin-bottom: 15px;
            text-align: left;
        }

        .login-container label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: #555;
        }

        .login-container input[type="email"],
        .login-container input[type="text"],
        .login-container input[type="number"] {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }

        .login-container .button {
            padding: 10px 20px;
            background-color: #314466;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1em;
            margin-top: 10px;
            width: 100%;
            box-sizing: border-box;
        }

            .login-container .button:hover {
                background-color: #455a8a;
            }

        .login-container .message {
            margin-top: 15px;
            padding: 10px;
            border-radius: 4px;
        }

            .login-container .message.success {
                background-color: #d4edda;
                color: #155724;
                border: 1px solid #c3e6cb;
            }

            .login-container .message.error {
                background-color: #f8d7da;
                color: #721c24;
                border: 1px solid #f5c6cb;
            }

    .error-message {
        font-size: 0.9em;
        margin-top: 3px;
    }
    /* Style for validator messages */
    /*New css added for combining first name and last name initial*/
    .name-container {
        display: flex;
        gap: 10px;
    }

        .name-container .form-group {
            flex: 1;
        }
    /* Styles for the login modal */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        display: none; /* Hidden by default */
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

        .modal-overlay.show {
            display: flex;
        }

    .modal-close-button {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
        font-weight: bold;
        color: #888;
        cursor: pointer;
    }

    .recent-matches .match-container {
        border: 1px solid transparent; /* Reserve space for the border to prevent layout shift */
    }
    /*.recent-matches .match-container.active-match {
            border-color: #007bff;*/ /* A distinct highlight color */
    /*box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
        }*/