#carrera-caballos-container {
    text-align: center;
}

/* Estilo para el contenedor del progresivo, saldo, y total de apuestas */
.contenedor-datos {
    background: #0072ff;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

#caballos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.caballo {
    width: 30%;
    text-align: center;
}

.caballo img {
    width: 100px;
    height: auto;
}

/* Botones Futuristas */
.boton-apuesta, .boton-futurista {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    border: none;
    padding: 10px 20px;
    margin: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.boton-apuesta:hover, .boton-futurista:hover {
    box-shadow: 0px 5px 25px rgba(0, 255, 255, 0.6);
    transform: translateY(-5px);
}

.boton-futurista {
    width: 200px;
    font-size: 18px;
}

#resultado-carrera p {
    color: #FFF;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* Contenedor del GIF de la carrera */
.contenedor-gif {
    width: 80%;
    max-width: 500px;
    margin: 0 auto;
}

/* Ventana emergente de resultados bien alineada */
#overlay-resultado {
    display: flex;
    flex-direction: column; /* Alinear los elementos verticalmente */
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: white;
    text-align: center;
}

#overlay-resultado img {
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 100px;
}

/* Estilo de los botones de ajuste de apuesta (+ y -) */
.boton-ajuste {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    border: none;
    padding: 8px 12px;
    margin: 5px;
    color: black;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%; /* Forma circular */
    box-shadow: 0px 5px 15px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    width: 40px; /* Ancho del botón */
    height: 40px; /* Alto del botón */
    text-align: center;
    line-height: 30px;
}

.boton-ajuste:hover {
    box-shadow: 0px 5px 25px rgba(0, 255, 255, 0.6);
    transform: translateY(-5px);
}

/* Ajustes de alineación de la apuesta y los botones */
.apuesta {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cantidad-apuesta {
    font-size: 20px;
    font-weight: bold;
    margin: 0 10px;
    color: black;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* Diseño para dispositivos móviles */
@media (max-width: 768px) {
    .caballo {
        width: 48%;
        margin-bottom: 20px;
    }

    .boton-futurista {
        width: 100%;
    }

    /* Ajustar el contenedor del GIF para móviles */
    .contenedor-gif {
        width: 100%;
    }

    /* Ajustar tamaño de botones de apuesta para móviles */
    .boton-ajuste {
        width: 40px;
        height: 40px;
        font-size: 18px;
        line-height: 22px;
    }

    .cantidad-apuesta {
        font-size: 18px;
    }

    #overlay-resultado {
        font-size: 24px;
    }
}
