* {
    margin: 0;
}

html,
body {
    background-color: black;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.game {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #E5F6FC;
    width: 1280px;
    height: 720px;
    margin: auto;
    transition: filter 0.5s ease-in-out;

}

.board {

    transition: height 0.5s ease-in-out, filter 0.5s ease-in-out, opacity 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    overflow-y: scroll;
    height: 25%;
    margin-top: 30px;
    margin-bottom: 30px;

}

.blur {
    filter: blur(3px);

}

.pool {
    background-color: #A2CCD9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 75%;
    transition: height .5s ease-in-out, opacity 0.5s ease-in-out;
    overflow-y: scroll;
}

.btnPool {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F36D6D;
    position: absolute;
    border-radius: 50px;
    width: 75px;
    height: 75px;
    transform: translate(0, -50%);
    cursor: pointer;
    box-shadow: 0 0 0 .1px #F36D6D;
    transition: box-shadow 0.2s ease-in-out, height 0.5s ease-in-out, width 0.5s ease-in-out;
    z-index: 1;
}

.btnPool:hover {
    box-shadow: 0 0 0 5px #F36D6D;
    transition: box-shadow 0.2s ease-in-out;
}

.poolWords {

    display: flex;
    margin-top: 45px;
    margin-bottom: 60px;
    width: 90%;

    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;


}

.wordCard {
    background-color: white;
    width: 250px;
    padding: 25px;
    margin: 5px;
    cursor: pointer;
    text-align: center;
    border-radius: 30px;
    font-family: 'Quicksand', sans-serif;


}

.boardCard {
    color: black;
    font-weight: 600;
    background-color: rgb(255, 255, 255);
    border-style: solid;
    border-width: 5px;
    border-color: #EED699;
}



.openTitle {

    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #E5F6FC;
    width: 1280px;
    height: 720px;
    transition: opacity .5s ease-in-out;
    z-index: 2;
}

.openTitle>div {

    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity .5s ease-in-out;
}


.openTitle>div>div {
    background-color: #F36D6D;
    font-family: 'Montserrat', sans-serif;
    color: #F5F5F5;
    text-align: center;
    padding: 10px 20px;
    margin-bottom: 30px;
}

.openTitle>div>div>h1:nth-child(2) {
    color: #EED699;
    font-size: 21px;
}

.openTitle>div>div>h1:nth-child(3) {
    font-size: 29px;
}

.btn {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    width: 120px;
    background-color: rgb(177, 75, 75);
    font-size: 20px;
    padding: 10px 30px;
    color: #FAFAFA;
    font-weight: 100;
    border-radius: 50px;
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;

}

.btn:hover {
    box-shadow: 0 0 0 5px #F36D6D;
    background-color: #F36D6D;
    transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;

}

.openTitle>img {
    display: none;
    width: 500px;

    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;

}



.instructions {
    font-family: 'Roboto', sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
}


.instructions>h1 {
    font-size: 24px;
    font-weight: 700;
    transition: font-size 0.2s ease-in-out;
    margin-bottom: 10px;

}

.instructions>p {
    font-size: 16px;
    font-weight: 10;
    transition: font-size 0.2s ease-in-out;
    margin-bottom: 15px;

}

.instructionsCards {
    display: flex;
    flex-direction: row;
    justify-content: space-around;

    width: 100%;

}

.instructionsCards>div {
    text-align: left;
    font-size: 10px;
    line-height: 10px;
    color: black;
    background-color: white;
    width: 230px;
    padding: 15px;
    padding-top: 22px;
    border-radius: 25px;
    margin-bottom: 5px;

}

.instructionsSections {
    display: flex;
    flex-direction: row;
    width: 100%;


}

.instructionsSections>div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    margin-top: 10px;

}

.instructionsSections>div>p {
    width: 90%;
    font-size: 16px;

}

.instructionsSections>div>img {
    width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
    width: 300px;

}


.instructionsLvl1 {
    display: flex;
    flex-direction: column;

}

.instructionsLvl1>div {

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-bottom: 25px;

}

.instructionsLvl1>div>div {

    text-align: left;
    width: 50%;
    margin: 0 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.instructionsLvl1>div>div>p {
    margin-left: 10px;
    font-size: 18px;
}


.instructionsLvl2 {
    display: none;
}

.gameOver {

    position: absolute;
    display: none;
    flex-direction: column;
    z-index: 3;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gameOver>div {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 320px;
    border-radius: 25px;
    margin-bottom: 20px;
}

.gameOver>div>h1 {
    position: absolute;
    margin-top: 40px;
    text-align: center;
    width: 100%;
    font-size: 25px;
    font-weight: 600;
    color: #F7AA0B;
    font-family: 'Roboto', sans-serif;
}

.juegoNivel2 {

    display: none;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 500px;

}

.inicioDiv,
.desenlaceDiv {
    display: flex;
    flex-direction: column;
    background-color: #EED699;
    border-radius: 25px;
    width: 350px;
    height: 100%;
    justify-content: space-evenly;
    align-items: center;
}

.juegoNivel2>div>h1 {
    font-family: 'Roboto', sans-serif;
    width: 90%;
    font-size: 18px;
    color: black;
}

.juegoNivel2>div>div {
    background-color: white;
    border-radius: 40px;
    width: 92%;
    height: 42%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.juegoNivel2>div>div>h1 {
    font-family: 'Roboto', sans-serif;
    width: 90%;
}

.nudo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 25px;
    background-color: white;
    width: 300px;
    height: 100%;
    border-style: solid;
    border-width: 5px;
    border-color: #EED699;
}

.nudo>p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    width: 85%;
    font-size: 18px;

    background-color: white;
}

.end {

    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 2;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    background-color: #E5F6FC;
    width: 1280px;
    height: 720px;
}


@media (max-width: 1280px) {
    .game {
        width: 100%;
    }

    .openTitle {

        width: 100%;

    }

    .end {
        width: 100%;
    }


}





@media (max-width: 950px) {

    .instructions>h1 {
        font-size: 18px;
        transition: font-size 0.2s ease-in-out;

    }

    .instructions>p {
        font-size: 16px;
        transition: font-size 0.2s ease-in-out;

    }

    .btn {
        font-size: 14px;
        width: 100px;
        transition: font-size 0.5s ease-in-out, width 0.5s ease-in-out;
    }

    .instructions>div {

        flex-direction: column;
        align-items: center;

    }

    .btnPool {

        width: 45px;
        height: 45px;
        transition: box-shadow 0.2s ease-in-out, height 0.5s ease-in-out, width 0.5s ease-in-out;
    }

    .instructionsLvl1>div {
        flex-direction: column;

    }

    .instructionsLvl1>div>div {

        width: 90%;

    }

    .openTitle>div>img {

        width: 200px;
    }

    .openTitle>img {

        width: 300px;
        transition: width 0.5s ease-in-out;

    }

    .juegoNivel2 {
        flex-direction: column;
    }

    .inicioDiv,
    .nudo,
    .desenlaceDiv {
        margin: 10px;
        width: 100%;

    }

    .nudo>p {
        font-size: 15px;
    }

}



@media (max-height: 720px) {
    .game {
        height: 100%;
    }

    .openTitle {
        height: 100%;
    }

}