/* style.css — Version 3.67 — Sept 16, 2025
   - Based on your v3.66
   - NEW: lock cousin headings/items to their inline positions in browse.html
*/

html, body {
    margin: 0;
    padding: 0;
    background-color: #0000AA;
    font-family: 'Courier New', monospace;
    color: cyan;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    font-size: 24px;
}

.canvas {
    width: 1040px;
    height: 768px;
    background-color: #0000AA;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; /* Disable all mouse interactions by default on canvas */
    visibility: hidden; /* Hide canvas until scaling is complete */
}

.text {
    color: cyan;
    font-size: 24px;
    white-space: pre;
    position: absolute;
    pointer-events: none; /* Disable mouse interactions on text by default */
    line-height: 32px; /* Ensure consistent grid alignment */
}

.box {
    position: absolute;
    border: 3px double #FFFFFF;
    pointer-events: none; /* Disable mouse interactions on boxes */
}

.bright-cyan { color: #00FFFF; }
.bright-yellow { color: #FFFF00; }
.white { color: #FFFFFF; }

.deceased-male   { color: #20B2AA; } /* Light sea green */
.living-male     { color: #00FFFF; } /* Bright cyan */
.deceased-female { color: #C040FF; } /* Darker purple */
.living-female   { color: #FF80FF; } /* Bright pinkish-purple */


/* Hover highlight for any clickable relative name */
.clickable-name {
  cursor: pointer;
}

.clickable-name.hover-highlight {
  background-color: #333333 !important;
  color: #FFFF00 !important;
}



#instruction {
    visibility: visible;
    pointer-events: none;
    height: 64px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

#promptLine {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1040px;
    text-align: center;
}

#instructionText,
#choiceIndicator { line-height: 32px; }

#choiceOptions {
    line-height: 32px;
    margin-left: 0 !important;
    white-space: nowrap;
    text-align: center;
}

#searchInput {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    touch-action: manipulation;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    color: #00FFFF;
    background-color: #0000AA;
    border: 1px solid #00FFFF;
    outline: none;
    padding: 2px;
    box-sizing: border-box;
    pointer-events: auto;
    line-height: 32px;
}

.choice-option {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 6px 12px;
    border-radius: 2px;
    transition: background-color 0.2s;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    color: #FFFF00;
    background-color: #0000AA;
    margin: 0 10px;
    display: inline-block;
    line-height: 32px;
    pointer-events: auto;
}

.choice-option:hover { background-color: #333333; color: #FFFFFF; }
.choice-option:active { background-color: #555555; color: #FFFFFF; }

/* Enhanced mobile keyboard and touch support */
@media (hover: none) and (pointer: coarse) {
    #searchInput {
        font-size: 24px !important;
        -webkit-user-select: text;
        user-select: text;
        height: 36px;
        padding: 4px;
    }
    .choice-option {
        padding: 8px 14px;
        font-size: 26px;
    }
}

#messageBoxOverlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    pointer-events: none;
}

#messageBox {
    background-color: #AA0000;
    border: 2px solid white;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    padding: 20px;
    text-align: center;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#messageBox button {
    background-color: #0000AA;
    color: white;
    border: 1px solid white;
    padding: 8px 15px;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    cursor: pointer;
    pointer-events: auto;
}

/* Enable mouse interactions only for clickable names */
.clickable-name { pointer-events: auto; cursor: pointer; }

/* === NEW: Interactive prompts used by edit-names.html === */
#searchPrompt,
#editPrompt,
#confirmAbandon,
#confirmDelete,
#relTypingPrompt,
#relReviewPrompt { pointer-events: auto; }

#searchPrompt .choice,
#editPrompt .editChoice,
#relReviewPrompt .relChoice,
#confirmDelete .confirmChoice,
#confirmAbandon .confirmChoice {
    pointer-events: auto;
    cursor: pointer;
    color: #FFFF00;
}

#searchPrompt .choice:hover,
#editPrompt .editChoice:hover,
#relReviewPrompt .relChoice:hover,
#confirmDelete .confirmChoice:hover,
#confirmAbandon .confirmChoice:hover { text-decoration: underline; }

/* === LOCK cousins to inline positions defined in browse.html === */
#pcousinsTitle, #pcousinsSubTitle, [id^="pcousin"],
#mcousinsTitle, #mcousinsSubTitle, [id^="mcousin"] {
    transform: none !important;     /* prevent any translate() offsets */
    left: auto;                      /* don't override inline left */
    right: auto;                     /* ensure no right-based alignment sneaks in */
}
/* style.css — Version 3.67 — Sept 16, 2025
   - Based on your v3.66
   - NEW: lock cousin headings/items to their inline positions in browse.html
*/

