* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
} 

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1a1a1a;
    font-family: Arial, sans-serif;
}

.main-table {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    max-width: 100%;
    overflow-x: auto;
}

.roulette-table {
    display: flex;
    flex-direction: column;
    background-color: #006400;
    padding: min(20px, 4vw);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    overflow-x: auto;
    transform-origin: top center;
    transform: scale(var(--table-scale, 1));
    margin: 0 auto;
}

.numbers-grid {
    display: grid;
    grid-template-columns: minmax(30px, 60px) repeat(12, minmax(30px, 60px));
    gap: 2px;
    margin-bottom: 10px;
    width: 100%;
}

.number-cell {
    height: 40px;
    min-width: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: clamp(12px, 2vw, 18px);
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.number-cell.zero {
    grid-row: span 3;
    height: 126px;
    font-size: clamp(16px, 2.5vw, 25.7px);
}

.number-cell {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.number-cell:hover {
    transform: scale(1.1) translateX(-5%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.red { background-color: #c41e3a; }
.number-cell.black {
    background-color: #000;
    color: white;
}
.green { background-color: #008000; }

.outside-bets {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
}

.outside-bets-row {
    display: grid;
    gap: 2px;
}

.dozens {
    grid-template-columns: repeat(3, 1fr);
    margin-left: 60px;
    width: calc(100% - 60px);
}

.other-bets {
    grid-template-columns: repeat(6, 1fr);
    margin-left: 60px;
    width: calc(100% - 60px);
}

.outside-bet {
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.outside-bet:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.win-loss-counters {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    perspective: 1200px;
}

.counter-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 60px; /* Aumenta a margem lateral para mover os contadores para dentro */
}

.counter {
    width: 140px; /* Reduz a largura */
    height: 80px; /* Reduz a altura */
    padding: 10px;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateZ(30px) rotateX(10deg);
    transition: transform 0.3s ease;
}

.counter-title {
    font-size: 14px; /* Reduz o tamanho da fonte */
    color: #ffffff;
    margin-bottom: 5px;
}

.counter-value {
    font-size: 24px; /* Reduz o tamanho da fonte */
    font-weight: bold;
    color: #ffffff;
}

.counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    border-radius: 6px 6px 0 0;
    height: 50%;
    pointer-events: none;
}

.counter::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 5%;
    right: 5%;
    height: 11px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    filter: blur(7.2px);
    z-index: -1;
}

.counter:hover {
    transform: translateZ(35.7px) rotateX(11px) scale(1.05);
    box-shadow: 0 17.9px 32.3px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.counter-title {
    color: #fff;
    font-size: 0.87em;
    font-weight: bold;
    margin-bottom: 11px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateZ(7.2px);
}

.counter-value {
    position: relative;
    color: #ffd700;
    font-size: 2.17em;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    transition: all 0.3s ease;
    transform: translateZ(14.5px);
}

.counter.win-counter {
    background: linear-gradient(145deg, #006400, #004d00);
}

.counter.loss-counter {
    background: linear-gradient(145deg, #8b0000, #660000);
}

@keyframes counterUpdate {
    0% { transform: translateZ(20px) scale(1) rotateY(0deg); }
    25% { transform: translateZ(40px) scale(1.2) rotateY(15deg); }
    50% { transform: translateZ(50px) scale(1.3) rotateY(0deg); }
    75% { transform: translateZ(40px) scale(1.2) rotateY(-15deg); }
    100% { transform: translateZ(20px) scale(1) rotateY(0deg); }
}

@keyframes counterGlow {
    0% { text-shadow: 0 0 15px rgba(255, 215, 0, 0.7); }
    50% { text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.5); }
    100% { text-shadow: 0 0 15px rgba(255, 215, 0, 0.7); }
}

.counter-value.updated {
    animation: counterUpdate 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), counterGlow 1.2s ease;
}

.strategy-indicators {
    display: none;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.number-history {
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
}

.history-number {
    width: 35px;
    height: 35px;
    border-radius: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.history-number.red { background-color: #c41e3a; }
.history-number.black { background-color: #000; }
.history-number.green { background-color: #008000; }

.strategy-section {
    flex: 1;
    text-align: center;
    padding: 15px;
    background-color: rgba(0, 100, 0, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.strategy-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.strategy-content {
    color: #fff;
    font-size: 16px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.clear-button {
    display: block;
    margin: 20px auto 0;
    padding: 12px 24px;
    background-color: #c41e3a;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.clear-button:hover {
    background-color: #a01830;
    transform: scale(1.05);
}

.clear-button:active {
    transform: scale(0.95);
}