body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
}

.container {
    padding-top: 100px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.container-automatic {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    text-align: center;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.3);
    }

    20%,
    40% {
        transform: scale(1.1);
    }
}

.logo {
    width: 100px;
    height: 100px;
    margin: 0 15px 5px;
    border-radius: 30%;
    vertical-align: middle;
    position: relative;

}

.logo-inner {
    width: 100px;
    height: 100px;
    border-radius: 100%;
    display: inline-block;
    text-align: center;
    animation: heartbeat 1.0865s infinite;
}

#updated {
    text-align: center;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav a {
    text-decoration: none;
    margin: 0px 0px;
    padding: 2px 2px;
    font-size: 1em;
    border-radius: 30px;
    border: 2px solid transparent;
    background-color: transparent;
    color: #FF4500;
    /* Naranja */
    transition: all 0.3s ease;
    display: inline-block;
    /* Asegura que se comporten como botones */
}


b {
    color: orangered;
}

i {
    font-size: 30px;
    margin-top: -5px;
}

ul {
    list-style-type: circle;
    text-align: left;
    margin-left: 25px;
}

/* Asegúrate de que los botones no estén ocultos */
#toggle-language {
    display: inline-block;
    /* Muestra los botones como elementos en línea */
    padding: 10px 20px;
    /* Añade algo de espacio interior para hacer los botones más visibles */
    margin: 10px;
    /* Añade un margen alrededor de los botones */
    background-color: transparent;
    /* Color de fondo (puedes cambiarlo a tu gusto) */
    color: white;
    /* Color del texto */
    border: none;
    /* Sin borde */
    border-radius: 5px;
    /* Bordes redondeados */
    cursor: pointer;
    /* Cambia el cursor a un puntero cuando pases sobre el botón */
}

/* Puedes añadir más estilos para mejorar la apariencia de los botones */
#toggle-language:hover {
    background-color: #0056b3;
    /* Cambia el color de fondo al pasar el ratón */
}


.info-popup {
    display: none;
    position: absolute;
    top: 50px;
    /* Ajusta según necesites */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(245, 245, 245, .9);
    width: 90%;
    padding: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.info-popup .close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}

#infoIcon {
    cursor: pointer;
    font-size: 24px;
}

h1 {
    margin-top: 0;
    padding-top: 20px;
}

#es {
    background-color: transparent;
}

hr {
    height: 2px;
    background-color: lightseagreen;
    border-color: red;
}

#ball-container {
    display: flex;
    flex-direction: column;
    /* Cambia a columna para que los bloques estén uno debajo del otro */
    align-items: center;
    /* Centra horizontalmente cada bloque */
}

/* .ball-container {
    background-image: url(powerMeAIModel.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
} */

#auto-ball-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 20px;
}

#auto-ball-container .ball-set {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

/* Version automatica de las bolitas */
.auto-ball-set {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.auto-ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    margin: 0 5px;
    text-align: center;
    line-height: 50px;
    font-size: 1.5em;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auto-red {
    color: black;
    border-color: red;
}

/* Version manual de las bolitas */
.ball-set {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    margin: 0 10px;
    text-align: center;
    line-height: 50px;
    font-size: 1.5em;
    background-color: #fff
}

.ball::-webkit-outer-spin-button,
.ball::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.powerball {
    border-color: red;
}

button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 30px;
    border: 2px solid transparent;
    background-color: transparent;
    color: #FF4500;
    /* Naranja */
    transition: all 0.3s ease;
}

button:hover {
    background-color: #FF4500;
    /* Naranja */
    color: white;
    border: 2px solid #FF4500;
}

button:focus {
    outline: none;
}

.automatic {
    color: #FF6347;
    /* Tomate */
    border: 2px solid #FF6347;
}

.automatic:hover {
    background-color: #FF6347;
    /* Tomate */
    color: white;
}

.rangeAnalyzer {
    color: #3b8502;
    border: 2px solid #000;
}

.rangeAnalyzer:hover {
    background-color: #65d217;
    color: white;
}

.manual {
    color: #4682B4;
    /* Naranja */
    border: 2px solid #4682B4;
}

.manual:hover {
    background-color: #4682B4;
    /* Naranja */
    color: white;
}

.oddEven {
    color: #3b8502;
    border: 2px solid #000;
}

.oddEven:hover {
    background-color: #65d217;
    color: white;
}

.frequency {
    color: #FF8C00;
    /* Darkorange */
    border: 2px solid #FF8C00;
}

.frequency:hover {
    background-color: #FF8C00;
    /* Darkorange */
    color: white;
}

.ticketView {
    color: #3399DD;
    /* Gold */
    border: 2px solid #AAD700;
}

.ticketView:hover {
    background-color: #FFD700;
    /* Gold */
    color: white;
}

.primes {
    color: darkmagenta;
    border: 2px solid darkorange;
}

.prime:hover {
    background-color: darkorange;
    color: whitesmoke;
}

.inverseStrategy {
    color: #3399DD;
    /* Gold */
    border: 2px solid #AAD700;
}

.inverseStrategy:hover {
    background-color: #FFD700;
    /* Gold */
    color: white;
}

.the_game {
    color: #3399DD;
    /* Gold */
    border: 2px solid #AAD700;
}

.the_game:hover {
    background-color: #FFD700;
    /* Gold */
    color: white;
}

.numberMesh {
    color: #0056b3;
    border: 2px solid #4682B4;
}

.numberMesh:hover {
    background-color: transparent;
    color: red;
}

.primesMap {
    color: #3b8502;
    border: 2px solid #000;
}

.primesMap:hover {
    background-color: #65d217;
    color: white;
}

.patronesDeDistribucion {
    color: #3399DD;
    /* Gold */
    border: 2px solid #AAD700;
}

.patronesDeDistribucion:hover {
    background-color: #FFD700;
    /* Gold */
    color: white;
}

.earthMap {
    color: #FF4500;
    border: 2px solid #FF4500;
    background-color: transparent;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.earthMap:hover {
    background-color: #FF4500;
    color: white;
}

.pmad {
    color: #3399DD;
    border: 2px solid #AAD700;
}

.about {
    color: #000000;
    /* OrangeRed */
    border: 2px solid #000000;
}

.about:hover {
    background-color: #000000;
    /* OrangeRed */
    color: white;
}

.combinations-result {
    display: block;
    margin-top: 10px;
    text-align: center;
}

.red {
    color: red;
}

/* Configuracion de settings */

#settings {
    position: fixed;
    top: 10px;
    right: 10%;
    display: flex;
    gap: 10px;
}

#settings button {
    padding: 10px;
    cursor: pointer;
}

/* Estilo para el contenido principal */
main {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Estilo para el título y el texto de 'About' */
main h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

#aboutText {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    width: 90%;
    margin: 0 auto;
    text-align: justify;
}

#aboutText p {
    margin-bottom: 15px;

}

/* Animacion para las bolitas */

/* Estilos específicos para la página de bienvenida */
.main-index {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.ball-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 80%;
}

.main-index .ball {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    margin-top: 385px;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.main-index .white-ball {
    background-color: white;
    border: 2px solid #000;
}

.main-index .red-ball {
    background-color: red;
    color: white;
    border: 2px solid #000;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-150px);
        /* Brinco más grande */
    }
}

.main-index .white-ball {
    animation: bounce 1s infinite;
    /* Movimiento más rápido */
}

.main-index .red-ball {
    animation: bounce .9s infinite;
    color: white;
    /* Movimiento más rápido */
}

/* Ajustes de tiempo para las bolas blancas */
#white-ball-1 {
    animation-delay: 0s;
}

#white-ball-2 {
    animation-delay: 0.2s;
}

#white-ball-3 {
    animation-delay: 0.4s;
}

#white-ball-4 {
    animation-delay: 0.6s;
}

#white-ball-5 {
    animation-delay: 0.8s;
}

/* Para que se vean los numeros ganadores centralizados en statistics.html*/
/* Estilo para el div que contiene los números ganadores */
#winning-numbers {
    text-align: center;
    /* Esto centrará el texto dentro del div */
    margin-top: 20px;
}

#winning-numbers div {
    margin-bottom: 10px;
    /* Añadir un poco de espacio entre cada entrada */
}

/*Para el boton de winning numbers*/
/* Toggle Button Styling */
.toggle-button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-button.open {
    background-color: green;
    color: white;
}

.toggle-button.close {
    background-color: red;
    color: white;
}

/*El css para el ticket de powerball*/
#tickets-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.ticket-container-statistics {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    /* Ajusta este margen según sea necesario */
}

.ticket-row-statistics {
    display: flex;
    justify-content: center;
    margin: 5px 0;
    /* Ajusta este margen según sea necesario */
}

.ticket {
    margin: 20px;
    text-align: center;
}

.ticket-row {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.ticket-header {
    font-weight: bold;
    margin-bottom: 10px;
}

#ticket-container-1,
#ticket-container-2,
#ticket-container-3,
#ticket-container-4,
#ticket-container-5,
#powerball-container-1,
#powerball-container-2,
#powerball-container-3,
#powerball-container-4,
#powerball-container-5 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number {
    width: 30px;
    height: 30px;
    margin: 5px;
    display: inline-block;
    text-align: center;
    line-height: 30px;
    border: 1px solid #000;
    border-radius: 50%;
}

.powerball {
    color: red;
}

.incomplete-row {
    margin-right: 42px;
}

.incomplete-powerball-row {
    margin-right: 85px;
}

option {
    text-align: center;
}

@keyframes flash {

    0%,
    50%,
    100% {
        color: black;
    }

    15%,
    45% {
        color: lightskyblue;
    }

    25%,
    75% {
        color: orangered;
    }
}

.welcomeSlogan {
    animation: flash 1s infinite;
    margin-top: -15px;
    margin-left: 255px;
    color: #FF4500;
}

.hope {
    animation: flash 1s infinite;

}

/* Footer disclousure */

footer {
    text-align: center;
}


button.donate {
    background: rgba(0, 0, 0, 0.8);
    /* negro humo */
    color: #ffffff;
    font-weight: bold;
    padding: 12px 24px;
    margin-left: 10px;
    border: none;
    border-radius: 30px;
    font-size: 17px;
    cursor: pointer;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2), 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: heartbeat 1.8s infinite ease-in-out;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.05);
    }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.donate-option {
  background-color: #222;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.donate-option:hover {
  background-color: #444;
}

/* Media Queries */

/* General media query for all mobile devices */
@media only screen and (max-width: 600px) {
    nav {
        flex-direction: column;
    }

    nav a {
        margin: 10px 0;
    }

    #flechita {
        display: none;
    }

    #settings {
        right: 10px;
    }

    .container {
        padding-top: 20px;
        padding: 10px;
    }

    .ball-container {
        display: flex;
        justify-content: center;
        /* Centra el contenido horizontalmente */
        align-items: center;
        /* Centra el contenido verticalmente */
        width: 80%;
        height: 0;
        padding-top: 80%;
        /* Proporciona una relación de aspecto cuadrada (ajusta según tus necesidades) */
        margin: 50px auto;
        /* Centra el contenedor en la página */
    }

    .ball {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2em;
    }

    .main-index .ball {
        margin-top: 20px;
    }

    .main-index .white-ball,
    .main-index .red-ball {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2em;
    }

    ul {
        width: 75%;
    }
}

/* iPhone 6/7/8 */
@media only screen and (min-width: 375px) and (max-width: 667px) {
    nav {
        flex-direction: column;
    }

    nav a {
        margin: 10px 0;
    }

    #flechita {
        display: none;
    }

    #settings {
        right: 10px;
    }

    .container {
        padding-top: 20px;
        padding: 10px;
    }

    .ball {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2em;
    }

    .main-index .ball {
        margin-top: 20px;
    }

    .main-index .white-ball,
    .main-index .red-ball {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2em;
    }

    ul {
        width: 75%;
    }
}

/* iPhone X/XS */
@media only screen and (min-width: 375px) and (max-width: 812px) {
    nav {
        flex-direction: column;
    }

    nav a {
        margin: 10px 0;
    }

    #flechita {
        display: none;
    }

    #settings {
        right: 10px;
    }

    .container {
        padding-top: 20px;
        padding: 10px;
    }

    .ball {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2em;
    }

    .main-index .ball {
        margin-top: 20px;
    }

    .main-index .white-ball,
    .main-index .red-ball {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2em;
    }

    ul {
        width: 75%;
    }
}

/* Samsung Galaxy S8/S9/S10 */
@media only screen and (min-width: 360px) and (max-width: 740px) {
    nav {
        flex-direction: column;
    }

    nav a {
        margin: 10px 0;
    }

    #flechita {
        display: none;
    }

    #settings {
        right: 10px;
    }

    .container {
        padding-top: 20px;
        padding: 10px;
    }

    .ball {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2em;
    }

    .main-index .ball {
        margin-top: 20px;
    }

    .main-index .white-ball,
    .main-index .red-ball {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2em;
    }

    ul {
        width: 75%;
    }
}

/* Tablets */
@media only screen and (min-width: 600px) and (max-width: 900px) {
    nav {
        flex-direction: column;
    }

    nav a {
        margin: 10px 0;
    }

    #flechita {
        display: none;
    }

    #settings {
        right: 20px;
    }

    .container {
        padding-top: 20px;
        padding: 20px;
    }

    .ball-container {
        display: flex;
        justify-content: center;
        /* Centra el contenido horizontalmente */
        align-items: center;
        /* Centra el contenido verticalmente */
        width: 80%;
        height: 0;
        padding-top: 80%;
        /* Proporciona una relación de aspecto cuadrada (ajusta según tus necesidades) */
        margin: 50px auto;
        /* Centra el contenedor en la página */
    }

    .ball {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 1.4em;
    }

    .main-index .ball {
        margin-top: 20px;
    }

    .main-index .white-ball,
    .main-index .red-ball {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 1.4em;
    }

    ul {
        width: 75%;
    }
}

/* Landscape mode for all devices */
@media only screen and (max-width: 1024px) and (orientation: landscape) {
    nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    nav a {
        margin: 5px;
    }

    #flechita {
        display: none;
    }

    #settings {
        right: 10px;
        top: 10px;
    }

    .container {
        padding-top: 20px;
        padding: 20px;
    }

    .ball {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 1.4em;
    }

    .main-index .ball {
        margin-top: 20px;
    }

    .main-index .white-ball,
    .main-index .red-ball {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 1.4em;
    }

    ul {
        width: 75%;
    }
}








/* CSS de  col_range_analyzer*/

/* Asegúrate de que el archivo CSS esté vinculado en tu HTML */
table#resultsTable {
    width: 30%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

table#resultsTable th,
table#resultsTable td {
    border: 1px solid black;
    padding: 8px;
    text-align: center;
    /* Centraliza el texto */
}

table#resultsTable th {
    background-color: #f2f2f2;
}