/*
* Styles for statistic pages
*/


#statistic-wrapper {
padding: 1.32em 0 5.2em 0;
}

#statistic-wrapper h1 {
margin: 0 auto 0.72em auto;
text-align: center;
font-weight: normal;
font-size: 1.32em;
line-height: 1.4em;
}

p.stat-info {
margin: 1.6em 0 3.2em 0;
padding: 0 0.6em;
font-size: 0.92em;
line-height: 1.6em;
text-indent: 0.8em;
color: var(--attention-color);
}

.dc {
position: relative;
max-width: 100%;
display: block;
}

.dce {
position: absolute;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
width: 100%;
top: 0;
left: 0;
}

.dce a {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.dci {
position: absolute;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
width: 100%;
height: 2.8em;
top: 0;
left: 0;
z-index: 10;
}


@media screen and (max-width: 520px) {
#statistic-wrapper h1 {
padding-left: 0.42em;
padding-right: 0.42em;
}
}

@media screen and (max-width: 360px) {
#statistic-wrapper h1 {
padding-left: 0.22em;
padding-right: 0.22em;
}
}




table.leagues {
width: 100%;
margin: 1.2em 0 2em 0;
border-collapse: collapse;
}

table.leagues th {
vertical-align: top;
height: 2.8em;
line-height: 2.8em;
text-align: center;
font-weight: bold;
background: var(--game-title-bg-color);
color: var(--game-title-color);
}

table.leagues th.th-sort span.dci, table.leagues th.th-sort-reverse span.dci {
background-position: center 1.68em;
background-repeat: no-repeat;
background-size: 1.32em 1.32em;
background-origin: content-box;
background-clip: border-box;
}

table.leagues th.th-sort span.dci {
background-image: url("/svg/sort-up.svg");
filter: var(--settings-positive-filter);
}

table.leagues th.th-sort-reverse span.dci {
background-image: url("/svg/sort-down.svg");
filter: var(--settings-negative-filter);
}

table.leagues td {
line-height: 2.8em;
padding: 0;
border-bottom: 1px solid var(--game-border-color);
}

table.leagues td.league {
vertical-align: top;
text-align: left;
padding-left: 0.38em;
}

table.leagues td.st {
width: 42px;
text-align: right;
padding-right: 6px;
}

table.leagues td img {
width: 1.76em;
background: var(--image-bg-color);
margin-right: 0.82em;
vertical-align: -0.32em;
}

table.leagues td a {
color: var(--link-color);
text-decoration: none;
}

table.leagues td a:visited {
color: var(--link-color);
}

table.leagues td a:hover {
text-decoration: underline;
}

.lshort {
display: none;
}

.lmiddle {
display: none;
}


@media screen and (max-width: 1024px) {
table.leagues a {
display: inline-block;
width: 100%;
}
}


@media screen and (max-width: 768px) {
.llong {
display: none;
}
.lmiddle {
display: unset;
}
}


@media screen and (max-width: 640px) {
.lmiddle {
display: none;
}
.lshort {
display: unset;
}
}


@media screen and (max-width: 600px) {
.lmiddle {
display: unset;
}
.lshort {
display: none;
}
.sc {
display: none;
}
}


@media screen and (max-width: 380px) {
.lmiddle {
display: none;
}
.lshort {
display: unset;
}
}











.statistic-select {
height: 2.4em;
margin-top: 0.6em;
margin-bottom: 1em;
text-align: center;
}

.statistic-label {
color: var(--main-color);
padding-right: 0.52em;
}

.statistic-button {
height: 2.4em;
width: 2em;
background-position: right;
background-repeat: no-repeat;
background-size: 1.52em 1.52em;
background-image: url("/svg/select.svg");
filter: var(--settings-select-filter);
}

.statistic-select a {
color: var(--link-color);
text-decoration: none;
white-space: nowrap;
font-size: 1em;
line-height: 2.4em;
padding: 0.4em 0.2em 0.52em 0.52em;
}

.statistic-select a span {
display: inline-block;
vertical-align: middle;
max-width: 220px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.statistic-select a:visited {
color: var(--link-color);
}

.statistic-select a:hover {
background-color: var(--settings-hover-color);
}


.statistic-window {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 12000;
background: var(--settings-bg-color);
max-height: 50%;
display: flex;
flex-direction: column;
}

.statistic-select-arrow {
position: relative;
display: block;
text-align: center;
width: 100%;
height: 2.4em;
line-height: 2.4em;
flex: none;
cursor: pointer;
background-color: var(--settings-bg-header-color);
}

.statistic-select-button {
display: inline-block;
height: 2.4em;
width: 2.4em;
background-position: center;
background-repeat: no-repeat;
background-size: 2.4em 2.4em;
filter: var(--settings-bg-header-filter);

}

.statistic-select-up-button {
background-image: url("/svg/move-up.svg");
}

.statistic-select-down-button {
background-image: url("/svg/move-down.svg");
}

.statistic-select-items {
min-height: 0;
flex-grow: 1;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
height: 100%;
}

.statistic-select-item {
display: block;
color: var(--settings-link-color);
text-decoration: none;
height: 2.4em;
line-height: 2.4em;
padding: 0 1.92em 0 0.32em;
white-space: nowrap;
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
min-width: 132px;
}

.statistic-select-item:visited {
color: var(--settings-link-color);
}

.statistic-select-item:hover {
background-color: var(--settings-hover-color);
}

.statistic-close-button2 {
display: block;
position: absolute;
top: 0;
right: 0;
cursor: pointer;
width: 2.4em;
height: 2.4em;
background-position: center;
background-repeat: no-repeat;
background-size: auto;
background-image: url("/svg/close.svg");
filter: var(--settings-bg-header-filter);
}

.statistic-close-button2:hover {
background-color: var(--settings-bg-header-hover-color);
}

.statistic-select-txt {
display: inline-block;
vertical-align: top;
line-height: 2.4em;
color: var(--settings-link-color);
}

.statistic-selected-txt {
color: var(--settings-positive-color);
font-weight: bold;
}

.statistic-selected-txt-reverse {
color: var(--settings-negative-color);
font-weight: bold;
}

.statistic-select-img {
display: inline-block;
vertical-align: top;
height: 2.4em;
line-height: 2.4em;
width: 2.4em;
background-position: center;
background-repeat: no-repeat;
background-size: 1.88em 1.88em;
}

.statistic-selected-img {
background-image: url("/svg/sort-up.svg");
filter: var(--settings-positive-filter);
}

.statistic-selected-img-reverse {
background-image: url("/svg/sort-down.svg");
filter: var(--settings-negative-filter);
}


@media screen and (max-height: 768px) {
.statistic-window {
max-height: 60%;
}
}


@media screen and (max-height: 640px) {
.statistic-window {
max-height: 70%;
}
}


@media screen and (max-height: 480px) {
.statistic-window {
max-height: calc(100% - 20px);
}
}
