:root {
  --tlo-sciezka: '../img/bg/stat.jpg';
}

/*obsługa pudełek w playground*/
.pudelko
{
	background-color: white;
	border-radius: 15px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
	padding: 30px;
	width: 320px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pudelkoTytul
{
	font-size: 1.5rem;
	color: #2c3e50;
	margin-bottom: 0px;
	text-align: center;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
	font-weight: bold;
}

/*obsługa okien głównych*/
.windowTlo
{
	background-image: var(--tlo-sciezka);
	background-position: center;
	background-size: cover;
	background-attachment: fixed;
}

.windowTytul
{
	font-size: 1.5rem;
	color: #f0f4f8; /* Jasny kremowy tekst dla kontrastu */
	text-align: center;
	padding: 10px;
	border-bottom: 1px solid #444; /* Ciemniejszy border */
	font-weight: bold;
	margin-bottom: 15px;
	background: radial-gradient(circle, #1a252f 0%, #2c3e50 70%, #34495e 100%); /* Radialny gradient */
	border-radius: 8px 8px 0 0;
}

.tabela {
	/* Kontener na dane tabelaryczne z dynamicznymi kolumnami */

	column-count: 4; /* Maksymalnie 4 kolumny */
	column-gap:  0px;
	column-width: 280px; /* Zwiększona minimalna szerokość kolumny */
	column-fill: balance; /* Równomierne wypełnienie kolumn */
	box-sizing: border-box; /* Uwzględnia padding i border w szerokości */
	width: 100%; /* Upewnia się, że kontener zajmuje pełną szerokość */
	margin: auto;
}

.tabela > ul {margin: auto; margin-top: 0; padding: 0 10px; list-style: none;}

.tabela > ul > li
{
	list-style: none;
	font-size: 0.95rem;
	color: #333;
	text-align: left;
	padding: 8px 10px;
	background-color: #fff;
	border-radius: 5px;
	border: 1px solid #e9ecef;
	transition: background-color 0.2s ease;
	margin-bottom: 8px;
	break-inside: avoid;
	width: 100%; /* Pełna szerokość w ramach kolumny */
	box-sizing: border-box; /* Uwzględnia padding i border */
	margin-top: 0; /* Usuwa dodatkowy margines nad pierwszym rekordem */
}

.tabela > ul > li:hover{background-color: #e3f2fd; border-color: #3498db;}

/* wygląd pojedynczego tłumaczenia w slowo.php, później przenieść niżej do odpowiedniej sekcji*/
.tlumaczenia {margin: 0; padding: 0; list-style: none; width: 100%;}

.tlumaczenia > li
{
	font-size: 0.95rem;
	color: #333;
	padding: 8px 10px;
	background-color: #fff;
	transition: background-color 0.2s ease;
	margin-bottom: 8px;
	break-inside: avoid;
	width: 100%; /* Pełna szerokość w ramach kolumny */
	box-sizing: border-box; /* Uwzględnia padding i border */
	margin-top: 0; /* Usuwa dodatkowy margines nad pierwszym rekordem */
}

.tlumaczenia > li:hover{background-color: #d1e8ff; border-color: #2980b9; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);}

.poziom
{
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 10px;
}

.pion
{
	display: flex;
	flex-direction: column;
	align-items: stretch; /* Upewnia się, że dzieci zajmują pełną szerokość */
}

.rowny {flex: 1;}

/*docelowo usunąć wszystko poza pion i poziom*/
.rekordPoziom
{
	display: inline-flex;
	flex-direction: row;
	align-items: center;
}

.rekordPion
{
	display: flex;
	flex-direction: column;
	align-items: stretch; /* Upewnia się, że dzieci zajmują pełną szerokość */
}

/*pudełka na menu*/
.menuPoziom
{
	/*wymusza, by kilka elementów było w jednej linii*/
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

.menuPion
{
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.menuFlex
{
	/*wymusza by element w środku były dynamiczne, domyślnie linia, ale jeśli się nie mieści to kolumna*/
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 80%;
	align-items: center; /* Wyśrodkowanie guzików w poziomie */
	text-align: center;
	justify-content: center;
	margin: auto;
	margin-bottom: 15px;
}

/*formularze*/
.formularz
{
	padding: 12px 15px;
	background-color: #f8f9fa;
	border: 2px solid #e9ecef;
	border-radius: 12px;
	font-size: 15px;
	transition: all 0.2s ease;
	color: #333;
	font-weight: 500;
	display: flex;
	align-items: center;
	word-break: break-word;
	position: relative;
	flex: 1 1 auto;
	box-sizing: border-box;
}

.formularz:hover {
	background-color: #e9ecef;
	border-color: #dee2e6;
}

.formularz.selected {
	color: #2c3e50;
	background-color: #e3f2fd;
	border-color: #3498db;
}

.potwierdzenie
{
	padding: 12px 20px; /* Lekko większy padding dla wyróżnienia */
	background-color: #3498db; /* Niebieski kolor dla akcji potwierdzającej */
	border: 2px solid #2980b9; /* Ciemniejszy odcień dla kontrastu */
	color: #fff; /* Biały tekst dla kontrastu */
	cursor: pointer;
	justify-content: center; /* Wyśrodkowanie tekstu */
}

.potwierdzenie:hover {
	background-color: #2980b9; /* Ciemniejszy odcień na hover */
	border-color: #1f6ca1; /* Jeszcze ciemniejszy border */
}

.potwierdzenie:active {
	background-color: #1f6ca1; /* Efekt przyciśnięcia */
	border-color: #1a5687;
}

/*pasek postępu*/
.postepPudelko
{
	width: 100%;
	height: 12px;
	background-color: #e9ecef;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
	margin-top: 10px;
	margin-bottom: 10px;
}

.postepPasek
{
	height: 100%;
	border-radius: 8px;
	transition: width 0.5s ease, background-color 0.5s ease;
	overflow: hidden;
}

.postepPasek::after
{
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 50%;
	height: 100%;
	background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
	animation: shine 3s infinite;
}

.postepTekst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 8px;
    font-weight: 500;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    white-space: nowrap;
}

.swoj {font-style: italic;}
.obcy {}
/*menu hamburgerowe*/
.hamburger {
  display: block;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  background-color: #000;
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: 10;
}

#menu {
  display: none;
  flex-direction: column;
  background-color: white;
  width: 280px;
  position: fixed;
  top: 70px; /* Zwiększone z 60px, by menu było pod hamburgerem */
  right: 10px;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  z-index: 11;
  transform: translateX(100%);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

#menu.active {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}

#menu a {
  color: #333;
  text-decoration: none;
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

#menu a:hover {
  background-color: #e9ecef;
  color: #3498db;
}

#menu a:last-child {
  border-bottom: none;
}

/*fiszkowe*/
.wynikPlus
{
	background: linear-gradient(to right, #2ecc71, #34c759 50%, #2ecc71);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.2);
	animation: slideIn 0.3s ease-out;
	color: #fff;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wynikMinus
{
	background: linear-gradient(to right, #e74c3c, #ff6b6b 50%, #e74c3c);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.2);
	animation: slideIn 0.3s ease-out;
	color: #fff;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gramatyka
{
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	font-size: 10px;
	font-weight: bold;
	margin-left: 0.3rem;
	margin-right: 0.3rem;
	color: white;
}
        

.limit
{
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	white-space: nowrap;
}

/*responsywność*/
@media (max-width: 999px) {.tabela {column-count: 3;}}
@media (max-width: 800px) {.tabela {column-count: 2;}}
@media (max-width: 600px)
{
	.menuFlex {flex-direction: column;}
	.formularz {width: 100%;}

	.tabela
	{
		column-count: 1;
		column-width: auto;
		width: 80%;
		max-width: 80%;
		padding: 0;
		box-sizing: border-box;
	}

	.tabela > ul {padding: 0;}
	.tabela > ul > li
	{
		width: 100%;
		max-width: 100%; /* Zapewnia, że nie przekroczy szerokości rodzica */
		gap: 5px;
		box-sizing: border-box;
		margin-bottom: 8px;
	}
}

/*animacje*/
@keyframes slideIn
{
	from {opacity: 0; transform: translateY(20px);}
	to {opacity: 1; transform: translateY(0);}
}

@keyframes shine
{
	0% { left: -100%; }
	100% { left: 100%; }
}

