body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.ibb.co/R2BWXdY/airsoft-g269321c92-1920.jpg'); /* Zmień nazwę pliku na nazwę Twojego obrazu */
    background-size: cover;
    filter: brightness(0.5); /* Dodaj filtr do tła */
    z-index: -1; /* Umieść tło pod kafelkami */
}

.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

.tile {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background-size: cover; /* Skalowanie obrazu do rozmiaru kafelka */
    background-position: center;
    position: relative;
}

.tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Kolor i poziom przezroczystości filtra */
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tile:hover::before {
    opacity: 1;
}

.tile:hover {
    transform: scale(1.05);
}

.tile h2 {
    margin: 0;
}

/* Dodaj grafiki do kafelków */
.tile:nth-child(1) {
    background-image: url('image1.jpg'); /* Zmień nazwę pliku na nazwę Twojego obrazu */
}

.tile:nth-child(2) {
    background-image: url('image2.jpg'); /* Zmień nazwę pliku na nazwę Twojego obrazu */
}

.tile:nth-child(3) {
    background-image: url('image3.jpg'); /* Zmień nazwę pliku na nazwę Twojego obrazu */
}
