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

body{ 
    /* display: flex;
    justify-content: center;
    align-items: start; */  
    width: 100vw;
    height: 90vh;
    margin-top: 10px; 
    background-color: goldenrod;
    font-family: 'Ubuntu', sans-serif;
}

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

#imagem{
    background-image: url("../img/forca.png");
    width: 234px;
    height: 272px;
    background-repeat: no-repeat;
}

#palavra-secreta{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    font-size: 1.0em;
    margin-top: 30px;
}

.letras{
    width: 16px;
    text-align: center;
    border-bottom: 2px solid #8B008B; 
    color: #ffffff;
    padding: 2px;
    margin-left: 2px;
    margin-right: 2px;
}

.letrasEspaco{
    width: 16px;
    text-align: center;
    color: #ffffff;
    padding: 2px;
    margin-left: 2px;
    margin-right: 2px;
}

#teclado{
    margin-top: 30px;
}

.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 dimgray;  
    color: #8B008B; 
    font-family: 'Ubuntu', sans-serif;
    font-weight: 900;
}

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

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

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

/*#region MODAL ADICIONAR PALAVRA*/

#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;
}

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

#status{
    position: fixed;
    bottom: 10px;
 }

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

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

/* The Modal (background) */
.modal-container{
    display: none; 
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
}
  
/* Modal Content */
.modal-add-palavra {
    position: relative;
    background-color: #fefefe;
    border: 10px solid #000000;
    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
  }
  
  /* adiciona Animação */
@-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.3rem;
    color: #000000;
    border-bottom: 10px solid #000000;
}
  
/*  botao X - fecha a modal */
.close {
    color: #000;
    float: right;
    font-size: 2rem;
    font-weight: bold;
}
  
.close:hover, .close:focus {
    color: #FFF;
    text-decoration: none;
    cursor: pointer;
}
  
.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;
}

/*#endregion*/

/*#region MEDIA QUERY*/
@media(min-width: 321px){
    .teclas button{
        width: 25px ;
        height: 25px ;
    }
    #categoria{
        font-size: 1.3em;
    }
}

@media(min-width: 376px){
    .teclas button{
        width: 30px ;
        height: 30px ;
    }
    #palavra-secreta{
        font-size: 1.3em;
    }
    .letras{
        width: 18px;
    }
    #categoria{
        font-size: 1.5em;
    }
    
}

@media(min-width: 426px){
    .teclas button{
        width: 36px ;
        height: 36px ;
    }
    #palavra-secreta{
        font-size: 1.5em;
    }
    .letras{
        width: 20px;
    }
    #categoria{
        font-size: 1.6em;
    }
}

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

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

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



