
@font-face {
    font-family: Cabin;
    src: url(../resources/Cabin-Regular.otf);
}
@font-face {
    font-family: WorldCup;
    src: url(../resources/wcfont.ttf);
}

.app {
	margin: 0 auto;
	width: 95%;
}

html {
	background: rgb(230,109,29); /* Old browsers */
	background: -moz-linear-gradient(top, rgba(230,109,29,1) 0%, rgba(255,226,0,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(230,109,29,1)), color-stop(100%,rgba(255,226,0,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, rgba(230,109,29,1) 0%,rgba(255,226,0,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, rgba(230,109,29,1) 0%,rgba(255,226,0,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, rgba(230,109,29,1) 0%,rgba(255,226,0,1) 100%); /* IE10+ */
	background: linear-gradient(to bottom, rgba(230,109,29,1) 0%,rgba(255,226,0,1) 100%); /* W3C */
	width: 100%;
  height: 100%;
	background-repeat: no-repeat;
	background-attachment: fixed;
	overflow: auto;
	overflow-x: hidden;
  zoom: 1;
}

body {
	background-image: url(../resources/slide.png);
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center bottom;
	margin: 0;
	margin-top: -21px;
	padding-bottom: 20px;
	min-height: 100%;
}

header h1 {
	font-family: WorldCup;
	text-align: center;
	color: #FFF;
	text-shadow: 0 0 10px #df0b00;
	font-size: 40px;
}

.match {
	margin-bottom:20px;
	height: auto;
	width: 100%;
	background-color: #FFF;
	box-shadow: 1px 1px 2px #555;
	padding-top: 10px;
	padding-bottom: 10px;
}

.team {
	font-family: Cabin;
	width: 50%;
	float: left;
	text-align: center;
	font-size: 2rem;
}

.team .score {
	font-size: 1rem;
}

.team .flag {
	height: 22px;
	width: 33px;
	border: 1px solid #FFF;
	box-shadow: 0 0 1px #000;
}

.data {
	display: block;
	background-color: #4A3;
	clear:left; 
	color: #FFF;
	text-align: center;
}

.data .place {
	padding-left: 2px;
}

.events {
	position:relative;
	font-size: 13px;
	display:none;
	margin:5px 0;
	padding:0;
}

.events b.time {
	text-align: center;
	color:green;
}

.events .event.home b.time{
	float: right;
	padding-right: 50%;
	margin-left: 10px;
	margin-right: -16px;
}
.events .event.away b.time{
	float: left;
	padding-left: 50%;
	margin-right: 5px;
}

.events .event{
	display: block;
	padding-left:2px;
	padding-right:2px;
}

.event.home{
	text-align: right;
}

.event-ico {
	width: 15px;
	height: 15px;
	background-repeat: no-repeat;
	background-size: 15px;
	padding-left: 17px;
}


span.event-ico.yellow-card{
	background-image: url('../resources/icons/yellow.png');
}

span.event-ico.red-card{
	background-image: url('../resources/icons/red.png');
}

span.event-ico.substitution-out{
	background-image: url('../resources/icons/out.png');
}
span.event-ico.substitution-in{
	background-image: url('../resources/icons/in.png');
}
span.event-ico.goal , span.event-ico.goal-penalty{
	background-image: url('../resources/icons/goal.png');
}

/* Menu Selector */

#sectionsMenu ul {
	
	list-style: none;
	text-align: center;
	padding: 0;
	display: block;
	height: auto;
	background-color: #002b70;
	border-radius: 20px 20px 0px 0px;
	border-bottom: 2px solid #FFF ;
  box-shadow: 0 0 3px #002b52;
}

#sectionsMenu li {
	margin-top: -5px;

	height: auto;
	width: auto;
	padding-top: 10px;
	padding-bottom: 4px;
	padding-left: 10px;
	padding-right: 10px;
	display: inline-block;
	background-color: #002b52;
	border: 2px solid #FFF;
	border-bottom-width: 0px;
	border-top-width: 0px;
	border-radius: 20px 20px 0px 0px;
	color: #FFF;
  box-shadow: 0 -2px 3px #002b52;
}

#sectionsMenu li a {
	color: inherit;
	text-decoration: none;
}

#sectionsMenu li:hover ,#sectionsMenu li.active {
	color: #0a487c;
	background-color: #FFF;
}

.match[status="future"] .team{
	opacity: 0.6;
}
.match[status="future"] .score,
.match[status="future"] .teamname[alt="TBD"]{
	display:none;
}

.winner{
	text-align: center;
	background-color: #FFA;
	display: block;

	margin-bottom: 5px;

}

/* Circle status */

.circleStatus {
	position:absolute;
	margin: 4px;
	right:10px;
	width: 10px;
	height: 10px;
	border-radius: 5px;
	box-shadow: 0 0 2px black;
	background: black;
}
.match[status="future"] .circleStatus {
	background-color: gray;
}
.match[status="completed"] .circleStatus {
	background-color: green;
}
.match[status="in progress"] .circleStatus {
	-webkit-animation-direction: normal;
	-webkit-animation-duration: 5s;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-name: bgcolours;

	-moz-animation-direction: normal;
	-moz-animation-duration: 5s;
	-moz-animation-iteration-count: infinite;
	-moz-animation-name: bgcolours;
	
	animation-direction: normal;
	animation-duration: 5s;
	animation-iteration-count: infinite;
	animation-name: bgcolours;
}

.content {
	position:relative;
}

.content.loading > * {
	opacity: 0.6;
}

.content.loading .loader {
	display:block;
}

/* Color transition animation */
@-webkit-keyframes colours {
	0% {color: rgba(230,109,29,1);}
	50% {color: rgba(255,226,0,1) ;}
	100% {color: rgba(230,109,29,1);}
}
@-moz-keyframes colours {
	0% {color: rgba(230,109,29,1);}
	50% {color: rgba(255,226,0,1) ;}
	100% {color: rgba(230,109,29,1);}
}
@keyframes colours {
	0% {color: rgba(230,109,29,1);}
	50% {color: rgba(255,226,0,1) ;}
	100% {color: rgba(230,109,29,1);}
}

@-webkit-keyframes bgcolours {
	0% {background-color: rgba(230,109,29,1);}
	50% {background-color: rgba(255,226,0,1) ;}
	100% {background-color: rgba(230,109,29,1);}
}
@-moz-keyframes bgcolours {
	0% {background-color: rgba(230,109,29,1);}
	50% {background-color: rgba(255,226,0,1) ;}
	100% {background-color: rgba(230,109,29,1);}
}
@keyframes bgcolours {
	0% {background-color: rgba(230,109,29,1);}
	50% {background-color: rgba(255,226,0,1) ;}
	100% {background-color: rgba(230,109,29,1);}
}

.loader {
	opacity: 1 !important;
	display:none;
	position:absolute;
	left:40%;
	top:100px;
	font-family: WorldCup;
	font-weight: bold;
	font-size: 35px;
	z-index:1000;

	text-shadow: 0px 0px 10px  #000;

	/* Loader animation */
	-webkit-animation-direction: normal;
	-webkit-animation-duration: 5s;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-name: colours;

	-moz-animation-direction: normal;
	-moz-animation-duration: 5s;
	-moz-animation-iteration-count: infinite;
	-moz-animation-name: colours;
	
	animation-direction: normal;
	animation-duration: 5s;
	animation-iteration-count: infinite;
	animation-name: colours;
}

.empty {
	font-weight: bold;
	text-align: center;
}

/* Media replacements */
@media only screen and (min-width: 600px) and (orientation: landscape) {
	.app {
		width: 600px;
	}
	header h1 {
		font-size:50px;
	}
}