body {
    font-family: Arial, sans-serif;
    background-color: #2c3e50;
    color: #ecf0f1;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background-color: #34495e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 1000px;
}

h1, h2, h3 {
    text-align: center;
    color: #f1c40f;
    margin-bottom: 20px;
}

.header-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.roulette-display {
    text-align: center;
    margin-bottom: 30px;
}

#winningNumberDisplay {
    font-size: 3em;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
    background-color: #2c3e50;
    padding: 15px 30px;
    border-radius: 8px;
    display: inline-block;
}

button {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

button:hover:not(:disabled) {
    background-color: #d35400;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.betting-area {
    background-color: #2c3e50;
    padding: 20px;
    border-radius: 8px;
}

.roulette-board {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.zero-doublezero {
    display: flex;
    flex-direction: column;
}

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

.numbers-grid .row {
    display: flex;
}

.cell {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #7f8c8d;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    user-select: none;
}

.cell.green { background-color: #27ae60; }
.cell.red { background-color: #e74c3c; }
.cell.black { background-color: #34495e; }

/* 賭けの種類ごとのスタイル */
.bet-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.bet-option {
    background-color: #34495e;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bet-option label {
    font-weight: bold;
    color: #ecf0f1;
}

.bet-option select,
.bet-option input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #7f8c8d;
    border-radius: 4px;
    background-color: #ecf0f1;
    color: #2c3e50;
    box-sizing: border-box; /* paddingとborderをwidthに含める */
}

.bet-option button {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 5px;
}

.bet-option button:hover {
    background-color: #2980b9;
}

.warning {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
}

.current-bets {
    margin-top: 30px;
    font-size: 1.1em;
    text-align: center;
    background-color: #2c3e50;
    padding: 10px;
    border-radius: 5px;
}