﻿/* CSS support for Image Album application code, for use with family trees as generated by the SVG Family-Tree Generator (SVG-FTG) */
/* Author:	A.C.Proctor	2-Nov-2021				*/
/* Modified:	A.C.Proctor	28-Feb-2025				*/
/*		Change Position from Absolute to Fixed on container	*/
/* Modified:	A.C.Proctor	4-Apr-2025				*/
/*		Allow customisable colours				*/

#ia_hdr {			/* The title div for the search box */
    font-weight: bold;
    text-align: center;
    background-color: #b1dae7;		/* Fallback */
    background-color: var(--dlg_title_b, #b1dae7);
    color: black;			/* Fallback */
    color: var(--dlg_title_f, black);
    cursor: move;
    touch-action: none;
    min-height: 24px;
    line-height: 24px;
    margin-bottom: 7px;
}

#ia_container {			/* Container div for all of search box */
    position: fixed;
    z-index: 60;
    background-color: #f1f1f1;	/* Fallback */
    background-color: var(--dlg_back, #f1f1f1);
    border: thin solid darkgray;
    border-radius: 10px;
    text-align: left;
    padding: 7px;
}

.ia-hide {
    display: none;
}

.ia-action {			/* Container for radio buttons */
    margin-bottom: 10px;
    margin-left: 20px;
}

button.ia-but {			/* Buttons in the search box */
    border-style: solid;
    border-radius: 10px;
    border-color: darkgrey;
    width: 70px;
    height: 25px;
    background-color: violet;		/* Fallback */
    background-color: var(--dlg_but_b, violet);
    color: black;			/* Fallback */
    color: var(--dlg_but_f, black);
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    margin-left: 10px;
    padding: 0;
    cursor: pointer;
}

.ia-select {
    max-width: 300px;
    margin-bottom: 10px;
    background-color: inherit;
    list-style: none;
}

.ia-select option {
    line-height: 1;
}

/* Align labels with the select elements. Vertical-align is necessary for IE 11 */
.ia-tr { display: table-row;  }
.ia-tc { display: table-cell; vertical-align: top; }

/* NB: These styles are dynamically applied and so we must enforce their precedence */

.ia-person.f {				/* Highlighting Female person-box */
    stroke: red !important;
    stroke-width: 3.0 !important;
}

.ia-person.m {				/* Highlighting Male person-box */
    stroke: blue !important;
    stroke-width: 3.0 !important;
}

.ia-person.u, .ia-person.x {		/* Highlighting Unknown/Other person-box */
    stroke: dimgray !important;
    stroke-width: 3.0 !important;
}