@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400;700&family=Hanalei+Fill&display=swap');

/*----------------------------------------------
                BASIC
----------------------------------------------*/

* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: 50%;
    padding: 0 10px;
    user-select: none;
    background-image: url("images/jungle-vector.jpg");
}

html,
body {
    overflow: hidden;
    font-family: Oxygen;
    color: #004225;
}

.select-item {
    border: 3px solid #fafafa;
    border-radius: 5px;
}

/*----------------------------------------------
            OVERLAY Y MODALES
----------------------------------------------*/

.overlay-inicio,
.overlay-reinicio,
.overlay-niveles,
.overlay-timeout {
    position: absolute;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    text-align: center;
    overflow-y: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-timeout {
    z-index: 8;
}

.contenedor-timeout {
    z-index: 7;
}

.contenedor-bienvenida {
    z-index: 6;
}

.overlay-inicio {
    z-index: 5;
}

.contenedor-niveles {
    z-index: 4;
}

.overlay-niveles {
    z-index: 3;
}

.contenedor-reinicio {
    z-index: 2;
}

.overlay-reinicio {
    z-index: 1;
}

.contenedor-bienvenida,
.contenedor-niveles,
.contenedor-reinicio,
.contenedor-timeout {
    width: auto;
    max-width: 55%;
    min-width: 55%;
    background-color: #a5d610;
    border: 3px solid #004225;
    text-align: center;
    border-radius: 15px;
    margin: 10px 30px;
    padding: 0 30px;
}

.contenedor-bienvenida {
    top: 36%;
    left: 20%;
}

.contenedor-niveles,
.contenedor-reinicio,
.contenedor-timeout {
    top: 20%;
    left: 20%;
}

.titulo-bienvenida {
    font-weight: 400;
    font-size: 3.12rem;
    font-family: "Hanalei Fill";
    margin: 2.1rem 0;
    text-shadow: 2px 2px 4px #fafafa;
}

.titulo-controles,
.titulo-niveles,
.titulo-nuevo-juego,
.titulo-timeout {
    font-family: "Hanalei Fill";
    font-size: 28px;
    text-align: center;
    margin: 20px 20px 10px 20px;
    text-shadow: 2px 2px 4px #fafafa;
}

.txt-nuevo-juego {
    margin-bottom: 20px;
}

.txt-bienvenida,
.txt-controles,
.txt-nuevo-juego,
.txt-timeout {
    font-size: 16px;
    text-shadow: 2px 2px 4px #fafafa;
}

.txt-bienvenida {
    padding: 10px;
}

.txt-controles,
.txt-nuevo-juego {
    padding: 2px;
}

.boton-basico {
    text-align: center;
    width: 150px;
    height: 50px;
    padding: 10px;
    margin: 20px;
    background-color: #004225;
    color: #fafafa;
    font-size: 24px;
    font-family: "Hanalei Fill";
    border-radius: 10px;
    cursor: pointer;
}

.boton-niveles {
    width: 200px;
    padding: 5px;
    margin: 10px;
}

/*----------------------------------------------
            SECCIÓN PRINCIPAL
----------------------------------------------*/

.seccion-principal {
    height: 100vh;
}

.contenedor-puntaje-y-juego {
    margin-bottom: 4rem;
    max-width: 610px;
    width: 610px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.nombre-juego {
    font-size: 4.5rem;
    font-family: "Hanalei Fill";
    margin: 2rem 0;
    color: #004225;
    text-shadow: 2px 2px 4px #fafafa;
    text-align: center;
}

.contenedor-juego {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #a5d610;
    border: 3px solid #004225;
    padding: 3px 5px;
    border-radius: 10px;
    color: #fafafa;
    width: 600px;
    margin-bottom: 15px;
}

.contenedor-puntaje {
    display: flex;
    justify-content: center;
    font-size: 24px;
    font-family: "Hanalei Fill";
    font-weight: 100;
}

.contenedor-puntaje p {
    display: flex;
}

#puntaje {
    margin-left: 15px;
}

.img-input,
.info-button,
.refresh-button {
    cursor: pointer;
}

.img-input {
    width: 25px;
    height: 25px;
}

.info-button,
.refresh-button {
    width: 30px;
    height: 30px;
    margin-left: 8px;
}

.contenedor-timer,
.contenedor-refresh {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-family: "Hanalei Fill";
    font-weight: 100;
    flex-wrap: nowrap;
}

.caja-grilla {
    position: relative;
    width: 60vw;
    height: 60vh;
    max-width: 600px;
    max-height: 600px;
    border-radius: 10px;
    border: 3px solid #004225;
    background-color: #fafafa90;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    box-sizing: content-box;
}

#grilla {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-sizing: content-box;
    text-align: center;
    transition: top 0.08s, left 0.08s;
    cursor: pointer;
}

#grilla div {
    margin: 0.5px;
    box-sizing: content-box;
}

.timer {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
}

.firmas {
    position: fixed;
    bottom: 5%;
    right: 4%;
    border-radius: 10px;
    border: 3px solid #004225;
    background-color: #a5d610;
    color: #004225;
    font-family: Oxygen;
    padding: 0.5rem 1.2rem;
    text-align: center;
}

a {
    text-decoration: none;
    color: #fafafa;
    font-weight: bold;
    text-shadow: 2px 2px 4px #004225;
}

a:focus {
    color: #fafafa;
    font-weight: bold;
}

/*----------------------------------------------
                RESPONSIVE
----------------------------------------------*/

@media screen and (min-width: 1200px) {
    /*----------------------------------------------
                    BASIC
    ----------------------------------------------*/


    /*----------------------------------------------
                OVERLAY Y MODALES
    ----------------------------------------------*/

    .contenedor-bienvenida {
        top: 30%;
    }

    .titulo-bienvenida {
        font-size: 60px;
    }

    .titulo-controles,
    .titulo-niveles,
    .titulo-nuevo-juego,
    .titulo-timeout {
        font-size: 32px;
    }

    .txt-bienvenida,
    .txt-controles,
    .txt-nuevo-juego,
    .txt-timeout {
        font-size: 20px;
    }

    /*----------------------------------------------
                SECCIÓN PRINCIPAL
    ----------------------------------------------*/

}

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

    /*----------------------------------------------
                OVERLAY Y MODALES
    ----------------------------------------------*/
    .contenedor-bienvenida,
    .contenedor-niveles,
    .contenedor-reinicio,
    .contenedor-timeout {
        width: 80%;
        background-color: #a5d610;
        border: 3px solid #004225;
        text-align: center;
        border-radius: 15px;
        margin: 10px 30px;
        padding: 0 30px;
    }

    .contenedor-bienvenida,
    .contenedor-niveles,
    .contenedor-reinicio,
    .contenedor-timeout {
        top: 0;
        left: 0;
    }

    .titulo-bienvenida {
        font-size: 35px;
    }

    .titulo-controles,
    .titulo-niveles,
    .titulo-nuevo-juego,
    .titulo-timeout {
        font-size: 20px;
    }

    .contenedor-niveles {
        align-items: center;
    }

    .txt-bienvenida,
    .txt-controles,
    .txt-nuevo-juego,
    .txt-timeout {
        font-size: 16px;
    }

    .size-emoji {
        font-size: 16px;
    }

    /*----------------------------------------------
                SECCIÓN PRINCIPAL
    ----------------------------------------------*/
    .seccion-principal {
        height: 100vh;
    }

    .contenedor-puntaje-y-juego {
        max-width: 540px;
        width: 540px;
        height: 540px;
    }

    .contenedor-juego {
        width: 540px;
        margin: 15px;
    }

    .img-input {
        width: 30px;
        height: 30px;
    }

    .contenedor-timer,
    .contenedor-refresh {
        font-size: 1.25rem;
    }

    .caja-grilla {
        width: 590px;
        height: 590px;
    }

}

@media screen and (min-width: 300px) {

    .nombre-juego {
        font-size: 4rem;
        margin: 0.5rem 0;
    }

    .contenedor-puntaje {
        font-size: 1.2rem;
    }

    .contenedor-bienvenida,
    .contenedor-niveles,
    .contenedor-reinicio,
    .contenedor-timeout {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: none;
        width: 60%;
        min-width: 280px;
    }

    .seccion-principal {
        width: 100vw;
        max-width: 450px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 15px;
    }

    .contenedor-puntaje-y-juego {
        margin-bottom: 1rem;
        max-width: 485px;
        width: 485px;
        height: auto;
        box-sizing: border-box;
        padding: 0 2rem;
    }

    .contenedor-juego, .caja-grilla {
        width: 95vw;
        max-width: 450px;
    }

    .caja-grilla {
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        display: flex;
        box-sizing: content-box;
        height: 450px;
    }

    .firmas {
        position: static;
    }
}

/*----------------------------------------------
                DISPLAY NONE
----------------------------------------------*/

.oculto {
    display: none;
}

.fuera-de-foco {
    opacity: 0;
    visibility: hidden;
    left: 2500px;
}

/* COLOR PALETTE
 #b6cc65  #d2d698  #928c42  #1f5215  #629b2d  #afa698  #665a23  #061505  */