:root {
    --wagerGreen: #1cad75;
    --backColour: #191919;
    --tabColour: #262626;
    --textColour: #f1f1f1;
    --highlight: #1cad75;
    --borderColour: #333333;
    --boxShadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    --gold: rgb(180, 140, 58);
}

.baseholder {
    background-color: var(--backColour);
    color: white;
}

.header-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

.main-container {
    font-family: 'poppins', sans-serif !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.body-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
}

.banner-image-container {
    margin-top: 25px;
    margin-bottom: 20px;
}

.banner-image {
    width: 900px;
    border-radius: 5px;
}

.game-schedule-container {
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.game-schedule-inner-container {
    display: flex;
    flex-direction: column;
    width: 900px;
}

.day-container {
    border-radius: 10px;
    padding: 10px;
    border: 2px solid var(--borderColour);
    box-shadow: var(--boxShadow);
    margin-top: 25px;
    display: flex;
    flex-direction: column;
}

.day-week-title {
    color: rgba(255, 255, 255, 0.767);
    font-size: 0.7em;
}

.game-container {
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.inner-game-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: left;
    align-items: center;
}

.game-header-container {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.game-header-line {
    min-width: 100%;
    height: 3px;
    background-color: var(--gold);
}

.team-image {
    width: 60px;
}


.team-name-container {
    display: flex;
    flex-direction: column;
    font-size: 1.75em;
}

.team-container {
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.trapezoid {
    margin-top: -1px;
    width: 200px;
    height: 20px;
    background-color: var(--gold);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
}

.game-time-container {
    font-weight: bold;
    display: flex;
    margin-top: -5px;
    font-size: 1.2em;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.verus-container {
    font-family: 'Anton', sans-serif;
    font-size: 1em;
    font-weight: 100;
    /* Anton is bold by default */

}

.ladder-container {
    width: 100%;
    max-width: 700px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 20px;
}

.betting-ad-container {
    text-align: center;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    border: 1px solid var(--borderColour);
}

.betting-image-container {
    display: flex;
    justify-content: center;
}

.betting-image {
    width: 200px;
}

.betting-ad-link {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.75em;
    color: #1cad75;
}

.betting-ad-link:hover {
    color: #1cad75;
}

.ladder-main-container {
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--borderColour);
    box-shadow: var(--boxShadow);
}

.ladder-row {
    display: flex;
    padding: 10px;
    box-shadow: var(--boxShadow);
    border-bottom: 1px solid var(--borderColour);
}

.ladder-header {
    color: white;
    font-weight: bold;
}

.ladder-cell {
    font-size: 0.8em;
    flex: 1;
    text-align: center;
}

.team-name {
    flex: 2;
    text-align: left;
    padding-left: 10px;
}

.team-ladder-image {
    width: 40px;
}

.bookie-image {
    border-radius: 5px;
    width: 25px;
}

.bookmaker-team-odds-container {
    font-size: 0.6em;
    gap: 3px;
    font-weight: 700;
    letter-spacing: 0.1px;
    font-family: 'Roboto Mono', monospace;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.bookie-left {
    justify-content: start;
}

.bookie-right {
    justify-content: end;
}

.team-name-actual {
    font-size: 0.8em;
}


/* Card Style */
.bet-card {
    display: none;
    background-color: #1a1a1a;
    border: 1px solid #2c2c2c;
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    font-family: 'Inter', sans-serif;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.bet-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-direction: column;
    margin-bottom: 16px;
}

.ev-badge-wrapper {
    position: relative;
    display: inline-block;
}

.ev-badge {
    border: 1px solid #ff5e0093;
    color: white;

    border-radius: 4px;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 16px;
    position: relative;
    z-index: 1;

}

.ev-icon {
    position: absolute;
    top: -18px;
    left: -1px;
    font-size: 10px;
    z-index: 2;

    pointer-events: none;
}

.game-title {
    font-size: 14px;
    font-weight: 600;
}

.bet-body p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.odds {
    color: #1cad75;
    font-weight: 600;
}

.bookie {
    font-size: 13px;
    color: #999;
}

.bet-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta {
    background-color: #1cad75;
    color: #000;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.link {
    color: #aaa;
    font-size: 13px;
    text-decoration: underline;
}


.ev-icon-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.best-bet-icon {
    width: 150px;
}

.game-odds-container {
    width: 100%;
}

.odds-table {
    margin-top: 10px;
    width: 100%;
    font-family: 'Barlow Semi Condensed', sans-serif;

}

.odds-table td {
    text-align: center;
    border: 1px solid var(--borderColour);
}

.bookmaker-odds-header {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.bookmaker-odds-name-container {
    text-align: left !important;
}

.best-odd {
    background-color: var(--wagerGreen);
    color: var(--backColour);
    /* contrasts nicely with wagerGreen */
    font-weight: bold;
    border-radius: 6px;
    padding: 4px 6px;
}

.worst-odd {
    background-color: #3a1c1c;
    /* dark red variant for dark theme */
    color: var(--textColour);
    border-radius: 6px;
    padding: 4px 6px;
}

.best-odd,
.worst-odd {
    transition: background-color 0.2s ease;
}

.best-odd:hover {
    background-color: #159c66;
    /* darker shade on hover */
}

.worst-odd:hover {
    background-color: #5b2b2b;
}

.leagues-grid {
    margin-top: 75px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 12px;
}

.league-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--ring);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 0 0 0 rgba(28, 173, 117, 0);
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.league-card:hover {
    text-decoration: none;
    color: white !important;
    transform: translateY(-2px);
    border-color: var(--accent-ghost);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6), 0 0 0 1px var(--accent-ghost) inset;
}

.icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid var(--ring);
}

.icon-wrap svg {
    width: 26px;
    height: 26px;
}

.league-meta {
    flex: 1;
}

.league-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.league-sub {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    font-size: .72rem;
    line-height: 1;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--ring);
    color: var(--muted);
    background: rgba(255, 255, 255, .02);
}

.pill--accent {
    color: var(--accent);
    border-color: var(--accent-ghost);
    background: rgba(28, 173, 117, .08);
}

/* tiny right chevron */
.chev {
    opacity: .5;
    transform: translateX(0);
    transition: transform .15s ease, opacity .15s ease;
}

.league-card:hover .chev {
    opacity: .9;
    transform: translateX(2px);
}

.image-container {
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* clip any accidental overflow */
}

.image-container img {
    display: block;
    /* removes inline-gap issues */
    max-width: 1200px;
    /* never wider than the container */
    width: 100%;
    /* stretch to container width */
    height: auto;
    /* keep aspect ratio */
    object-fit: contain;
    /* scale down if needed */
    min-width: 0;
    /* allow flexbox to shrink properly */
}

/* Optional: cap very tall images to viewport height */
.image-container--vh img {
    max-height: 100vh;
}

.help-main-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.help-container {
    box-shadow: var(--boxShadow);
    border-radius: 25px;
    border: 1px solid var(--borderColour);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3em;
    flex-direction: row;
    width: 100%;
    height: 100px;
    font-family: 'Roboto', sans-serif;
    margin: 15px 0px 15px 0px;

    /* 💥 “sick” dark neon gradient (brand-friendly) */
    background:
        radial-gradient(140% 180% at 0% 0%, rgba(28, 173, 117, 0.30) 0%, rgba(28, 173, 117, 0) 60%),
        radial-gradient(140% 180% at 100% 0%, rgba(0, 200, 255, 0.22) 0%, rgba(0, 200, 255, 0) 55%),
        linear-gradient(135deg, #0a0f0c 0%, #0e1316 50%, #0a1712 100%);
    /* optional subtle inner glow—comment out if you prefer flat edges */
    /* box-shadow: var(--boxShadow), inset 0 0 0 1px rgba(28, 173, 117, 0.25); */
}

.sports-link {
    color: #1cad75;
}

.help-text-container {
    font-size: 1.05em;
}

.help-container {
    background-size: 200% 200%, 200% 200%, 200% 200%;
    animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%, 100% 0%, 0% 0%;
    }

    50% {
        background-position: 100% 50%, 0% 0%, 100% 100%;
    }

    100% {
        background-position: 0% 50%, 100% 0%, 0% 0%;
    }
}

.fa-graduation-cap {
    color: var(--gold);

}



@media (max-width: 1500px) {
    .header-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
     #bet-card {
        max-width: 1200px;
    }
    .help-container {
        max-width: 1200px;
    }
}

@media (max-width: 1250px) {
    .help-container {
        max-width: 1000px;
    }
}

@media (max-width: 1050px) {
    .help-container {
        flex-direction: column;
        gap: 15px;
        max-width: 750px;
    }

    .fa-graduation-cap {
        margin-right: 15px;
        scale: 2;
    }

    .help-text-container {
        font-size: 1em;
    }

    .help-text-heading {
        font-size: 1.25em;
    }
}

@media (max-width: 780px) {
    .help-container {
        max-width: 500px;
    }

    .fa-graduation-cap {
        margin-left: 10px;
        scale: 1;
    }

    .help-text-container {
        margin-left: 10px;
    }
}

@media(max-width: 670px){
    #bet-card {
        flex-direction: column;
    }

    .placing-container {
        display: flex;
        flex-direction: row;
    }

    .placing-container-sub {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 530px) {
    .help-container {
        max-width: 400px;
        height: 150px;
    }

    .help-text-heading,
    .help-text-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 440px) {
    .help-container {
        max-width: 350px;
        height: 175px;
    }
    .placing-container-sub {
        justify-content: center;
        flex-direction: column;
        align-items: center;
     }
    
}

@media (max-width: 380px) {
   
    .help-container {
        max-width: 300px;
        height: 195px;
    }

}



@media (max-width:1000px) {
    .leagues-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width:640px) {
    .leagues-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



@media (max-width: 1500px) {

    .game-schedule-inner-container,
    .banner-image {
        width: 800px;
    }

    .betting-ad-link {
        font-size: 1.5em;
    }

}

@media (max-width: 1200px) {

    .game-schedule-inner-container,
    .banner-image {
        width: 600px;
    }

    .betting-ad-link {
        font-size: 1.5em;
    }

}

@media (max-width: 1000px) {

    .game-schedule-inner-container,
    .banner-image {
        width: 400px;
    }

    .betting-ad-link {
        font-size: 1.5em;
    }

    .team-image {
        width: 50px;
    }

    .team-name-actual {
        font-size: 0.8em;
    }

    .ladder-cell {
        font-size: 0.6em;
    }
}


@media (max-width: 768px) {

    .game-schedule-inner-container,
    .banner-image {
        width: 600px;
    }

    .day-container {
        width: 500px;
    }

    .body-container {
        flex-direction: column-reverse;
    }

    .game-schedule-container,
    .game-schedule-inner-container,
    .banner-image-container {
        justify-content: center;
        align-items: center;
    }

    .game-title {
        font-size: 10px;
        font-weight: 600;
    }
}


@media (max-width: 550px) {
    .game-title {
        font-size: 14px;
    }

    .bet-header {
        justify-content: left;
        gap: 4px;
        align-items: start;
        flex-direction: column;
    }

    .game-schedule-inner-container,
    .banner-image {
        width: 400px;
    }

    .day-container {
        width: 400px;
    }

    .game-schedule-container,
    .game-schedule-inner-container,
    .banner-image-container {
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 435px) {

    .game-schedule-inner-container,
    .banner-image {
        width: 300px;
    }

    .day-container {
        width: 350px;
    }



    .game-schedule-container,
    .game-schedule-inner-container,
    .banner-image-container {
        justify-content: center;
        align-items: center;
    }

    .team-image {
        width: 45px;
    }

    .team-name-actual {
        font-size: 0.7em;
    }

    .bookie-image {
        width: 20px;
    }

    .bookmaker-odds-container {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {

    .game-schedule-inner-container,
    .banner-image {
        width: 250px;
    }

    .day-container {
        width: 300px;
    }


    .game-schedule-container,
    .game-schedule-inner-container,
    .banner-image-container {
        justify-content: center;
        align-items: center;
    }

    .team-image {
        width: 45px;
    }

    .team-name-actual {
        font-size: 0.5em;
    }

    .bookie-image {
        width: 20px;
    }

    .bookmaker-odds-container {
        font-size: 0.9em;
    }
}