@font-face {
	font-family: 'Roboto Condensed';
	src: url('assets/RobotoCondensed-Regular.ttf');
}
@font-face {
	font-family: 'Roboto Condensed';
	src: url('assets/RobotoCondensed-Bold.ttf');
	font-weight: bold;
}

body {
	margin:0;
	font-family: 'Roboto', Helvetica, Arial, sans-serif;
	background-color: black;
	color: #fff;
}

h1 { margin: 20px; }

#error {
	background-color: #F2DEDE;
	color: black;
	position: fixed;
	border-top: 4px solid #A94442;
	bottom: 0%;
	left: 0%;
	z-index: 100;
	margin: 0;
	padding: 0 1em;
	width: 100%;
}
#warning {
	display: none;
	background-color: #fcf8e3;
	color: black;
	position: fixed;
	border-top: 4px solid #f0ad4e;
	bottom: 0%;
	left: 0%;
	z-index: 100;
	margin: 0;
	padding: 0;
	width: 100%;
}
#warning p {
	padding: 0 1em;
}
#warning_counter {
	color: #f0ad4e;
	float: right;
}

#currentTime{
	float:right;
	font-weight:bold;
}
table {
	border: none;
	border-spacing: 0px;
	text-align: left;
	width: 100%;
}

thead {
	font-weight: bold;
}
tbody > tr:nth-child(2n) {
	background: #222;
}
tbody > tr:nth-child(2n+1) {
	background: #333;
}
td {
	border: none;
	font-size: 20px;
	line-height: 32px;
}
tr > td:nth-child(1) {
	text-align: center;
}

tr > td:nth-child(2) {
	text-align: center;
	position: relative;
}
tr > td:nth-child(2) span, tr > td:nth-child(2) img {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}
tr > td:nth-child(2) span {
	padding: 0 3px;
	font-size: 90%;
	font-weight: bold;
}

tr > td:nth-child(2) img {
	height: 80%;
}
tr > td:nth-child(3) {
	padding-right: 10px;
}

td.time:nth-child(1)::before {
	content: "●\00a0";
	opacity:0;
}
td.hurry:nth-child(1)::before {
	animation: blink 1s steps(5, start) infinite;
	-webkit-animation: blink 1s steps(5, start) infinite;
	color: #c0392b;
	opacity:1;
}
td.soon:nth-child(1)::before {
	animation: blink 1s steps(5, start) infinite;
	-webkit-animation: blink 1s steps(5, start) infinite;
	color: #27ae60;
	opacity:1;
}
.tram {
	background: #C00808;
	color: #FFF;
	min-width: 25px;
}
.bus {
	padding: 0 3px;
	background: #030e6b;
	color: #FFF;
}
.nightline {
	padding: 0 3px;
	background: #140D4F;
	color: #F9EC28;
}

@media (max-width: 1px) { /* 1280px */
	body { overflow: hidden; }
	h1 { font-size: 50px; }

	#error {
		font-size:30px;
		line-height:30px;
	}
	#warning {
		font-size:30px;
		line-height:30px;
	}
	td {
		height: 60px;
		font-size: 48px !important;
		line-height: 58px;
		overflow: hidden;
		white-space: nowrap;
	}
	tr > td:nth-child(2) span, tr > td:nth-child(2) img {
		height: 58px;
		min-width: 58px;
		padding: 0 !important;
	}
	tr > td:nth-child(3) {
		padding-left: 10px;
	}
}

/* HomeAssistant */
@media (max-width: 600px) {
	body { overflow: hidden; }
	h1 { font-size: 24px; font-weight: lighter;}

	#title { display: none; }

	#warning p,
	#error p {
		padding: 0 .5em;
		margin: .5em 0;
	}
	#warning,
	#errorr {
		font-size:12px;
		line-height:14px;
	}
	td {
		height: 24px;
		font-size: 14px !important;
		line-height: 16px;
		overflow: hidden;
	}
	tr > td:nth-child(2) span, tr > td:nth-child(2) img {
		height: 16px;
		min-width: 16px;
		padding: 0 !important;
	}
	tr > td:nth-child(3) {
		padding-left: 0px;
	}
}

@keyframes blink {
	to { visibility: hidden; }
}


/* MAZ CUSTOM */
