*{
    margin: 0;
    padding: 0;
}

body{
    background-color: rgb(129, 16, 151);
    font-family: 'Fredoka One';
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.principal{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-items: center;
}

#titulo{
    margin-top: 20px;
    color: white;
    font-size: 50px;
    cursor: default;
    text-shadow: 0 0 10px rgb(136, 136, 136);
    transition: 0.2s;
}

#titulo:hover{
    text-shadow: 0 0 18px rgb(204, 64, 204)
}

/*Bot0n de neon 1*/

.btn-neon{
    font-family: 'Fredoka One';
    cursor: pointer;
    border-radius: 15px;
    margin-top: 100px;
    margin-left: 36px;
    text-align: center;
    position: relative;
    display: block;
    padding: 15px 30px;
    color: white;
    letter-spacing: 4px;
    font-size: 24px;
    text-decoration: none;
    overflow: hidden;
    transition: 0.2s;
    border: none;
    background-color: rgb(129, 16, 151);
}

.btn-neon:hover{
    background-color: rgb(204, 64, 204);
    box-shadow: 0 0 10px rgb(204, 64, 204), 0 0 40px rgb(204, 64, 204), 0 0 80px ;
    transition-delay: 0.3s;
}

.btn-neon span{
    position: absolute;
    display: block;
}

#span1{
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,transparent,rgb(204, 64, 204));
}

.btn-neon:hover #span1{
    left: 100%;
    transition: 1s;
}

#span3{
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg,transparent,rgb(204, 64, 204));
}

.btn-neon:hover #span3{
    right: 100%;
    transition: 1s;
}

/*Boton de neon 2*/

.btn-neon2{
    font-family: 'Fredoka One';
    cursor: pointer;
    border-radius: 15px;
    margin-top: 30px;
    text-align: center;
    position: relative;
    display: block;
    padding: 15px 30px;
    color: white;
    letter-spacing: 4px;
    font-size: 24px;
    text-decoration: none;
    overflow: hidden;
    transition: 0.2s;
    border: none;
    background-color: rgb(129, 16, 151);
}

.btn-neon2:hover{
    background-color: rgb(204, 64, 204);
    box-shadow: 0 0 10px rgb(204, 64, 204), 0 0 40px rgb(204, 64, 204), 0 0 80px ;
    transition-delay: 0.3s;
}


.btn-neon2 span{
    position: absolute;
    display: block;
}

#span1{
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,transparent,rgb(204, 64, 204));
}

.btn-neon2:hover #span1{
    left: 100%;
    transition: 1s;
}

#span3{
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg,transparent,rgb(204, 64, 204));
}

.btn-neon2:hover #span3{
    right: 100%;
    transition: 1s;
}


#footer{
    background-color: black;
    color: white;
    width: 100%;
    height: 120px;
    margin-top: 50px;
    border-top-left-radius: 7000px 1200px;
    border-top-right-radius: 7000px 1200px;
}
#copy{
    text-align: center;
    margin-top: 50px;
    cursor: default;
}

/*------------------------------------------*/
/*JUEGO*/
/*------------------------------------------*/
.juego{
    background-color: rgb(129, 16, 151);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    min-height: 100vh;
    visibility: hidden;
}

.juego.active{
    visibility: visible;
}

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

#startButton{
    font-family: 'Fredoka One';
    background-color: rgb(63, 5, 74);
    color: white;
    font-weight: 400;
    width: 150px;
    padding: 12px;
    border-radius: 10px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    margin-top: 20px;
}

#startButton:hover{
    box-shadow: 0 0 8px rgb(204, 64, 204);
    background-color: rgb(163, 9, 94);
    color: white;
}

#canvas{
    margin-top: 40px;
}

.hidden{
    color: transparent;
}

#wordContainer {
    margin-top: 20px;
    margin-bottom: 20px;
}

.letter {
    margin: 0 7px;
    position: relative;
    text-align: center;
}

.letter::after{
    content: " ";
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #fff;
    min-width: 12px;
}

.desistir{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Fredoka One';
    background-color: rgb(63, 5, 74);
    color: white;
    font-weight: 400;
    width: 150px;
    padding: 12px;
    border-radius: 10px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    margin-top: 20px;
}

.desistir:hover{
    box-shadow: 0 0 8px rgb(204, 64, 204);
    background-color: rgb(163, 9, 94);
    color: white;
}

/*------------------------------------------*/
/*POPUP*/
/*------------------------------------------*/
.overlay{
    background: rgba(0, 0, 0, .6);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.overlay.active{
    visibility: visible;
}

.popup{
    background: rgb(0, 0, 0);
    color: #fff;
    box-shadow: 7px 7px 5px 0px rgba(0, 0, 0, .6);
    border-radius: 5px;
    padding: 20px;
    width: 600px;

   
    
    opacity: 0;
}

.popup .btn-cerrar-popup{
    font-size: 16px;
    line-height: 16px;
    display:block;
    text-align: right;
    color: #bbbbbb;
    
}

.popup .btn-cerrar-popup:hover{
    color: blueviolet;
}

.popup h3{
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 20px;
}

.popup h5{
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 20px;
}

.popup textarea{
    font-family: 'Fredoka One';
    font-size: 50px;
    background-color: rgb(0, 0, 0);
    color: blueviolet;
    border: none;
    resize: none;
}

.popup textarea:focus{
    outline: 0;
}

.popup .btn-agregar-palabra{
    font-family: 'Fredoka One';
    background-color: rgb(109, 109, 109);
    color: white;
    font-weight: 400;
    width: 150px;
    padding: 12px;
    border-radius: 10px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    
}

.popup .btn-agregar-palabra:hover{
    box-shadow: 0 0 11px rgb(204, 64, 204);
    background-color: rgb(163, 9, 94);
    color: white;
}


/*------------------------------------------*/
/*ANIMACIONES DESPUES DE SABER SI FUNCIONA CORRECTAMENTE EL JS*/
/*------------------------------------------*/

.popup.active{
    opacity: 1;
    transform: scale(1);
}

/*------------------------------------------*/
/*Responsive*/
/*------------------------------------------*/

@media screen and (max-width: 667px){
    #titulo{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    #frase{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .popup{
        max-width: 50%;
    }

    .popup textarea{
        max-width: 80%;
        font-size: 20px;
    }
}