/*
* Styles for games pages
*/

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



.league-header {
margin-top: 3.2em;
height: 2.8em;
line-height: 2.8em;
color: var(--game-title-color);
background: var(--game-title-bg-color);
white-space: nowrap;
position: relative;
}

.league-header:first-of-type {
margin-top: 0.8em;
}

.league-date {
margin-left: 12px;
}

.league-name {
display: block;
margin-left: 46px;
}

.league-name span {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.league-flag {
display: block;
position: absolute;
left: 10px;
}

.league-flag img {
vertical-align: -4px;
}

.game {
display: block;
width: 100%;
position: relative;
line-height: 2.8em;
color: var(--main-color);
border-bottom: 1px solid var(--game-border-color);
}

a.game:visited {
color: var(--main-color);
}

a.game:hover {
background: var(--game-hover-color);
}

.game .time {
display: block;
white-space: nowrap;
text-align: right;
position: absolute;
top: 0;
left: 6px;
width: 36px;
}

.game .score {
display: block;
white-space: nowrap;
text-align: center;
font-weight: bold;
position: absolute;
top: 0;
left: 50%;
margin-left: -22px;
width: 44px;
}

.game .teams {
position: relative;
display: block;
margin-left: 96px;
margin-right: 194px;
height: 2.8em;
line-height: 2.8em;
}

.game .home, .game .away {
display: block;
width: 50%;
}

.game .home {
float: left;
text-align: right;
}

.game .away {
float: right;
text-align: left;
}

.game .home span, .game .away span {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.game .home span {
margin-right: 26px;
}

.game .away span {
margin-left: 26px;
}

.game .odds {
display: block;
width: 168px;
position: absolute;
top: 0;
right: 6px;
height: 2.8em;
line-height: 2.8em;
color: var(--game-odds-color);
}

.game .odds .o1, .game .odds .oX, .game .odds .o2  {
display: block;
white-space: nowrap;
text-align: right;
float: left;
width: 56px;
}

.game .noodds .o1, .game .noodds .oX, .game .noodds .o2 {
padding-right: 12px;
width: 44px;
}

.game .info {
display: block;
width: 72px;
position: absolute;
top: 0;
right: 162px;
height: 2.8em;
line-height: 2.8em;
text-align: right;
}

.game .info .pr {
display: inline-block;
height: 2.8em;
line-height: 2.8em;
width: 52px;
}

.game .status {
display: block;
white-space: nowrap;
text-align: center;
position: absolute;
top: 0;
left: 48px;
width: 48px;
padding: 0 6px;
}


.country-flag {
width: 24px;
height: 18px;
background: var(--image-bg-color);
}

.international-flag {
width: 24px;
height: 18px;
background: var(--image-bg-color);
}

.missing-tournament {
width: 24px;
height: 18px;
background: var(--image-bg-color);
}


@media screen and (max-width: 768px) {
.game .time {
left: 4px;
}
.game .teams {
margin-left: 92px;
margin-right: 190px;
}
.game .odds {
width: 156px;
}
.game .odds .o1, .game .odds .oX, .game .odds .o2  {
width: 52px;
}
.game .noodds .o1, .game .noodds .oX, .game .noodds .o2 {
padding-right: 12px;
width: 40px;
}
.game .info {
width: 70px;
right: 152px;
}
.game .info .pr {
width: 48px;
}
.game .status {
left: 42px;
}
}


@media screen and (max-width: 720px) {
.game .time {
left: 2px;
}
.game .teams {
margin-left: 80px;
margin-right: 180px;
}
.game .odds {
width: 132px;
}
.game .odds .o1, .game .odds .oX, .game .odds .o2  {
width: 44px;
}
.game .noodds .o1, .game .noodds .oX, .game .noodds .o2 {
padding-right: 10px;
width: 34px;
}
.game .info {
width: 70px;
right: 132px;
}
.game .info .pr {
width: 46px;
}
.game .status {
left: 40px;
}
}


@media screen and (max-width: 640px) {
.game {
height: 4.4em;
}
.game .time {
text-align: center;
font-weight: normal;
top: 0;
left: 50%;
margin-left: -22px;
width: 44px;
font-size: 0.82em;
line-height: 2.8rem;
color: var(--game-secondary-color);
}
.game .teams {
margin-left: 0;
margin-right: 0;
}
.game .info {
right: 6px;
top: 2.6rem;
height: 1.46em;
line-height: 1.46em;
padding: 0;
font-size: 0.9em;
color: var(--game-secondary-color);
}
.game .info .pr {
height: 1.4em;
line-height: 1.4em;
width: 42px;
}
.game .odds {
position: relative;
right: 0;
height: 1.6em;
line-height: 1em;
width: 100%;
text-align: center;
color: var(--game-odds-secondary-color);
}
.game .odds .o1, .game .odds .o2, .game .odds .oX {
display: inline-block;
float: none;
width: 44px;
}
.game .odds .o1 {
text-align: right;
margin-right: 38px;
}
.game .odds .o2 {
text-align: left;
margin-left: 38px;
}
.game .odds .oX {
text-align: center;
}
.game .noodds .o1, .game .noodds .oX, .game .noodds .o2 {
padding: 0;
}
.game .noodds .o1 {
margin-right: 48px;
}
.game .noodds .o2 {
margin-left: 48px;
}
.game .noscore {
display: none;
}
.game .notime {
display: none;
}
.game .status {
left: 6px;
text-align: left;
top: 2.9rem;
line-height: 1em;
padding: 0;
font-size: 0.9em;
}
.game .ended {
display: none;
}
}


@media screen and (max-width: 380px) {
.game .info {
right: 2px;
}
.game .odds .o1 {
margin-right: 32px;
}
.game .odds .o2 {
margin-left: 32px;
}
.game .noodds .o1 {
margin-right: 42px;
}
.game .noodds .o2 {
margin-left: 42px;
}
.game .status {
left: 2px;
}
}

@media screen and (max-width: 320px) {
.game .odds .o1 {
margin-right: 24px;
}
.game .odds .o2 {
margin-left: 24px;
}
.game .noodds .o1 {
margin-right: 34px;
}
.game .noodds .o2 {
margin-left: 34px;
}
}



.play {
color: var(--game-live-color);
}

.event {
background: var(--game-event-color);
}

.goal {
color: var(--game-live-color);
}

.game .started {
color: var(--game-secondary-color);
}

.game .ended {
color: var(--game-secondary-color);
}

.game .end {
color: var(--game-secondary-color);
}








/*
* Date navigation
*/
#date-nav-wrapper {
margin: 0 0 2.8em 0;
height: 3em;
}

#date-nav-title {
width: calc(100% - 492px);
float: left;
margin: 0;
padding: 0;
text-align: center;
line-height: 3rem;
font-size: 1.32em;
font-weight: normal;
}

#date-nav-title span {
white-space: unset;
display: inline-block;
vertical-align: bottom;
}

#date-nav {
float: right;
width: 100%;
max-width: 432px;
height: 2.2rem;
text-align: center;
background: var(--date-nav-bg-color);
border: 0.4rem solid var(--date-nav-border-color);
}

#dn-title {
margin: 0;
padding: 0;
display: inline-block;
line-height: 2.2rem;
font-size: 1.12em;
font-weight: normal;
color: var(--main-color);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: calc(100% - 4.8rem);
}

#dn-left, #dn-right {
display: block;
width: 2.2rem;
height: 2.2rem;
line-height: 2.2rem;
background: var(--date-nav-btn-color);
}
#dn-left {
float: left;
}
#dn-right {
float: right;
}

.dn-left-arrow, .dn-right-arrow {
display: block;
width: 100%;
height: 100%;
background-position: center center;
background-repeat: no-repeat;
background-size: contain;
filter: var(--date-nav-filter);
}
.dn-left-arrow {
background-image: url("/svg/nav-left-arrow.svg");
}
.dn-right-arrow {
background-image: url("/svg/nav-right-arrow.svg");
}
a.dn-left-arrow:hover, a.dn-right-arrow:hover {
background-color: var(--date-nav-btn-hover-color);
}

.dn-disabled {
filter: var(--date-nav-disabled-filter);
}


@media screen and (max-width: 720px) {
#date-nav-title {
float: none;
width: inherit;
}
#date-nav-wrapper {
margin-top: -1.2em;
margin-bottom: 4.8em;
}
}


@media screen and (max-width: 500px) {
#date-nav {
margin-left: auto;
margin-right: auto;
float: none;
width: inherit;
}
}



.event {
background: var(--game-event-color);
}

.bl {
animation: blink 1.2s step-end infinite;
}

@keyframes blink {
50% { opacity: 0; }
}


.odds-info {
margin: 5.2em 0 0 0;
padding: 0 0.6em;
font-size: 0.92em;
line-height: 1.6em;
text-indent: 0.8em;
color: var(--attention-color);
}




.sort-by-hour {
font-size: 1.2em;
text-align: right;
margin-top: -0.92em;
margin-bottom: 0.92em;
}

.sort-by-hour a {
color: var(--link-color);
text-decoration: none;
}

.sort-by-hour a:hover {
text-decoration: underline;
}

.sort-by-hour a:visited {
color: var(--link-color);
}

@media screen and (max-width: 1200px) {
.sort-by-hour {
margin-right: 1em;
}
}

@media screen and (max-width: 720px) {
.sort-by-hour {
text-align: center;
margin-top: -0.52em;
margin-bottom: 1.12em;
margin-right: 0;
margin-left: 0;
}
}

@media screen and (max-width: 360px) {
.sort-by-hour {
font-size: 1em;
font-weight: bold;
}
}
