body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f5f5dc; /* Delikatny pastelowy beż */
	margin: 0;
	padding: 0;
	height: 100%;
}

h1 {
    font-size: 32px;
    color: #444;
    font-weight: bold;
    background-color: #e0e0e0; /* Jasny szary */
    padding: 15px;
    border-radius: 10px; /* Zaokrąglone krawędzie */
    display: inline-block;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
	gap: 10px;
}

.tile {
    position: relative;
    width: calc(25% - 20px);
	max-width: 220px;
	aspect-ratio: 1 / 1;
    margin: 5px;
    font-size: 14px;
    box-sizing: border-box;
    text-align: center;
    background-color: #b3cde0;
    color: #333;
    text-decoration: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.15);
}

.tile::before {
    content: "";
    display: block;
    padding-top: 100%; /* dzięki temu wysokość = szerokość */
}

.tile img {
    width: 70%;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.tile:hover {
    background-color: #a2b9bc; /* Przyjemny szarawy odcień */
    transform: scale(1.05);
}

.tile-content {
	font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	text-align: center;
	line-height: 1.3;
	word-break: break-word;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper > footer {
  margin-top: auto;
}

.main-content {
  padding-bottom: 30px; /* 👈 Odstęp od stopki, nawet przy małej zawartości */
}

footer {
    background-color: #a2b9bc; /* Stonowany pastelowy kolor */
    color: #333;
    text-align: center;
    padding: 5px 15px;
    font-size: 14px;
    border-top: 2px solid #b3cde0; /* Subtelna linia oddzielająca */
}

@media (max-width: 768px) {
    .container {
        justify-content: center;
		flex-wrap: wrap;
        gap: 0;
        padding: 0 5px;
    }

    .tile {
        width: 45%;
        aspect-ratio: 1 / 1; /* Utrzymuje kwadrat */
        margin: 5px;
        padding: 10px;
        font-size: 14px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .tile img {
        max-width: 70%;
        height: auto;
        max-height: 60%;
        object-fit: contain;
        margin-bottom: 5px;
    }

    .tile-content {
      font-size: 13px;
      line-height: 1.2;
      font-weight: 600;
      padding: 8px;
      word-break: break-word;
    }

    h1 {
        font-size: 22px;
        padding: 8px;
    }

    h2 {
        font-size: 18px;
    }

    footer {
        font-size: 12px;
        padding: 10px;
    }
}

