:root {
    --bg-color: #557f47;
    --link-green: #ccffcc;
    --link-green-hover: #99cc99;
    --light-green: #55aa55;
    --dark-green: #003300;
    --menu-dark-green: #114411;
    --menu-light-green: #336633;
    --table-row-light: #557f47;
    --table-row-dark: #446739;
    --table-row-highlight: #7e9b39;
    --table-hdivider: #446739;
    --table-vdivider: #3c5f31;
    --header-height: 50px;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
        position: relative;
        min-height: 100%;
    }
}

html.played-state-false .played-false {
    display: block;
}

body {
    height: 100%;
    margin-bottom: 60px;
    background: var(--bg-color) url("../game/assets/generated/grass_tile.png") repeat;
    background-size: 90.2703px 90.2703px;
    color: #fff;
}

.body-game {
    height: 100%;
    margin-bottom: 0px;
    background: var(--bg-color) url("../game/assets/generated/grass_tile.png") repeat;
    background-size: 90.2703px 90.2703px;
    color: #fff;
}


.game-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh; /* if browser supports dvh, it'll use this. We want this for mobile chrome and safari */
}

a {
    color: var(--link-green);
    text-decoration: none;
}

    a:hover {
        color: var(--link-green-hover);
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.title-logo
{
    margin: 1rem;
}

header {
    height: var(--header-height);
    background-color: var(--dark-green);
    position: sticky;
    top: 0;
    z-index: 50;
}

.footer {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    padding: 0 0 0 30px;
}

.footer-game {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    padding: 0 0 0 50px;
}

#header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 5px;
    border-bottom: 1px solid var(--light-green); 
}

.header-button {
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 5px 2px;
    cursor: pointer;
    background-color: var(--dark-green);
    border-radius: 4px;
}

    .header-button[aria-expanded="false"] {
        background-color: var(--dark-green);
    }

    /* Make sure this hover rule comes AFTER the [aria-expanded="false"] so that the hover overrides the behaviour */
    .header-button:hover,
    .header-button[aria-expanded="true"] {
        background-color: var(--menu-dark-green);
    }

.home-icon {
    width: 40px;
    fill: var(--light-green);
}

.burger-icon {
    width: 36px;
    fill: none;
    stroke: var(--light-green);
    stroke-width: 2;
    stroke-linecap: round;
}

.burger-holder {
    position: relative; /* So that the dropdown menu can position itself underneath */
}

.burger-menu {
    position: fixed; /* so that we can position this on top of the page, right below the button */
    display: flex;
    flex-direction: column;
    width: 170px;
    top: var(--header-height);
    bottom: 0px;
    right: 0;
    margin: 0;
    padding: .5rem 0;
    background: var(--menu-dark-green);
    border: none;
    box-shadow: 0px 4px 8px #00000030;
    z-index: 100; /* make sure this draws in front of everything else. Note: if a parent element has "overflow: hidden/auto/scroll", it can clip this menu! */
}

    .burger-menu [hidden] {
        display: none;
    }

    .burger-menu .item {
        width: 100%;
        padding: 0.5rem 1rem;
        text-align: left;
        background: none;
        cursor: pointer;
    }

        .burger-menu .item:hover {
            background: var(--menu-light-green);
        }

td, tr {
    color: #fff;
    border-color: var(--table-hdivider);
    border-bottom-width: 1px;
}

th {
    color: #fff;
    border-color: #fff;
    border-bottom-width: 1px;
}

.today-match {
    background-color: var(--dark-green);
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: .5rem;
    margin: 1rem;
}

#team-matchup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-matchup-item {
    padding: .5rem;
}

@media (max-width: 768px) {
    div.container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

.table {
    width: 100%;
    table-layout: fixed;
    border-bottom-width: 1px;
}

    table .left-align {
        text-align: left;
    }

    table .right-align {
        text-align: right;
    }

.table-title {
    font-size: 1.75rem;
    padding: 1.5rem 0 1rem 0;
}

table.standings {
    vertical-align: middle;
}

    table.standings .pos {
        width: 4%;
    }

    table.standings .jersey {
        width: 40px;
    }

    table.standings .team-name {
        text-align: left;
        width: auto;
    }

    table.standings .stat {
        width: 7%;
    }

.border-right {
    border-right-width: 1px;
    border-right-color: var(--table-vdivider);
}

.border-left {
    border-left-width: 1px;
    border-left-color: var(--table-vdivider);
}

tbody.standings tr:nth-child(even) {
    background: var(--table-row-dark);
}

tbody.standings tr:nth-child(odd) {
    background: var(--table-row-light);
}

tbody.standings tr.curmatch {
    font-weight: bold;
    color: var(--dark-green);
    background: var(--table-row-highlight);
}

table.history {
    width: 100%;
    table-layout: fixed;
    border-bottom-width: 1px;
}

    table.history .flex {
        width: auto;
    }

    table.history .jerseycol {
        width: 60px;
    }

    table.history .middlecol {
        width: 100px;
    }

    table.history .left {
        text-align: right;
        padding: 0 0 0 1rem;
    }

    table.history .jersey {
        padding: .5rem .75rem;
    }

    table.history .middle {
        padding: .35rem;
        vertical-align: middle;
    }

    table.history .right {
        text-align: left;
        padding: 0 1rem 0 0;
    }

table.players .name {
    padding-left: 1rem;
}

table.players .pos {
    width: 25%;
}

table.players .stat {
    width: 10%;
}

table.match {
    vertical-align: middle;
}

    table.match .time {
        width: 15%;
    }

    table.match .jersey {
        width: 40px;
    }

    table.match .team-name {
        text-align: left;
        width: auto;
    }

    table.match .name {
        text-align: left;
        width: 25%;
    }

td.scores {
    background: var(--dark-green);
    color: #fff;
}

.day-text {
    font-size: 10pt;
    padding: 0;
}

.score-text {
    font-weight: bold;
    font-size: 18pt;
}

td.futureday {
    background: #9b9;
    color: #fff;
}

a.daylink {
    color: #fff;
}

.consent-button {
    background: none;
    border: none;
    color: var(--link-green);
}

    .consent-button:hover {
        color: var(--link-green-hover);
    }

.kl-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

    .kl-tooltip .kl-tooltiptext {
        visibility: hidden;
        max-width: 200px;
        background-color: var(--dark-green);
        color: #fff;
        text-align: center;
        line-height: 1.25rem;
        border-radius: 6px;
        padding: 0.35rem 1rem 0.45rem 1rem;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
    }

        .kl-tooltip .kl-tooltiptext::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border-width: 5px;
            border-style: solid;
            border-color: var(--dark-green) transparent transparent transparent;
        }

    .kl-tooltip:hover .kl-tooltiptext {
        visibility: visible;
        opacity: 1;
    }

/* ---------------------- */
/* Handle the home page hiding/showing content based on whether the player has played today's match yet */
/* Hide both divs by default */
.played-true,
.played-false {
    display: none;
}

/* Show the correct one based on html’s class */
html.played-state-true .played-true {
    display: block;
}
/* ---------------------- */
