/* Game Play Page Styles */

.game-canvas-container {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-canvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.quick-bet-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.multiplier-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.table-dark {
    --bs-table-bg: var(--card-background);
    --bs-table-border-color: var(--border-color);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .multiplier-display {
        font-size: 1.8rem;
    }
    
    .game-controls {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .quick-bet-buttons {
        justify-content: center;
        gap: 0.3rem;
    }
    
    .quick-bet-buttons .btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
    
    .control-group {
        margin-bottom: 1rem;
    }
    
    .control-group label {
        font-size: 0.9rem;
    }
    
    .form-control {
        font-size: 1rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .card-body {
        padding: 0.5rem;
    }
    
    .game-canvas-container {
        border-radius: 0 0 10px 10px;
    }
    
    .balance-info {
        padding: 0.8rem;
    }
    
    .balance-amount {
        font-size: 1.2rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    h5 {
        font-size: 1.1rem;
    }
    
    /* Hide footer on tablets and mobile for more screen space */
    .footer {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .multiplier-display {
        font-size: 1.5rem;
    }
    
    .game-canvas {
        height: 250px;
    }
    
    .quick-bet-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-bet-buttons .btn {
        margin-bottom: 0.3rem;
        width: 100%;
    }
    
    .control-group {
        margin-bottom: 0.8rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.8rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .input-group {
        margin-bottom: 0.5rem;
    }
    
    .balance-info {
        padding: 0.5rem;
        text-align: center;
    }
    
    .balance-amount {
        font-size: 1.1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.4rem;
    }
    
    h5 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        font-size: 1rem;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .quick-bet-buttons .btn {
        min-height: 40px;
    }
}

/* Additional mobile optimizations */
.game-controls {
    background: var(--card-background);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.balance-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 15px;
    color: white;
    margin-bottom: 1rem;
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.balance-amount {
    font-weight: bold;
    font-size: 1.4rem;
}

/* Prevent horizontal scroll on mobile */
.container-fluid {
    overflow-x: hidden;
}

/* Ensure proper page layout and prevent footer overlap */
main {
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.container {
    margin-bottom: 2rem;
}

/* Prevent footer from overlapping content */
.game-canvas-container {
    margin-bottom: 2rem;
}

.game-controls {
    margin-bottom: 3rem;
}

/* Improve button spacing on mobile */
@media (max-width: 576px) {
    .btn + .btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .input-group .btn {
        margin-top: 0;
    }
    
    /* Stack game history on mobile */
    .table-responsive {
        margin-top: 1rem;
    }
    
    /* Improve canvas touch interaction */
    .game-canvas {
        touch-action: none;
        user-select: none;
    }
    
    /* Hide footer on mobile for more screen space */
    .footer {
        display: none !important;
    }
}
