:root {
    --gsk-light-red: #FF585C;
    --gsk-medium-red: #ED2736;
    --gsk-dark-red: #C7112D;    
    --raisin-black: #1A1a24;

    --bg-primary-darkest: var(--raisin-black);
    --bg-primary-dark:#1f1f2a;
    --bg-primary-medium: #282835;
    --bg-woodsmoke: #111016;
    --bg-dark-purple : #363648;
    /* --primary-pale: #8388a7; */
    --primary-pale: #a5a9c0;
    --c-haze-blue: #cbd0ec;
    --c-default-gray: #919191;

    --status-default-gray: #373748;
    --status-ongoing-red: #bb212b; /* --status-ongoing-red: #e1152f; Why one is it? */
    --status-scheduled-blue: #3325ed;

    --cs-peru: #c29346;
    --cs-dark-peru: #54422A;
    
    --cs-slate-blue: #6a5acd;
    --cs-dark-slate-blue: #2F1867;

    --active-blue: #346DF4;
    --active-blue-rgb: 52,109,244;

    /* Only used in tournament cards? */
  }

 /* --- BOOTSTRAP OVERRIDES & BOOSTRAPISH ADDITIONS --- */


main {
    margin-top: 140px;
    margin-bottom: 70px;
}

main > article {
    filter: drop-shadow(0px 0px 2px var(--bg-primary-darkest));
    border-radius: 5px;
}

a {
  text-decoration: none !important;
}

nav .site-logo > img {
    max-height: 25px;
}

footer .site-logo {
    height: 1.6em;
}

.bw-nav-bar .nav-link.active span {
    color: white;
    /* display: contents; */
}

.nav-link.disabled {
    pointer-events: auto;
}

.nav-link.disabled span, .nav-link.disabled img {
    filter: saturate(0.5) brightness(0.85);
}

.form-control {
    border-color: var(--primary-pale);
}

.form-control, 
.form-control:focus{
    color: var(--primary-pale);
}

.border-dark {
    /* Can be scoped if needed */
    border-color: black !important;
}

.grid-auto-flow-row {
    grid-auto-flow: row;
}

.grid-auto-flow-column {
    grid-auto-flow: column;
}

*.mr-10 {
    margin-right: 10px;
}

.btn-outline-primary {
    color: var(--primary-pale);
}

.pagination .page-item {
    height: 35px;
    text-align: center;
}

.pagination .page-item.disabled .page-link {
    background-color: transparent;
    border: 0;
}

.pagination .page-item a, 
.pagination .page-item button {
    background-color: var(--bg-primary-dark);
    border-color: var(--bg-primary-dark);
}


.pagination .page-item.active a, 
.pagination .page-item.active button {
    background-color: var(--bg-primary-medium);
    border-color: var(--bg-primary-medium);
}

.pagination .page-item .page-link {
    cursor: pointer;
    font-size: 12px;
    color: var(--c-haze-blue);
}

.pagination .page-item .page-link * {
    color: var(--c-haze-blue);
}

.pagination .page-item.page-pre,  
.pagination .page-item.page-next {
    display: none;
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--active-blue-rgb), 0.25);
}
/* 
pagination page-item active page-link */

/* End boostrap overrides */

body {
    font-family: 'Manrope' !important;    
    background-color: var(--bg-primary-darkest);
    background-image: url("/img/bg-cs2-1.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

body.dota2 {
    background-image: url("/img/bg-dota2-1.jpg");
}

body.lol {
    background-image: url("/img/bg-lol-1.jpg");
}

body.hok {
    background-image: url("/img/bg-hok-1.png");
}

div.page-layout {
    display: grid; 
    grid-template-columns: auto calc(1280px + 32px) auto;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "left center right";
    align-content: flex-start;
    min-height: 100vh;
}

nav {
    grid-column: 1 / 4;
}

main {
    grid-column: 2;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

main, div.bw-nav-bar {
    padding-left: 16px;
    padding-right: 16px;
}

footer {
    height: 85px;
    margin-top:auto; 
    background-color: #1a1a24;
    
    grid-column: 1 / 4;
    display: grid;
    
    font-size:11px;
    color: gray;
}

footer .footer-container {
    height: 100%;
    width: calc(1280px + 32px);
}

span {
    font-size: 12px;
    color: white;
}

h1, h2, h3, h4 {
    color: rgb(255 255 255 / 75%);
    margin: 0%;
}

h1 {
    font-size: 24px;
    font-weight: bold;
}

h2 {
    font-size: 16px;
}

h3 {
    font-size: 14px;
}


h4 {
    font-size: 12px;
    color: inherit;
}

.bg-primary-darkest {
    background-color: var(--bg-primary-darkest)
}

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

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

.bg-primary-gradient {
    background: linear-gradient(to right, #1d1d29, #191923);
}

.bg-primary-gradient-reverse {
    background: linear-gradient(to right, #191923, #1d1d29);
}

.bg-light-gradient-diagonal {
    background: linear-gradient(135deg, #1C1C29, #2A2A3B);
}

.bg-light-gradient-diagonal-reversed {
    background: linear-gradient(135deg, #2A2A3B, #1C1C29);
}

.bg-shaded {
    background: linear-gradient(rgba(0, 0, 0, 0.25), transparent 7.5%, transparent 92.5%, rgba(0, 0, 0, 0.25));
}

.bg-shaded-hard {
    background: linear-gradient(rgba(0, 0, 0, 0.5), transparent 5%, transparent 95%, rgba(0, 0, 0, 0.5));
}

.bg-shaded-hard.bg-primary-gradient {
    background: linear-gradient(rgba(0, 0, 0, 0.5), transparent 5%, transparent 95%, rgba(0, 0, 0, 0.5)), linear-gradient(to right, #1d1d29, #191923);
}

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

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

.shade-overlay {
    position: relative;
}

.shade-overlay::after {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.25), transparent 7.5%, transparent 92.5%, rgba(0, 0, 0, 0.25));;
}

.bg-two-tone-darkest-dark {
    background: linear-gradient(0deg, var(--bg-primary-darkest) 0%, var(--bg-primary-darkest) 50%, var(--bg-primary-dark) 50%, var(--bg-primary-dark) 100%);
}

.bg-ongoing {
    background-color: var(--status-ongoing-red);
}

.c-ongoing {
    color: var(--status-ongoing-red)
}

.bg-primary-pale {
    background-color: var(--primary-pale)
}

.bg-signature-gray {
    background-color: var(--status-default-gray)
}

.bg-dark-purple {
    background-color: var(--bg-dark-purple)
}

.c-white-90 {
    color: rgba(255, 255, 255, 0.9);
}

.c-white-80 {
    color: rgba(255, 255, 255, 0.8);
}

/* TODO deprecated, refactor */
.c-logan ,
.c-logan span {
    color: var(--primary-pale);
}

.c-primary-pale ,
.c-primary-pale span {
    color: var(--primary-pale);
}

.c-haze-blue,
.c-haze-blue span {
    color: var(--c-haze-blue);
}

.c-active-blue {
    color: var(--active-blue);
}

/*
--------------------------
*/


/* STANDARD sub-page article */

article {
    color: var(--bg-primary-darkest);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

article .header {
    min-height: 50px;
    height: 50px;
}

article .header > span {
    color: var(--primary-pale);
    font-size: 16px;
}

.home .header > span {
    color: var(--c-haze-blue);
    font-weight: normal;
    text-transform:uppercase;
}

article .header > * {
    display: flex;
    align-items: center;
    height: 100%;
}

.participating-teams {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.participating-teams .team {
    width: 150px;
    height: 50px;
    border-radius: 5px;
    border-style: solid;
    border-width: 2px;
    border-color: rgb(255 255 255 / 5%);
    padding: 8px;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}


.w-padding {
    padding-left: 35px;
    padding-right: 35px;
}

.h-padding {
    padding-top: 25px;
    padding-bottom: 25px;
}

table.esport-table {
    table-layout: fixed;
    width: 100%;
}

.bootstrap-table .fixed-table-container table.table.esport-table thead th {
    vertical-align: middle;
    padding: 0 1.4rem;
}

.bootstrap-table .fixed-table-container table.table.esport-table thead th:last-child {
    padding-right: calc(1.4rem + 35px) !important;
}


tr.default-row-h,
.default-row-h tr  {
    height: 50px;
}

.table-bordered>:not(caption)>* ,
.table thead tr th,
.table tbody tr td,
.table tbody tr {
    border: none;
}

table th * {
    color: var(--primary-pale);
}

/* Article end */

.page-content-width {
    max-width: 80%;
}

.nav-bar-content {
    width: 80%;
}

.navbar {
    padding: 0;
    height: 90px;
}

.navbar span {
    color: var(--primary-pale);
    font-weight: 600;
    font-size: small;
    text-transform:uppercase;
}

.navbar-nav .active {
    background-color: var(--active-blue);
}

.bw-nav-bar .nav-link.game {
    display: grid;
    grid-auto-flow: column;
    grid-column-gap: 5px;
}

.bw-nav-bar .nav-link.game > span {
    display: block;
    margin-block: auto;
}

.bw-nav-bar .nav-link img {
    height: 25px;
}

.bw-nav-bar .nav-link.active img {
    filter: brightness(0) invert(1);
}

.bw-nav-bar.grid {
    display: grid;
    width: 66.66%;
    width: calc(2/3*100%);
    width: calc(2/3*1920px);
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.bw-nav-bar>* {
    color: white;
}

.nav-game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));

    grid-auto-flow: column;
    justify-content: start;
    justify-self: center;
}


.nav-page-list {
    position: relative;
    grid-column: 2;
    display: grid;
    grid-column-gap: 80px;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: column;
    justify-content: start;
    justify-self: center;

    background-image: linear-gradient(to right, #1a1a24, #1c1c27, #1f1f2a, #21212d, #242430, #242430, #242430, #242430, #21212d, #1f1f2a, #1c1c27, #1a1a24);
}

.nav-page-list > .nav-item {
    position: relative;
    min-width: 120px
}

/* Boostrap override */
.cursor-pointer {
    cursor: pointer;
}

.w-0 {
    width: 0% !important;
}

.nav-page-list > .nav-item.active {
    background-color: inherit;
}

.nav-page-list > .nav-item.active span {
    color: white;
}

.nav-page-list > .nav-item:not(:hover)::before {
    opacity: 0;
}

.nav-page-list > .nav-item:not(.active):hover::before {
    opacity: 1;
    transition: opacity 0.35s ease-in-out;
}

.nav-page-list > .nav-item.active::before {
    opacity: 1;
}

.nav-page-list > .nav-item::before {
    pointer-events: none;
    opacity: 1;
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    content: '';
    background: rgb(var(--active-blue));
    background: linear-gradient(0deg, var(--active-blue) 0%, var(--active-blue) 5%, rgba(var(--active-blue-rgb), 0.2) 2.5%, rgba(255,255,255,0) 40%);
}

/* TODO this isn't applied? */
.nav-page-list .nav-item.active span
.nav-page-list .nav-item:hover span {
    color: white !important;
}


.nav-game-list>.nav-link {
    width: 120px;
    display: flex;
    justify-content: center;
}

.game-logo {
    width: 25px;
    height: 25px;
}

.bw-corner-radius {
	  border-radius: 5px;
}

.bw-corner-radius-left {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.bw-corner-radius-right {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

/* body > nav > div > div:nth-child(3) > form > input */

img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

.bw-match-expanded {
    max-width: 390px;
    height: 150px;
    display: grid;
    grid-template-rows: min-content auto;
    grid-auto-flow: row;
    grid-row-gap: 2px;
    /* padding: 10px; */
    /* box-shadow: #0f0f0f 4px 4px 5px -2px; */
}

.bw-match-expanded > * {
    box-shadow: #0f0f0f 4px 4px 5px -2px;
}

.box-shadow-dark {
    box-shadow: #0f0f0f 4px 4px 5px -2px;
}

.box-shadow-black {
    box-shadow: 0px 0px 5px 0px var(--bg-woodsmoke);
}

.bw-match-header {
    height: 40px;
    padding: 10px;
    display: grid;
    grid-template-columns: min-content auto auto;
    align-items: center;
    grid-column-gap: 10px;
}

.bw-match-header h3 {
    margin: 0;
}

.bw-match-header > div:first-child {
    width: 25px;
}
.bw-match-header > div:last-child {
    justify-self: end;
}

.bw-match.collapsed {
    display:grid;
    grid-template-columns: 33% auto 10%;
}

/* TODO seperate class, refactor match CSS */
.bw-match.collapsed.full-match {
    height: 55px;
    grid-template-columns: repeat(3, 1fr);
}

.bw-match.collapsed .versus {
    display: grid;
    grid-column-gap: 15px;
    grid-template-columns: 1fr repeat(3, auto) 1fr;
    align-items: center;
}

.bw-match.collapsed .versus .logo {
    display: flex;
}

.bw-match.collapsed .versus span:first-child {
    text-align: end;
    justify-self: end;
}

.bw-match.collapsed .versus .versus-logo {
    display: flex;
    justify-content: center;
    color: #595968;
    font-weight: bold;
    min-width: 35px;
}

.bw-match.collapsed .versus .versus-scores {
    min-width: 35px;
    font-size: 16px;
    text-align: center;
}

.bw-match.collapsed .match-status  {
    display: flex;
    flex-direction: column; /*TODO why is this column, does parents rotate children?*/
    align-items: center;
    justify-items: center;
    justify-content: center;
    color: #acacb0;    /* TODO standardize size and color? */
    height: 100%;
}

.bw-match .match-row-extras {
    min-width: 40%;
    display: flex;
    justify-content: space-between;
    align-items: center;
	gap: 15px;
}

.bw-match .match-row-extras span[class^="date-"] {
    text-align: end;
}

.match-status-indicator  {
    min-height: 40px;
    height:  fit-content;
    border-right: 3px solid #232534;
    padding-right: 5px;
    display: flex;
    align-items: center;
}

.featured-match .match-status.started,
.match-status-indicator.started,
.match-status-indicator.ongoing {
    color: var(--status-ongoing-red);
    border-right-color: var(--status-ongoing-red);
}

.featured-match .match-status.scheduled,
.match-status-indicator.scheduled,
.match-status-indicator.upcoming {
    color: var(--status-scheduled-blue);
    border-right-color: var(--status-scheduled-blue);
}

.featured-match .match-status.ended,
.match-status-indicator.ended {
    color: var(--status-default-gray);
    border-right-color: var(--status-default-gray);
}

.featured-match .competition-name {
    max-width: 95%;
    overflow: hidden;
}


.bw-match.collapsed .match-status span:last-child  {
    color: #767578;
    font-weight: bold;
    /* TODO standardize size and color? */
}

.bw-match .logo {
    width: 45px;
    height: 45px;
}

.bw-match .game-logo,
.bw-match.collapsed .logo {
    width: 25px;
    height: 25px;
    margin: 10px;
}

.bw-match.collapsed .logo img {
    display: block;
    margin: auto;
}

.labelled-logo {
        display: grid;
        grid-template-columns: min-content auto;
        grid-auto-flow: column;
        align-items: center;
}

/* TODO merge? Only difference is status.live and finished? */
.bw-match-list {
    display: flex;
    flex-direction: column;
    background: var(--bg-chinese-black);
}

article#head-to-head.long-dates .match-row-extras span[class^="date-"],
.bw-match-list.long-dates .match-row-extras span[class^="date-"] {
    min-width: 10em;
}

.bw-featured-teams .tournament-card{
    align-items: center;
}

.bw-featured-teams .tournament-card *:last-child{
    justify-self: end;
}

  /* scrollbar width */
  main ::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }
  
  /* scrollbar track */
  main ::-webkit-scrollbar-track {
    background: transparent;
  }
  
  /* scrollbar handle */
  main ::-webkit-scrollbar-thumb {
    border-radius: 1rem;
    background-color: var(--bg-dark-purple);
  }

.bw-match.collapsed.full-match :not(.versus span) {
    color: var(--primary-pale);
}

.bw-match.collapsed .full-match > :last-child {
    width: 40%;
}

/* TOURNAMENT subpage */
main .search-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--primary-pale);
    font-size: 14px;
    min-height: 50px;
}

main .search-controls > * {
    background-color: #1F1F2C;
    padding: 0.5em;
    border-radius: 0.2em;
}

main .search-controls #prev-date > div,
main .search-controls #next-date > div {
    position: absolute;
    font-size: 30px;
    font-weight: lighter;
    line-height: 0;
    top: 50%
}

main .search-controls #prev-date,
main .search-controls #next-date {
    position: relative;
    display: flex;
    justify-content: center;
    width: 30px;
    cursor: pointer;
}

main .search-controls #calender-show {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    background-color: #363647;
    font-size: 16px;
    cursor: pointer;
}

main .search-controls input {
    background-color: #1F1F2C;
}

main .search-controls input {
    color: var(--primary-pale);
    border: 0;
}

main .search-controls input ::-webkit-calendar-picker-indicator {

    background-color: pink;
    color: pink;
}

main .search-controls .btn-check:focus:not(:active)+.btn-secondary {
    background-color: unset;
}

main .search-controls > *:nth-child(1) {
    flex-basis: 33%;
}

main .search-controls > *:nth-child(2) {
    flex-basis: 15%;
}

main .search-controls input:focus-visible {
    outline: 1px solid #363647;
}

main .search-controls .date-picker-container input:focus-visible {
    outline: none;
}

main .search-controls ::placeholder {
    color: var(--primary-pale);
}

main .search-controls :-ms-input-placeholder {
    color: var(--primary-pale);
}

main .search-controls ::-ms-input-placeholder {
    color: var(--primary-pale);
}

main .search-controls .date-picker-container {
    display: flex;
    padding: 0;
    height: 100%;
    gap: 5px;
    flex-basis: 230px;
    justify-content: space-between;
}

main .search-controls .date-picker-container input {
    max-width: 90px;
    cursor: pointer !important;
}

.datepicker td {
        -webkit-border-radius: inherit !important;
        -moz-border-radius: inherit !important;
        border-radius: inherit !important;
}

.datepicker td.selected,
.datepicker td.range {
    background-color: var(--active-blue) !important;
    color: white !important;
}

/* Date picker appears in body */
.datepicker {
    background-color: #1F1F2C;
    color: var(--primary-pale);
    font-size: 14px;
}

.datepicker table tr td.new,
.datepicker table tr td.old {
    color: rgba(131, 136, 167, 0.66) !important;  /*Pale-gray at 0.66a*/

}

.datepicker table tr td.active.active {
    background-color: var(--active-blue) !important;
}

.datepicker-dropdown:after {
    display: none !important;
}

.datepicker table tr td {
    border: 0 !important;
    border-image: none !important;
    background-image: none !important;
}

.datepicker table tr td.today:hover:hover {
    color: var(--c-haze-blue) !important;
}

.datepicker table tr td.today {
    background-color: var(--c-haze-blue) !important;
}

.datepicker table tr td.active {
    background-color: var(--active-blue) !important;
}

.datepicker table tr td.new.range,
.datepicker table tr td.old.range,
.datepicker table tr td.new.range-end {
    color: var(--c-default-gray) !important;
}

.datepicker table tr td.range-start.range-end {

    color: white !important;
}

.datepicker table tr td span.focused:not(.active),
.datepicker table tr td span:hover,
.datepicker .datepicker-switch:hover,
.datepicker .next:hover,
.datepicker .prev:hover,
.datepicker tfoot tr th:hover,
.datepicker table tr td.day.focused,
.datepicker table tr td.day:hover {
    background: #373748 !important;
}

.datepicker table tr td.disabled {
    color: #373748 !important;
    background: 0 0 !important;
}

.btn-check:active+.btn-secondary, .btn-secondary.active, .btn-secondary:active, .show>.btn-secondary.dropdown-toggle {
    background-color: #363647 !important;
    border-color: #363647 !important;
}

.br-diagonal-5-forward {
    border-radius: 0 5px 0 5px;
}

.br-diagonal-5-backwards {
    border-radius: 5px 0 5px 0;
}

.tournament-summary span {
    font-size: 12px;
}

.tournament-image {
    background-image: url(/images/backgrounds/tournament_bg.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.tournament-summary .tournament-image img {
    height: 80%;
    max-width: 240px;
    object-fit: contain;
}

.tournament-summary > *:nth-child(3) {
    grid-column: span 2;
}

.tournament-summary > *:nth-child(4) {
    background-color: #272736;
}

.tournament-summary > *:nth-child(4) .bi-clock {
    color: gray;
    padding: 5px;
}

.tournament-summary > *:nth-child(4) > div:first-child {
    padding: 2px 5px;
}


.tournament-summary > *:nth-child(5) {
    padding: 2px 10px;
    background-color: #1C1C29;
}

 table.shaded tr {
    background: linear-gradient(rgba(0, 0, 0, 0.25), transparent 7.5%, transparent 92.5%, rgba(0, 0, 0, 0.25));
}

table.shaded tr.seed-blue {
    background: linear-gradient(rgba(0, 0, 0, 0.25), transparent 7.5%, transparent 92.5%, rgba(0, 0, 0, 0.25)), linear-gradient(to right, #1d1d29, hsl(240deg calc(17% + -5%) calc(14% + 42%)));
}

table.shaded tr.seed-green {
    background: linear-gradient(rgba(0, 0, 0, 0.25), transparent 7.5%, transparent 92.5%, rgba(0, 0, 0, 0.25)), linear-gradient(to right, #1d1d29, hsl(240deg calc(17% + -5%) calc(14% + 25%)));
}

table.shaded tr.seed-lightgreen {
    background: linear-gradient(rgba(0, 0, 0, 0.25), transparent 7.5%, transparent 92.5%, rgba(0, 0, 0, 0.25)), linear-gradient(to right, #1d1d29, hsl(240deg calc(17% + -5%) calc(14% + 15%)));
}

table.shaded tr.seed-yellow {
    background: linear-gradient(rgba(0, 0, 0, 0.25), transparent 7.5%, transparent 92.5%, rgba(0, 0, 0, 0.25)), linear-gradient(to right, #1d1d29, hsl(240deg calc(17% + -5%) calc(14% + 8%)));
}

table.shaded tr.seed-orange {
    background: linear-gradient(rgba(0, 0, 0, 0.25), transparent 7.5%, transparent 92.5%, rgba(0, 0, 0, 0.25)), linear-gradient(to right, #1d1d29, hsl(240deg calc(17% + -5%) calc(14% + 4%)));
}

table.shaded tr.seed-red {
    background: linear-gradient(rgba(0, 0, 0, 0.25), transparent 7.5%, transparent 92.5%, rgba(0, 0, 0, 0.25)), linear-gradient(to right, #1d1d29, hsl(240deg calc(17% + -5%) calc(14% + 2%)));
}


.game-ranking table tr {
    height: 55px;
}

.game-ranking th:nth-child(3),
.game-ranking th:nth-child(6) {
    width: 25%
}

.game-ranking button {
    margin: 15px auto;
    padding: 5px 10px;
    font-weight: 600;
    font-size: small;
}

.game-ranking img {
    object-fit: contain;
    max-height: 30px;
}

.game-ranking.lol-rankings th {
    text-align: center;
}

.game-ranking.lol-rankings th:first-child:not(.header) {
    width: 20%;
}

.game-ranking.lol-rankings td, .game-ranking.lol-rankings th {
    text-align: center;
}


.game-ranking.lol-rankings td:nth-child(2) > div {
    width: 70%;
}

.game-ranking.lol-rankings td:nth-child(2) span {
    text-align: start;
}

.game-ranking.lol-rankings article {
    height: fit-content;
    max-width: 300px;
}

.game-ranking.lol-rankings article > div.header > span {
    font-weight: 700;
}

div.logo,
img.logo {
    object-fit: contain;
}

div.logo.x-small,
span.logo.x-small,
img.logo.x-small {
    width: 20px;
    height: 20px;
}

div.logo.smaller,
span.logo.smaller,
img.logo.smaller {
    width: 25px;
    height: 25px;
}

div.logo.small,
span.logo.small,
img.logo.small {
    width: 30px;
    height: 30px;
}

div.logo.medium,
span.logo.medium,
img.logo.medium {
    width: 45px;
    height: 45px;
}

div.logo.large,
span.logo.large,
img.logo.large {
    width: 90px;
    height: 90px;
}

.logo-shadow {
    filter: drop-shadow(0px 0px 3px var(--primary-pale));
}

.nationality-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.nationality-container .phoca-flag {
    width: 16px;
}

.player-card {
    width: 250px;
    display: grid;
    grid-template-rows: 45px 265px auto;
}

.player-card h3 {
	padding: 0.8em;
}

.player-card table {
    width: auto;
    margin: 10px 20px;
}

.player-card table td span {
    color: white;
}

.player-card table tr > *{
    display: block;
}

.player-card table tr {
    display: table-cell;
}


/* Tournament details */
.decorated-participant>*:first-child {
    position: absolute;
    z-index: 1;
}

.decorated-participant>*:last-child {
    margin: 10px;
}

.decorated-participant>*:last-child img {
    object-fit: contain;
    width: 45px;
    height: 45px;
}


.decorated-participant .cropped-player-container {
    width: 45px;
    height: 45px;
}

.sticky-ad-left {
    position: fixed;
    top: 50vh;
    left: 0;
    margin-top: -140px;
    z-index: 1030;
}

.sticky-ad-right {
    position: fixed;
    top: 50vh;
    right: 0;
    margin-top: -140px;
    z-index: 1030;
}

.phoca-flag-wrapper {
    float: left;
    position:relative;
    height: 20px;
}

.match-status-label {
    display: flex;
    align-items: center;
    border-radius: 25px;
    background-color: var(--status-default-gray);
    min-width: 60px;
    text-align: center;
    padding: 1px 15px;
}

.match-status-label.started {
    background-color: var(--status-ongoing-red);
}

.match-status-label.scheduled {
    background-color: var(--status-scheduled-blue);
}

.match-status-label span {
    display: block;
    font-weight: bold;
}

.match-list .dropdown-indicator {
    transition: -webkit-transform .2s ease-in-out;
    transition: transform .2s ease-in-out;
    transition: transform .2s ease-in-out,-webkit-transform .2s ease-in-out;
}

.match-list .dropdown-indicator.expanded {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

ul.route {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  ul.route li {
    display: inline;
    color: var(--primary-pale);
    font-size: 14px;
  }

  ul.route li+li:before {
    padding: 0 5px;
    color: var(--primary-pale);
    content: ">";
  }

  ul.route li a {
    color: var(--primary-pale);
    text-decoration: none;
    -webkit-transition: color 0.25s; 
    transition: color 0.25s;
  }
  
  ul.route li a:hover {
    color: white;
  }

  div.cropped-player-container {
    overflow: hidden;
  }

  div.cropped-player-container img{
    max-width: unset;
    max-height: unset;
    width: 165%;
    margin-left: -30%;
    margin-top: 1%;
}

div.placeholder-container {
    z-index: 1;
    position: relative;
    border: 1px solid #768FCB;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
}

div.placeholder-container img {
    width: 100%;
}
div.placeholder-container.large-placeholder {
    font-size: 60px;
}

div.placeholder-container.medium-placeholder {
    font-size: 24px;
}

div.placeholder-container.small-placeholder {
    font-size: 10px;
}

div.placeholder-container span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-size: 1em;
    white-space: nowrap;
    color: #768FCB;
    background-color:#252936b3 ;
    text-transform: uppercase;
    padding: 0.6em 1.2em;
    border: 1px solid #768FCB;
    border-radius: 0.2em;
}

.hide-paged {
    display: none !important;
}




div.side-banner {
    margin-top: 50vh;
}

@media (max-width: 1440px) {
    div.side-banner {
        display:none;
    }
}

@media (max-width: 1650px) {
    div.side-banner:not(.narrow) {
        display:none;
    }
}


@media (min-width: 1650px) {
    div.side-banner.narrow {
        display:none;
    }
}

div.side-banner {
    grid-area: left;
}

div.side-banner:nth-of-type(-n+2) {
    grid-area: right;
    
}

div.side-banner img {
    transform: translateY(-50%);
    float: right;
}

div.side-banner:nth-of-type(-n+2) img {
    float: left;
}

img.game-coming-soon {
    position: absolute;
    height: auto !important;
    z-index: 1;
    transform: translateY(-7px)
    translateX(-50%); left: 50%;
}

.search-form >*  {
    height: 40px;
}

.search-form #search-spyglass {
    order: -1;
}

.search-form {
    display: flex;
}

.search-form {
    max-width: 200px;
}

.search-form >* {
    background-color: var(--bg-primary-medium) !important;
    border-radius: 5px;
}

.search-form span {
    border-color: var(--bg-primary-dark);
    border-width: 1px 0 1px 1px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-style: solid;
}

.search-form input:focus + span {
    border-color: var(--active-blue);
    /* border-color: #86b7fe; */
    outline: 0;
    box-shadow: unset
}

.search-form .form-control {
    border-color: var(--bg-primary-dark);
    border-width: 1px 1px 1px 0px;
    border-style: solid;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    outline: 0 !important;
}

.search-form .form-control:focus {
    border-color: var(--active-blue);
    box-shadow: unset;
}

.search-form #search-spyglass {
    flex-basis:unset;
    color:var(--primary-pale);
    display:flex;
    justify-content:center;
    align-items:center;
    padding:0.9em;
}

main .tournament-filter-button-group {
    background-color: #171721;
    padding: 5px;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(auto-fill, minmax(1fr, 1fr));
    gap: 20px;
    border-radius: 0.2em;
}

main .tournament-filter-button-group label {
    padding: 0 0.75rem;
    background-color: transparent;
    border: none !important;
    box-shadow: none !important;
}

main .tournament-filter-button-group label span {
    color: var(--primary-pale);
}

main .tournament-filter-button-group input:checked+label span {
    color: white;
}

main .tournament-filter-button-group input:focus+label {
    color: white;
    background-color: transparent;
}

main .tournament-filter-button-group input:checked+label {
    background-color: var(--active-blue) !important;
}

main.home {
    grid-column: 2;
    align-self: flex-start;

    display: grid;
    grid-column-gap: 20px;
    grid-template-columns: 2.5fr 1fr;
    /* grid-auto-flow: row; */
}


.bootstrap-table .fixed-table-container .table.esport-table.padded thead th:first-child,
.bootstrap-table .fixed-table-container .table.esport-table.padded thead td:first-child,
.esport-table.padded th:first-child,
.esport-table.padded td:first-child {
    padding-left: 35px;
}

.bootstrap-table .fixed-table-container .table.esport-table.padded thead th:last-child,
.bootstrap-table .fixed-table-container .table.esport-table.padded thead td:last-child,
.esport-table.padded th:last-child,
.esport-table.padded td:last-child {
    padding-right: 35px;
}


.bootstrap-table .fixed-table-container .table.esport-table thead th .both,
.bootstrap-table .fixed-table-container .table.esport-table thead th .asc,
.bootstrap-table .fixed-table-container .table.esport-table thead th .desc {
    background-image: none;
    align-items: center;
}

.bootstrap-table .fixed-table-container .table.esport-table thead th .th-inner,
.bootstrap-table .fixed-table-container .table.esport-table thead th {
    padding: 0;
    overflow: unset;
}

.table.esport-table>:not(caption)>*>* {
    padding: 0;
    font-size: 12px;
    color: white;
}


.bootstrap-table .fixed-table-container .table.esport-table thead th .th-inner,
.bootstrap-table .fixed-table-container .table.esport-table thead th .sortable {
    padding: 0 !important;
    display: flex;
    justify-content: center;
}

.bootstrap-table .fixed-table-container .table.esport-table thead th .sortable h3 {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.bootstrap-table .fixed-table-container .table.esport-table thead th h3:after {
    display: none;
}

.bootstrap-table .fixed-table-container .table.esport-table thead th .sortable h3:after {
    position: absolute;
    left: 100%;
    display: block;
    content: '';
    height: 20px;
    width: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url(/images/icons/sort_both.svg);
}

.bootstrap-table .fixed-table-container .table.esport-table thead th .desc h3:after,
.bootstrap-table .fixed-table-container .table.esport-table thead th .asc h3:after {
    filter: brightness(0.3) sepia(1) hue-rotate(180deg) saturate(5);
}

.bootstrap-table .fixed-table-container .table.esport-table thead th .desc h3:after {
    background-image: url(/images/icons/sort_desc.svg);
    
}

.bootstrap-table .fixed-table-container .table.esport-table thead th .asc h3:after {
    background-image: url(/images/icons/sort_asc.svg);
}