/* Help Mode Highlighting */
.help-mode-active .bet-area {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-mode-active .bet-area:not(.help-highlighted) {
    opacity: 0.4;
    filter: grayscale(50%);
}

.help-mode-active .bet-area.help-highlighted {
    opacity: 1 !important;
    border: 3px solid #ffc107 !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.8), inset 0 0 10px rgba(255, 193, 7, 0.3) !important;
    z-index: 1000;
    background-color: rgba(255, 193, 7, 0.15) !important;
    animation: helpPulse 2s ease-in-out infinite;
}

/* Make box number areas (Place, Buy, Lay) more prominent in help mode */
/* Override dimming for the entire place-bet-box structure */
.help-mode-active .place-bet-box {
    opacity: 1 !important;
    filter: none !important;
}

.help-mode-active .place-bet-box.help-highlighted {
    border: 4px solid #ffc107 !important;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.9), inset 0 0 15px rgba(255, 193, 7, 0.4) !important;
    background-color: rgba(255, 193, 7, 0.2) !important;
    font-weight: bold !important;
    opacity: 1 !important;
    filter: none !important;
    animation: helpPulseBox 2s ease-in-out infinite;
}

/* Ensure all child bet areas in place-bet-box are fully visible */
.help-mode-active .place-bet-box .bet-area {
    opacity: 1 !important;
    filter: none !important;
}

.help-mode-active .place-bet-box .bet-area.help-highlighted {
    border: 3px solid #ffc107 !important;
    font-weight: bold !important;
    background-color: rgba(255, 193, 7, 0.25) !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Make box indicators more visible in help mode */
.help-mode-active .place-bet-box.help-highlighted .box-indicator {
    font-weight: bold !important;
    color: #fff !important;
    opacity: 1 !important;
    font-size: 0.75em !important;
}

.help-mode-active .place-bet-box.help-highlighted .box-number-text {
    font-weight: bold !important;
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

@keyframes helpPulse {
    0%, 100% {
        border-color: #ffc107;
        border-width: 3px;
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.5), inset 0 0 6px rgba(255, 193, 7, 0.15);
        background-color: rgba(255, 193, 7, 0.1);
    }
    50% {
        border-color: #fff700;
        border-width: 6px;
        box-shadow: 0 0 30px rgba(255, 247, 0, 1), inset 0 0 20px rgba(255, 247, 0, 0.6);
        background-color: rgba(255, 247, 0, 0.35);
    }
}

@keyframes helpPulseBox {
    0%, 100% {
        border-color: #ffc107;
        border-width: 4px;
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.6), inset 0 0 10px rgba(255, 193, 7, 0.25);
        background-color: rgba(255, 193, 7, 0.15);
    }
    50% {
        border-color: #fff700;
        border-width: 7px;
        box-shadow: 0 0 35px rgba(255, 247, 0, 1), inset 0 0 25px rgba(255, 247, 0, 0.7);
        background-color: rgba(255, 247, 0, 0.4);
    }
}

/* Help Modal Styling */
#helpModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.bet-info-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.bet-info-section h6 {
    color: #ffc107;
    margin-bottom: 15px;
    font-weight: bold;
}

.bet-info-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.bet-info-section strong {
    color: #90EE90;
}

.bet-info-section .bet-detail-row {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bet-info-section .bet-detail-row:last-child {
    border-bottom: none;
}

.bet-info-section .bet-detail-label {
    font-weight: bold;
    color: #ffc107;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.bet-info-section .bet-detail-value {
    color: #fff;
    line-height: 1.5;
    padding-left: 12px;
}

/* Mobile-specific styling for better readability */
@media (max-width: 768px) {
    .bet-info-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .bet-info-section h6 {
        font-size: 1.1em;
        margin-bottom: 12px;
    }
    
    .bet-info-section p {
        font-size: 0.95em;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .bet-info-section .bet-detail-row {
        padding: 10px 0;
        margin-bottom: 4px;
    }
    
    .bet-info-section .bet-detail-label {
        font-size: 0.9em;
        margin-bottom: 8px;
    }
    
    .bet-info-section .bet-detail-value {
        font-size: 0.95em;
        line-height: 1.6;
        padding-left: 8px;
    }
}

