@CHARSET "ISO-8859-1";

:root {
    /* Typography */
    --font-base: 'Open Sans', "andale mono", sans-serif;
    --font-mono: 'Geist Mono', 'Droid Sans', courier new, sans-serif;

    --fw-light: 300;
    --fw-normal: 400;
    --fw-bold: bold;

    /* Core colours */
    --color-link: #428bca;
    --color-text-dark: #333;
    --color-text-mid: #666;
    --color-text-light: #999;
    --color-text-muted: #ccc;
    --color-white: #fff;
    --color-black: #000;

    /* Semantic colours */
    --color-success: #5cb85c;
    --color-success-light: #dff0d8;
    --color-success-hover: #d0e9c6;

    --color-primary-light: #d9edf7;
    --color-info-light: #c4e3f3;

    --color-warning: #ff8000;
    --color-winner: #800000;

    --color-gold: #ffc107;
    --color-bronze: #A0522D;
    --color-silver: #94a3b8;

    /* UI greys */
    --bg-grey-light: #eee;
    --bg-grey-mid: #ddd;
    --bg-grey-dark: #555;

    /* Overlays */
    --overlay-dark-light: rgba(0, 0, 0, 0.1);
    --overlay-dark-mid: rgba(0, 0, 0, 0.3);
    --overlay-dark-strong: rgba(0, 0, 0, 0.4);

    /* Borders */
    --border-default: 1px solid #ccc;
    --border-muted: 1px dashed #999;

    /* Spacing */
    --badge-padding: 0.35em;
}

@font-face {
    font-family: 'digital';
    src: url('../fonts/DS-DIGIT.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* ==========================================================================
   Base
   ========================================================================== */

body {
    margin-bottom: 100px;
    font-family: var(--font-base);
}

a {
    text-decoration: none;
    color: var(--color-link);
}

a:hover {
    opacity: 90%;
}

.clear {
    clear: both;
}

.no-border {
    border: none !important;
}


/* ==========================================================================
   Navbar bg colours
   ========================================================================== */

.bg-qatar {
    background-color: #310518;
}

.bg-germany {
    background-color: #00ba5d;
}

.bg-usa {
    background-color: #000000;
}


/* ==========================================================================
   Navbar / Bootstrap overrides
   ========================================================================== */

.navbar-brand,
.navbar-brand .navbar-light {
    color: var(--color-white);
}

.navbar-archive .navbar-brand .navbar-main {
    color: var(--color-text-dark);
}

.navbar-archive .navbar-brand .navbar-light {
    color: var(--color-text-light);
}

.navbar-predictor .navbar-nav .nav-link {
    color: #eee;
}

.navbar-predictor .navbar-nav .nav-link:hover {
    color: var(--color-white);
}

.navbar-archive .navbar-nav .nav-link {
    color: var(--color-text-mid);
}

.navbar-archive .navbar-nav .nav-link:hover {
    color: var(--color-text-dark);
}

.nav-custom-pills a{
    text-decoration: none;
    color: var(--muted);

    padding: 10px 18px;
    border-radius: 999px;

    margin-right: 1rem;

}

.nav-custom-pills a.active {
    background: var(--color-black) !important;
    color: white !important;
}

.nav-custom-pills a:hover {
    background: var(--bg-grey-dark);
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge-not-bold {
    font-weight: var(--fw-normal);
    display: inline;
}

.badge-fixed {
    width: 28px;
    overflow: hidden;
    font-weight: var(--fw-light);
    padding: var(--badge-padding);
}

.badge-slim {
    overflow: hidden;
    font-weight: var(--fw-light);
    padding: var(--badge-padding);
    margin-right: 2px !important;
}


/* ==========================================================================
   Colours / Text
   ========================================================================== */



.text-gold {
    color: var(--color-gold);
}

.text-silver {
    color: rgb(108, 117, 125);
}

.text-bronze {
    color: var(--color-bronze);
}

.text-ccc {
    color: var(--color-text-muted);
}

.text-success-old {
    color: var(--color-success);
}

.bg-ccc {
    background-color: var(--bg-grey-mid);
}

.bg-success-old {
    background-color: var(--color-success);
}

.bg-info-old {
    background-color: var(--color-info-light);
}

.bg-primary-old {
    background-color: var(--color-primary-light);
}

.bg-gold {
    background-color: var(--color-gold);
}

/* ==========================================================================
   Tables (legacy Bootstrap styles)
   ========================================================================== */

.table-success-old,
.table-success-old td {
    background-color: var(--color-success-light) !important;
}

.table-success-old:hover td,
.bg-success-old:hover {
    background-color: var(--color-success-hover) !important;
}

.table-primary-old,
.table-primary-old td {
    background-color: var(--color-primary-light) !important;
}

.table-primary-old:hover td {
    background-color: var(--color-info-light) !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-outline-medium {
    color: #666;
    border-color: #666;
}

.btn-outline-medium:hover {
    color: #fff;
    background-color: #000;
    border-color: #000;
}

.btn-light:hover {
    color: #fff;
    background-color: #555;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.mono {
    font-family: var(--font-mono);
}

.digital {
    font-family: 'Digital', monospace;
}

.smaller {
    font-size: 0.75rem;
}

.very-small {
    font-size: 0.7rem;
}

h1,
h2,
h3,
h4 {
    font-weight: bold;
}

h1 {
    font-size: 1.33rem;
}

h2 {
    font-size: 1.1rem;
}

h3 {
    font-size: 1.05rem;
}

h4 {
    font-size: 1rem;
}

.big-number {
    font-size: 2.2em;
    font-weight: bold;
    line-height: 1.1em;
}

.super-big {
    font-size: 30px;
    font-weight: var(--fw-light);
    margin-top: 0.5em;
}

.super-small {
    font-size: 0.4em;
    font-weight: var(--fw-light);
    margin-top: 1em;
}

.light-h1 {
    font-size: 30px;
    font-weight: var(--fw-light) !important;
}

.grey-out {
    color: var(--color-text-muted);
}


/* ==========================================================================
   Forms / Fieldsets
   ========================================================================== */

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.scoreinput {
    width: 60px;
    display: inline-block;
    padding: 1px;
    text-align: center;
}

/* ==========================================================================
   Tables
   ========================================================================== */

th.rotate {
    transform: rotate(-90deg);
    transform-origin: left bottom;
    white-space: nowrap;
}

tr.saving {
    opacity: 0.5;
    pointer-events: none;
}

.clickable-row {
    cursor: pointer ;
}

/* ==========================================================================
   Status Icons
   ========================================================================== */

.status-icon {
    margin-left: 8px;
}

.status-icon.success {
    color: green;
}

.status-icon.fail {
    color: red;
}

/* ==========================================================================
   Header
   ========================================================================== */

#header.header-homepage {
    background: var(--overlay-dark-strong);
}

#header.header-colour {
    background: var(--color-black);
}

#header.archive {
    background-color: #aeaeae;
    color: var(--color-white);
}

#header #page-title {
    text-transform: uppercase;
    font-weight: var(--fw-bold);
}

#header .date {
    font-size: 0.5em;
    color: var(--color-white);
    padding-left: 10px;
}

.navbar-brand-predictor {
    font-weight: var(--fw-light);
}

/* ==========================================================================
   HOME PAGE 
   ========================================================================== */

.banner-text {
    font-size: clamp(1.2rem, 3vw, 2rem);
    line-height: 1;
    white-space: nowrap;
}

.countdown-big-text {
    font-size: clamp(2rem, 10%, 8rem);
    line-height: 1;
    font-weight: 700;
}

.video-background-holder {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.video-background-holder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   GROUP TABLE DISPLAY
   ========================================================================== */

.grouptable td,
.grouptable th {
    text-align: center;
    font-weight: normal;
    padding: 5px 3px;
    width: 25px;

}

.grouptable .table th {
    color: #7e9496;
    font-size: 0.9em;
    border-top: none;
}

.grouptable .pts {
    background: #444;
    color: #fff;
    font-weight: bold;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    vertical-align: middle;
}

.grouptable .q2 {
    border-bottom: 2px solid #111;
}

.grouptable .team {
    width: 130px;
    text-align: left;
}

.grouptable .cupPlayer {
    width: 70%;
    text-align: left;
}

.grouptable tr.qual td.team,
.grouptable tr.qual td.cupPlayer {
    font-weight: bold;
}

.grouptable a {
    color: inherit;
    text-decoration: none;
}

.groupqualifiers {
    display: none;
    margin-top: 20px;
    text-align: right;
}


/* ==========================================================================
   CUP
   ========================================================================== */

.match-card {
    transition: all .2s ease;
    cursor: pointer;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

/* ==========================================================================
   FAMILIES
   ========================================================================== */

.tube-line-container {
    --line-start: 10%;
    --line-end: 90%;
    position: relative;
    height: 30px;
    margin-top: 10px;
}

.tube-line {
    position: absolute;
    top: 50%;
    left: var(--line-start);
    right: calc(100% - var(--line-end));
    height: 4px;
    background-color: #ddd;
    transform: translateY(-50%);
}

.stop {
    position: absolute;
    top: 50%;
    width: 15px;
    height: 15px;
    background-color: white;
    border: 4px solid #ddd;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.stop-midpoint {
    border-color: #428bca;
    border-radius: 25%;
    width: 1px;
    border-width: 2px;
    z-index: 3;
}

/* Stops within the line segment */
.tube-line-container .stop[data-position] {
    left: calc(var(--line-start) + (var(--line-end) - var(--line-start)) * (attr(data-position percent)));
}


/* ==========================================================================
   PLAYER HISTORY
   ========================================================================== */

 /* HEADER */

.player-header {
    background: var(--card);
    border-radius: 24px;
    padding: 12px;
    margin-bottom: 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;

     box-shadow:
        0 2px 10px rgba(0, 0, 0, .03);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-meta {
    color: var(--muted);
    margin-top: 6px;
    font-size: 0.85rem;
}

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

.header-score-value {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.header-score-label {
    color: var(--muted);
    font-size: .9rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.summary-card {
    border-radius: 20px;
    padding: 22px;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, .03);
}

.summary-label {
    color: var(--muted);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
}
        
.history-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 768px) {

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


@media (min-width: 1200px) {

    .history-grid {
        grid-template-columns: repeat(2, 1fr);
    }


}

.history-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 20px;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, .03);

    transition: .2s ease;
}

.history-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .08);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 24px;
}

.tournament-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.flag {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
}

.tournament-title {
    font-size: 1rem; 
    font-weight: 700;
    margin-bottom: 2px;
}

.tournament-subtitle {
    color: var(--muted);
    font-size: .9rem;
}

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

.score-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.score-label {
    color: var(--muted);
    font-size: .85rem;
}

/* STATS GRID */


.stat-card {
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px;
}

.stat-label {
    color: var(--muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* PROGRESS */

.progress {
    height: 8px;
    border-radius: 999px;
    background: #e9eef5;
    overflow: hidden;
}

.progress-bar {
    border-radius: 999px;
}

/* BADGES */

.badge-modern {
    background: #eff6ff;
    color: #2563eb;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: .8rem;
}





/* ==========================================================================
   HOF
   ========================================================================== */

.tourn-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #eeeff1;
}

.tourn-dot.played {
    background: #bfc2c6;
}

.tourn-dot.silver {
    background: #869cb9;
}

.tourn-dot.bronze {
    background: var(--color-bronze);
}

.tourn-dot.gold {
    background: var(--color-gold);
}





/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 768px) {



    .super-big {
        font-size: 36px;
        margin-top: 0.8em;
    }

    .super-small {
        font-size: 20px;
    }
}

@media only screen and (min-width: 992px) {

    .super-big {
        font-size: 44px;
        margin-top: 1em;
    }
}

@media only screen and (min-width: 1200px) {

    .super-big {
        font-size: 50px;
    }

    .badge-slim {
        padding: 0.35em 0.25em;
        height: 14px;
    }
}

@media print {

    @page {
        size: A4;
        margin: 5mm;
    }

    html,
    body {
        width: 1100px;
    }

    body {
        margin: 0 auto;
    }

    .pagebreak {
        clear: both;
        page-break-after: always;
    }
}