/* Estilos gerais */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Container principal */
.container {
    max-width: 400px;
    margin: auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Título do Score */
h2 {
    margin-bottom: 20px;
}

/* Layout das colunas do jogo */
.game {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
}

/* Estilização das colunas */
.coluna {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 120px;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

/* Botões das palavras */
button {
    width: 150px;
    min-height: 50px; /* 🔹 Define uma altura mínima */
    font-size: 18px;
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: center; /* 🔹 Centraliza horizontalmente */
    align-items: center; /* 🔹 Centraliza verticalmente */
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: normal; /* 🔹 Permite quebra de linha */
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 5px;
    background-color: #ddd;
    margin-bottom: 8px;
    text-align: center;
}

/* Ajusta todos os botões da coluna para ficarem do mesmo tamanho */
.coluna button {
    min-width: 180px;
    max-width: 180px;
    align-items: stretch;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cores dos botões ao selecionar e ao verificar resposta */
button.selecionado {
    background-color: yellow !important;
    color: black !important;
}

button.verde {
    background-color: green !important;
    color: white !important;
    pointer-events: none; /* 🔹 Impede qualquer clique ou interação */
}

button.vermelho {
    background-color: red !important;
    color: white !important;
    pointer-events: none; /* 🔹 Impede qualquer clique ou interação */
}

/* 🔹 Ajuste para centralizar e separar os botões "Próximo" e "Sair" */
.buttons-container {
    display: flex;
    justify-content: center; /* Centraliza os botões */
    align-items: center;
    width: 100%;
    margin-top: 15px;
    gap: 15px; /* Espaço entre os botões */
}

/* Botões de ação */
#proximo, #sair {
    width: 150px;
    height: 40px;
    font-size: 16px;
    border-radius: 5px;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Botão "Próximo" */
#proximo {
    background-color: #007bff;
}

/* Botão "Próximo" desativado */
#proximo:disabled {
    background-color: #bbb;
    cursor: not-allowed;
}

/* Botão "Sair" */
#sair {
    background-color: #dc3545;
}

/* Estilização do ranking */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #4CAF50;
    color: white;
}

/* 🔹 Responsividade para dispositivos móveis */
@media (max-width: 600px) {
    .game {
        flex-direction: row;
        justify-content: space-around;
        gap: 5px;
    }

    button {
        width: 120px;
        height: 45px;
        font-size: 16px;
    }

    /* 🔹 No mobile, os botões ficam um abaixo do outro */
    .buttons-container {
        flex-direction: column; /* Empilhar botões no mobile */
        align-items: center;
    }

    #proximo, #sair {
        width: 130px;
        font-size: 14px;
    }
}

/* 🔹 Ícone do Ranking dentro da área branca, no canto superior direito */
.ranking-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

/* Efeito ao passar o mouse no emoji */
.ranking-icon:hover {
    transform: scale(1.2);
}

#barra-container {
    width: 100%;
    height: 20px;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

#barra-tempo {
    width: 100%;
    height: 100%;
    background-color: #4caf50;
    transition: width 0.2s linear;
}


