#main{
    background-color: #DFF1F8;
    padding-top: 40px;
    background-position: bottom;
}
#logocab{
    width: 230px;
    display: block;
    margin-left: auto;
    margin-bottom: 10px;
}
.titlewhite{
    font-family: "Irish Grover", serif;
    font-weight: 400;
    font-size: 3em;
    color: #0266A7;
    margin-bottom: 30px;
    text-shadow: -3px 3px 3px #FFFFFF;
    display: inline-block;
}
.textwhite{
    color: white;
    font-weight: 500;
    text-align: justify;
    font-size: 1.5em;
    line-height: 1.2;
    text-shadow: 1px 2px 1px #00000087;
}
.divtext{
    padding: 0px 3%;
}
.imgcicloicon{
    width: 140px;
    vertical-align: bottom;
    margin-left: 11px;
}
.imgciclo{
    display: block;
    width: 650px;
    margin-left: auto;
    border-radius: 65px;
    margin-top: 70px;
    max-width: 100%;
}
.linkret{
    text-decoration: none;
}

.linkret img{
    width: 70px;
    margin-right: 30px;
    vertical-align: baseline;
}
.parra{
    font-family: "Irish Grover", serif;
    font-weight: 400;
    font-size: 1.2em;
    color: #000;
    line-height: 1.2;
    margin-bottom: 8px;
}
.listaprr{
    margin: 0;
    list-style: none;
    padding: 0;
    margin-bottom: 22px;
}


.nsh{
    position: absolute;
}


.ganaste {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    color: #ffcc00; /* Un amarillo menos intenso */
    text-shadow: 0 0 5px #ffcc00, 0 0 10px #ff9900, 0 0 15px #cc3300;
    animation: parpadeo 1.2s infinite alternate, movimiento 2s ease-in-out infinite alternate;
}
.mensaje {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}


@keyframes parpadeo {
    0% { opacity: 1; }
    100% { opacity: 0.8; }
}

@keyframes movimiento {
    0% { transform: translateY(0); }
    100% { transform: translateY(5px); }
}


.modal-dialog-centered {
    min-height: calc(100% - var(--bs-modal-margin)* 2 - 150px);
}

.textbien{
    font-family: "Balsamiq Sans", serif;
    font-weight: 400;
    color: #0266A7;
    text-shadow: -3px 3px 3px #FFFFFF;
}
.btndwn{
    border: 5px solid #0166A8;
    color: #0166A8;
    background: white;
    border-radius: 5px;
    padding: 10px 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.btndwn img{
    transform: rotate(90deg);
    width: 30px;
}
.instruc{
    color: #0074ff;
    font-size: 2em;
    margin-bottom: 29px;
    font-family: "Balsamiq Sans", serif;
}

/* #game{
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

#game div{
    width: 12.5%;
    height: 33.3%;
    padding: 10px;
}
#game div img{
    height: 100%;
} */


#game {
    display: grid;
    grid-template-columns: repeat(8, 1fr); 
    grid-template-rows: repeat(3, 1fr); 
    gap: 10px;
    width: auto;
    margin: auto;
}

#game div {
    position: relative;
    width: auto;
    height: 100%;
    perspective: 1000px; /* Para el efecto de volteo */
    background: #dff1f8;
    border: 0;
}

.card {
    width: auto;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    cursor: pointer;
}

.card.flipped {
    transform: rotateY(180deg);
}

/* .card img {
    width: auto;
    height: 100%; 
    
    position: absolute;
    backface-visibility: hidden;
    object-fit: cover;
    left: 0;
    right: 0;
    margin: auto;
} */

.card img {
    width: auto;
    height: 100%;
    max-width: 100%;
    position: absolute;
    backface-visibility: hidden;
    object-fit: contain;
    left: 0;
    right: 0;
    margin: auto;
}

.card .front {
    transform: rotateY(180deg);
}













.shmovl{
    display: none;
}

/* @media only screen and  (min-height: 1100px) {

    .card img {
        width: 100%;
        height: auto;
    }
} */

@media only screen and (max-width: 1950px) {
    .divtext {
        padding: 0px 3%;
        padding-right: 0;
    }
    #llave {
        top: 11%;        
    }
    .listword{
        width: 420px;
    }
 
}

@media only screen and (max-width: 1690px) {
    #logocab {
        width: 200px;
        margin-top: -10px;
    }
    .titlewhite {
        font-size: 3.5em;
    }
    .imgcicloicon {
        width: 100px;
        margin-left: 8px;
    }
    .imgdown{
        align-items: end;
        display: flex;
    }
    .imgciclo {        
        width: 500px;
        margin-top: 0;
    }
    .listword {
        margin-bottom: 15px;
    }
   
}
@media only screen and (max-width: 1601px) {
    .titlewhite {
        font-size: 3.3em;
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 1450px) {
    .titlewhite {      
        font-size: 3em;
    }
    .textwhite {
        font-size: 1.2em;
    }
    .titlewhite {
        font-size: 2.8em;
    }
    .imgcicloicon {
        width: 85px;
    }
    .imgciclo {
        width: 450px;
    }
    .parra {
        font-size: 1.1em;
    }
    #llave {
        width: 160px;
    }
    #lupa {
        width: 100px;
        margin-top: -60px;
    }
    #maquina {
        width: 540px;
        right: 18px;
    }
}
@media only screen and (max-width: 1380px) {
    .titlewhite {
        font-size: 2.7em;
    }
    .imgciclo {
        width: 420px;
    }
    #logocab {
        margin-bottom: 0;
    }
    .imgcicloicon {
        width: 85px;
    }
    .imgciclo {
        width: 380px;
    }
    .textwhite {
        font-size: 1.2em;
    }
    .linkret img {
        width: 52px;
        margin-right: 20px;
    }
  
    .listaprr {
        margin-bottom: 10px;
    }
    .parra {
        font-size: 0.9em;
        margin-bottom: 6px;
    }
    .btndwn {
        font-size: 0.9em;
        padding: 6px 6px;
    }
    .btndwn img {
        width: 25px;
    }
    #llave {
        width: 106px;
    }
    #lupa {
        width: 62px;
        margin-top: -113px;
    }
    #logocab {
        width: 175px;
    }
    .instruc {
        font-size: 1.4em;
        margin-bottom: 3px;
    }
    .instruc br{
       display: none;
    }
    .listword li {
        padding: 0px 5px;
        font-size: 0.9em;
    }
    .listword {
        margin-bottom: 13px;
        column-gap: 23px;
        row-gap: 7px;
    }
    #maquina {
        width: 400px;
        right: 27px;
    }
    td span {
        padding: 0;
        display: block;
        font-size: 1em;
        line-height: 0;
    }
    #lupa {
        width: 71px;
        margin-top: -70px;
    }
    .instruc {
        font-size: 1.5em;
        margin-bottom: 12px;
    }
    .listword li {
        font-size: 1em;
    }
    .listword  {
        margin-bottom: 24px;
    }
    #maquina {
        width: 425px;
        right: 27px;
    }
    .btndwn {
        font-size: 0.9em;
        padding: 3px 5px;
      
    }
}

@media (min-width: 1340px) and (max-width: 1355px) and 
       (min-height: 590px) and (max-height: 610px) {
        .imgcicloicon {
            width: 78px;
        }
        .textwhite {
            font-size: 1.1em;
        }
        #logocab {
            width: 160px;
        }
}
@media only screen and (max-width: 1285px) {
    .titlewhite {
        font-size: 2.3em;
        margin-bottom: 20px;
    }
    .imgciclo {
        width: 420px;
    }
    #logocab {
        margin-bottom: 0;
    }
    .imgcicloicon {
        width: 77px;
    }
    .imgciclo {
        width: 380px;
    }
    .textwhite {
        font-size: 1em;
    }
    .divtext{
        margin-top: -20px;
    }
    .ganaste {
        font-size: 2rem;
    }
    .textbien {
        line-height: 1.2;
    }
    #lupa {
        width: 69px;
        margin-top: -45px;
    }
    .listword {
        width: 400px;
    }
}
@media only screen and (max-width: 1025px) {
    #logocab {
        width: 170px;
        margin-top: -5px;
    }
    .imgcicloicon {
        width: 70px;
    }
   
    .textwhite {
        font-size: 1em;
    }
    .titlewhite {
        font-size: 2em;
        margin-bottom: 10px;
    }
    #main {
        padding-top: 35px;
    }
    .parra {
        font-size: 0.88em;
    }
    #llave {
        top: 33%;
    }
    #lupa {
        width: 65px;
        margin-top: -15px;
    }
    #llave {
        top: 3%;
        width: 80px;
    }
}

@media only screen and (max-width: 961px) {
    #logocab {
        margin-bottom: 0;
    }
    .divtext {
        padding: 0px 2%;
        padding-right: 0;
    }
    .imgcicloicon {
        width: 48px;
        margin-left: 5px;
    }
    .imgciclo {
        width: 290px;
        border-radius: 43px;
    }
    .linkret img {
        width: 33px;
        margin-right: 7px;
    }
    #maquina {
        width: 360px;
        right: 8px;
    }
}

@media only screen and (max-width: 850px) {
    #logocab {
        width: 130px;
    }
    .titlewhite {
        font-size: 1.45em;
        margin-bottom: 10px;
    }
    .textwhite {
        font-size: 0.8em;
    }   
    .active input {
        font-size: 15px;
    }
    .divtext {
        padding: 0px 0%;
        padding-right: 0;
    }
    #logocab {
        width: 126px;
        margin-top: 0;
    }
   
    .divtext {
        margin-top: 0px;
    }
    .instruc {
        font-size: 1.3em;
    }
    #lupa {
        width: 52px;
        margin-top: 11px;
    }
    #maquina {
        display: none;
    }
    .listword {
        width: auto;
        font-size: 0.8em;
        margin-bottom: 6px;
        column-gap: 4px;
        row-gap: 3px;
    }
}

@media only screen and (max-width: 770px) {

     /* logo fijo movil */
     .scrollmovil{
        height: calc(100dvh - 150px);
        overflow-y: auto;
        overflow-x: hidden;
        position: relative;
    }
    .contentlogomovil{
        height: 50px;
        position: relative;
    }
    #logocab {
        width: 145px;
        margin-top: 0;
        margin-bottom: 0;
        position: absolute;
        right: 0;
    }
    /* fin logo fijo movil */

    #logocab {
        width: 145px;
        margin-top: 0;
        margin-bottom: 42px;
    }
    .titlewhite {
        font-size: 1.8em;
        margin-bottom: 25px;
        text-align: center;
    }
   
    .titlewhite {
        margin-top: 40px;
    }
    
    .divtext {
        padding: 0px;
        padding-right: 0;
    }
    .titlemovil{
        display: block;
    }
    .titledesktop{
        display: none;
    }
    .titlemovil{
        display: flex;
        align-items: center;
    }
    .titlewhite {
        text-align: left;
    }
    .imgcicloicon {
        width: 60px;
        margin-left: auto;
        display: block;
    }
    .textwhite {
        font-size: 0.9em;
    } 
    .imgciclo {
        width: 100%;
        border-radius: 43px;
        margin: auto;
        margin-top: 20px;
    }
    .imgciclo {
        margin-bottom: 15px;
    }
    #main {
        padding-top: 13px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .order2 {
        order: 2;
        text-align: center;
    }
    .contentlogomovil {
        height: auto;
    }
    .divtext {
        margin-top: 0;
    }
    .titlewhite {
        text-align: center;
        margin-top: 52px;
        margin-bottom: 11px;
    }
    .getwt{
        order: 2;
    }
    #llave {
        top: 8%;
        width: 75px;
    }
    #lupa {
        display: none;
    }
    .instruc {
        font-size: 1.5em;
        text-align: center;
    }
    .listword {
        width: auto;
        font-size: 1em;
        margin-bottom: 9px;
        column-gap: 4px;
        row-gap: 3px;
    }
    .nsh{
        display: none;
    }
    #sopa {
        max-width: 100%;
        max-height: 100%;
        background-repeat: no-repeat;
        background-size: contain;
        margin: auto;
    }
    .getwt {
        padding: 0;
    }
    .shmovl {
        display: inline-block !important;
        margin: auto;
        margin-left: 16px;
        position: relative;
    }
    .btnmov{
        display: inline-block !important;
        margin: auto;
        margin-top: 30px;
        margin-bottom: 16px;
        margin-left: 17px;
    }
    #lupa2{
        width: 50px;
        display: inline-block !important;
        margin-left: 15px;
        animation: buscar 1.5s infinite ease-in-out;
    }
    #maquina2{
        width: 65%;
        margin-left: auto;
        bottom: 0;
        margin-top: 23px;
        position: relative;
        animation: vibracion 0.1s infinite linear;
    }
    td span {
        font-size: 0.9em;
    }
    #sopa {
        max-width: 93%;
        max-height: 93%;
    }

    table td {
        padding: 0;
        width: auto;
        height: auto;
    
    }
    td span {
        font-size: 0.9em;
        width: 100%;
        height: 100%;
        display: block;
        line-height: 1;
    }
  
    #game {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(6, 1fr);
        gap: 10px;
    }
    #game div {
        width: 100%;
        height: 100%;
    }
    .shmovl {
        margin-top: 11px !important;
    }
}
@media only screen and (max-width: 380px) {
  
    .imgcicloicon {
        width: 65px;
    }
    #logocab {
        margin-bottom: 30px;
    }
    .titlewhite {
        font-size: 1.5em;
    }
}

@media only screen and (max-width: 320px) {
  
    .titlewhite {
        font-size: 1.6em;
    }
    td span {
        font-size: 0.8em;
    }
}
