html {
	min-height: 100vh;
	box-sizing: border-box;
}

body {
	font-family: Bahnschrift, sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: linear-gradient(to bottom, #f0f8ff, #e6e6fa);
	color: #e2e2e2;
	overflow-x: hidden;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

header {
	background: linear-gradient(to bottom, #290202, #5c0325ea);
	text-align: justify;
	font-size: 2rem;
	color: #ffffff;
	padding: 30px 0;
	display: grid;
	grid-template-columns: 1fr 2fr;
	align-items: center;
	position: relative;
	width: 100%;
}

#logo2 {
	margin-left: 1em;
	width: 20%;
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

#logo2 img {
	width: 100%;
	max-width: 100px;
	min-width: 60px;
	border-radius: 100%;
	border: 3px solid #ffbb00;
}

#logo1 {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

#logo1 img {
	width: 100%;
	max-width: 600px;
	min-width: 250px;
}

@media (max-width: 768px) {
	header {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr 1fr;
	}

	#logo2 {
		justify-self: center;
		margin: 0;
	}

	#logo1 {
		position: static;
		transform: translateX(0);
		-webkit-transform: translateX(0);
		-moz-transform: translateX(0);
		-ms-transform: translateX(0);
		-o-transform: translateX(0);
	}

	#logo1 img {
		width: 80%;
		margin: 0;
		padding: 0;
	}
}

nav {
	display: flex;
	justify-content: center;
	background: linear-gradient(to top, #290202, #5c0325ea);
	padding: 0 25px;
	overflow: visible;
}

nav a {
	color: #ffffff;
	text-decoration: none;
	margin: 0 15px;
	font-size: 1.1rem;
	background-color: #ffbb00;
	margin: 1em;
	padding: 0.75em;
	font-weight: bold;
	border-radius: 10px;
	display: inline-block;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav a:hover {
	color: #ffbb00;
	background-color: #5c0325ea;
	transform: scale(1.1);
}

nav a:active {
	color: #5c0325ea;
	background-color: #ffbb00;
}

nav a:focus {
	outline: none;
	box-shadow: 0 0 5px #ffbb00;
}

nav a:focus-visible {
	outline: none;
	box-shadow: 0 0 5px #ffbb00;
}

nav a:focus:not(:focus-visible) {
	outline: none;
}

main {
	background-image: url('./img/tlo.jpg');
	background-size: cover;
	background-position: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	flex: 1 0 auto;
	width: 100%;
}

main section {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

main section h1 {
	font-size: 3rem;
	color: #ffbb00;
	text-align: center;
	margin-bottom: 1em;
}

h2 {
	font-size: 2rem;
	color: #ffbb00;
	text-align: center;
	margin-bottom: 1em;
}

main section p {
	font-size: 1.5rem;
	color: #ffffff;
	text-align: center;
	margin-bottom: 1em;
}

#container {
	width: 80vw;
	max-width: 1200px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	background: #5c0325ea;
	margin-top: 3em;
	margin-bottom: 3em; /* zwiększ odstęp od stopki */
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 10px;
}

.hamburger-menu {
	display: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1000;
}

.hamburger-icon {
	width: 30px;
	height: 20px;
	position: relative;
}

.hamburger-icon span {
	display: block;
	position: absolute;
	height: 3px;
	width: 100%;
	background: #ffffff;
	border-radius: 3px;
	opacity: 1;
	left: 0;
	transform: rotate(0deg);
	transition: 0.25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
	top: 0px;
}

.hamburger-icon span:nth-child(2) {
	top: 8px;
}

.hamburger-icon span:nth-child(3) {
	top: 16px;
}

.hamburger-icon.active span:nth-child(1) {
	top: 8px;
	transform: rotate(45deg);
}

.hamburger-icon.active span:nth-child(2) {
	opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
	top: 8px;
	transform: rotate(-45deg);
}

@media (max-width: 768px) {
	.hamburger-menu {
		display: block;
		position: absolute;
		top: 10px;
		right: 20px;
	}

	nav {
		position: relative;
		flex-direction: column;
		align-items: flex-end;
		padding: 10px 30px;
	}

	#container {
		width: 98vw;
		max-width: 100%;
	}

	#nav-links {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: center;
		padding-top: 10px;
	}

	#nav-links.show {
		display: flex;
	}

	nav a {
		margin: 5px 0;
		width: 80%;
		text-align: center;
	}

	:root {
		font-size: 10px;
	}
}

#gallery-section {
	width: 100%;
	padding: 20px;
	position: relative;
}

.gallery-slider {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.main-slider {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	overflow: hidden;
	height: 600px;
	background: transparent;
}

#mainImage {
	border-radius: 5px;
	cursor: pointer;
	transition: transform 0.3s ease;
	display: block;
	max-width: 100%;
	max-height: 100%;
	margin: auto;
}

@media (max-width: 768px) {
	#gallery-section {
		width: 100%;
	}
	.main-slider {
		height: 350px;
	}
	#mainImage {
		max-width: 100%;
		max-height: 100%;
	}
}

button.prev,
button.next {
	background-color: #5c0325c2;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	position: absolute;
	cursor: pointer;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
}

button.prev:before,
button.next:before {
	content: '';
	border-style: solid;
	border-width: 8px;
	display: block;
}

button.prev {
	left: 10px;
}

button.next {
	right: 10px;
}

button.prev:before {
	border-color: transparent #ffbb00 transparent transparent;
	margin-left: -5px;
}

button.next:before {
	border-color: transparent transparent transparent #ffbb00;
	margin-right: -5px;
}

button.prev:hover,
button.next:hover {
	background-color: #5c0325ea;
}

.thumbnails {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}

@media (max-width: 768px) {
	.thumbnails {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		gap: 8px;
		justify-items: center;
	}
	.thumb {
		width: 50%;
		max-width: 50px;
		height: 50px;
	}
}

.thumb {
	width: 80px;
	height: 80px;
	object-fit: cover;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 5px;
	transition: all 0.3s ease;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-ms-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
}

.thumb:hover {
	transform: scale(1.1);
}

.thumb.active {
	border-color: #ffbb00;
}

.enlarged-view {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.enlarged-view.active {
	display: flex;
}

#enlargedImage {
	max-width: 90%;
	max-height: 80vh;
	object-fit: contain;
}

#enlargedPrevBtn,
#enlargedNextBtn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1001;
}

#enlargedPrevBtn {
	left: 20px;
}

#enlargedNextBtn {
	right: 20px;
}

.close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	background-color: #ffbb00;
	color: #5c0325ea;
	border: none;
	padding: 10px 20px;
	font-weight: bold;
	border-radius: 5px;
	cursor: pointer;
	z-index: 1001;
	transition: all 0.3s ease;
}

.close-btn:hover {
	background-color: #5c0325ea;
	color: #ffbb00;
}

footer {
	background: linear-gradient(to top, #201f1f, #5c0325ea);
	text-align: center;
	padding: 15px 0;
	color: #ffffff;
	font-size: 0.9rem;
	width: 100%;
	font-weight: bold;
	margin-top: auto;
}

iframe {
	width: 90%;
	height: 400px;
	border: none;
}

#social-media-section {
	margin: 15px 0;
	width: 100%;
}

#social-media-section .social-media {
    margin-top: -20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: 100%;
	overflow-x: hidden;
	overflow-y: visible;
	box-sizing: border-box;
}

#social-media-section a {
	margin: 0 5px;
	display: flex;
	align-items: center;
	max-width: 90px;
	box-sizing: border-box;
	overflow: hidden;
}

#social-media-section img {
	max-width: 100%;
	max-height: 65px;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
	box-sizing: border-box;
	display: block;
}

#social-media-section img:hover {
	transform: scale(1.1);
	max-width: 100%;
	max-height: 65px;
}

#top-section {
	margin-top: 20px;
}

.luka {
    margin-top: -20px;
}
