/* =========================
   Music Jotter Help
   ========================= */

#mj-help-popup,
#mj-audio-popup {
    zoom: 0.9;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: none;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);

    z-index: 10000;
}


/* Main Help Window */

.mj-help-content {
    width: 620px;
    max-width: calc(100% - 40px);

    min-height: 300px;
    max-height: 75vh;

    box-sizing: border-box;
    padding: 18px 22px;

    display: flex;
    flex-direction: column;

    background: #1e1e1e;
    color: white;

    border-radius: 10px;

    transform: scale(0.95);
    transition: transform 0.15s ease;
}

#mj-help-popup[style*="flex"] .mj-help-content {
    transform: scale(1);
}


/* Header */

.mj-help-content h3 {
    flex: 0 0 auto;

    margin: 0 0 12px 0;

    font-size: 21px;
    font-weight: normal;
    text-align: center;
}


/* Scrollable Area */

.mj-help-scroll {
    flex: 1 1 auto;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 6px;
}


/* Shortcut Sections */

.key-shortcut-section {
    margin-bottom: 18px;
}

.key-shortcut-section + .key-shortcut-section {
    margin-top: 6px;
}

.key-shortcut-section:last-child {
    margin-bottom: 0;
}

.key-shortcut-title {
    margin: 10px 0 4px 0;
    padding: 5px 8px;

    font-size: 18px;
    font-weight: bold;

    background: #151515;
    border-left: 4px solid #666;
    border-bottom: 1px solid #333;
}


/* Shortcut Rows */

.key-shortcut-row {
    display: grid;
    grid-template-columns: 135px 1fr;
    column-gap: 12px;
    align-items: center;

    min-height: 30px;
    padding: 3px 7px;

    font-size: 12px;
    line-height: 1.25;
}

.key-shortcut-row:nth-child(odd) {
    background: #292929;
}

.key-shortcut-row > span:first-child {
    font-weight: bold;
    font-size:13px;
    margin-left:15px;
}


/* Keyboard Keys */

.key-shortcut-row kbd {
    display: inline-block;

    min-width: 21px;
    box-sizing: border-box;

    margin: 0 2px;
    padding: 2px 5px;

    text-align: center;
    font-family: monospace;
    font-size: 12px;
    line-height: 16px;

    color: #111;
    background: #e8e8e8;

    border: 1px solid #aaa;
    border-radius: 3px;
}

.key-shortcut-row i {
    margin: 0 6px;

    color: #777;
    font-style: normal;    
}


/* Close Button */

#mj-help-close {
    flex: 0 0 auto;
    align-self: center;

    margin-top: 14px;
    padding: 6px 14px;

    border: none;
    border-radius: 6px;

    background: #4CAF50;
    color: white;

    font-size: 14px;

    cursor: pointer;
}