body {
	background-image: url(img/bg.gif);
	max-width: 1024px;
	margin: 0 auto;
}

#header {
	text-align: center;
	border-bottom: 1px #000 solid;
}

.container { padding: 5px; }

#footer { text-align: right; font-style: italic; margin: 0 5px 5px 5px; }

.floatbutton {
	float: left;
	margin-left: 10px;
	background-color: #6a6844;
	border: 4px ridge #6a6844;
display: block; color: #fff !important; padding: 5px;
}

/* ZAWARTOŚĆ */

.sidebar {
	border: 4px ridge #d0b20c;
	width: 240px;
	box-sizing: border-box;
	color: #000;
	background-color: #ecce27;
	padding: 2px;
}
.sidebar.left { float: left; margin-right: 10px; }
.sidebar.right { float: right; margin-left: 10px; width: 285px; }
.sidebar a, .itembox .item { color: #005500 !important; }
.sidebar h2 { text-decoration: underline #917f1d; }
.sidebar.right img { margin-top: 5px; border: 4px #444 ridge; max-width: 200px; }
.sidebar ul { line-height: 1.3; }

.content {
	background-color: #6a6844;
	color: #fff;
	border: 4px ridge #6a6844;
	padding: 10px;
}
.content a { color: #ffee67 !important; }

.imagebox a { cursor: zoom-in; }
.imagebox img { margin: 5px; max-width: 200px; }

.itembox { display: flex; }
.itembox .item { display: inline-block; border: 4px ridge #8e7c13; background-color: #c4af3f; padding: 5px; width: 20%; text-align: center; }
.itembox .item img { max-width: 80%; }

/* OGÓLNE STYLE */

h1 { margin: 8px 0; }
h2 { margin: 4px 0; }
p, ul { margin: 2px 0; line-height: 1.5; }

/* EFEKTY SPECJALNE */

@keyframes marquee {
	from { transform: translate(100%, 0); }
	to { transform: translate(-100%, 0); }
}

.marquee {
	display: block; overflow: hidden; width: 100%;
}

.marquee p {
	animation: marquee 22s linear infinite running;
	animation-delay: -3s;
	width: max-content;
}

@media only screen and (max-width: 750px) {
	/* "Dlaczego nie ustawić domyślnie itemboxa na flexboxa?" */
	/* By nie zniszczyć wsparcia dla starych przeglądarek. */
	.itembox { display: flex; }
	.itembox .item { width: auto; }
}

@media only screen and (max-width: 450px) {
	.sidebar { width: 100% !important; float: none !important; margin: 0 !important; }
}
