/* === Tagline below header === */

p.tagline {
    text-align: center;
    margin: 0.5cm 0;
}

/* === Game icon images: natural size, centered === */

/* card-content is a flex column, so the centering is on the image, which is the flex item. */

#cards .card .card-content img.natural {
    align-self: center;
}

/* === Game cards on index.html === */

/* Scoped to this page's card list. The pages of tim/blog/ also load this sheet, and
   their post teasers use the same #cards > .card > h2 structure with left-aligned
   headings. */

#cards.game-cards .card .card-content h2 {
    text-align: center;
}

/* === Push hint text to bottom of card === */

#cards .card .card-content {
    display: flex;
    flex-direction: column;
}

#cards .card .card-content p.call-to-action {
    margin-top: auto;
    padding-top: 0.5cm;
    text-align: center;
    font-size: 0.9em;
    color: #666666;
}

/* === Blog post teaser paragraph === */

article p.teaser {
    font-style: italic;
    font-size: 0.9em;
    color: #888888;
}

/* === Blog index: date styling === */

article p.date {
    font-size: 0.9em;
    font-style: italic;
    color: #888888;
}

#cards .card .card-content p.date {
    font-size: 0.9em;
    font-style: italic;
    color: #888888;
    margin-top: -0.4cm;
}

/* === App store badge lists === */

ul.app-stores {
    list-style: none;
    padding: 0;
    margin: 0.25cm 0 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

ul.app-stores li {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

span.store-name {
    font-size: 0.65em;
    color: #666666;
    margin-top: 2px;
    text-align: center;
}

ul.app-stores img {
    width: 48px;
    height: 48px;
    display: block;
}

/* === download.html === */

#download-page-title {
    text-align: center;
    max-width: 9cm;
    margin-left: auto;
    margin-right: auto;
}

#download-store-links {
    max-width: 10cm;
    margin: 0.75cm auto;
}

p.platform-note {
    margin-top: 0.75cm;
    margin-bottom: 0;
    font-size: 0.9em;
    color: #666666;
}

/* === <game>.html === */

#game-title {
    text-align: center;
    margin-bottom: 0.5cm;
}

#game-title img {
    max-width: 128px;
    margin: 0 auto 0.15cm;
}

#game-title h2 {
    margin-bottom: 0.1cm;
}

#game-title p.tagline {
    margin: 0 auto;
    max-width: 9cm;
    font-size: 0.9em;
    color: #666666;
}

#game-stores {
    max-width: 10cm;
    margin: 0 auto 0.75cm;
}

/* An unreleased game shows a "Coming Soon!" band across the corner of its icon, on its card and on its page, where
   the card has no "Get It" link and the page no store badges, so neither reads as broken. It names no store and no
   date, because neither is settled until the game ships. The band takes the red and white of the "Sale!" corner in
   the games' own store. */

.coming-soon {
    position: relative;
}

/* A square the width of the icon, clipped to its circle, so the band ends on the icon's edge. It is a layer of its
   own rather than a clip on the icon's link, because the link is taller than the icon by the icon's margin and line
   gap, and taking those away moves the card's title out of line with the other cards. The band's position is in
   percent of this square, so one rule fits the card's icon and the page's smaller one. */

.coming-soon > span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
}

.coming-soon > span > span {
    position: absolute;
    top: 20%;
    left: -33%;
    width: 127%;
    transform: rotate(-45deg);
    background-color: #cc0000;
    color: #ffffff;
    font-size: 0.85em;
    line-height: 1.9;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

#game-title div.coming-soon {
    width: fit-content;
    margin: 0 auto;
}

#game-title div.coming-soon > span > span {
    font-size: 0.75em;
}

p.other-games {
    text-align: center;
    margin-top: 0.75cm;
}

/* === Avatar example images in blog posts === */

ul.examples {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25cm;
    padding: 0;
    margin: 0 0 0.75cm 0;
}

ul.examples li {
    margin: 0;
    padding: 0;
}
