/* An elder race allied with an empire (TGW), on the empire's card under the empire's units, shown like them
   (SetupTable.php addToTable()), in the empire's colour (inline). Made by AlliedEldersLib.php (ae_block(),
   ae_phases()) for SetupTable.php. scripts/gifts.js puts the race's gift tile on its heroquest box or under it
   (.ae-rest). */

/* In the empire's colour, as its own units (mystyle.css makes every div white). */
.ae-ally,
.ae-ally div {
    color: inherit;
}

.ae-ally {
    padding-top: 8px;          /* the line addToTable() leaves above each unit */
}

.ae-kicker {
    font-size: 6.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 2px;
}

/* A unit: the picture in the middle, then its name, kind, cost and combat, its gifts and its ability. */
.ae-unit {
    font-size: 8px;
    line-height: 1;
    text-align: center;
}

.ae-unit + .ae-unit {
    margin-top: 8px;
}

.ae-pic {
    display: block;
    margin: 0 auto;
}

.ae-text {
    padding-top: 8px;
}

/* The heroquest, under the abilities: a box like the empire's own (mystyle.css .requirement: the card's width,
   37 px high), and under it the room where the gift's tile rests until it's earned; once the tile lies on the box,
   the room goes. */
.ae-hq {
    margin-top: 6px;
}

.ae-ally .ae-req {
    cursor: default;
}

.ae-rest {
    height: 40px;             /* a tile (37 px) and 3 px above it */
}

.ae-hq.ae-earned .ae-rest {
    display: none;
}

/* The allied races' Power Phase and Council Phase abilities in the empire's "Additional Faction Data". */
.ae-phase i {
    opacity: 0.75;
}
