body {
	font-family: Arial, sans-serif;
	margin: 20px auto;
	padding: 20px;
	max-width: 960px;
	background: rgba(238, 234, 238, 0.2);
	border-radius: 12px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	filter: blur(18px);
	transition: filter 0.2s ease;
}

body.loaded {
	filter: blur(0);
}

body::before {
	content: "";
	background-image: url("https://www.fzcj.pl/img/logoFZCJczarne.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: contain;
	opacity: 1;
	position: fixed;
	top: 0;
	left: 0;
	width: 45%;
	height: 80px;
	z-index: -01;
}

.dziura-po-kule {
	position: absolute;
	top: 1%;
	left: 92%;
	transform: translate(-50%, -50%);
	width: 50px;
	height: auto;
	pointer-events: none;
	user-select: none;
	z-index: 9999;
	opacity: 1;
	transition: opacity 1s ease-in-out;
}

@keyframes flash-fade {
	from {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
	to {
		opacity: 0;
		transform: translate(-50%, -50%) scale(1.5);
	}
}

h1,
h2 {
	/* top: 220px; */
	text-align: center;
}

label {
	display: block;
	margin-top: 10px;
	font-weight: bold;
}

input,
select {
	padding: 6px;
	width: 100%;
	max-width: 300px;
	margin-top: 4px;
}

.wrapper {
	display: flex;
	gap: 20px; /* odstęp między divami */
	align-items: flex-start; /* opcjonalnie: wyrównaj górą */
}

.group {
	/* border: 1px solid rgb(154, 152, 152); */
	padding: 10px;
	width: 50%;
	height: 100%;
	position: relative;
	background-color: rgb(255, 255, 255);
	border-radius: 10px;
}

.group_2 {
	position: relative;
	background: rgb(255, 255, 255);
	padding: 15px;
	border-radius: 10px;
	margin: 20px 0;
}
/* 
button {
	margin-top: 10px;
	padding: 10px 20px;
	font-size: 16px;
} */
button {
	padding: 0.6em 1.2em;
	font-size: 1em;
	background-color: #0078d7;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	margin-top: 1em;
}

button:hover {
	background-color: #03651e;
}

canvas {
	border: 1px solid #ccc;
	background: #fff;
	margin-top: 20px;
	max-width: 100%;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
	background: #fff;
	border-radius: 10px;
	padding: 10px;
}

th,
td {
	border: 1px solid #ccc;
	padding: 8px;
	text-align: center;
}

@media print {
	body {
		box-shadow: none;
		background: white;
	}

	button,
	select,
	input {
		display: none !important;
	}

	canvas {
		page-break-inside: avoid;
	}
	#print-footer {
		display: block !important;
		color: rgb(9, 158, 9) !important;
	}
}

.btn-return {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	background-color: #f2a9a9;
	color: white;
	text-decoration: none;
	border: none;
	border-radius: 6px;
	font-weight: bold;
	font-size: 1em;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
	margin-top: 10px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

.btn-return:hover {
	background-color: darkred;
	color: rgb(245, 222, 165);
}

.btn-return:active {
	transform: scale(0.97);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.btn-return .icon-left,
.btn-return .icon-right {
	width: 1.1em;
	height: 1.1em;
	fill: currentColor;
	flex-shrink: 0;
	vertical-align: middle;
}

/* #wyniki {
	margin: 10px 0 10px 0px;
	gap: 30px;
	top: 10px;
	background: rgba(83, 237, 62, 0.5);
	border-radius: 10px;
	padding: 10px;
} */

#wyniki {
	margin: 10px 0;
	top: 10px;
	border-top: 5px solid rgb(2, 69, 1);
	/* border-bottom: 2px solid red; */
	border-left: none;
	border-right: none;
	border-radius: 10px;
	transition: all 0.3s ease;
	overflow: hidden;
}

/* Początkowo ukryj zawartość i styluj jak cienką linię */
#wyniki.ukryte {
	background: none;
	color: transparent;
	height: 2px;
	padding: 0;
	gap: 0;
}

/* Po kliknięciu pokaż pełną zawartość i styl */
#wyniki.pokaz {
	background: rgba(8, 67, 0, 0.3);
	color: inherit;
	height: auto;
	padding: 10px;
	gap: 30px;
}

#print-footer {
	all: unset; /* resetuje wszystkie style */
	color: rgb(111, 112, 111) !important; /* nadpisuje inne kolory */
	display: block; /* przywraca potrzebne cechy blokowe */
}
