﻿/* ===========================================
   HELP OVERLAY — clean and independent layout
   =========================================== */

.help-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,15,25,0.95);
    border-radius: 12px;
    color: #e5eefc;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    z-index: 200;
    opacity: 0;
    transform: scale(0);
    transform-origin: top right;
    pointer-events: none;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

    .help-overlay.active {
        opacity: 1;
        transform: scale(1);
        pointer-events: all;
    }

/* Close button */
.help-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    color: #7fff00;
    cursor: pointer;
    text-shadow: 0 0 6px #7fff00;
    z-index: 210;
}

/* -------------------------------------------
   Container
   ------------------------------------------- */
.help-content {
    margin-top: 40px;
    background: rgba(0,0,0,0.35);
    border: 1px solid #00ff80;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 1200px; /* wider */
    height: 64vh; /* taller — fills most of overlay */
    text-align: left;
    display: flex;
    flex-direction: column;
}

    .help-content h2 {
        color: #7fff00;
        text-shadow: 0 0 6px #7fff00;
        margin-bottom: 15px;
        text-align: center;
    }

/* -------------------------------------------
   Tabs layout
   ------------------------------------------- */
/* expand tabs inside */
.help-tabs {
    display: flex;
    flex: 1;
    border-top: 1px solid #00ff80;
    border-bottom: 1px solid #00ff80;
    margin-top: 10px;
    height: 85%;
}

.help-tab-list {
    flex: 0 0 250px; /* slightly wider sidebar */
    border-right: 1px solid #00ff80;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    /*margin-top: 10px;*/
    padding-top: 10px;
}

/* Tab buttons */
.help-tab {
    background: none;
    border: none;
    color: #e5eefc;
    text-align: left;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

    .help-tab:hover,
    .help-tab.active {
        background: rgba(0, 255, 128, 0.15);
        color: #7fff00;
    }

/* -------------------------------------------
   Panel area
   ------------------------------------------- */
.help-tab-content {
    flex: 1;
    padding-left: 25px;
    background: rgba(0,0,0,0.25);
    overflow-y: auto;
}

.help-panel {
    display: none;
}

    .help-panel.active {
        display: block;
    }

    .help-panel h3 {
        color: #7fff00;
        text-shadow: 0 0 6px #7fff00;
        margin-bottom: 10px;
    }

/* Force Help overlay buttons to ignore .wheel-container styling */
.help-overlay button.help-tab {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    margin: 0 !important;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
