/* 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);

/* 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: 1 1 0;          /* równe kolumny niezależnie od treści */
	min-width: 0;         /* długie teksty zawijają się zamiast rozpychać kolumnę */
	display: flex;        /* wyśrodkowanie w pionie przy różnej wysokości komórek */
	align-items: center;
	justify-content: center;
	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 solid #ddd;
}

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

/* h4 w komórkach ma domyślne marginesy Bootstrapa (10px) */
#live-scores > section > article > a > h4 {
	margin: 0;
}

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

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

/* Selecting the main page header and making it nice */
h2 {
}

div#page-wrapper > header {
	display: flex;
	justify-content: space-between;
	padding: 5px 0 5px 0;
	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: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	max-width: 900px;
	margin: 0 auto;
	font-family: Oxygen, Trebuchet, Lato, Verdana, sans-serif;
}

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

/* Playing with footer */
footer {
	padding-top: 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: " - ";
}

.label-tournament {
	min-width: 50px;
	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;
    }
}

/* ===== Tryb nocny ===== */
#theme-toggle {
	position: fixed;
	top: 12px;
	right: 12px;
	z-index: 1000;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
	color: #555;
	font-size: 16px;
	line-height: 32px;
	text-align: center;
	cursor: pointer;
	opacity: .75;
	box-shadow: 0 1px 3px rgba(0,0,0,.15);
	transition: opacity .15s, background-color .2s, color .2s, border-color .2s;
}

#theme-toggle:hover,
#theme-toggle:focus {
	opacity: 1;
}

#theme-toggle:focus {
	outline: 2px solid #009640;
	outline-offset: 2px;
}

/* na wąskich ekranach przycisk schodzi na dół, żeby nie zasłaniać logo */
@media (max-width: 1000px) {
	#theme-toggle {
		top: auto;
		bottom: 12px;
	}
}

body,
.list-group-item {
	transition: background-color .2s, color .2s, border-color .2s;
}

@media screen {
	html[data-theme="dark"] body {
		background-color: #14181d;
		color: #d7dde3;
	}

	html[data-theme="dark"] a {
		color: #7db8e8;
	}

	html[data-theme="dark"] a:hover,
	html[data-theme="dark"] a:focus {
		color: #a9d2f3;
	}

	/* logo PZBS na jasnej plakietce - czytelne niezależnie od tła gifa */
	html[data-theme="dark"] #page-wrapper header img {
		background: #fff;
		border-radius: 6px;
		padding: 4px;
	}

	/* listy / kafelki */
	html[data-theme="dark"] .list-group-item {
		background-color: #1e242b;
		border-color: #323b45;
		color: #d7dde3;
	}

	html[data-theme="dark"] a.list-group-item:hover,
	html[data-theme="dark"] a.list-group-item:focus {
		background-color: #28313b;
		color: #fff;
	}

	html[data-theme="dark"] a.list-group-item-success {
		background-color: #1b3a29;
		color: #8fd9a8;
	}

	html[data-theme="dark"] a.list-group-item-success:hover,
	html[data-theme="dark"] a.list-group-item-success:focus {
		background-color: #234b35;
		color: #b4e8c5;
	}

	html[data-theme="dark"] a.list-group-item-info {
		background-color: #18344a;
		color: #8ccbee;
	}

	html[data-theme="dark"] a.list-group-item-info:hover,
	html[data-theme="dark"] a.list-group-item-info:focus {
		background-color: #1f435e;
		color: #b5def5;
	}

	html[data-theme="dark"] .list-group-item.active,
	html[data-theme="dark"] .list-group-item.active:hover,
	html[data-theme="dark"] .list-group-item.active:focus {
		background-color: #24507a;
		border-color: #24507a;
		color: #fff;
	}

	html[data-theme="dark"] #live-scores > section > article > a {
		border-color: #323b45 !important;
	}

	/* etykiety w harmonogramie */
	html[data-theme="dark"] .label-success {
		background-color: #2e8b4e;
	}

	html[data-theme="dark"] .label-info {
		background-color: #2f86a6;
	}

	html[data-theme="dark"] .label-important {
		background-color: #a94442;
	}

	html[data-theme="dark"] #theme-toggle {
		background: #1e242b;
		border-color: #323b45;
		color: #f2c94c;
		box-shadow: 0 1px 3px rgba(0,0,0,.5);
	}
}
