@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.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;
}

html {
    position: relative;
    min-height: 100%;
}

h2 {
    font-size: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

body {
    margin-bottom: 60px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #212529;
    font-size: 16px;
}

.container {
    margin: 0 auto;
}

.logo-container {
    width: 32px;
    height: 32px;
}

.logo-container img {
    height: 32px;

    margin: 0 auto;
}

.bg-blue-herr {
    background-color: #03174c;
}

.border-blue-herr {
    border: 2px solid #03174c;
}

.bg-blue-dam {
    background-color: #3195ff;
}

.border-blue-dam {
    border: 2px solid #3195ff;
}


.font-bold {
    font-weight: 600;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.standings-table {
    width: 100%;
    margin-top: 2px;
    /*border-collapse: collapse;*/
}

.standings-table th,
.standings-table td {
    padding: 0.5rem;
    /*border-bottom: 1px solid #eee;*/
}

.error {
    color: darkred;
}

.select {
    border: 1px solid #ccc;
    border-radius: .25rem;
    color: #606060;
    padding: .2rem;
}

table {
    width: 100%;
}
table thead tr.sub-header {
    background-color: #f7f7f7;
    border-bottom: 1px solid #ededed;
}

    table.standings-table tr:nth-child(4n+3) {
        background-color: #f7f7f7;
    }

        table.standings-table tr:nth-child(4n+3):hover {
            background-color: rgba(3,23,76, 0.1);
        }

    table.standings-table tr td img {
        /*width: 32px;*/
    }

    table.standings-table tr,
    table.standings-table td {
        padding: 2px;
    }

    table.standings-table tbody tr:nth-of-type(15),
    table.standings-table tbody tr:nth-of-type(19),
    table.standings-table.border-blue-dam tbody tr:nth-of-type(21),
    table.standings-table tbody tr:nth-of-type(25) {
        border-bottom: 1px solid #ccc;
    }


/* --------------------------------
   Team table row
-------------------------------- */

.team-row {
    cursor: pointer;
    transition: background-color 180ms ease;
}

    .team-row:hover {
        background-color: rgba(0, 0, 0, 0.035);
        background-color: rgba(3,23,76, 0.1);
    }

    .team-row.is-open {
        background-color: rgba(0, 0, 0, 0.045);
        background-color: rgba(0, 0, 0, 0.06);
        background-color: rgba(3,23,76, 0.1);
    }

.team-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.team-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 220ms ease;
}

.team-row.is-open .team-chevron {
    transform: rotate(180deg);
}


/* --------------------------------
   Expandable detail row
-------------------------------- */

.team-details-row {
    background-color: transparent;
}

.team-details-row > td {
    padding: 0 !important;
    border: 0;
}

.team-details {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 240ms ease, opacity 180ms ease;
}

.team-details-inner {
    overflow: hidden;
}

.team-details-row.is-open .team-details {
    grid-template-rows: 1fr;
    opacity: 1;
}


/* --------------------------------
   Games
-------------------------------- */

.games-container {
    padding: 0.75rem 1.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.025);

    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.games-loading,
.games-empty,
.games-error {
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.game-row {
    display: grid;
    grid-template-columns: 60px minmax(130px, 200px) 70px minmax(130px, 200px) 20px;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 160ms ease, padding 160ms ease;
}

    .game-row:hover {
        background-color: rgba(0, 0, 0, 0.04);
    }

    .game-row:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: -2px;
    }

.game-link-indicator {
    font-size: 1.25rem;
    opacity: 0.35;
    transition: opacity 160ms ease, transform 160ms ease;
}

.game-row:hover .game-link-indicator,
.game-row:focus-visible .game-link-indicator {
    opacity: 0.8;
    transform: translateX(2px);
}

.game.logo-container a:last-of-type .game-row{
    border-bottom: 0;
}

.game-date {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.65;
}

.game-home {
    text-align: right;
}

.game-away {
    text-align: left;
}

.game-score {
    font-weight: 500;
    white-space: nowrap;
}

.selected-team {
    font-weight: 500;
    color: #03174c;
}

.show-all-games {
    display: block;
    margin: 0.75rem auto 0;
    padding: 0.5rem 1rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 160ms ease;
}

    .show-all-games:hover {
        opacity: 1;
        text-decoration: underline;
    }

.games-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-details,
    .team-chevron,
    .team-row {
        transition: none;
    }
}