* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/*-------- INDEX HEADER ------------*/

.header-index {
    background-image: url('https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExbHU2cmx2aWx2ZjBrMGZ5MmVpOGQ5eHdta3d2YTNzbGV5ZWx2bnk5byZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/RnZylTLIGtUt0VbWO2/giphy.gif');
    background-size: auto;
    background-repeat: repeat;

}

/*----------INDEX BODY---------------*/

.fondo-index {
    background-image: url('./img/fondo-index.png');
    background-size: auto;
    background-repeat: repeat;
}

/*
.fondo-index::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}
    */

/*------------- INDEX CONTENEDOR PRINCIPAL ------------*/

.index-contenedor-principal {
    background-color: rgba(36, 36, 36, 0.8);
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.index__titulos {
    color: #fff;
    font-size: 50px;
    border-bottom: 4px solid #707070;
}

.index__contenedor-elegir-vocabulary {


    padding: 10px;
}

.index__grupo-vocabulary-areas {
    padding: 20px;
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
}

.index__grupo-vocabulary-areas a {
    text-decoration: none;
}

.index__contenedor-vocabulary-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    width: 200px;

    background-color: rgba(16, 24, 13, 0.8);
    border-radius: 15px;
    border: 5px solid rgba(16, 24, 13, 0.8);


    transition: .5s ease all;
}

.index__contenedor-vocabulary-area:hover {
    background-color: rgba(18, 43, 10, 0.8);
    border: 5px solid #fff;
}

.index__imagen-voc-area {
    width: 100%;

}

.index__etiqueta-voc-area {
    color: #fff;
    text-align: center;
    font-size: 30px;
}

.index__contenedor-elegir-difficulty {


    padding: 10px;

}

.index__grupo-difficulty {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    gap: 10px;
    padding: 10px;
}

.index__botones-difficulty {
    height: 100px;
    width: 200px;
    border-radius: 10px;
    font-size: 35px;
    font-family: "Josefin Sans", sans-serif;
    color: #fff;
    font-weight: 800;
    transition: .5s ease all;
}

.index__botones-difficulty:hover {
    font-size: 45px;
    color: #333333;
}

.boton-easy {
    background-color:#199b15;
    border: 5px solid #094707;
}



.boton-medium {
    background-color:#c4af16;
    border: 5px solid #464707;
}

.boton-hard {
    background-color:#c41616;
    border: 5px solid #470707;
}

/*-------- MEMO-TESTS HEADER -------*/

.header {
    width: 100%;
    height: 200px;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    
    overflow: hidden;
}

.header-memo-test-animales {
    background-image: url('./img/fondo-header.png');
    background-size: auto;
    background-repeat: repeat;
}



.header::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none; /* Esto evita que la sombra bloquee la interacción con el contenido */

}



.header__titulo {
    color: #fff;
    font-size: calc(30px + 2vw);
    z-index: 1;
    text-align: center;
}

/*----------MEMO-TESTS CONTENEDOR PRINCIPAL ---------------- */

.contenedor-principal {
    margin: auto;
    width: 90%;

}



/*----------MEMO-TESTS CONTENEDOR SUPERIOR -----------------*/

.contenedor-superior {
    background:rgba(243, 200, 80, 0.8);
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
}

.texto__turno-de {
    font-size: 30px;
}

/*----------MEMO-TESTS CONTENEDOR FICHAS -------------------*/

.contenedor-fichas {
    padding: 10px;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 10px;
    padding: 50px 10px;
}

.ficha {
    border: 4px solid #251800;
    width: 200px;
    height: 200px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: .3s linear all;
}

.ficha:hover {
    border-color: #ffae00;
    
}

.img-tapa {
    width: 100%;
    height: 100%;
    transition: all .3s ease-in-out;
}

.img-tapa:hover {
    width: 130%;
    height: 130%;
}

.grupo__img-etiqueta {
    width: 100%;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction:column;
}

.img-animal {
    height: 80%;
    width: 100%;
    object-fit: contain;
    transition: all .3s ease-in-out;
}

.etiqueta-animal {
    height: 20%;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.oculto {
    display: none!important;
}

.ficha-correcto {
    border-color: #22bd1d;
}

.ficha-incorrecto {
    border-color: #d40f0f;
}

.ficha-descubierta {
    border: 4px solid #797979;
    opacity: 0.5;
    pointer-events: none;
}

.interaccion-inhabilitada {
    pointer-events: none;
    cursor: not-allowed;
}


/*------------------MEMO-TESTS CONTENEDOR INFERIOR ------------*/

.contenedor-inferior {
    background:#251800;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px;
    position: sticky;
    bottom: 0;
}

.grupo__puntaje {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.texto__puntaje-jugador {
    font-size: 20px;
    color:#fff;
}

/*-------------------------MEMO-TESTS CARTEL RESULTADO ---------------------*/

.contenedor__cartel-resultado {
    position: absolute;
    right: 0px;
    top: 0px;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1000;
}

.cartel-resultado {
    width: 1200px;
    height: 500px;
    background-color: #ebd13e;
    border: 6px solid #d69303;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.texto-ganador {
    font-size: 60px;
    margin: 20px;
    text-decoration: underline;
}

.ganador {
    font-size: 100px;
    margin: 20px;
}

.contenedor__botones-resultado {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 20px;
}

.botones-resultado {
    background: #680505;
    border-radius: 10px;
    border: 4px solid #e71010;

    font-size: 40px;
    color: #fff;
    font-family: "Oswald", sans-serif;

    padding: 20px;
    cursor: pointer;
    transition: .5s ease all;
}

.botones-resultado:hover {
    background: #300303;
    border: 4px solid #7c1b1b;

}

@media screen and (max-width: 1023px) {
    .contenedor-principal {
        width: 100%;
        margin: 0px;
    }

    .ficha {
        width: 24%;
        max-height:fit-content;
    }
}

@media screen and (max-width: 767px) {
    .ficha {
        width: 32%;
    }
}

@media screen and (max-width: 520px) {
    .ficha {
        width: 46%;
    }
}

/*---------------- OTRAS FUENTES -------------------*/
/*
RALEWAY:
<link href="https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Oswald:wght@200..700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
  font-family: "Raleway", sans-serif;

KANIT:
<link href="https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Oswald:wght@200..700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
  font-family: "Kanit", sans-serif;

JOSEFIN SANS:
<link href="https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Oswald:wght@200..700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
  font-family: "Josefin Sans", sans-serif;

DOSIS:
<link href="https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&family=Gloria+Hallelujah&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Oswald:wght@200..700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
  font-family: "Dosis", sans-serif;

*/