@charset "utf-8";

/* CSS Document */
@font-face {
    font-family: 'electronic';
    /*src: url('../fonts/DS-DIGI.TTF');*/
    src: url('../../buscaminas/fonts/SFDigitalReadout-Medium.ttf');
    font-style: normal;
    font-weight: normal;
}

html {
    font-size: 2vmin;
    overflow: hidden;
}

body {
    background-image: url(../img/tapete_fondo.png);
}

.div_cabecera {
    background-color: #306b25;
    height: fit-content;
    border-width: 0.1rem;
    border-color: #4d514e;
    BORDER-STYLE: SOLID;
    display: grid;
    grid-template-columns: 25% 50% 25%;
    box-shadow: 0.2rem 0.2rem 0.2rem 0.2rem black;
    border-radius: 3rem;
    margin: 0 2vmin 0 2vmin;
}

.div_titulo_cabecera {
    cursor: pointer;
    text-align: center;
}

.columna_cabecera {
    display: flex;
    align-items: center;
}

#cab_2 {
    justify-content: center;
    margin: auto;
    color: rgb(255, 255, 255);
    font-size: 2rem;
    text-shadow: 0.2rem 0.1rem gray;
    font-weight: bold;

}

#cab_3 {
    justify-content: end;
}

.msg_fin .btn {
    margin-left: 0.5rem;
}

.div_tiempo,
.div_pasos {
    display: none;
    font-family: 'electronic';
    font-size: 1.8rem;
    font-style: italic;
    color: rgb(255, 255, 255);
    text-shadow: 0.1rem 0.1rem gray;
    padding: 0 1rem 0 0;
}


.div_marcador {
    display: inline-block;
    background: black;
    text-align: center;
    font-size: 3rem;
    font-style: italic;
    width: 6rem;
    border: solid white 0.3rem;
}

.div_marcador#marcador_tiempo {
    color: red;
}

.div_marcador#marcador_pasos {
    color: #07fd07;
}

.tabla_ranking {
    margin: auto;
}

.tabla_ranking tr td:first-child {
    text-align: right;
}

.tabla_ranking tr:first-child {
    color: #1c6f09;
    text-decoration: underline;
    text-align: center;
}

.tabla_ranking tr:first-child td {
    text-align: center;
}

.tabla_ranking th,
.tabla_ranking td {
    padding: 0.3rem;
}




.div_config {
    margin-left: 0.5rem;
}

#img_config,
#img_undo {
    height: 5rem;
    margin-top: auto;
    margin-bottom: auto;
}

.img_btn {
    cursor: pointer;
    height: 5rem;
    margin-top: auto;
    margin-bottom: auto;
    transition: transform 0.3s ease;
    margin-right: 0.5rem;
}

.img_btn_desactivado {
    cursor: default;
    height: 5rem;
    margin-top: auto;
    margin-bottom: auto;
}

.img_btn:hover,
.img_btn_pulsado {
    transform: translateY(0.1rem);

}

.div_contenedor {
    display: block;
    visibility: hidden;
    height: 100%;
    width: 100%;
    margin-top: 1rem;

}

.marcador_mazo,
.carta,
.enves_carta,
.palo_vacio {
    height: 0rem;
    width: 0rem;
}

.palo_vacio {
    border: dotted 0.1rem white;
}

.marcador_mazo {
    display: block;
    box-sizing: border-box;
    border: solid 0.1rem rgb(249, 241, 2);
    margin: 0.2rem;
    border-radius: 1rem;

}

#id_mazo_jugar,
#id_mazo_repartir {
    border: solid 0.1rem rgb(255, 0, 0);
}

.palo_vacio {
    border: none;
    margin: 0.2rem;
}

.finalizar_auto {
    height: 100%;
    width: 100%;
    margin: 0.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: red;
    font-weight: bold;
    font-size: 2rem;
    text-shadow: 0.1rem 0.11rem #ffff00cf;
    cursor:pointer;
    transition:all 0.5s;
    
}
.finalizar_auto:hover {
    text-shadow: 0rem 0rem 0.1rem #0e0e0e;
    transform: translate(0.1rem, 0.1rem);
}

.div_palos_s {
    background: none;
    display: flex;
    width: fit-content;
    margin: 0 auto 0 auto;
}

#div_hileras {
    display: flex;
    margin: 0 auto 0 auto;
}

.carta {
    position: absolute;
    perspective: 15rem;
}

.carta_seleccionada {
    box-shadow: 0 0 2rem 0.7rem #ffeb00;
    border-radius: 1rem;
}

.carta_destino {
    box-shadow: 0 0 2rem 0.7rem #03f31b;
    border-radius: 1rem;
}

.drag:hover {
    filter: brightness(0.98);
}

.derecho_enves {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.derecho_carta {
    transform: rotateY(180deg);
    background-size: cover;
}

.derecho_carta,
.enves_carta {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    border-radius: 1rem;

}

.sombra {
    border: solid 0.1rem black;
    border-radius: 1rem;
    box-shadow: #0a0a0a45 0.2rem 0.2rem 0 0.1rem;
}

.enves_carta {
    background-image: url("../img/enves_carta.png");
    background-size: cover;
}

.carta,
.carta * {
    touch-action: none;
    user-select: none;
    -ms-touch-action: none;
    -ms-user-select: none;
}

.carta.flip .derecho_enves {
    transform: rotateY(180deg);
}

.carta_fin {
    z-index: 0;
}

.rotarYmover {
    animation: girar 5s 1 cubic-bezier(.27, 0, .97, .13) forwards;
}

.desplazar_abajo0 {
    animation: desplazar_abajo0 5s 1 cubic-bezier(0.39, 0.01, 0.98, 0.8) forwards;
}

.desplazar_abajo1 {
    animation: desplazar_abajo1 5s 1 cubic-bezier(0.39, 0.01, 0.98, 0.8) forwards;
}

.desplazar_abajo2 {
    animation: desplazar_abajo2 5s 1 cubic-bezier(0.39, 0.01, 0.98, 0.8) forwards;
}

.desplazar_abajo3 {
    animation: desplazar_abajo3 5s 1 cubic-bezier(0.39, 0.01, 0.98, 0.8) forwards;
}

.desplazar_abajo4 {
    animation: desplazar_abajo4 5s 1 cubic-bezier(0.39, 0.01, 0.98, 0.8) forwards;
}

.desplazar_abajo5 {
    animation: desplazar_abajo5 5s 1 cubic-bezier(0.39, 0.01, 0.98, 0.8) forwards;
}

@keyframes girar {
    0% {
        transform: rotateX(3600deg) rotateY(180deg);
    }

    30% {
        transform: rotateX(3600deg)rotateY(180deg);
    }

    to {
        transform: rotateX(0deg) rotateY(180deg);
    }

}

@keyframes desplazar_abajo0 {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(0, 150vh) rotate(45deg);
    }

}

@keyframes desplazar_abajo1 {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(0, 150vh) rotate(-45deg);
    }

}

@keyframes desplazar_abajo2 {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(0, 150vh) rotate(70deg);
    }

}

@keyframes desplazar_abajo3 {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(0, 150vh) rotate(-70deg);
    }

}

@keyframes desplazar_abajo4 {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(0, 150vh) rotate(20deg);
    }

}

@keyframes desplazar_abajo5 {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(0, 150vh) rotate(-20deg);
    }

}
.menu_inicio {
    font-size: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    height: max-content;
    padding-top: 1rem;
    text-shadow: black 0.1rem 0.1rem 0;
    font-family: sans-serif;
}

.div_opcion_menu {
    color: white;

}

#id_opciones {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.div_opcion_menu select {
    margin-top: 0.2rem;
    text-decoration: none;
}

.btn {
    font-size: 2rem;
    background-color: #306B25;
    border-radius: 1rem;
    cursor: pointer;
    border: solid 0.1rem white;
    color: yellow;
    box-shadow: 0.2rem 0.2rem 0.2rem 0.1rem black;
    width: 10rem;
}

#boton_cancelar {
    display: none;
}

.btn:hover {
    background-color: #449835;
    transform: translate(-0.1rem, -0.1rem);
    box-shadow: none;
}

.div_burbuja {
    position: absolute;
    color: rgb(255, 255, 255);
    font-size: 2rem;
    text-shadow: 0.2rem 0.2rem 0.1rem rgb(250, 4, 4);
    transition: top 5s ease-out;
    z-index: 100;
}

#titulo_opciones {
    text-decoration: underline;
}

.entrada {
    border: none;
    font-size: 2rem;
    font-family: sans-serif, Arial, Helvetica;
    height: auto;
    outline: 0;
    background-color: #306b25;
    color: #fffeff;
    border-radius: 1.5rem;
    box-shadow: 0.2rem 0.2rem 0.2rem 0.1rem black;
    margin: 0 0 1rem 0;
    text-decoration: none;
}

.entrada:disabled {
    background-color: #535353;
    box-shadow: none;
}

.label_entrada {
    display: inline-block;
    text-align: right;
    margin-right: 0.2rem;
}

.div_error_login,
label.error {
    font-weight: bold;
    color: red;
    font-size: 1.5rem;
    display: block;
    width: auto;
    text-shadow: 0.1rem 0.1rem 0 rgb(188, 188, 185);
    margin-bottom: 1rem;
}

#id_menu {
    padding: 0;
    margin: 0;
    width: 40rem;
    background-color: #306B25;
    position: absolute;
    list-style: none;
    box-shadow: 0.2rem 0.2rem 0.4rem 0.4rem #353535;
    display: none;
    z-index: 1;
}

#id_menu li {
    display: flex;
    align-items: center;
    border-bottom: 0.2rem solid rgb(0, 0, 0);
    line-height: 3.5rem;
    padding-left: 1rem;
    text-decoration: none;
    font-size: 3rem;
    color: white;
    text-shadow: gray 0.1rem 0.1rem;
    font-weight: bold;
    -webkit-transition: all 200ms linear;
    -ms-transition: all 200ms linear;
    transition: all 200ms linear;
}

#id_menu li:hover {
    width: 41rem;
    background-color: #43a432;
    box-shadow: 0.2rem 0.2rem 0.4rem 0.4rem #353535;
    transition: all 300ms linear;
    padding-left: 1rem;
    cursor: pointer;
    font-size: 3.5rem;
}

.div_info_menu {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    font-style: italic;
    font-size: 1.2rem;
    color: white;
    text-shadow: 0.1rem 0.1rem gray;
    line-height: 1.2rem;
}

.div_info_menu span {
    color: #F7DF95;
    font-weight: bold;
    align-items: end;
}

.img_menu {
    position: relative;
    margin-right: 1rem;
    width: 3rem;
}

.modal {
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    z-index: 1000;
}

.msg_fin {
    border: double 0.5rem yellow;
    border-radius: 2rem;
    width: fit-content;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 5rem;
    padding: 1rem;
    background-color: #0000007a;
    text-align: center;
    box-shadow: 0.2rem 0.2rem 0.4rem 0.1rem #353535;
}

.div_datos_ganador {
    color: #f9c803
}

.img_menu_pral {
    cursor: pointer;
    box-shadow: 0.2rem 0.2rem 0.2rem 0.1rem black;
    transform: none;
    translate: 0 0;
    transition: box-shadow 1s, translate 1s, transform 1s;
    height: 25rem;

}

.img_menu_pral:hover {
    transform: scale(1.1);
    box-shadow: 0.3rem 0.3rem 0.2rem 0.1rem black;
}

.modal_espere {
    height: 100%;
    width: 99%;
    display: none;
    position: fixed;
    z-index: 2;
    background: rgb(67 67 67 / 70%);
}

.espere {
    display: flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0.1rem 0.1rem black;
    flex-direction: column;
}

.espere img {
    height: 10rem;
}

.showModal {
    position: absolute; 
    top: 50%;
    left: -80%;
    min-width: 60vw;
    transform: translate(-30%, -50%);
    background-color: #cfcfcfd7;
    border: 0.1rem solid black;
    text-align: center;
    padding-bottom: 0.5rem;
    box-shadow: 0.2rem 0.2rem 0.4rem 0.4rem #353535;
    transition: left 2000ms;
    width:80%;
    max-height:80%;
    border-radius: 1rem; 
}

.showModal_aparece {
    left: 35%;
}


.showModal .btn,
.showModal div {
    font-size: 1.5rem;
}

.cuerpoModal {
    overflow: auto;
    max-height: 50vh;
    padding: 1rem;
    background-color: white;
}

.cabeceraModal {
    position:sticky;
    top:0;
    background-color: #306B25;
    font-size: 1.5rem;
    height: 2rem;
    overflow: hidden;
    color:white;
    text-shadow: 0.1rem 0.1rem 0.1rem #353535;
    padding: 0rem 2rem;
    border-radius: 1rem 1rem 0 0; 
}

.btnCerrarModal {
    height: 2rem;
    position: absolute;
    right: 0;
}

.btnCerrarModal:hover {
    transform: translate(0.1rem, 0.1rem);
    background: #04a248;
    cursor: pointer;
    scale:1.2;
    transition: scale 1s;
}

.showModal div .bellot {
    font-size: 1rem;
}
.modal_ayuda {
    display:none;
   
}
.modal_ayuda_contenido {
    text-align: left;
    padding-left: 1rem;
}
.img_ayuda {
    height: 3rem;
}