/* roulette.css */
:root {
    --primary-color: #d4af37;
    --secondary-color: #1e1e1e;
    --red: #e63946;
    --black: #1d3557;
    --green: #2a9d8f;
    --white: #f1faee;
    --table-green: #0b6e4f;
    --table-border: #ffffff;
}

/* Application des styles uniquement à l'intérieur du modal de jeu roulette */
#gameModal1 .container {
    max-width: 1200px;
    margin: 0 auto;
}

#gameModal1 header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}

#gameModal1 h1 {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#gameModal1 .timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 10px;
}

#gameModal1 .roulette-container {
    position: relative;
    height: 100px;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
}

#gameModal1 .roulette-track {
    display: flex;
    position: absolute;
    left: 0;
    transition: transform 5s cubic-bezier(0.1, 0.7, 0.1, 1);
}

#gameModal1 .roulette-number {
    width: 60px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    color: var(--white);
    text-shadow: 0 0 4px #000;
}

#gameModal1 .roulette-number.red {
    background-color: var(--red);
}

#gameModal1 .roulette-number.black {
    background-color: var(--black);
}

#gameModal1 .roulette-number.green {
    background-color: var(--green);
}

#gameModal1 .betting-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Nouvelle table de roulette stylisée */
#gameModal1 .roulette-table {
    background-color: var(--table-green);
    border: 3px solid var(--table-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#gameModal1 .zero-section {
    display: flex;
    position: relative;
    border-bottom: 2px solid white;
}

#gameModal1 .zero-section .number-button {
    width: 60px;
    height: 60px;
    background-color: var(--green);
    border: 1px solid var(--table-border);
    color: var(--white);
    font-weight: bold;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gameModal1 .numbers-grid {
    display: flex;
    flex-direction: column;
}

#gameModal1 .numbers-row {
    display: flex;
    width: 100%;
}

#gameModal1 .number-button {
    flex: 1;
    height: 60px;
    border: 1px solid var(--table-border);
    color: var(--white);
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

#gameModal1 .number-button.red {
    background-color: var(--red);
}

#gameModal1 .number-button.black {
    background-color: var(--black);
}

#gameModal1 .number-button:hover, 
#gameModal1 .column-bet:hover, 
#gameModal1 .dozen-bet:hover, 
#gameModal1 .other-bet:hover {
    opacity: 0.8;
    transform: scale(0.98);
}

#gameModal1 .column-bet {
    width: 60px;
    background-color: var(--table-green);
    color: var(--white);
    border: 1px solid var(--table-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    overflow: visible;
}

#gameModal1 .special-bets {
    display: flex;
    flex-direction: column;
}

#gameModal1 .dozen-bets {
    display: flex;
}

#gameModal1 .dozen-bet {
    flex: 1;
    height: 50px;
    background-color: var(--table-green);
    border: 1px solid var(--table-border);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    overflow: visible;
}

#gameModal1 .other-bets {
    display: flex;
}

#gameModal1 .other-bet {
    flex: 1;
    height: 50px;
    background-color: var(--table-green);
    border: 1px solid var(--table-border);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    overflow: visible;
}

#gameModal1 .red-bet, 
#gameModal1 .black-bet {
    position: relative;
}

#gameModal1 .red-bet .diamond {
    width: 30px;
    height: 30px;
    background-color: var(--red);
    transform: rotate(45deg);
}

#gameModal1 .black-bet .diamond {
    width: 30px;
    height: 30px;
    background-color: var(--black);
    transform: rotate(45deg);
}

/* Panneau de contrôle */
#gameModal1 .control-panel {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#gameModal1 .balance-display {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

#gameModal1 .chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

#gameModal1 .chip {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.2s;
}

#gameModal1 .chip:hover {
    transform: scale(1.1);
}

#gameModal1 .chip.selected {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 215, 0.8);
}

#gameModal1 .chips-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px 0;
}

#gameModal1 .chip-0-10 {
    background-color: #e76f51;
}

#gameModal1 .chip-1 {
    background-color: #2a9d8f;
}

#gameModal1 .chip-5 {
    background-color: #e9c46a;
}

#gameModal1 .chip-10 {
    background-color: #f4a261;
}

#gameModal1 .chip-50 {
    background-color: #264653;
}

#gameModal1 .chip-100 {
    background-color: #023047;
}

#gameModal1 .chip-500 {
    background-color: #7209b7;
}

#gameModal1 .chip-1000 {
    background-color: #3a0ca3;
}

#gameModal1 .controls-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#gameModal1 .control-button {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

#gameModal1 .place-bet {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

#gameModal1 .clear-bets {
    background-color: var(--secondary-color);
    color: var(--white);
}

#gameModal1 .control-button:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

#gameModal1 .bet-display {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 200px;
}

#gameModal1 .bet-display h3 {
    margin-bottom: 10px;
    text-align: center;
    color: var(--primary-color);
}

#gameModal1 .active-bets {
    list-style: none;
}

#gameModal1 .active-bets li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#gameModal1 .marker {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    z-index: 10;
    transform: translateX(-50%);
}

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

#gameModal1 .history-item {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

#gameModal1 .result-display {
    margin-top: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gameModal1 .win {
    color: #2ecc71;
}

#gameModal1 .lose {
    color: #e74c3c;
}

#gameModal1 .bet-chip {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
    font-weight: bold;
    z-index: 10;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Adaptation responsive */
@media (max-width: 900px) {
    #gameModal1 .betting-area {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    #gameModal1 h1 {
        font-size: 1.8rem;
    }
    
    #gameModal1 .number-button, 
    #gameModal1 .column-bet, 
    #gameModal1 .dozen-bet, 
    #gameModal1 .other-bet {
        font-size: 14px;
        height: 40px;
    }
    
    #gameModal1 .zero-section .number-button {
        height: 40px;
        width: 40px;
    }
}
