/*
* Styles for statistic pages
*/

#statistic {
margin: 0.6em auto 5.2em auto;
color: #30336b;
}

#statistic h1 {
text-align: center;
font-weight: normal;
font-size: 1.5em;
line-height: 1.4em;
}

p.odds-info {
margin: 2.2em 0 3.2em 0;
padding: 0 0.42em;
font-size: 0.92em;
line-height: 1.6em;
text-indent: 1.6em;
color: #b33939;
}


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

@media screen and (max-width: 360px) {
#statistic 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: #218c74;
color: #ffffff;
border-right: 1px solid #f1f2f6;
border-left: 1px solid #f1f2f6;
}

table.leagues th:first-of-type {
border-left: 1px solid #218c74;
}

table.leagues th:last-of-type {
border-right: 1px solid #218c74;
}

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("/svg/sort-up.svg");
}

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

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

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 th a {
text-decoration: none;
padding-top: 3px;
padding-bottom: 3px;
color: white;
width: 44px;
display: inline-block;
border-radius: 3px 3px;
}

table.leagues th a.leagueStatTableTitle {
width: 100%;
}

table.leagues th a:hover {
color: darkgreen;
background: #C3D9B2;
}

table.leagues td a {
color: #0057a0;
text-decoration: none;
}

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

table.leagues td a:visited {
color: #0057a0;
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) {
.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: 2em;
margin-top: 0.6em;
margin-bottom: 1em;
text-align: center;
}

.statistic-label {
display: inline-block;
color: #30336b;
padding-right: 0.32em;
vertical-align: middle;
}

.statistic-view {
display: inline-block;
vertical-align: middle;
max-width: calc(100% - 7em);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

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

.statistic-select a:visited {
color: #0057a0;
}

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

.statistic-select-button {
width: 1.8em;
height: 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: #218c74;
background-position: center;
background-repeat: no-repeat;
background-size: 38px 38px;
}

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

.statistic-select-arrow-down {
background-image: url("/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: #0057a0;
text-decoration: none;
line-height: 32px;
padding: 4px 16px 4px 16px;
font-size: 18px;
white-space: nowrap;
max-width: 220px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 132px;
padding-left: 32px;
}

.statistic-select-item:visited {
color: #0057a0;
}

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

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

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

.statistic-select-image-reverse {
background-image: url("/svg/sort-down-2.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("/svg/close2.svg");
}


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


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


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


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

