/*
* Styles for team info
*/

#team-wrapper {
margin: 1em auto 5.2em auto;
color: #30336b;
}

.no-data-msg {
margin-top: 5.2em;
}

.team-head {
position: relative;
min-height: 6em;
height: 10em;
}

div.football-team-div, div.missing-team-div {
height: 130px;
}

div.national-team-div {
height: 120px;
}

img.football-team, img.missing-team {
width: 130px;
height: 130px;
}

img.national-team {
width: 160px;
height: 120px;
}

.team-head img {
position: absolute;
top: 0;
left: 0;
}

.team-name {
margin: 0 320px 3.2em 160px;
padding-top: 0.6em;
text-align: center;
font-size: 1.8em;
font-weight: bold;
}

.team-name-two {
margin: 0 190px 0 0;
padding-top: 0.6em;
text-align: center;
font-size: 1.8em;
font-weight: bold;
}

.team-name-second {
margin: 0.6em 190px 0 0;
text-align: center;
font-size: 1.4em;
}

.team-title {
margin-top: 4.2em;
margin-bottom: 0.6em;
font-size: 1em;
padding-left: 0.8em;
line-height: 2.2em;
text-align: left;
font-weight: bold;
background: #218c74;
color: #ffffff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.team-info-wrapper {
position: absolute;
top: 0;
right: 0;
background: #f1f2f6;
width: 320px;
}

table.team-info {
width: 100%;
margin: 0;
border-collapse: collapse;
}

table.team-info th {
background: #218c74;
color: #ffffff;
padding: 0.2em;
font-weight: normal;
}

table.team-info tr:first-of-type td {
padding-top: 0.42em;
}

table.team-info tr:last-of-type td {
padding-bottom: 0.42em;
}

table.team-info td {
padding: 0.2em;
vertical-align: top;
}

table.team-info td.label {
width: 5%;
text-align: right;
padding-right: 0.4em;
padding-left: 0.4em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

table.team-info a {
text-decoration: none;
color: #0057a0;
}

table.team-info a:hover {
text-decoration: underline;
}

table.team-info a:visited {
color: #0057a0;
}


@media screen and (max-width: 800px) {
div.football-team-div, div.missing-team-div {
height: 100px;
}
div.national-team-div {
height: 75px;
}
img.football-team, img.missing-team {
width: 100px;
height: 100px;
}
img.national-team {
width: 100px;
height: 75px;
}
.team-name {
margin-left: 100px;
}
.team-name-two {
margin-right: 200px;
}
.team-name-second {
margin-right: 200px;
}
.team-info-wrapper {
width: 300px;
}
}



@media screen and (max-width: 640px) {
#team-wrapper {
padding-left: 0;
padding-right: 0;
}
.team-head {
height: auto;
}
.team-name {
margin-left: 60px;
margin-right: 0;
font-size: 1.4em;
}
.team-name-two {
margin-right: 0;
margin-left: 60px;
font-size: 1.4em;
}
.team-name-second {
margin-right: 0;
margin-left: 60px;
font-size: 1.1em;
}
.team-info-wrapper {
position: static;
width: 320px;
margin: 3em auto 0 auto;
}
}



@media screen and (max-width: 360px) {
.team-name {
margin-left: 90px;
font-size: 1.2em;
}
.team-name-two {
margin-left: 90px;
font-size: 1.2em;
}
.team-name-second {
margin-left: 90px;
font-size: 1em;
}
.team-info-wrapper {
width: 300px;
}
}




.team-navigation {
width: max-content;
margin: 3.2em auto -1em auto;
}

.team-games {
display: inline-block;
}

.team-games-space {
margin-left: 4.2em;
}

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

.team-navigation a:hover {
text-decoration: underline;
}

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

.team-navigation span {
color: #b33939;
}

.team-navigation a, .team-navigation span {
margin-right: 1.2em;
}

.team-navigation a.team-games-last, .team-navigation span.team-games-last {
margin-right: 0;
}


@media screen and (max-width: 768px) {
.team-games-space {
margin-left: 2.4em;
}
.team-navigation a, .team-navigation span {
margin-right: 0.6em;
}
}


@media screen and (max-width: 640px) {
.team-navigation {
margin-top: 1.6em;
min-width: 420px;
}
.team-games {
display: block;
margin-bottom: 0.6em;
text-align: center;
position: relative;
}
.team-navigation a, .team-navigation span {
display: inline-block;
max-width: 120px;
margin-right: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.team-games-space {
margin-left: 0;
}
a.team-games-first, span.team-games-first {
position: absolute;
top: 0;
left: 0;
}
a.team-games-last, span.team-games-last {
position: absolute;
top: 0;
right: 0;
}
}

@media screen and (max-width: 568px) {
.team-navigation {
min-width: 400px;
}
}

@media screen and (max-width: 460px) {
.team-navigation {
min-width: 380px;
}
}

@media screen and (max-width: 420px) {
.team-navigation {
min-width: 340px;
}
.team-navigation a, .team-navigation span {
max-width: 110px;
}
}

@media screen and (max-width: 360px) {
.team-navigation {
min-width: 340px;
}
.team-navigation a, .team-navigation span {
max-width: 108px;
}
}

@media screen and (max-width: 340px) {
.team-navigation {
min-width: 320px;
}
.team-navigation a, .team-navigation span {
max-width: 102px;
}
}

@media screen and (max-width: 320px) {
.team-navigation {
min-width: 310px;
}
.team-navigation a, .team-navigation span {
max-width: 102px;
}
}


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



table.perft {
width: 100%;
margin: -0.6em auto 0 auto;
border-collapse: collapse;
table-layout: fixed;
}

table.perft td {
line-height: 2.2em;
border-bottom: 1px solid #f1f2f6;
}

table.perft td.caption {
padding-left: 0.8em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

table.perft td.title {
text-align: center;
background: #f1f2f6;
padding-left: 0.12em;
padding-right: 0.12em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

table.perft td.space {
padding-top: 1.8em;
}

table.perft td.pos {
text-align: center;
width: 20%;
white-space: nowrap;
}

table.perft td.center {
text-align: center;
padding-left: 0;
}

div.chrono {
width: max-content;
height: 2.2em;
padding-bottom: 0.4em;
padding-left: 0.8em;
vertical-align: middle;
}

div.chrono-line {
border-top: 1px solid #f1f2f6;
padding-bottom: 1em;
}

span.pr {
display: inline-block;
width: 12px;
height: 14px;
margin-right: 3px;
float: right;
}

span.cw {
background: #26a65b;
}

span.cd {
background: #daa520;
}

span.cl {
background: #cf000f;
}

span.ce {
background: #dcdcdc;
}


@media screen and (max-width: 840px) {
span.pr {
width: 10px;
height: 12px;
margin-right: 3px;
}
}

@media screen and (max-width: 768px) {
span.pr {
width: 10px;
height: 12px;
margin-right: 2px;
}
}

@media screen and (max-width: 720px) {
span.pr {
width: 9px;
height: 11px;
margin-right: 2px;
}
}

@media screen and (max-width: 640px) {
div.chrono {
padding-left: 0.4em;
}
span.pr {
width: 5px;
height: 12px;
margin-right: 2px;
}
}

@media screen and (max-width: 380px) {
span.pr {
width: 5px;
height: 12px;
margin-right: 1px;
}
}


table.lgames {
width: 100%;
margin: -0.6em auto 0 auto;
border-collapse: collapse;
}

table.lgames th {
line-height: 2.2em;
text-align: center;
font-weight: bold;
background: #f1f2f6;
vertical-align: top;
}

table.lgames td {
line-height: 2.2em;
padding-left: 0.62em;
padding-right: 0;
border-bottom: 1px solid #f1f2f6;
}

table.lgames td.selected {
font-weight: bold;
background: #ffda79;
}

table.lgames td.position {
width: 1.52em;
white-space: nowrap;
text-align: right;
padding-left: 0;
padding-right: 0.38em;
}

table.lgames td.team {
vertical-align: top;
}

table.lgames td.result {
width: 24%;
font-weight: bold;
white-space: nowrap;
text-align: center;
padding-left: 0;
padding-right: 0;
}

table.lgames td.win {
background: #b8e994;
}

table.lgames td.draw {
background: #ffda79;
}

table.lgames td.loss {
background: #ff7675;
}


p.stat-info {
padding: 0;
margin: 0.72em 0 0 0;
line-height: 1.6em;
text-indent: 1.6em;
}

@media screen and (max-width: 420px) {
.team-space {
padding-left: 0.32em;
padding-right: 0.32em;
}
}

@media screen and (max-width: 360px) {
.team-space {
padding-left: 0.22em;
padding-right: 0.22em;
}
}




table.games-stat {
width: 100%;
margin: -0.6em auto 0 auto;
border-collapse: collapse;
}

table.games-stat th {
line-height: 2.2em;
background: #f1f2f6;
}

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

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

table.games-stat td {
line-height: 2.2em;
border-bottom: 1px solid #f1f2f6;
}

table.games-stat td.date {
width: 5.4em;
padding-left: 0.32em;
white-space: nowrap;
}

table.games-stat td.round {
width: 1.32em;
padding-right: 0.52em;
white-space: nowrap;
text-align: right;
}

table.games-stat td.tourn {
text-align: left;
padding-left: 0.4em;
vertical-align: top;
width: 200px;
}

table.games-stat td.hteam {
text-align: right;
padding-right: 0.4em;
vertical-align: top;
width: 200px;
}

table.games-stat td.ateam {
text-align: left;
padding-left: 0.4em;
vertical-align: top;
width: 250px;
}

table.games-stat td.hteam2 {
text-align: right;
padding-right: 0.4em;
vertical-align: top;
width: 280px;
}

table.games-stat td.ateam2 {
text-align: left;
padding-left: 0.4em;
vertical-align: top;
width: 330px;
}

table.games-stat td.result {
width: 3.4em;
white-space: nowrap;
text-align: center;
font-weight: bold;
}

table.games-stat td.result2 {
width: 1.2em;
white-space: nowrap;
text-align: center;
}

table.games-stat td.odd {
width: 2.8em;
white-space: nowrap;
text-align: right;
padding-right: 0.6em;
}

table.games-stat td.noodd {
width: 3.4em;
text-align: center;
padding-right: 0;
}

table.games-stat td.win {
background: #b8e994;
border-color: #b8e994;
}

table.games-stat td.draw {
background: #ffda79;
border-color: #ffda79;
}

table.games-stat td.loss {
background: #ff7675;
border-color: #ff7675;
}


@media screen and (max-width: 760px) {
table.games-stat td.tourn, table.games-stat th.htourn {
display: none;
}
table.games-stat td.hteam {
padding-right: 0.32em;
width: 200px;
}
table.games-stat td.ateam {
padding-left: 0.32em;
width: 200px;
}
table.games-stat td.hteam2 {
padding-right: 0.32em;
width: 250px;
}
table.games-stat td.ateam2 {
padding-left: 0.32em;
width: 250px;
}
}

@media screen and (max-width: 640px) {
table.games-stat td.odd, table.games-stat th.hodd {
display: none;
}
}

@media screen and (max-width: 420px) {
table.games-stat td.round, table.games-stat th.hround {
display: none;
}
table.games-stat th:first-of-type {
border-radius: 0;
}
table.games-stat th:last-of-type {
border-radius: 0;
}
table.games-stat td.date {
width: 4.8em;
padding-left: 0.22em;
}
table.games-stat td.hteam {
padding-right: 0.2em;
width: 150px;
}
table.games-stat td.ateam {
padding-left: 0.2em;
width: 150px;
}
table.games-stat td.hteam2 {
padding-right: 0.2em;
width: 150px;
}
table.games-stat td.ateam2 {
padding-left: 0.2em;
width: 150px;
}
}

@media screen and (max-width: 360px) {
table.games-stat td.date {
padding-left: 0.12em;
}
}



.seasons-select {
margin-top: 2.4em;
margin-bottom: -2.4em;
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-button {
width: 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);
}
}

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