/*
* Styles for program and matches
*/

#program-wrapper {
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;
}


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

img.program-country-flag, img.program-international-flag {
width: 40px;
height: 30px;
position: absolute;
right: 0;
top: -4px;
background: #ffffff;
}

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

@media screen and (max-width: 640px) {
img.program-country-flag, img.program-international-flag {
right: 10px;
}
}

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

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


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

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

h2.program-sub-title:first-of-type {
margin-top: 1.6em;
}

.program-header {
margin-top: 3.2em;
padding-left: 0.8em;
line-height: 2.2em;
text-align: left;
font-weight: bold;
background: #218c74;
color: #ffffff;
}

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

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

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

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

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

.program-games-list a:hover {
text-decoration: underline;
}

.program-games-list a:visited {
color: #0057a0;
}

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


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

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

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

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

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

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

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

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

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


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

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

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

table.games td.time {
width: 3.2em;
padding-left: 0.32em;
white-space: nowrap;
}

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

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

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

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

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

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

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

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

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


@media screen and (max-width: 760px) {
table.games td.hteam {
padding-right: 0.32em;
width: 250px;
}
table.games td.ateam {
padding-left: 0.32em;
width: 250px;
}
table.games td.hteam2 {
padding-right: 0.32em;
width: 350px;
}
table.games td.ateam2 {
padding-left: 0.32em;
width: 350px;
}
}

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

@media screen and (max-width: 420px) {
table.games td.date {
width: 4.8em;
padding-left: 0.22em;
}
table.games td.time {
width: 2.8em;
padding-left: 0.22em;
white-space: nowrap;
}
table.games td.hteam {
padding-right: 0.2em;
width: 150px;
}
table.games td.ateam {
padding-left: 0.2em;
width: 150px;
}
table.games td.hteam2 {
padding-right: 0.2em;
width: 150px;
}
table.games td.ateam2 {
padding-left: 0.2em;
width: 150px;
}
}

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






.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-no-data {
margin: 3.2em 0.32em;
text-align: center;
font-size: 1.12em;
line-height: 1.6em;
color: #b33939;
}

.module-empty {
height: 7.2em;
}

.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) {
#program-wrapper {
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;
}
}
