@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(./res/icons.woff2) format('woff2');
}

@font-face {
    font-family: 'NBA';
    font-style: normal;
    font-weight: 400;
    src: url('./res/nba.otf') format('opentype');
}

@font-face {
    font-family: 'NBA-numbers';
    font-style: normal;
    font-weight: 400;
    src: url('./res/nba-numbers.otf') format('opentype');
}

.nba-font {
    font-family: 'NBA', Impact;
}

.nba-numbers {
    font-family: 'NBA-numbers', Impact;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}


* {
    margin: 0;
    padding: 0;
    /* font-family: 'Helvetica Neue', Helvetica, sans-serif; */
    font-family: sans-serif;

    scroll-behavior: smooth;
}

:root {
    /* --green: #00bd00; */
    --yellow: #d0ae0e;
    --green: #3C8725;
    --grey: #aaa;
    --header: #fff;
    --body: #ddd;
    --hockey-blue: #207ec2;
    --brown: #581c08;
    --primary: #00000040;
    /* #3C8725;*/
    --dark-primary: #00000080;
    /* #2d641c */
    --footer: #00000080;
    --text-color: white;
    --red: #bd0000;
    --dark-clear: #00000040;
    --dark-blur: 8px;
    --transition: 0.2s ease-out;
}

body {
    color: var(--text-color);
    background-image: url(res/field.jpg);
    background-size: cover;
    background-repeat: repeat;
    background-position: top;
    /* background-color: #2E1C0D; */
    /* background-color: var(--body); */
    /* backdrop-filter: brightness(0.9) blur(2px);
    -webkit-backdrop-filter: brightness(0.9) blur(2px); */
    filter: drop-shadow(0px 2px 4px #00000080);
    -webkit-filter: drop-shadow(0px 2px 4px #00000080);
}

.main-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--header);
    /* background-image: url(res/football-skin.jpg);
    background-size: cover;
    background-repeat: repeat;
    background-position: bottom; */

    color: rgb(200, 0, 0);
}

#header-name {
    min-width: min(180px, 24vw);
    margin: 10px 0 10px 10px;
    font-size: 40px;
    /* font-family: 'Bebas Neue', sans-serif; */
}

.header-row>* {
    position: relative;
    /* border-right: solid 1px var(--text-color); */
    padding-right: 13px;
}


.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* width: 360px; */
    gap: 10px;
    height: 100%;
    margin-right: 10px;
}

.header-item {
    display: block;
    font-weight: 600;
    line-height: 40px;
    cursor: pointer;
}

.header-link {
    cursor: pointer;
}

#report-button,
#home-button {
    background: var(--red);
    color: white;
    padding: 8px 10px 8px 10px;
    border-radius: 1000px;
}

.header-item.selected {
    color: var(--green);
}

.header-item.selected::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -13px;
    width: calc(13px + 100%);
    height: 100%;
    transform: translateY(-100%);
    background-color: white;
    z-index: -1;
    border-radius: 20px;
}

.circle-button {
    padding: 20px;
    border-radius: 50%;
    background: var(--dark-clear);
    backdrop-filter: blur(var(--dark-blur));
    -webkit-backdrop-filter: blur(var(--dark-blur));
    width: 12px;
    height: 12px;
    margin: 10px 10px 10px 0;
    font-size: 22px;
    text-align: center;
    line-height: 12px;
    cursor: pointer;
}

.circle-button:hover {
    background: #00000060;
}

#mystery-figure {
    height: 220px;
}

figcaption {
    text-align: center;
    font-size: 20px;
}

th {
    border-bottom: solid 2px var(--text-color);
    padding-inline: 10px;
}

.text-button {
    cursor: pointer;
    text-decoration: underline;
    color: var(--text-color);
}

#mystery-img {
    pointer-events: none;
    width: 260px;
    height: 190px;
    object-fit: contain;
}

.dark-img {
    filter: brightness(0);
    -webkit-filter: brightness(0);
}

#search-input {
    margin-block: 10px;
    width: 100%;
}

#result-table {
    margin-top: 10px;
    padding: 4px;
    background-color: var(--dark-clear);
    backdrop-filter: blur(var(--dark-blur));
    -webkit-backdrop-filter: blur(var(--dark-blur));
    border-radius: 10px;
}

#result-table td {
    /* border-radius: 10px; */
}

td {
    text-align: center;
    padding-inline: 5px;
}

.player-cell {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.player-cell>img.player-headshot {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.team-cell-inner,
.conference-cell-inner,
.birthplace-cell-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

img.team-logo,
img.conference-logo,
img.birthplace-logo {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

svg>text {
    text-anchor: middle;
}

svg.jersey {
    width: 40px;
}

.number-cell::after {
    /* vertical-align: 100%; */
}

td.green {
    background-color: var(--green);
    color: white;
}

td.grey {
    /* background-color: var(--grey); */
}

td.yellow {
    background-color: var(--yellow);
}

td.down::after {
    content: '\2193';
}

td.up::after {
    content: '\2191';
}

#card-background {
    top: 0%;
    left: 0%;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: opacity 0.4s ease-out;
    z-index: 2;
}

#end-card {
    background-color: white;
    width: min(500px, 50vw);
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    padding-block: 30px
}

#end-card-inner {
    overflow: scroll;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 70%;
    height: 50%;
    margin-bottom: 20px;
}

#end-card-title {
    margin-bottom: 10px;
}

#mystery-player-img {
    width: min(180px, 20vw);
    height: auto;
    object-fit: contain;
}

#mystery-player-name {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
}

#end-card-title,
#mystery-player-name {
    color: black;
}

button,
.button {
    background-color: var(--green);
    /* background-color: var(--primary); 
    backdrop-filter: blur(var(--dark-blur));
    -webkit-backdrop-filter: blur(var(--dark-blur)); */
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
}

#practice-button {
    border-radius: 20px;
}

/* #guess-button,
#donate-button,
#start-button {
    background-color: var(--green);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
} */

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

*:is(button, .button, #guess-button)[disabled] {
    background-color: #aaa;
}

.hide {
    opacity: 0;
    pointer-events: none;
}

center {
    margin-top: 50px;
    margin-bottom: 20px;
}

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

#show-divisions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#divisions-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/**************************/
.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
}

.autocomplete-items>div:not(.autocomplete-active) {
    color: black;
}

.autocomplete-active {
    color: white;
}

input {
    border: 1px solid transparent;
    background-color: #f1f1f1;
    padding: 10px;
    font-size: 16px;
}

input[type=text] {
    background-color: #f1f1f1;
    width: 100%;
}

/* input[type=submit] {
    background-color: var(--primary);
    color: #fff;
} */

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    /*when hovering an item:*/
    background-color: #e9e9e9;
}

.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: var(--green) !important;
    color: #ffffff;
}

a,
a:visited {
    color: rgb(200, 0, 0);
    text-decoration: none;
}

*:is(a,
    a:visited):hover {
    text-decoration: underline;
}

small {
    font-size: 12px;
    line-height: 14px;
}

.center {
    text-align: center;
}

.line-height {
    line-height: 1.5;
}

footer>center {
    margin-bottom: 0;
    /* font-size: 20px; */
}

.white-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 20px;
    color: black;
}

.white-card *:is(a, a:visited) {
    color: var(--green)
}

#bracket-white-card {
    width: clamp(350px, 80vw, 920px);
}

#bracket-header {
    text-align: center;
    font-size: 30px;
    margin-bottom: 10px;
}

footer {

    width: 100%;
    background-color: var(--header);
    /* backdrop-filter: blur(var(--dark-blur));
    -webkit-backdrop-filter: blur(var(--dark-blur)); */
    /* background-image: url(res/football-skin.jpg);
    background-size: cover;
    background-repeat: repeat;
    background-position: bottom; */
    color: rgb(200, 0, 0);
}

#history-cont-cont {
    position: relative;
    width: fit-content;
}

#history-cont-cont::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 6px;
    width: calc(100% - 12px);
    height: 1px;
    background-color: var(--text-color);
    opacity: 0.4;
}

#history-cont-cont::before {
    content: "History";
    position: absolute;
    top: 10px;
    text-align: left;
    transform: translateY(-50%);
    left: 6px;
    color: var(--text-color);
    font-size: 14px;
    font-variant-caps: all-small-caps;
    font-weight: 700;
    z-index: 1;
}

#history-cont {
    width: 600px;
    height: 110px;
    max-width: 80vw;
    padding: 6px;
    padding-top: 16px;
    border-radius: 5px;
    background-color: var(--dark-clear);
    backdrop-filter: blur(var(--dark-blur));
    -webkit-backdrop-filter: blur(var(--dark-blur));
    position: relative;
    overflow-x: scroll;
    overflow-y: hidden;
}


#history-inner {
    display: flex;
    flex-direction: row-reverse;
    justify-content: start;
    width: fit-content;
    height: 100%;
    gap: 10px;
    white-space: nowrap;
}

.history-player {
    position: relative;
    top: 4px;
    height: 100%;
    width: 95px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    position: relative;
}

*:is(.history-correct-true, .history-correct-false)::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
}

.history-correct-true::after {
    background-color: var(--green);
    background-image: url(res/checkmark.png);

}

.history-correct-false::after {
    background-color: var(--red);
    background-image: url(res/xmark.png);

}


.history-player-img {
    margin-top: 4px;
    width: 100%;
    height: calc(100% - 30px);
    object-fit: contain;
}

.history-player-name {
    font-size: 14px;
    max-width: 95px;
    word-wrap: break-word;
    overflow: hidden;
    white-space: wrap;
}



/**************************/



@media screen and (max-width: 940px) {
    #result-table {
        zoom: 0.7;
    }

    #divisions-img {
        /* zoom: 0.7; */
    }
}

@media screen and (max-width: 600px) {
    #result-table {
        zoom: 0.2;
    }

    #divisions-img {
        zoom: 0.8;
    }
}

/* DALANO */

#dalano-card {
    position: fixed;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    padding: 20px 10px;
    border-radius: 10px;
    background-color: grey;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
    color: white;
    text-align: center;
}

#dalano-img {
    animation: dalano-animation 0.1s linear infinite alternate-reverse;
}

@keyframes dalano-animation {

    /* spin back and forth */
    0% {
        transform: rotate(-10deg);
    }

    100% {
        transform: rotate(10deg);
    }
}

/* intro card */

#intro-card-back {
    backdrop-filter: brightness(0.5);
    -webkit-backdrop-filter: brightness(0.5);
    -webkit-backdrop-filter: brightness(0.5);
    -webkit-backdrop-filter: brightness(0.5);
    backdrop-filter: brightness(0.5);
    -webkit-backdrop-filter: brightness(0.5);
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* display: flex;
    justify-content: center;
    align-items: center; */
    z-index: 2;
}

#intro-card {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 460px;
    transform: translate(-50%, -50%);
    padding: 10px;
    border-radius: 10px;
    background-color: white;
    transition: opacity 0.4s ease-out;
    color: black;
    text-align: center;
}

#play-again-button.play-again-timer-cont {
    color: black;
}

#intro-card-inner {
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    align-items: center;
    height: 100%;
}

#intro-message {
    /* font-family: 'Bebas Neue', sans-serif; */

}

#intro-card-inner>*:not(#intro-message),
#intro-card-inner b {
    font-family: sans-serif;

}

hr {
    width: 100%;
    margin-block: 10px;
}

y {
    background-color: yellow;
}

g {
    background-color: green;
}

.outer-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* iframe {
    transform: scale(0.75);
    filter: opacity(0.5);
} */

#donate-img {
    width: 100px;
    margin: -10px;
}

#donate-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-block: 10px;
}

/* interstitial ad */

[style="display: block !important;"]>div {
    width: 100% !important;
    max-width: 20vw !important;
    height: calc(100vh - 72px) !important;
    top: 72px !important;
    left: 0px !important;
}

/* banner */
[style="display: block !important;"]>div>div>div {
    width: 100% !important;
    max-width: 20vw !important;
    overflow: hidden !important;
    z-index: 0 !important;
    height: calc(100vh - 72px) !important;
    top: 72px !important;
}

/* button */
[style="display: block !important;"]>div>div>div>div>div>div:last-child {
    top: 82px !important;
    left: 0px !important;
    width: 100% !important;
    max-width: 20vw !important;
    height: calc(100vh - 72px) !important;
    /* opacity: 0 !important; */
}

[style="display: block !important;"]>div>div>div>div>div>div:last-child>div {
    width: 100vw !important;
    height: 100vh !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 0.8 !important;
}

[style="display: block !important;"]>div>div>div>div>div>div:last-child>div::after {
    position: absolute;
    top: -100px;
    left: 50%;
    width: 100vw;
    color: white;
    height: 100%;
    /* background: white; */
    content: "Please click anywhere to close this ad,\athen click the X on the right side of the\aother ads that you may see to dismiss them.\a\a\aSorry for the inconvenience, running this site\ais really expensive :(";
    white-space: pre;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* text-align: center; */
/* backdrop-filter: opacity(0.5);
-webkit-backdrop-filter: opacity(0.5);

[style="display: block !important;"]>div>div>div>div {
    inset: 0px !important;
}

@media (max-width: 1220px) {
    [style="display: block !important;"]>div>div {
        max-width: 10vw !important;
    }

    /* banner */
[style="display: block !important;"]>div>div>div {
    max-width: 10vw !important;
}

/* button */
[style="display: block !important;"]>div>div>div>div>div>div:last-child {
    max-width: 10vw !important;
}

ul {
    text-align: left;
}

/* filters */

.dark-format,
#filters-details {
    background-color: var(--dark-clear);
    backdrop-filter: blur(var(--dark-blur));
    -webkit-backdrop-filter: blur(var(--dark-blur));
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    border-radius: 5px;
}

#filters-details[open] {
    min-width: 335px;
    z-index: 1;
}

.inner-filter-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    gap: 40px;
}

.starters-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
}

#team-filter-container {
    text-align: left;
}

#position-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
}

.inner-filter-label {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 4px;
}

.inner-filter-label {
    flex-direction: row;
}

/* .header-label  */
input.header-label {
    margin-right: 50px;
}

input.header-label::after,
input.starters-label::after {
    font-weight: 600;
    content: attr(title);
    width: max-content;
    white-space: pre;
    position: relative;
    left: 18px;
    top: -3.5px;
    color: white;
}

input.header-label:not(:checked)+.input-container {
    display: none !important;
}

#form-reset {
    margin-top: 10px;
    color: white;
}

#division-container {
    display: flex;
    flex-direction: row;
    column-gap: 10px;
}

details {
    cursor: default;
}

details *:is(summary, input, label) {
    cursor: pointer;
}

summary {
    font-weight: 700;
}

summary>.text-button {
    font-weight: 400;
}

/* IL */

#IL_IF_LEFT,
#IL_IF_RIGHT {
    /* margin-top: 72px; */
}


/* actual bracket stuff */
#bracket-container {
    border-radius: 10px;
    background-color: var(--dark-clear);
    padding: 10px;
    width: calc(100% - 20px);
    height: fit-content;
}

#bracket-choice-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

#series-header {
    text-align: center;
}

#bracket-choice-inner {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    /* height: 300px; */
    gap: 10px;
}

.bracket-choose {
    width: 40%;
    max-width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: white;
    border-radius: 10px;
    color: black;
    cursor: pointer;
    transition: height var(--transition), width var(--transition), background-color var(--transition), color var(--transition);
}

.bracket-choose.bracket-chosen {
    background-color: var(--green);
    height: 250px;
    width: 50%;
    color: white;
    max-width: 300px;
}



.bracket-choose.bracket-not-chosen {
    height: 150px;
    width: 30%;
}

.bracket-choose-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.bracket-choose-img {
    width: 100%;
    height: 120px;
    /* border-radius: 10px; */
    filter: drop-shadow(0px 0px 10px black);
    -webkit-filter: drop-shadow(0px 0px 10px black);
    object-fit: contain;
    transition: height var(--transition), width var(--transition);
}

.bracket-choose.bracket-chosen .bracket-choose-img {
    height: 180px;
}

.space-between {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: calc(90vw - 72px);
    text-align: center;
}

#bracket-show-button-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#terms-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

#terms-container>ul {
    padding: 20px;
    width: max(500px, 60vw);
}

.refer-cont {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}


#ads-around-inner {
    display: flex;
    flex-direction: column;
}

/* [id*='ezoic-pub'] {
    display: none;
} */

#ads-around {
    display: flex;
    justify-content: space-between;
    justify-content: center;
    filter: drop-shadow(0px 2px 4px #00000080);
    -webkit-filter: drop-shadow(0px 2px 4px #00000080);

    align-items: center;
    flex-direction: row;
}

@media only screen and (max-width: 1080px) {

    .ezoic_ad_placementright,
    .ezoic_ad_placementleft {
        display: none;
    }

    /* #ads-around {
        justify-content: center;
    } */


}

div.IL_IF {
    top: 190px !important;
}