
.contenedor {
    width: 100%;
    height: 480px;
    margin: 0 auto;
    
    position: relative;

    background: url(https://girbaud.vteximg.com.br/arquivos/fondocanchafutbol-p3.jpg);
    transition: background-color 1s linear;
    overflow: hidden;
}

.mediodia {
    background-color: #ffdcf3;
}

.tarde {
    background-color: #ffadad;
}

.noche {
    background-color: #aca8c7;
}

.dino {
    width: 84px;
    height: 84px;

    position: absolute;
    bottom: 22px;
    left: 42px;
    z-index: 2;

    background: url(https://girbaud.vteximg.com.br/arquivos/personajes-p2.png) repeat-x 0px 0px;
    background-size: 336px 84px;
    background-position-x: 0px;

}

.dino-corriendo {
    animation: animarDino 1s steps(2) infinite;
}
.dino-estrellado {
    background-position-x: -252px;
}

.suelo {
    width: 200%;
    height: 42px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: url(https://girbaud.vteximg.com.br/arquivos/pista_p2.jpg) repeat-x 0px 0px;
    background-size: 50% 42px;

}

.cactus{
         width: 74px;
    height: 72px;

    position: absolute;
    bottom: 16px;
    left: 600px;
    z-index: 1;

    background: url( https://girbaud.vteximg.com.br/arquivos/obstaculo-1-p2.png) no-repeat;
}
.cactus2{
width: 61px;
    height: 79px;
    background: url( https://girbaud.vteximg.com.br/arquivos/obstaculo2-p2.png)  no-repeat;

}

.nube{
    width: 92px;
    height: 26px;

    position: absolute;
    z-index: 0;
background: url( https://chopper.vteximg.com.br/arquivos/Chopper-Personajes-Nubes-3.png) no-repeat;
    background-size: 92px 26px;
    margin-bottom: 149px;
}

.score{
    width: 100px;
    height: 30px;

    position: absolute;
    top: 5px;
    right: 15px;
    z-index: 10;

    color: #ff0000;
    font-family: Verdana;
    font-size: 30px;
    font-weight: bold;
    text-align: right;
}

.game-over{
    display: none;

    position: relative;
    width: 100%;

    margin: 6px;
    text-align: center;
    color: #333;
    font-size: 19px;
    font-family: Verdana;
    font-weight: 700;
}

.cupon {
    font-weight: bold;
    color: #3b82f6;
    padding: 2px;
}

.cupon-link{
    text-decoration: 1px underline;
    cursor: pointer;
}

.cupon-link a{
    color: #333;
}


.titulo-juego{
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    font-family: Verdana;
}

.explicacion-juego{
    font-family: Verdana;
    font-size: 14px;

}



/* CODIGO NUEVO*/

.Texto-titulo-superior {
    background-color: #D3D3D3; 
    padding: 20px 0;
    text-align: center;
}

.Texto-titulo-superior h2 {
    font-size: 24px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    margin-bottom: 5px;
}

.Texto-titulo-superior p {
    font-size: 16px;
    font-family: Arial, sans-serif;
    margin-bottom: 10px;
}

.Texto-titulo-superior .detalles-texto-superior {
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.5;
}


.instructions-container-inferior {
    background-color: #e0e0e0; 
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px; 
}

/* Título de las instrucciones */
.instructions-title-inferior {
    font-family: Verdana, sans-serif;
    font-size: 16px;
    font-weight: 700; 
    color: #000;
    margin: 0 0 10px 0; 
}

/* Lista de instrucciones */
.instructions-list-inferior {
    font-family: Verdana, sans-serif;
    font-size: 14px;
    color: #000; 
    margin: 0 0 10px 0; 
    text-align: left;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.instructions-list-inferior li {
    margin-bottom: 8px;
}


.instructions-note-inferior {
    font-family: Verdana, sans-serif;
    font-size: 14px;
    color: #000; 
    margin: 0;
}


#mensaje-inicial {
    position: absolute;
    top: 27% !important;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff0000;
    padding: 10px 20px !important;
    border-radius: 8px;
    z-index: 1000;
    display: block;
    width: 18% !important;
}

/* Texto dentro del mensaje */
#mensaje-inicial p {
    margin: 0;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    color: #fff; 
    text-align: center;
}




#mensaje-inicial {
    top: 17%;
    width: 43%;
    padding: 8px 16px;
}



@media (max-width:740px){
    .game-over {
        top: 2px !important;
        font-size: 14px;
        width: 80%;
        margin: 10px auto;
    }


    
#mensaje-inicial {
   
    top: 17% !important;
    width: 66% !important;
}
    
}


/* FIN CODIGO NUEVO*/





@keyframes animarDino{
    from{
        background-position-x: -84px;
    }
    to{
        background-position-x: -252px;
    }
}


@keyframes fireworks {
    0% {
      opacity: 0;
      transform: translateY(0);
    }
    100% {
      opacity: 1;
      transform: translateY(-100px);
    }
  }


#btn-iniciar {
    position: relative;
    margin: 0 auto;
    padding: 0.8em 1em;
    outline: none;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    background-color: #06b900;
    border-radius: 10px;
    color: white;
    font-weight: 300;
    font-size: 18px;
    z-index: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
    top: 45%;
    position: relative;
    z-index: 999;
}

#btn-reiniciar{
    position: relative;
    margin: 0 auto;
    padding: 0.8em 1em;
    outline: none;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    background-color: #fa0101;
    border-radius: 10px;
    color: white;
    font-weight: 300;
    font-size: 15px;
    z-index: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
    top: 45%;
    position: relative;
    z-index: 999;
    width: 9%;
    text-align: center;
    margin-top: 10%;


}


#btn-reiniciar:hover{
    background:#000 ;
    color: #fff;
}


#btn-iniciar:hover{
    background:#000 ;
    color: #fff;
}



.btn-reiniciar{
    position: absolute;
    width: 100%;
    margin: 6px;
    text-align: left;
    color: #333;
    font-size: 15px;
    font-family: Verdana;
    font-weight: 700;
    border: none;
    background: white;
    text-decoration: 2px underline;
    cursor: pointer;
}



@media screen and (max-width: 768px) {
    #btn-iniciar {
        position: relative;
        margin: 0;
        padding: 0.8em 1em;
        outline: none;
        text-decoration: none;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        border: none;
        background-color: #06b900;
        border-radius: 10px;
        color: #000;
        font-weight: 300;
        font-size: 18px;
        z-index: 0;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
        top: 39%;
        left: 39%;
        position: relative;
        z-index: 999;
    }

    #btn-reiniciar{
        font-size: 13px;
        width: 39%;
        top: 39%;
        margin-top: 27%;
    }



}

#btn-iniciar:hover {
    animation: sh0 0.5s ease-in-out both;
}








@media(max-width: 740px){
    .contenedor{
        width: 100%;
    height: 400px;
    }
}


/*modal ganar*/

.contenedor-ganaste {
    display: none;               /* Oculto por defecto */
    position: fixed;             /* Fijo para que cubra la ventana */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;               /* Para que quede por encima de todo */
    background-color: rgba(0,0,0,0.5); /* Oscurece el fondo */
}

/* =========================
   Caja blanca centrada
   ========================= */
.ganaste-juego {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    background-color: #fff;
    color: #000;
    border-radius: 10px;
    padding: 30px 40px; 
    width: 400px;    
    max-width: 90%;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif; 
 }
/* =========================
   Título principal
   ========================= */
.ganaste-juego h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* =========================
   Subtítulos / párrafos
   ========================= */
.ganaste-juego p {
    font-size: 16px;
    line-height: 1.4;
    margin: 8px 0;
}

/* Estilo especial para el texto del código */
.ganaste-juego .codigo {
    color: red;
    font-weight: bold;
    font-size: 22px;
    margin: 8px 0;
}

/* Nota importante en texto más pequeño */
.ganaste-juego .nota-importante {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

/* =========================
   Botón verde “Comprar”
   ========================= */
.ganaste-juego .btn-comprar {
    display: inline-block;
    background-color: #06b900;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 8px;
    margin-bottom: 16px;
    transition: background-color 0.3s;
}

.ganaste-juego .btn-comprar:hover {
    background-color: #03a300; /* Efecto hover */
}

/* =========================
   “Volver a jugar” estilo link
   ========================= */
.ganaste-juego .btn-volver {
    display: inline-block;
    background: none;
    border: none;
    color: #000;
    font-size: 16px;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 4px;
 }

 @media (max-width: 600px) {
     .ganaste-juego {
         width: 90%;
         max-width: none;
         padding: 20px;
         border-radius: 8px;
         box-sizing: border-box;
         margin: 2px;
         top: 50%;
         left: 50%;
         transform: translate(-50%, -50%);
     }
 }