/* Nice fonts */
/* @import url(http://fonts.googleapis.com/css?family=Open+Sans:600,400); */
/* @import url(http://fonts.googleapis.com/css?family=Inconsolata); */
@import url(http://fonts.googleapis.com/css?family=Lato&subset=latin,latin-ext);
@import url(https://fonts.googleapis.com/css?family=Oxygen&subset=latin,latin-ext);
@import url(boom_hover.css);

/* ==========================================================
   MOBILE – poprawa czytelności strony głównej
   ========================================================== */

@media only screen and (max-width: 650px) {

	/* ---------- ogólny układ ---------- */

	#page-wrapper {
		width: auto;
		margin: 0;
		padding: 0 12px;
		min-height: 100vh;
	}

	div#page-wrapper > header {
		padding: 8px 0 12px;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

	/* ---------- logo ---------- */

	div#page-wrapper > header > div:first-child {
		width: 100%;
		text-align: center;
	}

	img.mobile {
		height: auto;
		max-height: 90px;
		max-width: 85%;
	}

	/* ---------- nazwa imprezy ---------- */

	.tournamentInfo {
		width: 100%;
		margin: 4px 0 8px;
	}

	.tournamentInfo .mobile {
		font-size: inherit !important;
	}

	.tournamentInfo b.mobile {
		display: block;
		font-size: 29px !important;
		line-height: 1.15;
	}

	.tournamentInfo i.mobile {
		display: block;
		font-size: 16px !important;
		line-height: 1.3;
	}

	/* ---------- pozostałe logo ---------- */

	div#page-wrapper > header > div:last-child {
		width: 100%;
		text-align: center;
	}

	div#page-wrapper > header > div:last-child img {
		max-width: 150px;
		height: auto;
	}

	/* ---------- główny układ ---------- */

	.flex-horizontal {
		display: block;
	}

	main {
		width: 100%;
	}

	aside {
		width: 100%;
		margin-top: 25px;
	}

	/* ---------- dni ---------- */

	main section > header p {
		padding: 0 !important;
		margin: 25px 0 8px !important;

		font-size: 19px !important;
		line-height: 1.3;

		border-bottom: 2px solid #ddd;
		padding-bottom: 7px !important;
	}

	/* ---------- lista turniejów ---------- */

	ol {
		margin-top: 0;
		margin-bottom: 4px;
		padding-left: 0;
	}

	ol li {
		padding: 8px 0 10px;
		margin: 0;

		font-size: 16px !important;
		line-height: 1.35;

		border-bottom: 1px solid #eee;
	}

	/* ---------- godzina ---------- */

	datetime {
		width: 48px;
		margin-right: 3px;

		font-size: 17px;
		font-weight: bold;

		text-align: right;
		vertical-align: middle;
	}

	/* ---------- TEAMS / PAIRS ---------- */

	.label-tournament {
		min-width: 58px;
		margin-right: 3px;

		font-size: 11px;
		line-height: 1;

		padding: 5px 5px;

		vertical-align: middle;
	}

	/* ---------- link / nazwa turnieju ---------- */

	.tournament-header {
		display: flex;
		align-items: center;
	}

	.tournament-name {
		display: block;
		margin-top: 5px;
		line-height: 1.35;
	}

	/* ---------- INFORMATION ---------- */

	aside section header p {
		padding: 0 !important;
		margin: 0 0 10px !important;

		font-size: 19px !important;

		border-bottom: 2px solid #ddd;
		padding-bottom: 7px !important;
	}

	aside .list-group {
		padding-left: 0 !important;
	}

	aside .list-group-item {
		padding: 11px 12px;
		font-size: 16px;
	}

	/* ---------- stopka ---------- */

	footer {
		padding-top: 25px;
		padding-bottom: 12px;

		font-size: 14px;
		line-height: 1.5;
	}

	footer p {
		margin-bottom: 12px;
	}

	#convert_time {
		display: block;
		margin-top: 4px;
	}

}

/* fixing Font Awesome */
aside div.list-group a.list-group-item i {
	margin-right: 5px;
	
	display: inline-block;
}

div#xd	{
	display: inline-block
}

/* Fixing live scores */
#live-scores > section > article {
	display: flex;
}

#live-scores > section > article > a {
	flex-grow: 1;
	text-align: center;
	font-weight: bold;
	border-top: 1px solid #ddd !important;
	border-right: 1px solid #ddd !important;
	border-left: none;
	border-bottom: none;
	border-radius: 0px;
}

#live-scores > section > article:last-child > a:last-child {
	border-bottom-right-radius: 4px;
	border-right: 1px solid #ddd;
}

#live-scores > section > article:last-child > a:first-child {
	border-bottom-left-radius: 4px;
	border-left:1px;
}

#live-scores > section > article:first-child > a:last-child {
	border-top-right-radius: 4px;
}

#live-scores > section > article:first-child > a:first-child {
	border-top-left-radius: 4px;
}

#live-scores > section > article:last-child > a {
	border-bottom: 1px solid #ddd;
}

#live-scores > section > article > a:first-child {
	border-left: 1px solid #ddd;
}

#live-scores > section {
	padding-bottom: 20px;
}

#live-scores > section:last-child {
	padding-bottom: 0px;
}

/* Selecting the main page header and making it nice */

div#page-wrapper > header {
	display: flex;
	justify-content: space-between;
	padding: 5px 0 5px 10px;
	align-items: center;
}

.tournamentInfo {
	text-align: center;
}

.tournamentInfo p {
	font-style: oblique;
	font-size: x-large;
	margin: 0 0 0 0;
}

.tournamentInfo h1 {
	margin: 0 0 0 0;
	font-size: xx-large
}

/* General lay-out*/
.flex-horizontal {
	display: flex;
	flex-wrap: wrap;
	flex: 1;
}

#page-wrapper {
	min-height: 90vh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	max-width: 900px;
	margin: 5px auto;
	font-family: Oxygen, Trebuchet, Lato, Verdana, sans-serif;
}

/* Playing with maim */
main {
	flex-grow: 2;
}

/* Playing with footer */
footer {
	padding-top: 20px;
	padding-bottom: 10px;
}

footer p {
	font-style: oblique;
}

/* More random stuff */
ol, ul {
	list-style-type: none;
}
body {
background-color: rgb(255,255,255);
}

time {    display: inline-block;    font-weight: bold;    min-width: 60px;    text-align: right;}

li > time::after {
	content: " - ";
}

datetime {
	display:inline-block;
	width:45px;
	text-align: right;
}

.label-tournament {
	min-width: 60px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 5px;
/*	font-family: Lato, Trebuchet, Helvetica, Verdana, sans-serif; */
}

.label-important {
	background-color: #b94a48;
	margin-left: -5px;
/*	font-family: Lato, Trebuchet, Helvetica, Verdana, sans-serif; */
}

.live {
 	-webkit-animation: progress-bar-stripes 2s linear infinite;
 	-o-animation: progress-bar-stripes 2s linear infinite;
 	animation: progress-bar-stripes 2s linear infinite;
 	animation-direction: reverse;
}
/* No print  */
@media print
{    
    .no-print, .no-print *
    {
        display: none !important;
    }
  
  .navbar, .image, .f, body > center > table > tbody {
        display: none !important;
    }

    /* Fixing printing url in firefox */
    a:link:after,
    a:visited:after {
        content: "" !important;
    }
}

.tournament[data-results] {
    transition: background-color 0.2s ease;
}

.tournament.has-results {
    cursor: pointer;
}

.tournament-results-link {
    color: inherit;
    text-decoration: none;
}

.tournament.has-results .tournament-name {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.live-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 7px;
    border-radius: 4px;
    background: #d32f2f;
    color: white;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.tournament.is-live {
    background: rgba(211, 47, 47, 0.06);
}