@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    width: 100vw;
    height: 100vh;
    background-image: url('https://viewder.com.br/v2/games/forca/img/background/bg-forca.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: #272327;
    color: #272327;
    font-family: 'MedievalSharp', sans-serif;
    font-weight: 900;
    overflow: hidden;
}


#vitoriaTexto {
    color:rgb(187, 168, 61);
    font-size: 4rem;
    text-shadow: 2px 2px 4px #9c9c9c;
    margin: 0;
    padding: 0;
}

.h2TextoFinalizacao{
    font-weight: bold;
    font-size: 3.5rem;
}

.h1TextoFinalizacao{
    font-weight: bolder;
    font-size: 3.4rem;
}

.rounded-button {
    border-radius: 25px;
    font-size: 1.5em; /* Aumenta o tamanho da fonte para deixar o botão grande */
}

#carregarDica{
    font-weight: bold;
}
#containerDicas{
    max-width: 10vw;
}

#dica{
    text-align: center;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    width: 10%;
    height: 100vh;
    left: 0;
    color: #fefefe; 
    align-items: center;
    justify-content: center;

}

#imagemDica{
    left: 0;
    max-width: 100%;
    height: auto;
}

.divCobreTela{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    object-fit: contain;
}

.container{
    display: flex;
    justify-content: end;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    justify-items: center;
    height: 98vh;
}

#imagem{
    background-image: url("https://viewder.com.br/v2/games/forca/img/forca.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 234px;
    height: 272px;
    background-repeat: no-repeat;
}
#palavra-secreta {
    user-select: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    margin-top: 0.5rem;
    gap: 8px; /* Espaço entre palavras */
    max-width: 700px;
}

.palavra {
    user-select: none;
    display: inline-flex; /* Mantém as letras de uma palavra juntas */
    gap: 2px; /* Espaço entre as letras */
    margin-right: 8px; /* Espaço entre palavras */
}

.letras {
    user-select: none;
    min-width: 20px;
    text-align: center;
    color: #ffffff;
    padding: 4px;
    border-bottom: 2px solid #a3a3a3;
    border-radius: 4px;
}

#teclado{
    max-width: 100%;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.teclas button{
    width: 24px;
    height: 24px;
    margin: 2px;
    margin-bottom: 5px;
    cursor: pointer;
    box-shadow:  0px 2px 8px dimgray;
    border-radius: 5px;
    border: 1px solid dimgrey;  
   
}

.teclas button:disabled{
    cursor: not-allowed;
}

.teclas button:hover{
    transform:scale(1.3);
}

#categoria{
    margin-top: 30px;
    color: #c42525;
    font-size: 1.2em;
}

#abreModalAddPalavra, #recarregar, #jogarAutomatico, #jogarNovamente{
    position: fixed;
    width: 70px;
    height: 70px;
    border: none;
    outline: none;
    border-radius: 70px;
    font-size: 3em;
    background-color: transparent;
    color: #000;
    cursor: pointer;
}

#abreModalAddPalavra{
    display: none;
    bottom: 160px;
    right: 5px;
}

#recarregar{
    bottom: 80px;
    right: 5px;
}

#jogarAutomatico{
    bottom: 5px;
    right: 5px;
}

#status{
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

#jogarNovamente{
    display: none;
    bottom: 15px;
    right: 30px;
    transform: rotate(-90deg);
    transform-origin: left top 0;
}

.modal-container{
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1;
    padding-top: 100px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-add-palavra{
    position: relative;
    background-color: #fefefe;
    border: 10px solid #000;
    border-radius: 5px;
    text-align: center;
    margin: auto;
    padding: 0;
    width: 90%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animacao;
    -webkit-animation-duration: 0.4s;
    animation-name: animacao;
    animation-duration: 0.4s;
}

@-webkit-keyframes animacao{
    from{top:-300px; opacity: 0;}
    to{top:0; opacity: 1;}
}

@keyframes animacao{
    from{top:-300px; opacity: 0;}
    to{top:0; opacity: 1;}
}

.modal-header-add-palavra{
    padding: 2px 16px;
    background-color: #ffd700;
    font-size: 1.3em;
    border-bottom: 10px solid #000;
}

.close{
    color: #000;
    float: right;
    font-size: 2em;
    font-weight: bold;
}

.close:hover, .close:focus{
    color: #fff;
    text-decoration: none;
}

.modal-body-add-palavra{
    display: flex;
    flex-direction: column;
    padding: 2px 16px;
}

.modal-body-add-palavra input, .modal-body-add-palavra button{
    text-align: center;
    margin: 10px 0;
    font-size: 1.5em;
    border-radius: 5px;
    outline: none;
    border: 1px solid #9c9c9c;
}

.modal-body-add-palavra input{
    text-transform: uppercase;
}

.modal-body-add-palavra button{
    background-color: #ffd700;
    cursor: pointer;
}

.modal-body-add-palavra button:hover{
    background-color: #000;
    color: #ffd700;
    cursor: pointer;
}





@media (max-width:550px){
    #textoDicaContainer,#containerDicas{
        display: none!important;
        
    }

    .teclas button{
        margin: 0!important;
    }
    #dica{
        position: absolute!important;
    }

    #divDicaSup{
        display: flex!important;
    }
    #dicaImagemInferior {
        display: block !important;
        height: 15%;
    }

    #teclado{
       margin-bottom: 30px; 
    }
    #palavra-secreta{
        max-width: 95vw;
    }

    #dicaImagemInferior img{
        object-fit: contain;
        object-position: center;
        height: 100%;

    }

    .loader{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%!important;
        height: 100%!important;
    }

  
    
    #controlesJogo{
        width: 15%!important;
        height: 30%!important;
        flex-direction: column!important;
    }
    #audio,#sairJogo{
        padding: 0!important;
        height: 35% !important;
    }
    .teclas button{
        width: 35px;
        height: 35px;
    }
    #palavra-secreta{
        font-size: 1.5em;
    }
    .letras{
        min-width: 0px;
        width: 1;
    }

    #categoria{
        font-size: 1.6em;
    }
    #forca-content{
        width: 100vw!important;
    }
}


@media (min-width: 550px){
    .teclas button{
        width: 40px;
        height: 40px;
    }
    #palavra-secreta{
        font-size: 1.5em;
    }
    .letras{
        width: 25px;
    }

    #categoria{
        font-size: 1.6em;
    }

    .teclas button{
        margin: 2px!important;
    }

    #textoDicaContainer,#containerDicas{
        display: block!important;
        
    }

    #dica{
        position: relative!important;
    }

    #divDicaSup{
        display: none!important;
    }

    

    #forca-content{
        width: 80vw!important;
    }
    
    
}

@media (min-width: 769px){
    .teclas button{
        width: 50px;
        height: 50px;
        font-size: 2em;
    }
    #palavra-secreta{
        font-size: 2.5em;
    }
    .letras{
        width: 35px;
    }

    #categoria{
        font-size: 2em;
    }

    .modal-add-palavra{
        width: 80%;
    }
    #controlesJogo{
        width: 100%;
    }
}

@media (min-width: 1025px){
    .modal-add-palavra{
        width: 50%;
    }
}
/*#endregion*/

/* Loader */

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }
  
  .loader {
    margin: auto;
    width: 25%;
    height: 25%;
   /* background-color: white;
    animation: spin 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;*/
  }
  
  @keyframes spin {
    0%, 100% {
      transform: scale(1) rotate(0deg);
    }
    50% {
      transform: scale(0.5) rotate(180deg);
    }
  }
