/*
* Styles for statistic pages
*/

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

#data-col {
flex-grow: 1;
max-width: 720px;
}

#widgets {
flex: 0 0 250px;
margin-left: 20px;
}

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

h2.statistic-subtitle span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
max-width: 100%;
vertical-align: bottom;
}

h1.standing-title {
margin: 0.8em 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: #ffffff;
}

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: #0057a0;
}

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

.standing-group-details a:visited {
color: #0057a0;
}

#standing-navigation {
padding-left: 1em;
padding-bottom: 0.6em;
border-bottom: 1px solid #ecf0f1;
}

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

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

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

#standing-navigation a {
text-decoration: none;
color: #0057a0;
}

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

#standing-navigation a:visited {
color: #0057a0;
}

#standing-navigation span {
color: #b33939;
}

#standing-navigation span.standing-navigation-disabled {
color: #95a5a6;
}

#standing-navigation img {
margin-right: 1.4em;
vertical-align: -3px;
background: #ffffff;
}

#standing-group-navigation {
padding-left: 1em;
margin-bottom: 0.6em;
padding-bottom: 0.6em;
border-bottom: 1px solid #ecf0f1;
}

#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: #0057a0;
}

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

#standing-group-navigation a:visited {
color: #0057a0;
}

#standing-group-navigation span {
color: #b33939;
}


@media screen and (max-width: 640px) {
#standing-navigation, #standing-group-navigation {
padding-left: 0;
border-bottom: 0 none #ecf0f1;
}
#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 #ecf0f1;
}
#standing-navigation li:last-of-type, #standing-group-navigation li:last-of-type {
margin-right: 0.6em;
}
#standing-navigation a, #standing-group-navigation a {
display: block;
}
img.standing-country-flag {
right: 10px;
}
}

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

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

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





.standing-games-list {
margin-top: 2.2em;
font-size: 1.2em;
text-align: center;
}

.standing-games-list-main {
margin-top: 4.2em;
}

.standing-fixtures a, .standing-games-list a {
text-decoration: none;
color: #0057a0;
}

.standing-games-list a:first-of-type {
margin-right: 0.5em;
}

.standing-games-list a:last-of-type {
margin-left: 0.5em;
}

.standing-fixtures a:hover, .standing-games-list a:hover {
text-decoration: underline;
}

.standing-fixtures a:visited, .standing-games-list a:visited {
color: #0057a0;
}

@media screen and (max-width: 640px) {
.standing-fixtures {
padding-right: 0.6em;
}
}

@media screen and (max-width: 360px) {
.standing-games-list {
font-size: 1em;
font-weight: bold;
}
}

.season-starts-from {
margin: 1.2em 0;
text-align: center;
font-size: 1.2em;
color: #b33939;
}




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

.seasons-label {
color: #30336b;
padding-right: 0.32em;
}

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

.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: #0057a0;
}

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

.seasons-select-disabled {
padding: 0.4em 0 0.4em 0.48em;
color: #95a5a6;
}

.seasons-select-disabled .seasons-label {
color: #95a5a6;
}

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


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

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

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

.seasons-select-arrow-down {
background-image: url("/svg/move-down2.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: #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;
}

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

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

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





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

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

table.league-stat-summary th {
line-height: 2em;
text-align: left;
padding: 0 0.24em;
font-weight: normal;
background: #f1f2f6;
}

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

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

table.league-stat-summary td {
line-height: 2em;
text-align: left;
padding: 0 0.24em;
border-bottom: 1px solid #f1f2f6;
}

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


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

table.goals-stat th {
line-height: 2em;
text-align: center;
padding: 0 0.24em;
font-weight: normal;
background: #f1f2f6;
border-left: 1px solid #ffffff;
}

table.goals-stat th:first-of-type {
border-radius: 2px 0 0 0;
border-left: 1px solid #f1f2f6;
}

table.goals-stat th:last-of-type {
border-radius: 0 2px 0 0;
border-right: 1px solid #f1f2f6;
}

table.goals-stat td {
line-height: 2em;
text-align: left;
padding: 0 0.24em;
border: 1px solid #f1f2f6;
}

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

table.goals-stat td.center {
text-align: center;
}



@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%;
max-width: unset;
}
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;
}
}










.module {
padding: 2.2em 0 1.8em 0;
background: #f8f8ff;
}

.module-title {
text-align: center;
color: #218c74;
font-size: 1.2em;
line-height: 1.32em;
margin-bottom: 0.52em;
}

.module-title span {
white-space: nowrap;
}

.module-links {
margin-left: 1.32em;
line-height: 1.82em;
}

.module-links a {
display: block;
text-decoration: none;
color: #0057a0;
max-width: 212px;
width: max-content;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.module-links a:hover {
text-decoration: underline;
}

.module-links a:visited {
color: #0057a0;
}


@media screen and (max-width: 932px) {
#statistic {
display: unset;
}
#data-col {
flex-grow: unset;
max-width: unset;
margin-top: 0.6em;
padding-left: 0.6em;
padding-right: 0.6em;
}
#widgets {
flex: unset;
margin-left: unset;
}
.module {
background: unset;
border-top: unset;
margin-top: 1.8em;
margin-bottom: 3.2em;
padding: 0 0.52em;
}
.module-links {
margin-left: auto;
margin-right: auto;
width: max-content;
max-width: 100%;
line-height: 1.42em;
}
.module-links a {
width: max-content;
max-width: 100%;
padding: 0.24em 0;
}
}
