* {
    font-family: 'Times New Roman', Times, serif;
    box-sizing: border-box; /* Inclui padding e borda nas dimensões */
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url("https://i.pinimg.com/originals/00/45/8a/00458a6cff4c67187bd5bdac5a164390.png");
    background-size: cover;
    color: white;
    padding: 10px; /* Para evitar que o conteúdo fique muito próximo das bordas */
}

#home {
    position: fixed; 
    top: 15px; 
    left: 30px; 
    z-index: 1000;
}

#home img {
    width: 60px; 
    height: auto; 
}


h1 {
    text-align: center;
    font-size: 40px;
    padding: 30px;
}

.game-container {
    width: 90%; /* Responsividade com base em porcentagem */
    max-width: 700px; /* Limite de largura */
    height: auto; /* Altura automática */
    max-height: 600px; /* Limite de altura */
    background: rgba(255, 255, 255, 0.1); /* Fundo transparente */
    backdrop-filter: blur(10px); /* Desfoque do fundo */
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex; /* Flexbox para centralizar conteúdo */
    flex-direction: column; /* Direção da coluna */
    justify-content: center; /* Centraliza verticalmente */
    align-items: center; /* Centraliza horizontalmente */
    padding: 20px; /* Espaço interno */
}

#word-container {
    font-size: 60px;
    letter-spacing: 10px;
    text-align: center;
}

#letter-input {
    height: 40px; /* Aumenta a altura do input */
    width: 60%; /* Responsividade com base em porcentagem */
    max-width: 300px; /* Limite de largura aumentado */
    border-radius: 30px;
    background-color: #ff414153;
    border: 1px solid rgb(17, 17, 17);
    font-weight: bold;
    padding: 10px;
    font-size: 20px;
    margin: 30px 0 10px; /* Margens superiores e inferiores */
}

#message {
    font-size: 30px;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

#attempts-container {
    font-size: 18px;
    font-weight: bold;
    margin-top: 70px;
    text-align: center; /* Centraliza o texto */
}

/* BOTOES */

#buttons-container {
    display: flex; /* Flexbox para os botões */
    justify-content: center; /* Centraliza os botões */
    gap: 20px; /* Espaço entre os botões */
    flex-wrap: nowrap; /* Garante que não se empilhem em telas maiores */
    margin-top: 20px; /* Espaço acima dos botões */
}

#guess-button,
#restart-button {
    font-size: 20px; /* Aumenta o tamanho da fonte */
    height: 60px; /* Aumenta a altura do botão */
    width: 150px; /* Largura fixa dos botões */
    background-color: #101010;
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
}

#guess-button:hover,
#restart-button:hover {
    background-color: #272727;
}

@media (max-width: 700px) {
    #buttons-container {
        flex-direction: column; /* Coloca os botões em coluna */
        gap: 10px; /* Espaço entre os botões quando empilhados */
    }
    h1 {
        font-size: 30px; /* Ajuste o tamanho da fonte do título */
        padding: 20px; /* Ajuste o padding se necessário */
    }
}