body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flag {
    width: 30px;
    height: 20px;
    object-fit: contain;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    width: 95%;
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
}

h1 {
    color: #e74c3c;
    margin-bottom: 30px;
}

.controls {
    margin: 20px 0;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.bingo-ball-container {
    margin: 30px 0;
    min-height: 0px;
}

.bingo-ball {
    width: 20vmin;
    height: 20vmin;
    max-width: 100px;
    max-height: 100px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: min(8vw, 36px);
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.5s;
}

.called-numbers {
    margin-top: 30px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(2rem, 1fr));
    gap: 0.3rem;
    margin-top: 1rem;
    padding: 0.5rem;
}

.numbers-grid div {
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
    color: white;
    margin: 0.1rem;
    font-size: 0.9rem;
}

.numbers-grid div.b-number {
    background-color: #00bcd4;
}

.numbers-grid div.i-number {
    background-color: #f44336;
}

.numbers-grid div.n-number {
    background-color: #9e9e9e;
}

.numbers-grid div.g-number {
    background-color: #4caf50;
}

.numbers-grid div.o-number {
    background-color: #ffc107;
}

.bingo-letters {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
}

.current-number {
    font-size: 36px;
    font-weight: bold;
    color: #2196f3;
    margin: 20px 0;
}

.stats {
    margin-top: 20px;
    font-size: 18px;
}

.stats span {
    font-weight: bold;
    color: #e74c3c;
}

@media (min-width: 768px) {
    .container {
        width: 100%;
        padding: 2rem;
    }
    
    .bingo-ball {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    button {
        padding: 1rem 2rem;
        font-size: 1.2rem;
        margin: 0 1rem;
    }

    .numbers-grid {
        grid-template-columns: repeat(15, 1fr);
        gap: 0.5rem;
    }

    .numbers-grid div {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}