body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    margin: 0;
    background-color: rgb(87, 13, 13);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

html {
    font-size: 2vh;
    overflow: hidden;
}

#wrap {
    overflow: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 10px;
    align-items: center;
    height: 100%; /* Ocupa 100% da altura */
}

#bingo-grid {
    display: grid;
    gap: 10px; /* Espaçamento entre as células */
    width: 100%;
    max-width: 84vh;
    grid-template-rows: repeat(auto-fill, minmax(0, 1fr));
    grid-template-columns: repeat(auto-fill, minmax(0, 1fr));
    box-sizing: border-box;
}

.celula,
button.red,
button.green,
.button {
    background-color: #97171733;
}

.celula,
button,
.button {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-size: 1em;
}

/* Estiliza as células para garantir espaçamento consistente */
.celula {
    border: 2px solid #FF1C1C;
    aspect-ratio: 1 / 1;
    border-radius: 2vh;
    font-size: calc(10px + 1vw);
    word-break: break-word;
    white-space: pre-wrap;
    overflow: hidden;
    color: #FFFFFF;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
  
}

/* Adicione essas classes no seu arquivo CSS */
.button.locked {
    background-color: #4caf54 /* Verde claro fosco */
}

.button.unlocked {
    background-color: #af4c4c00; /* Vermelho claro fosco */
}

.celula:hover,
button:hover,
.button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.celula.selected {
    background-color: #FF1B1B;
    border-color: #FF1C1C;
}

button.disabled {
    background-color: #af4c4c;
    cursor: not-allowed;
}

button i,
.preset-item .delete-button i {
    font-size: 1.2em;
}

.preset-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #FF1F1F33;
    border: 1px solid #FF1C1C;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.preset-item .item-icon {
    margin-right: 10px;
}

.preset-item .item-name {
    flex-grow: 1;
}

.preset-item .delete-button {
    background-color: #FF1F1F47;
    border: none;
    color: white;
    cursor: pointer;
}

.preset-item .delete-button:hover {
    color: #ff8a8a;
}

.preset-item:hover {
    transform: translateY(-5%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
.button i {
    padding: 10px;
}
#preset-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #FF1F1F33;
    border: 1px solid #FF1C1C;
    border-radius: 5px;
    margin-bottom: 10px;
    color: #FFFFFF;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#preset-search:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 28, 28, 0.5);
}
#preset-search::placeholder {
    color: #FFFFFF; /* Define a cor do placeholder como branco */
    opacity: 0.5; /* Ajusta a opacidade para um branco mais claro */
}

.table-title {
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 20px;
    background: none;
    border: none;
    outline: none;
    cursor: text;
    direction: ltr; /* Garante que a direção do texto seja da esquerda para a direita */
    unicode-bidi: normal; /* Assegura que o texto seja exibido normalmente */
}


/*--------------------------------------------------------------
# PARA DISPOSITIVOS MÓVEIS
--------------------------------------------------------------*/
@media only screen and (max-width: 850px) {
    #bingo-grid {
        max-width: 78vh;
    }
}

/*--------------------------------------------------------------
# PARA DESKTOPS (1200PX E ACIMA)
--------------------------------------------------------------*/
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    #bingo-grid {
        max-width: 78vh;
    }
}
