body {
    background-color: #f5f5f5;  /* Cinza claro para reduzir  o brilho */
    margin: 0;
    padding: 20px;
}

.roulette-container {
    max-width: 800px;
    margin: 20px auto;
    background-color: #ffffff;  /* Mantém o conteúdo principal com fundo branco */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Área interna (números + zero + 2to1) */
.internal-section {
    display: flex;
    height: 148px;  /* Aumentado de 120px para 150px */
    margin-bottom: 1px;
}
.number {
    background-color: #000;
    color: white;
    border: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    height: 50.2px;  /* Aumentado apenas a altura das caixas dos números */
}

.zero-section {
    background-color: #006400;
    color: white;
    border: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 106%;
    margin-right: 1px;
}
.numbers-section {
    display: flex;
    flex-grow: 1;
}
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1px;
    flex-grow: 1;    
}
.number-column {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 1px;    
}
/* Remove a duplicação de margin-bottom */
.strategy-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

/* Remove a duplicação de padding e box-shadow */
#selected-number {
    margin-top: 20px;
    background-color: #135813;
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Remove a duplicação de height */
video {
    max-width: 452px;
    width: 100%;
    height: auto;
}

/* Remove a duplicação de app-footer */
.app-footer {
    margin-top: 40px;
    padding: 20px;
    color: #333;
}

/* Corrige a propriedade margin-bottom solta */
.history-container {
    margin: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}
#numberInput {
    padding: 8px;
    width: 120px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

#confirmButton {
    padding: 8px 20px;
    background-color: darkgreen;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.stats-container {
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
}

#number-history {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.history-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #cc0000;
}

.history-number.black {
    background-color: black;
}

.strategy-controls {
    margin-bottom: 20px;
    text-align: center;
}

.strategy-controls input {
    padding: 8px;
    margin-right: 10px;
    width: 100px;
}
.strategy-controls button {
    padding: 12px 16px;
    background-color: #004d00;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.strategy-controls button:hover {
    background-color: #006400;
}
.stats {
    margin: 15px 0;
    padding: 12px;
    background: rgba(0, 100, 0, 0.8);
    border-radius: 8px;
    color: #fff;
    display: flex;
    justify-content: center;
    gap: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stats span {
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stats span span {
    color: #ffd700;
    margin: 0 0 0 8px;
    font-size: 20px;
}

.dozens-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 12px 61px 1px 43px;
}

.outside-bet {
background-color: #006400;
color: white;
border: 1px solid white;
padding: 10px;
text-align: center;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
}

/* Ajuste para que cada par de apostas externas se alinhe com sua dozen correspondente */
.outside-bet:nth-child(1),
.outside-bet:nth-child(2) {
    grid-column: span 1;
    width: calc(82% - 2px);
} 

.outside-bet:nth-child(3),
.outside-bet:nth-child(4) {
    grid-column: span 1;
    width: calc(82% - 2px);
}
.outside-bet:nth-child(5),
.outside-bet:nth-child(6) {
    grid-column: span 1;
    width: calc(82% - 2px);
}

.outside-bet:last-child {
margin-right: 20px; /* Ajusta o espaçamento à direita */
}

.number, .zero-section {
    position: relative;  /* Necessário para posicionamento absoluto das fichas */
}
.number.not-selected, .zero-section.not-selected {
    filter: brightness(0.5);
}
.number.red { background-color: #c41e3a; }
.two-to-one {
    display: flex;
    flex-direction: column;
    width: 60px;
    margin-left: 1px;
    gap: 1px;
    height: 107%;
}
.col-bet {
    background-color: #006400;
    color: white;
    border: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
}

.dozen-bet {
    background-color: #006400;
    color: white;
    border: 1px solid white;
    padding: 10px;
    text-align: center;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outside-section {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; /* Ajusta as duas últimas colunas */
gap: 1px;
margin: 2px 60px 1px 43px;
}


.diamond {
    width: 20px;
    height: 20px;
    background-color: #c41e3a;
    transform: rotate(45deg);
}
.diamond.black {
    background-color: #000;
}

/* Remover este bloco de estilo */
#selected-number {
    margin-top: 20px;
    padding: 15px;
    background-color: #135813;
    color: white;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.roulette-table {
background-color: #006400;
padding: 10px;
border-radius: 10px;
margin-bottom: 30px;  /* Aumenta espaço entre a mesa e o resultado  */
}

/* Estilo para as fichas de apostas */
.bet-chip {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #ffd700;
    border: 2px solid #b8860b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1000;
    font-size: 12px;
    pointer-events: none;
}

.number-column {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 1px;
    position: relative;
}

.roulette-table {
    position: relative;
    overflow: visible;
}
    
/* Posicionamento específico para a ficha no zero */
.zero-section .bet-chip {
    top: 44px;
    left: 18px;
    right: auto;
}
.number.dimmed, .zero-section.dimmed {
    opacity: 0.3;
}
.app-footer {
    margin-top: 40px;
    padding: 20px;
    color: #333;
}

/* Remover o bloco #selected-number que está marcado para remoção */

/* Modificar os botões para evitar !important */
.reset-button {
    background-color: #ff4444;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-left: 13px;
}

.reset-button:hover {
    background-color: #cc0000;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.app-footer h3 {
    color: #333;  /* Alterado de dourado para cinza escuro */
    margin-bottom: 15px;
    font-size: 20px;
}
.cta-button {
    display: inline-block;
    background-color: #006400;
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    margin-top: 15px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.cta-button:hover {
    background-color: #004d00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none !important;
}
.app-footer a {
    color: #006400;  /* Links em verde */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.app-footer a:hover {
    color: #004d00;  /* Verde mais escuro no hover */
    text-decoration: underline;
}
.copyright {
    text-align: center;
    padding: 15px;
    background: rgba(0, 100, 0, 0.8);  /* Verde mantido apenas no copyright */
    border-radius: 8px;
    color: white;
    font-size: 14px;
}
.app-footer p {
    margin-bottom: 15px;
    line-height: 1.6;
}
.app-footer ul {
    list-style: none;
    padding: 0;
}
.app-footer ul li {
    margin: 8px 0;
}
.warning-section, .promotion-section, .community-section {
    padding: 20px;
    background-color: #e8e8e8;  /* Cinza um pouco mais escuro que #f5f5f5 */
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    text-align: center;
    color: #333;  /* Texto escuro para melhor contraste */
}
.app-footer {
    margin-top: 40px;
    padding: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.app-footer h3 {
    color: #333;  /* Alterado de dourado para cinza escuro */
    margin-bottom: 15px;
    font-size: 20px;
}

.app-footer a {
    color: #006400;  /* Links em verde */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.app-footer a:hover {
    color: #004d00;  /* Verde mais escuro no hover */
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding: 15px;
    background: rgba(0, 100, 0, 0.8);  /* Mantém o verde apenas no copyright */
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.advanced-stats {
    margin-top: 30px;
    padding: 15px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    gap: 30px;
}

.advanced-stats span {
    color: #ecf0f1;
    font-size: 16px;
    font-weight: 500;
}

.advanced-stats span span {
    color: #2ecc71;
    font-weight: bold;
    margin-left: 5px;
}

.history-container {
    margin-top: 25px;
    padding: 15px;
    background: #80b683;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #ecf0f1;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    line-height: 2.5;  /* Aumenta o espaçamento vertical */
}

.history-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin: 0 4px;
    font-weight: bold;
    font-size: 14px;
}

.history-number.red { background-color: #c41e3a; }
.history-number.black { background-color: #000000; }
.history-number.green { background-color: #006400; }



.number, .zero-section {
    position: relative;
}


.reset-button-container {
    text-align: left;
    margin-top: 20px;
}

.reset-button {
    background-color: #ff4444;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-left: 13px;  /* Alinhado com a margem da mesa */
}

.reset-button:hover {
    background-color: #cc0000;
}

/* Estilos para as mensagens ao jogador */
.player-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 5px solid #ddd;
    background-color: #f8f9fa;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

.player-message.initial-message {
    background-color: #d1e7dd;
    border-left-color: #198754;
    color: #0f5132;
    border-radius: 8px;
}

/* Estilo para a mensagem de fazer aposta */
.player-message.make-bet {
    background-color: #cfe2ff;
    border-left-color: #0d6efd;
    color: #084298;
    border-radius: 8px;
}

.player-message.repeat-bet {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
    border-radius: 8px;
}

.player-message.recovery-mode {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
    border-radius: 8px;
}

/* Bank management styles */
.gerenciamento-banca {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #ecf0f1;
    text-align: center;
}

.banca-titulo {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #2ecc71;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banca-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.banca-item {
    flex: 1;
    min-width: 120px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banca-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #ecf0f1;
}

.banca-valor {
    font-size: 22px;
    font-weight: bold;
    color: #ffd700;
}

.banca-unidade {
    font-size: 12px;
    color: #bdc3c7;
    margin-top: 2px;
}

/* Estilo especial para o lucro */
#lucro-total {
    color: #2ecc71; /* Verde para lucro positivo */
}

#lucro-total.negativo {
    color: #e74c3c; /* Vermelho para lucro negativo */
}
