/*
Theme Name: PSOUU - OREW Myślenice
Author: r.sulkowski@gmail.com / remigiusz.orlowski@gmail.com
Description: Motyw utworzony dla PSOUU - OREW Myślenice, aktualizacja 2025-04-07
Version: 0.3
Text Domain: psouu
*/

/*! normalize.css v2.1.3 | MIT License | git.io/normalize */

article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
	display: block;
}

audio, canvas, video {
	display: inline-block;
}

audio:not([controls]) {
	display: none;
	height: 0;
}

[hidden], template {
	display: none;
}

html {
	font-family: sans-serif;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}

a {
	background: transparent;
}

a:focus {
	outline: thin dotted;
}

a:active, a:hover {
	outline: 0;
}

h1 {
	font-size: 2em;
	margin: .67em 0;
}

abbr[title] {
	border-bottom: 1px dotted;
}

b, strong {
	font-weight: 700;
}

dfn {
	font-style: italic;
}

hr {
	-moz-box-sizing: content-box;
	box-sizing: content-box;
	height: 0;
}

mark {
	background: #ff0;
	color: #000;
}

code, kbd, pre, samp {
	font-family: monospace, serif;
	font-size: 1em;
}

pre {
	white-space: pre-wrap;
}

q {
	quotes: "\201C" "\201D" "\2018" "\2019";
}

small {
	font-size: 80%;
}

sub, sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -.5em;
}

sub {
	bottom: -.25em;
}

img {
	border: 0;
}

svg:not(:root) {
	overflow: hidden;
}

fieldset {
	border: 1px solid silver;
	margin: 0 2px;
	padding: .35em .625em .75em;
}

button, input, select, textarea {
	font-family: inherit;
	font-size: 100%;
	margin: 0;
}

button, input {
	line-height: normal;
}

button, select {
	text-transform: none;
}

button, html input[type="button"], input[type="reset"], input[type="submit"] {
	-webkit-appearance: button;
	cursor: pointer;
}

button[disabled], html input[disabled] {
	cursor: default;
}

input[type="checkbox"], input[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

input[type="search"] {
	-webkit-appearance: textfield;
	-moz-box-sizing: content-box;
	-webkit-box-sizing: content-box;
	box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

textarea {
	overflow: auto;
	vertical-align: top;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

body, figure {
	margin: 0;
}

legend, button::-moz-focus-inner, input::-moz-focus-inner {
	border: 0;
	padding: 0;
}
/* normalize end */


#header h1,
#header h2,
#left ul,
#left ul li,
#header h2,
#header h3,
#content ul.files,
#content ul.files li,
#content blockquote {
	margin: 0;
	padding: 0;
	list-style: none;
}

html {
	height: 100%;
	font-size: 16px; /* Base font size for rem calculations */
}

@media (max-width: 768px) {
	html {
		font-size: 14px; /* Smaller base font size for mobile */
	}
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
	display: block;
}
body {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
	font-size: 1rem; /* 1rem = 16px (the base font size) */
	line-height: 1.3em;
	height: 100%;
	background: #eae4bc;
}
a {
	text-decoration: none;
	color: #fb8008;
}
a:hover {
	text-decoration: underline;
}

#content ul.pagination li a,
#content ul.pagination li span,
a.button,
#content ul.pagination li a,
#content ul.pagination li span,
a.button {
	display: inline-block;
	vertical-align: baseline;
	margin: 7px;
	padding: 3px 7px;
	color: #fff;
	background: #ff9933;
	font-size: 1.25em;
	-webkit-border-radius: .25em;
	border-radius: .25em;
	width: 1.33em
}
#content ul.pagination li a:hover,
a.button:hover {
	text-decoration: none;
	background: #fb8008;
}
#content ul.pagination li span {
	background: #ccc;
}
span.edit-link a {
	display: inline-block;
	vertical-align: baseline;
	line-height: 1em;
	margin: 0 .25em;
	padding: .4em .5em .5em;
	font-weight: 300;
	color: #fff;
	background: #f60;
	-webkit-border-radius: .25em;
	border-radius: .25em;
}
span.edit-link a:hover {
	text-decoration: none;
	background: #f30;
}

#wrapper {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
	background: #fff;
	-webkit-border-radius: 0 0 .5em .5em;
	border-radius: 0 0 .5em .5em;
	-webkit-box-shadow: 0 0 5em .5em #fb8008;
	box-shadow: 0 0 5em .5em #fb8008;
}

#header {
	position: relative;
	padding: 0;
	height: 360px;
	background: #766400;
	border-bottom: .5em #ff9933 solid;
	text-align: right;
	overflow: hidden;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-weight: 700;
	color: #fff;
}

#slideshow {
	margin: 0 auto;
	position: relative;
	width: 100%;
	height: 360px;
	overflow: hidden;
}
#gradient {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
}

#slideshow img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: kenburns 20s ease-out both;
}

@keyframes kenburns {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.1);
}
}

#header h2 {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	padding: 20px;
}

#header h2 a {
	display: block;
	width: 120px;
	height: 0 !important;
	padding-top: 173px;
	background: url('./images/logo.svg') no-repeat;
	overflow: hidden;

	-webkit-box-shadow: 0 0 6px 4px rgba(255,255,255,.3);
	box-shadow: 0 0 6px 4px rgba(255,255,255,.3);
}

#header h3 {
	position: absolute;
	font-size: 2em;
	line-height: 1em;
	text-shadow: 2px 2px 2px #000;
	text-align: left;
	z-index: 5;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 5;
	padding: 10px 20px;
}

#header h4.anniversary {
	position: absolute;
	top: .6em;
	right: .6em;
	margin: 0;
	color: #fff;
	font-size: 2.5em;
	line-height: 1em;
	text-shadow: 0 1px 2px #000;
	z-index: 5;
}

.a11y {
	cursor: pointer;
	padding: 10px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fb8008;
	position: absolute;
	z-index: 990;
	top: 10px;
	border: solid 3px #fff;
	-webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}
.a11y img {
	width: 24px;
	height: 24px;
}
.a11y:hover {
	background: #884a0c;
}
.a11y#large-font {
	right: 20px;
}
.a11y#high-contrast {
	right: 78px;
}

#nav-toggle {
  display: none;
}

#nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 3px 0;
  transition: all 0.3s ease;
  background-color: #fff;
}

/* Animate hamburger to X */
#nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

#nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


#middle:after {
	display: table;
	clear: both;
	content: '';
}
#container {
	width: 100%;
	float: left;
	overflow: hidden;
}
/* content */
#content {
	padding-left: 2em;
	margin: 0 1em 3em 25%;
	border-left: 1px #ff9933 solid;
}
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
	font-weight: 300;
	margin: 1em 0 .75em;
	padding: 0;
	line-height: 1.5em;
}
#content h1 {
	font-size: 2.167em;
}
#content h2 {
	font-size: 2em;
}
#content h3 {
	font-size: 1.833em;
}
#content h4 {
	font-size: 1.667em;
}
#content h5 {
	font-size: 1.5em;
}
#content h6 {
	font-size: 1.333em;
}
#content p,
#content ul,
#content ol {
	margin: 1em 0;
	padding: 0;
}
#content ul,
#content ol {
	margin-left: 1.5em;
}
#content ul ul,
#content ul ol,
#content ol ol,
#content ol ul {
	margin-top: .333em;
}
#content ul.files {
	font-weight: 300;
}
#content ul.files a {
	display: block;
	position: relative;
	padding-left: 3em;
	min-height: 3.5em;
}
#content ul.files a span.fileIcon {
	position: absolute;
	top: 0;
	left: 0;
	width: 28px;
	height: 0 !important;
	padding-top: 32px;
	background: url('./images/filetypes.png') no-repeat;
	overflow: hidden;
}
#content ul.files a span.file-pdf {
	background-position: -171px 0;
}
#content ul.files a span.file-zip {
	background-position: -28px 0;
}
#content ul.files a span.file-doc,
#content ul.files a span.file-docx {
	background-position: -57px 0;
}
#content ul.files a span.file-xls,
#content ul.files a span.file-xlsx {
	background-position: -85px 0;
}
#content ul.files a span.file-ppt,
#content ul.files a span.file-pptx {
	background-position: -114px 0;
}
#content ul.files a span.file-gif,
#content ul.files a span.file-png,
#content ul.files a span.file-jpg,
#content ul.files a span.file-jpeg {
	background-position: -142px 0;
}
#content ul.files a span.file-mp3 {
	background-position: -228px 0;
}

#content ul.files a span.name {
	font-size: 1.5em;
}
#content ul.files span.filesize {
	display: block;
	color: #999;
	font-size: .833em;
}
#content img {
	max-width: 100%;
	height: auto;
}
#content blockquote {
	max-width: 604px;
}
/* end content */

#content div.entry-banners {
	display: flex;
	flex-flow: row nowrap;
	gap: 40px;
	justify-content: space-evenly;
	margin: 30px 0 10px;
	align-items: center;
}
#content div.entry-banners .entry-banner {
	display: block;
}
#content div.entry-banners .entry-banner img {
	height: 64px;
	width: auto;
}

#content div.entry-thumbnail {
	margin: 40px 0 5px;
}
#content div.entry-thumbnail img {
	border-radius: 20px;
}

#content h1.entry-title,
#content h2.entry-title {
	margin: 5px 0 0;
}
#content h1.has-thumbnail {
	margin-top: 10px;
}
#content div.entry-meta {
	font-weight: 300;
	margin: 0;
}
#content div.entry-meta span.date {
	color: #fb8008;
}
#content div.entry-meta span.tags-links a {
	position: relative;
	display: inline-block;
	vertical-align: baseline;
	margin: 0 1em 0 1.5em;
	padding: .25em .5em;
	background: #ccc;
	line-height: 1em;
	color: #fff;
	-webkit-border-radius: 0 .25em .25em 0;
	border-radius: 0 .25em .25em 0;
}
#content div.entry-meta span.tags-links a:hover {
	text-decoration: none;
	background: #ff9933;
}
#content div.entry-meta span.tags-links a:before {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	top: 0;
	left: -.75em;
	border-top: .75em solid transparent;
	border-right: .75em solid #ccc;
	border-bottom: .75em solid transparent;
}
#content div.entry-meta span.tags-links a:hover:before {
	border-right-color: #ff9933;
}
#content div.entry-meta span.tags-links a:after {
	content: '';
	top: 50%;
	left: -.25em;
	margin-top: -.167em;
	width: .417em;
	height: .417em;
	position: absolute;
	background-color: #fff;
	border-radius: 50%;
}
#content .hentry {
	padding-bottom: 30px;
	border-bottom: 1px #ffd7af solid;
}

#content ul.pagination {
	margin-top: 2em;
	text-align: center;
}
#content ul.pagination li {
	display: inline;
}

.search-form {
	margin-bottom: 1em;
}

.search-form .search-submit {
	display: none;
}

.search-form label {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: center;
	gap: 0;
}
.search-form a.submit, .search-form input {
	margin: 0;
	height: 1.7em;
	box-sizing: content-box;
	border: solid 1px #fb8008;
}

.search-form input {
	padding: 8px 10px;
	border-radius: 10px 0 0 10px;
	max-width: 66%;
}
.search-form a.submit {
	border-radius: 0 10px 10px 0;
	padding: 5px 0;
	width: 1.7em;
	border-right: 0;
}

#content div.gallery {
	margin-top: 1em;
}

#left {
	float: left;
	width: 25%;
	margin-left: -100%;
	padding-top: 2em;
	position: relative;
	border-right: 1px #ff9933 solid;
	font-weight: 300;
}
#left ul a {
	display: block;
	padding: .5em .4em;
	font-size: 1.3em;
	color: #fb8008;
}

#left ul ul a {
	font-size: 1.1em;
	padding: .3em .7em;
}

#left ul a:hover {
	color: #fff;
	background: #fb8008;
	text-decoration: none;
}

#left .current-menu-parent {
	background: linear-gradient(to right, #ffffff 0%, #fff3dd 100%);
}

#left .current-menu-item {
	background: #ffe6b7;
	background: linear-gradient(to right, #fff3dd 0%, #ffe6b7 100%);
}
#footer {
	width: 100%;
	max-width: 1280px;
	margin: 20px auto 50px;
	padding: 0 20px 50px;
	font-size: 1.1em;
	text-align: center;
	color: #333;
	font-weight: 700;
}
#footer div.left {
	float: left;
	width: 49%;
	text-align: left;
}
#footer div.right {
	margin-left: 50%;
	text-align: right;
}
#footer h3,
#footer p,
#footer address {
	margin: 0;
	padding: .25em 0;
	line-height: 1.25em;
	font-weight: normal;
	font-style: normal;
	font-size: 1em;
}
#footer a {
	color: #fb8008;
}

span.icon:before,
#content div.entry-meta span.date:before {
	display: inline-block;
	font: normal 1.5em/1 Genericons;
	text-decoration: inherit;
	vertical-align: text-bottom;
	-webkit-font-smoothing: antialiased;
}
form.search-form a.submit span.icon:before {
	content: '\f400';
}
#content div.entry-meta span.date:before {
	content: '\f303';
	font-size: 1.333em;
}

.banners {
	text-align: center;
}

/* Responsive breakpoints */
@media screen and (max-width: 1200px) {
	#wrapper, #footer {
		max-width: 90%;
	}
}

@media screen and (max-width: 768px) {
	#wrapper, #footer {
		max-width: 100%;
		padding: 0;
	}
}

@media (max-width: 768px) {
	.a11y {
    position: fixed;
	}
	#nav-toggle {
    display: block;
    position: fixed;
    right: 20px;
    z-index: 9999;
  }
	.a11y#large-font {
		right: 78px;
	}
	.a11y#high-contrast {
		right: 138px;
	}

  #left {
    padding: 50px 0 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
		float: unset;
		margin: 0;
		padding-top: 2em;
		background: #fff;
		z-index: 9990;
		padding-top: 80px;
		height: 100%;
		overflow-y: auto;
	}

	.active#left {
		transform: translateY(0);
	}
	#content {
		margin: 0 1em 3em 0;
		border-left: none;
	}
	#header {
		height: 180px;
	}

	#header h3 {
		font-size: 1.5em;
		bottom: 10px;
			left: 90px;
		padding: 10px;
	}
	#header h2 {
		top: unset;
		bottom: 10px;
		padding: 10px;
	}
	#header h2 a {
		width: 70px;
		padding-top: 102px;
	}
	#slideshow {
		height: 180px;
	}

	#left ul.banners {
		margin: 10px 0 30px;
		display: inline-flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px;
	}
}

body.large-font {
	font-size: 1.5em;
}

#siepomaga-tpay-container {

}
p#siepomaga-tpay-title {
	font-size: 1.1em;
	font-weight: 600;
	margin: 0 0 5px;
	text-align: center;
}

#siepomaga-tpay-buttons {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
}

.siepomaga-tpay {
	display: inline-block;
	padding: 12px 16px;
	background: #fb8008;
	color: #fff;
	border-radius: 20px;
	margin: 3px;
	font-weight: 600;
	transition: background 0.2s ease;
}
.siepomaga-tpay:hover {
	background: #884a0c;
	transition: background 0.2s ease;
}
@media (max-width: 768px) {
	.siepomaga-tpay {
		display: inline-block;
		padding: 6px 7px;
	}
}

body.high-contrast {
	color: #fff;
	background: #000;
}
body.high-contrast #wrapper {
	background: #000;
	-webkit-box-shadow: none;
	box-shadow: none;
}
body.high-contrast #header h3 {
	background: #000;
}
body.high-contrast #left .current-menu-parent, body.high-contrast #left .current-menu-item {
	background: transparent;
}
body.high-contrast #left .current-menu-item a {
	background: transparent;
	color: #36f;
}
body.high-contrast svg .przekaz {
	fill: #fff;
}
