body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

#bingo-grid {
    display: grid;
    grid-template-columns: repeat(3, 150px);
    grid-gap: 10px;
    margin: 20px 0;
}

button {
    width: 150px;
    height: 150px;
    font-weight: bold;
    font-size: 15px;
    color: white;
    cursor: pointer;
    border: 0px;
    border-radius: 10px;
    background-color: gray;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #75348b;
}

button.clicked {
    background-color: #75348b;
    cursor: not-allowed;
}

button[style*="green"] {
    background-color: green !important; /* Zelená barva při bingu */
}

button.disabled {
    background-color: gray !important;  /* Tlačítka zůstanou šedá */
    cursor: not-allowed; /* Změní kurzor na zakázaný */
    pointer-events: none; /* Zamezí kliknutí */
}

/* Zrušení hover efektu pro deaktivovaná tlačítka */
button.disabled:hover {
    background-color: gray !important; /* Zůstane šedá */
}


@media screen and (max-width: 489px){
    #bingo-grid {
        display: grid;
        grid-template-columns: repeat(3, 113px);
        grid-gap: 10px;
        margin: 20px 0;
    }

    button {
        width: 113px;
        height: 113px;
        font-weight: bold;
        font-size: 12px;
        color: white;
        cursor: pointer;
        border: 0px;
        border-radius: 10px;
        background-color: gray;
        transition: background-color 0.3s;
    }
}

#bingo-image {
    width: 300px; /* Zmenšení obrázku */
    height: 300px;
    object-fit: contain; /* Zachování poměru stran */
    margin-top: 20px;
}

.hidden {
    display: none; /* Skryje element */
}

/* Efekt postupného zmizení (fade-out) */
.fade-out {
    opacity: 1;
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Efekt postupného zobrazení (fade-in) */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Styl pro tlačítko "Nová hra" */
.new-game-button {
    margin-top: 20px;
    width: 113px;
    height: 50px;
    font-size: 18px;
    color: white;
    background-color: gray;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.new-game-button:hover {
    background-color: #75348b;
}
