/*
* Games, scores and fixtures
*/

.league-header {
margin-top: 3.2em;
height: 2.2em;
line-height: 2.2em;
color: #ffffff;
background: #2980b9;
border-radius: 2px 2px 0 0;
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;
}

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

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

.game {
display: block;
width: 100%;
position: relative;
line-height: 2.6em;
color: #34495e;
border-bottom: 1px solid #ecf0f1;
}

a.game:visited {
color: #34495e;
}

a.game:hover {
background: #ecf0f1;
}

a.game:hover .home, a.game:hover .away {
text-decoration: underline;
}


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

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

.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: 252px;
height: 2.6em;
line-height: 2.6em;
}

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

.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.6em;
line-height: 2.6em;
}

.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 .prev {
display: block;
width: 52px;
white-space: nowrap;
text-align: center;
position: absolute;
top: 0;
right: 228px;
}

.game .half {
display: block;
width: 52px;
white-space: nowrap;
text-align: center;
position: absolute;
top: 0;
right: 168px;
}

.play {
color: #e74c3c;
}

.event {
background: #c5eff7;
}

.goal {
color: #d91e18;
}

.game, .game span {
transition: background-color 1s linear;
}

.game .started {
color: #95a5a6;
}

.game .ended {
color: #95a5a6;
}

.game .end {
color: #95a5a6;
}

h2 {
margin-top: 3.2em;
margin-bottom: -0.8em;
text-align: center;
font-size: 1.32em;
font-weight: normal;
}

h2:first-of-type {
margin-top: 0.8em;
margin-bottom: 1.6em;
}


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

@keyframes blink {
60% { opacity: 0 }
}



@media screen and (max-width: 767px) {
.game .odds {
display: none;
}
.game .prev {
right: 60px;
}
.game .half {
right: 0;
}
.game .teams {
margin-left: 96px;
margin-right: 96px;
}
h2 {
margin: 0.4em 0 0.8em 0;
}
}


@media screen and (max-width: 568px) {
.game .prev {
display: none;
}
.game .teams {
margin-left: 96px;
margin-right: 52px;
}
}


@media screen and (max-width: 480px) {
.game .status {
left: 0;
}
.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: #577593;
}
.game .teams {
margin-left: 0;
margin-right: 0;
}
.game .noscore {
display: none;
}
.game .notime {
display: none;
}
}


@media screen and (max-width: 420px) {
.league-header {
border-radius: 0;
}
.game .half {
right: 4px;
text-align: right;
width: 44px;
}
.game .status {
left: 4px;
text-align: left;
width: 24px;
padding: 0 0;
}
}


@media screen and (max-width: 400px) {
.game .half {
display: none;
}
.game .status {
text-align: center;
font-weight: normal;
top: 2.2rem;
left: 50%;
margin-left: -22px;
width: 44px;
font-size: 0.82em;
line-height: 1em;
background-color: white;
z-index: 100;
}
.game .ended {
display: none;
}
}


.bookie-games {
margin: -0.32em auto -1.72em auto;
width: 292px;
height: 62px;
border-radius: 5px;
background: #027b5b;
}

.games-inside {
margin: 52px auto -8px auto;
text-align: center;
}
