header {
    text-align: center; /* Centers the header image */
    margin-bottom: 20px; /* Adds some space between the header and the grid */
}

#bingo-header {
    max-width: 100%; /* Makes the image responsive */
    height: auto; /* Maintains the aspect ratio */
}

#grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
    padding: 10px;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
}

.grid-item {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    overflow: hidden;
    word-wrap: break-word;
    aspect-ratio: 1 / 1;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    #grid-container {
        grid-gap: 5px;
        padding: 5px;
    }
    .grid-item {
        padding: 5px;
    }
}

/* Additional media query for very small screens */
@media (max-width: 400px) {
    .grid-item {
        font-size: 0.8em;
    }
}

/* Style for a clicked grid item */
.clicked {
    background-color: #00ff00; /* Green background for clicked items */
}

/* ... (rest of your CSS) */

#randomize-button {
    display: block;
    width: 200px;
    padding: 10px;
    margin: 20px auto;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

#randomize-button:hover {
    background-color: #e9e9e9;
}
