body {
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1a1a1a;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

#container {
    width: 90%;
    max-width: 1910px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    margin-top: 60px; /* From your inline style */
}


.spin {
    display: none; /* Hidden by default until a bet is placed */
    position: fixed;
    bottom: 20px;
    right: 20px; /* Moved to bottom-left corner */
    width: 50px; /* Smaller fixed width for circular shape */
    height: 60px; /* Smaller fixed height for circular shape */
    background: #ff4444;
    color: white;
    border-radius: 50%; /* Fully rounded (circular) */
    cursor: pointer;
    font-size: 14px; /* Smaller font size */
    z-index: 1000; /* High z-index to ensure visibility */
    transition: all 0.3s ease;
    display: flex; /* Center the text */
    align-items: center;
    justify-content: center;
}

.spin:hover {
    background: #cc3333; /* Darker red on hover */
    transform: scale(1.1); /* Slightly larger scale on hover */
}

.spin.active {
    display: flex; /* Show as flex when bet is placed to center text */
}





.chipDeck {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 10px;
    background: #333;
    border-radius: 10px;
}

.cdChip {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

.cdChip.red { background: #ff4444; }
.cdChip.blue { background: #4444ff; }
.cdChip.orange { background: #ffaa44; }
.cdChip.purple { background: #aa00aa; }
.cdChip.green { background: #00aa00; }
.cdChip.gold { background: #ffd700; }
.cdChip.clearBet { background: #666; }
.cdChipActive { border: 3px solid #fff; }

#betting_board {
    width: 100%;
    max-width: 1200px;
    background: #006600;
    border-radius: 10px;
    padding: 10px;
    margin-top: 20%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.number_board {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 4px;
    margin: 5px 0;
    position: relative;
}

.number_block, .tt1_block, .oe_block {
    width: 60px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    background: #333;
}

.number_0 {
    width: 60px;
    height: 180px;
    background: #006600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    position: relative;
}

.redNum { background: #ff4444; }
.blackNum { background: #333; }
.greenNum { background: #006600; } /* Added for zero block */

.betCircle {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.wheel {
    width: 600px;
    height: 600px;
    position: relative;
    margin-top: 50px;
    border: 8px solid #966F33; /* From your inline style */
    border-radius: 50%;
}

.outerRim, .pocketsRim, .pockets, .cone, .turret, .turretHandle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 65%;
}

.outerRim { 
    background: #333; 
}

.pocketsRim { 
    background: gold; /* or #FFD700 for a specific golden shade */
    transform: scale(0.85); /* Slightly smaller scale to make it appear thinner relative to outerRim */
    border: 2px solid #DAA520; /* Thinner border (changed from 0px to 2px for visibility) */
}
.pockets { 
    background-image: url('image2222.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(0.85);
}
.cone { background: #444; transform: scale(0.3); }
.turret { background: #666; transform: scale(0.15); }
.turretHandle { transform: scale(0.1); }

.ballTrack {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 30%;
}

.ball {
    width: 20px;
    height: 20px;
    background: green;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.sect {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: center;
    background-color: transparent; /* From your inline style */
}

.sect span {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

/* Updated spin button class to match your JavaScript */


#notification {
    position: fixed;
    top: 20px;
    background: #333;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: opacity 1s;
}

.rewardsSection {
    width: 100%;
    max-width: 1200px;
    background: #333;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.rewardItem {
    background: #444;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    width: 200px;
}

.rewardItem button {
    margin: 5px;
    padding: 8px 15px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.rewardItem button:disabled {
    background: #666;
    cursor: not-allowed;
}





@keyframes flyToBank {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(200px, -200px) scale(0.5); opacity: 0; }
}

/* Modal styles from your inline style */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
}

.modal-content {
    background: linear-gradient(135deg, #1e1e1e, #333);
    border-radius: 15px;
    padding: 40px;
    width: 600px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-content p {
    font-size: 20px;
    color: #ddd;
    margin: 10px 0;
}

.modal-content button {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 18px;
    background-color: #966F33;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #7a5a27;
}

.win-modal h2 {
    color: #28a745;
}

.lose-modal h2 {
    color: #dc3545;
}

@media (max-width: 768px) {
    #betting_board, .rewardsSection { max-width: 100%; }
    .wheel { width: 400px; height: 400px; }
    .number_block, .tt1_block, .oe_block { width: 40px; height: 40px; font-size: 14px; }
    .number_0 { width: 40px; height: 120px; }
    .rewardItem { width: 150px; }
    .topBar { flex-direction: column; gap: 10px; }
    .modal-content { padding: 20px; }
    .modal-content h2 { font-size: 28px; }
    .modal-content p { font-size: 16px; }
}

/* Small devices (phones, portrait tablets under 600px) */
@media (max-width: 600px) {
    body {
        padding: 10px;
        font-size: 14px;
    }

    .wheel {
        width: 300px;
        height: 300px;
    }

    .number_block, .tt1_block, .oe_block {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .number_0 {
        width: 30px;
        height: 100px;
    }

    .rewardItem {
        width: 120px;
        font-size: 12px;
    }

    .modal-content {
        padding: 15px;
        width: 90%;
    }

    .modal-content h2 {
        font-size: 22px;
    }

    .modal-content p {
        font-size: 14px;
    }

    .spin {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
}

/* Medium devices (tablets and small laptops) */
@media (min-width: 601px) and (max-width: 1024px) {
    .wheel {
        width: 450px;
        height: 450px;
    }

    .number_block, .tt1_block, .oe_block {
        width: 50px;
        height: 45px;
        font-size: 16px;
    }

    .number_0 {
        width: 50px;
        height: 150px;
    }

    .rewardItem {
        width: 170px;
    }

    .modal-content h2 {
        font-size: 30px;
    }

    .modal-content p {
        font-size: 18px;
    }
}

/* Large screens (full HD - 1920x1080) */
@media (min-width: 1025px) and (max-width: 1920px) {
    body {
        font-size: 16px;
    }

    .wheel {
        width: 600px;
        height: 600px;
    }

    .modal-content {
        width: 600px;
    }
}

/* Extra large screens (2K, 4K monitors) */
@media (min-width: 1921px) {
    body {
        font-size: 18px;
        padding: 40px;
    }

    .wheel {
        width: 800px;
        height: 800px;
    }

    .number_block, .tt1_block, .oe_block {
        width: 80px;
        height: 70px;
        font-size: 20px;
    }

    .number_0 {
        width: 80px;
        height: 220px;
    }

    .rewardItem {
        width: 240px;
    }

    .modal-content {
        width: 800px;
        padding: 60px;
    }

    .modal-content h2 {
        font-size: 40px;
    }

    .modal-content p {
        font-size: 22px;
    }

    .spin {
        width: 60px;
        height: 60px;
        font-size: 16px;
    }
}
