body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f8f9fa;
}

.app-title {
    font-size: 3.6em;
    margin-bottom: 40px;
    font-weight: bold;
    text-align: center;
    word-wrap: break-word;
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}

.tile {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: #fff;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s, font-size 0.2s;
    height: 200px;
    text-decoration: none;
}

.tile:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tile:hover h3 {
    font-size: 2.88em;
}

.green { background-color: #28a745; }  /* Zielony - Wodzisław */
.yellow { background-color: #ffc107; }  /* Żółty - Rybnik */
.red { background-color: #dc3545; }  /* Czerwony - Zabrze */
.blue { background-color: #007bff; }  /* Niebieski - Pszczyna */
.pastel-purple { background-color: #6f42c1; }  /* Pastelowy fioletowy - Żory */
.pastel-orange { background-color: #fd7e14; }  /* Pastelowy pomarańczowy - Wrocław */
.black { background-color: #20c997; }  /* Czarny - Dzierozoniow */

h3 {
    margin: 0;
    transition: font-size 0.2s;
    color: #fff;
    font-weight: bold;
    font-size: 2.7em;
}

a.tile {
    text-decoration: none;
    color: inherit;
}

a.tile:hover {
    color: inherit;
}

table {
    text-align: center;
}

th {
    text-align: center;
}

/* Media queries for responsiveness */
@media (max-width: 1200px) {
    .app-title {
        font-size: 3em;
    }
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .tile {
        height: 150px;
    }

    h3 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tile {
        height: 100px;
        padding: 10px;
    }

    h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 576px) {
    .app-title {
        font-size: 1em;  /* Zmniejszenie rozmiaru tytułu strony */
        margin-bottom: 5px;  /* Zmniejszenie marginesu poniżej tytułu */
    }

    .tile {
        height: 70px;  /* Dalsze zmniejszenie wysokości kafelków */
        padding: 5px;  /* Zmniejszenie paddingu */
    }

    h3 {
        font-size: 0.9em;  /* Dalsze zmniejszenie rozmiaru czcionki w kafelkach */
    }
}
