/*
* Styles for statistic pages
*/

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

h1.standing-title {
margin: 0.8em 0 1.2em 0;
font-size: 1.2em;
font-weight: normal;
text-align: center;
}

h1.standing-title-int {
margin: 0 0 1.2em 0;
font-size: 1.2em;
font-weight: normal;
text-align: center;
}

div.standing-title-wrapper {
position: relative;
}

img.standing-country-flag {
width: 40px;
height: 30px;
position: absolute;
right: 0;
top: -4px;
background: var(--image-bg-color);
}

img.standing-international-flag {
width: 40px;
height: 24px;
position: absolute;
right: 0;
top: -2px;
background: var(--image-bg-color);
}

h2.standing-group-title {
margin: 3.2em 0 1.2em 0;
text-align: center;
font-size: 1.2em;
font-weight: normal;
}

h2.standing-group-title-games {
margin: 3.2em 0 -1.2em 0;
text-align: center;
font-size: 1.2em;
font-weight: normal;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

h2.standing-subtitle {
margin: -0.88em 0 0.92em 0;
text-align: center;
font-size: 1em;
font-weight: normal;
text-transform: lowercase;
}

h2.standing-country-group-title {
margin: 4.2em 0 1em 0.6em;
text-align: left;
font-size: 1.2em;
font-weight: normal;
}

h2.standing-country-group-title-fisrt {
margin-top: 1.4em
}

.standing-group-details {
margin: 1em 0.6em 0 0;
text-align: right;
font-size: 1.2em;
}

.standing-group-details a {
text-decoration: none;
color: var(--link-color);
}

.standing-group-details a:visited {
color: var(--link-color);
}

.standing-group-details a:hover {
text-decoration: underline;
}

#standing-navigation {
padding-bottom: 0.6em;
border-bottom: 1px solid var(--game-border-color);
}

#standing-navigation ul {
margin: 0;
padding: 0;
list-style: none;
}

#standing-navigation li {
display: inline-block;
margin-right: 1.4em;
}

#standing-navigation li:last-of-type {
margin-right: 0;
}

#standing-navigation a {
text-decoration: none;
color: var(--link-color);
}

#standing-navigation a:visited {
color: var(--link-color);
}

#standing-navigation a:hover {
text-decoration: underline;
}

#standing-navigation span {
color: var(--attention-color);
}

#standing-navigation img {
margin-right: 1.4em;
vertical-align: -3px;
background: var(--image-bg-color);
}

#standing-group-navigation {
margin-bottom: 0.6em;
padding-bottom: 0.6em;
border-bottom: 1px solid var(--game-border-color);
}

#standing-group-navigation ul {
margin: 0;
padding: 0;
list-style: none;
}

#standing-group-navigation li {
display: inline-block;
margin-right: 1.4em;
}

#standing-group-navigation li:last-of-type {
margin-right: 0;
}

#standing-group-navigation a {
text-decoration: none;
color: var(--link-color);
}

#standing-group-navigation a:visited {
color: var(--link-color);
}

#standing-group-navigation a:hover {
text-decoration: underline;
}

#standing-group-navigation span {
color: var(--attention-color);
}

@media screen and (max-width: 1200px) {
#standing-navigation ul {
margin-left: 1em;
}
img.standing-country-flag, img.standing-international-flag {
right: 1em;
}
}

@media screen and (max-width: 640px) {
#standing-navigation ul {
margin-left: 0;
}
#standing-navigation, #standing-group-navigation {
border-bottom: 0 none var(--game-border-color);
}
#standing-navigation li, #standing-group-navigation li {
display: block;
line-height: 2.2em;
margin-left: 0.6em;
margin-right: 0.6em;
padding-left: 0.4em;
padding-right: 0.4em;
border-bottom: 1px solid var(--game-border-color);
}
#standing-navigation li:last-of-type {
margin-right: 0.6em;
}
#standing-navigation a, #standing-group-navigation a {
display: block;
}
}

@media screen and (max-width: 480px) {
h1.standing-title {
width: calc(100% - 50px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}

@media screen and (max-width: 420px) {
img.standing-country-flag, img.standing-international-flag {
right: 0.32em;
}
}


@media screen and (max-width: 360px) {
h1.standing-title {
margin-top: 0.42em;
}
}



h2 {
margin: 2.72em 0 1.32em 0;
font-size: 1.2em;
font-weight: normal;
text-align: center;
white-space: unset;
overflow: unset;
text-overflow: unset;
}

.season-starts-from {
margin: 1.2em 0;
text-align: center;
font-size: 1.2em;
color: var(--attention-color);
}


.standing-season {
margin-top: -1.12em;
margin-bottom: 1em;
text-align: center;
}

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

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

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

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

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

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

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


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

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

.seasons-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);

}

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

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

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

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

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

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

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

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


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


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


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

@media screen and (max-width: 480px) {
.standing-season {
width: calc(100% - 50px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}




.league-stat-main {
display: flex;
justify-content: space-between;
}

table.league-stat-summary {
border-collapse: collapse;
width: 160px;
}

table.league-stat-summary th {
height: 2.4em;
line-height: 2.4em;
text-align: left;
padding: 0 0.24em;
font-weight: normal;
background: var(--game-title-bg-color);
border: 1px solid var(--game-border-color);
vertical-align: top;
}

table.league-stat-summary td {
height: 2.4em;
line-height: 2.4em;
text-align: left;
padding: 0 0.24em;
border: 1px solid var(--game-border-color);
vertical-align: top;
}

table.league-stat-summary td.data, table.league-stat-summary th.data {
width: 2.4em;
text-align: right;
}


table.goals-stat {
border-collapse: collapse;
width: 200px;
}

table.goals-stat th {
height: 2.4em;
line-height: 2.4em;
text-align: center;
padding: 0 0.24em;
font-weight: normal;
background: var(--game-title-bg-color);
border: 1px solid var(--game-border-color);
vertical-align: top;
}

table.goals-stat td {
height: 2.4em;
line-height: 2.4em;
text-align: left;
padding: 0 0.24em;
border: 1px solid var(--game-border-color);
vertical-align: top;
}

table.goals-stat td.center {
text-align: center;
padding: 0 0.24em;
}

table.goals-stat td.number, table.goals-stat td.percent {
text-align: right;
padding-left: 0px;
}

table.goals-stat td.number {
width: 32px;
padding-right: 14px;
}

table.goals-stat td.percent {
width: 62px;
padding-right: 10px;
}

table.goals-stat td.label {
width: 70px;
text-align: center;
}

table.goals-stat td.label-right {
width: 42px;
padding-right: 32px;
text-align: right;
}

table.goals-stat td.label-right-small {
width: 38px;
padding-right: 37px;
text-align: right;
}

@media screen and (max-width: 860px) {
table.league-stat-summary {
width: 140px;
}
table.goals-stat {
width: 180px;
}
}

@media screen and (max-width: 768px) {
table.league-stat-summary {
width: 120px;
}
table.goals-stat {
width: 160px;
}
}

@media screen and (max-width: 680px) {
h2 {
margin-top: 3.6em;
}
#data-col {
padding-left: 0;
padding-right: 0;
}
.league-stat-main {
display: unset;
justify-content: unset;
}
.league-stat-wrapper {
max-width: 280px;
margin-left: auto;
margin-right: auto;
}
table.league-stat-summary, table.goals-stat {
margin: 2.4em auto;
width: 100%;
}
table.goals-stat td.number {
width: 24px;
padding-right: 22px;
}
table.goals-stat td.label-right, table.goals-stat td.label-right-small {
width: 28px;
padding-right: 46px;
}
}


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