/* Remplace 'Poppins' par 'Roboto Condensed' */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');

body {
    font-family: 'Roboto Condensed', sans-serif;
    text-align: center;
    background-color: #f7f7f7;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

h1 {
    color: #cc0000;
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 1em;
}

.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 90vw;
    max-width: 600px;
    margin: auto;
}

.bingo-cell {
    border: 1px solid #D9534F;
    background-color: #fff9e6;
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    font-size: 0.6em;
    line-height: 1.2em;
    color: #333;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
}

.bingo-cell.selected {
    background-color: #A7E3C1;
    color: #333;
}

.bingo-cell .icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 1em;
    color: #cc0000;
}

@media (min-width: 768px) {
    .bingo-grid {
        width: 80vw;
    }
    .bingo-cell {
        font-size: 0.9em;
        aspect-ratio: 2 / 3;

    }
}

.bingo-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #D9534F;
    padding: 20px;
    font-size: 2em;
    font-weight: 600;
    color: #D9534F;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
    animation: fireworks 1s ease infinite alternate;
    z-index: 1000;
}

/* Animation feu d'artifice */
@keyframes fireworks {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.1); }
}


.bingo-code-section {
    margin-top: 20px;
    text-align: center;
    font-size: 1em;
}

#generate-new-code-link {
    color: #cc0000;
    text-decoration: underline;
    cursor: pointer;
}

.code-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #D9534F;
    padding: 20px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-content {
    text-align: center;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
}
