body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin-top: 0px;
    padding: 35px;
    background-color: #f0f8ff; /* Fondo suave */
    color: #333;
    overflow-y: hidden;
}

h1 {
    color: #0073e6;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    font-size: xxx-large;
    margin: 5px;
}

h2 {
    color: #0073e6;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    grid-column: span 10;
    text-align: center;
    font-size: xxx-large;
    margin: 5px;
}

#casino-header {
    width: 100%;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 5em;
    font-weight: bold;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#casino-header h1 {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
}

#game {
    display: flex;
    justify-content: space-around;
    height: 900px;
}

#main {
    width: 32%;
    border-left: 2px solid #0073e6;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

#bingo-board {
    position: relative;
    height: 321px;
    font-size: 280px;
    font-weight: bold;
    color: #0073e6;
    overflow: hidden;
}

.bingo-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

/* Entra des de la dreta */
.animate-in {
    animation: enterRight 0.6s ease forwards;
}

/* Surt cap a l'esquerra */
.animate-out {
    animation: exitLeft 0.6s ease forwards;
}

@keyframes enterRight {
    from { transform: translate(150%, -50%); opacity: 0; }
    to   { transform: translate(-50%, -50%); opacity: 1; }
}

@keyframes exitLeft {
    from { transform: translate(-50%, -50%); opacity: 1; }
    to   { transform: translate(-200%, -50%); opacity: 0; }
}


#numbers-history {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    font-size: 24px;
    width: 55%;
    border-left: 2px solid #0073e6;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.number-cell {
    font-size: xx-large;
    padding: 15px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-weight: bold;
    background-color: #f8f8f8;
    transition: all 0.3s ease;
}

/*.number-cell:hover {
    background-color: #e6f7ff;
    cursor: pointer;
}*/

.number-cell.called {
    background-color: #0073e6;
    color: white;
    font-weight: bold;
}

#btn-start, #btn-restart {
    padding: 15px 30px;
    width: 48%;
    font-size: 20px;
    cursor: pointer;
    margin-top: 10px;
    border: none;
    border-radius: 10px;
    background-color: #0073e6;
    color: white;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#btn-start:hover, #btn-restart:hover {
    background-color: #005bb5;
}

#prizes {
    height: 336px;
    border-radius: 10px;
    font-size: 35px;
    padding: 10px;
    text-align: left;
    font-weight: bold;
    background-color: #f8f8f8;
    line-height: 57px;
}

.prize-row {
    display: flex;
    justify-content: space-between;
}

.prize-row span:first-child {
    text-align: left;
}

.prize-row span:last-child {
    text-align: right;
    font-weight: bold;
}


#ball-container {
    display: flex;
    height: 80px;
    flex-direction: row-reverse;
    gap: 15px;
    overflow: hidden;
    padding-bottom: 42px;
    justify-content: center;
}

.ball {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, #007bff 0%, #0056b3 70%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    font-weight: bold;
    border: 2px solid #fff;
    box-shadow: inset -2px -2px 5px rgba(255, 255, 255, 0.5), 2px 2px 5px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.5s forwards;
}

#validation-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo oscuro semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#validation-content {
    background: white;
    padding: 50px 100px;
    border-radius: 20px;
    font-size: 50px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 0 30px #000;
}
.success {
    color: green;
}
.error {
    color: red;
}

#game-status-icon {
            position: fixed;
            bottom: 10px;
            right: 10px;
            font-size: 24px;
            color: #0073e6;
            opacity: 0.7;
}

/* Animación de desplazamiento hacia la izquierda */
@keyframes slideInLeft {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}