body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alinhamento pelo topo */
    height: 100vh;
    overflow-y: auto;
}

.container {
    width: 90%;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* Margem superior para criar espaço no topo */
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    text-align: center;
}

.tab-button.active {
    background-color: #0056b3;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-size: 1em;
    cursor: pointer;
}

button:disabled {
    background-color: #cccccc;
}

#displayWord {
    font-size: 1.2em;
    text-align: center;
    margin-top: 20px;
}

#wordInputContainer {
    margin-top: 10px;
}

/* Estilos para o popup de edição dos níveis */
#editPopup {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translate(-50%, 0%);
    width: auto;
    max-width: 90%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    max-height: 90vh; /* Limite de altura para o popup */
}

#levelsContainer {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 colunas */
    gap: 10px; /* Espaço entre os botões */
    justify-items: center;
    width: 100%; /* Garante que os botões ocupem a largura disponível */
}

.level-button {
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 1em; /* Tamanho da fonte adequado */
    box-sizing: border-box;
    width: 100%; /* Faz com que os botões ocupem todo o espaço da coluna */
}

#editPopup button {
    margin-top: -8px;
    padding: 10px 10px;
    font-size: 1em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
	white-space: nowrap;
    min-width: 60px;
}

#closePopup {
	margin-top: 10px!important;
}

/* Estilo para a sobreposição que impede clicar fora do popup */
#popupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#editLevelsButton {
    width: auto;
    margin-top: -10px;
}

