/*
* Styles for statistic pages
*/

#main {
background: #f7f7f7;
}

#statistic-wrapper {
padding: 0 0.6em 5.2em 0.6em;
color: #34495e;
background: #f7f7f7;
}

#statistic-wrapper h1 {
text-align: center;
font-weight: normal;
font-size: 1.5em;
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: #d64541;
}

.country-flag {
width: 28px;
height: 17px;
}

.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;
}


@media screen and (max-width: 640px) {
#statistic-wrapper {
padding-left: 0;
padding-right: 0;
}
}

@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 {
line-height: 2.2em;
text-align: center;
font-weight: bold;
background: #367691;
color: #ffffff;
}

table.leagues th:first-of-type {
border-radius: 2px 0 0 0;
}

table.leagues th:last-of-type {
border-radius: 0 2px 0 0;
}

table.leagues th.league {
vertical-align: top;
}

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

table.leagues th.th-sort {
background-image: url("/images/svg/sort-up-2.svg");
}

table.leagues th.th-sort-reverse {
background-image: url("/images/svg/sort-down-2.svg");
}

table.leagues td {
line-height: 2.2em;
padding: 0;
border-bottom: 1px solid #dadfe1;
}

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

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

table.leagues td img {
margin-right: 8px;
vertical-align: -2px;
background: white;
}

table.leagues td a {
color: #2455c3;
text-decoration: none;
}

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

table.leagues td a:visited {
color: #2455c3;
text-decoration: none;
}

.lshort {
display: none;
}

.lmiddle {
display: none;
}


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


@media screen and (max-width: 640px) {
table.leagues th:first-of-type {
border-radius: 0;
}
table.leagues th:last-of-type {
border-radius: 0;
}
.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 {
margin-top: 0.6em;
margin-bottom: 1em;
text-align: center;
}

.statistic-label {
color: #34495e;
padding-right: 0.32em;
}

.statistic-select a {
color: #0c59a3;
text-decoration: none;
white-space: nowrap;
font-size: 1em;
padding: 0.4em 0 0.4em 0.48em;
}

.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: #0c59a3;
}

.statistic-select a:hover {
background: #dfe6e9;
}

.statistic-select-button {
width: 1.8em;
margin-left: 0.2em;
vertical-align: -0.58em;
}


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

.statistic-select-arrow {
position: relative;
display: block;
width: 100%;
height: 38px;
flex: none;
cursor: pointer;
background-color: #808e9b;
background-position: center;
background-repeat: no-repeat;
background-size: 38px 38px;
}

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

.statistic-select-arrow-down {
background-image: url("/images/svg/move-down2.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: #0c59a3;
text-decoration: none;
line-height: 32px;
padding: 4px 16px 4px 52px;
font-size: 18px;
white-space: nowrap;
max-width: 240px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 132px;
}

.statistic-select-item:visited {
color: #0c59a3;
}

.statistic-select-item:hover {
background-color: #dfe6e9;
}

.statistic-select-image {
color: #1e824c;
font-weight: bold;
}

.statistic-select-image:visited {
color: #1e824c;
}

.statistic-select-image-reverse {
color: #c0392b;
font-weight: bold;
}

.statistic-select-image-reverse:visited {
color: #c0392b;
}

.statistic-select-image, .statistic-select-image-reverse {
background-position: 10px center;
background-repeat: no-repeat;
background-size: 30px 30px;
}

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

.statistic-select-image-reverse {
background-image: url("/images/svg/sort-down.svg");
}

.statistic-close-button2 {
position: absolute;
top: 0;
right: 0;
cursor: pointer;
width: 38px;
height: 38px;
background-position: center;
background-repeat: no-repeat;
background-size: 24px 24px;
background-image: url("/images/svg/close2.svg");
}



@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);
}
}


