/*
 * css/theme-sensyme2.css — second optional theme for sensyme.com: Tom's
 * background 2 (img/bg-sensyme2.webp, 2481 × 3508 px, about 78 kB: blue,
 * violet and crimson circles, the sensyme symbol with a mosaic in the middle).
 * Copy of css/theme-sensyme.css, only the picture differs.
 *
 * Loaded on top of default.css when the file css/theme contains the word
 * after "theme-" in this file's name (index.php):
 *   on:  echo sensyme2 > css/theme
 *   off: rm css/theme
 *
 * Panels are 72 % opaque, messages 55 % (their time stamp and icons are
 * lighter); text keeps a contrast of at least 4.5:1 also over the light
 * part of the picture. Browsers without backdrop-filter show the same
 * colours without the blur.
 */
:root {
    --glass-panel: rgba(19, 17, 28, 0.72);
    --glass-panel-2: rgba(37, 34, 53, 0.70);
    --glass-own: rgba(18, 62, 68, 0.62);      /* own message: turquoise */
    --glass-other: rgba(24, 26, 42, 0.70);    /* incoming message: dark navy */
    --glass-card: rgba(27, 30, 41, 0.55);     /* archive tiles */
    --glass-unread: rgba(85, 12, 24, 0.70);   /* dark red */
    --unread-text: #ff9aa6;                   /* separator label, lighter over the photo */
    --glass-line: rgba(255, 255, 255, 0.10);
}
body {
    background: #13111c;
}
/* Fixed photo behind everything (a pseudo-element, because
   background-attachment: fixed doesn't work on iOS). The gradient on top
   only slightly calms the glows; the picture itself is dark. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(10, 8, 16, 0.10), rgba(10, 8, 16, 0.25)),
        #13111c url("../img/bg-sensyme2.webp") center / cover no-repeat;
}
.brand,
.compose,
.intbl a.submit,
.intbl input[type="submit"],
.attach-label,
.m,
.arch-item,
.input_txt,
#h, #i, #s, #r,
.mar_top_100,
.lightbox-close,
.lightbox-overlay a.lightbox-download,
#top {
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
}
.stick,
.top {
    background: transparent;   /* only the buttons and the form are translucent */
}
textarea::placeholder,
.input_txt::placeholder {
    color: #9e9ca8;
}
.intbl a.submit,
.intbl input[type="submit"] {
    background-color: var(--glass-panel);
    box-shadow: inset 0 0 0 1px var(--glass-line);
}
.intbl a.submit:hover,
.intbl input[type="submit"]:hover {
    background-color: var(--glass-panel-2);
}
.compose,
.mar_top_100,
#top,
.lightbox-close,
.lightbox-overlay a.lightbox-download {
    background-color: var(--glass-panel);
    box-shadow: inset 0 0 0 1px var(--glass-line);
}
.attach-label {
    background-color: var(--glass-panel-2);
}
.clock, .now {
    background-color: rgba(10, 6, 16, 0.70);
}
.m {
    background: var(--glass-other);
    box-shadow: inset 0 0 0 1px var(--glass-line);
}
.m::after {
    border-top-color: var(--glass-other);
}
.o,
.x .o {                      /* .x .o too: default.css sets text-only own messages with it */
    background: var(--glass-own);
}
.o::after {
    border-top-color: var(--glass-own);
}
.m0 {
    background: var(--glass-unread);
    box-shadow: inset 0 0 0 1px var(--unread-line);
}
.m0::after {
    border-top-color: var(--glass-unread);
}
.arch-item {
    background: var(--glass-card);
    box-shadow: inset 0 0 0 1px var(--glass-line);
}
.input_txt {
    background: var(--glass-panel);
}
#h, #s {
    background: var(--glass-panel);
}
.from {
    background-color: rgba(12, 18, 23, 0.75);
}
#a, .arch-count, .t, .hdr-info, .mc.f::before, .secure-note {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
/* Messages are more transparent than the panels, so their time stamp and
   E / C / X icons are lighter to stay readable over bright parts. */
.m .t {
    color: #8f979c;          /* date */
}
.m .t .tm {
    color: #a9b0b4;          /* time, a step brighter */
}
.m .e,
.m .c,
.m .d {
    filter: brightness(1.35);
}
.fake-strip,
.fake {
    background: #13111c;
}
@media (min-width: 900px) {
    .brand {
        background: var(--glass-panel);
        box-shadow: inset 0 0 0 1px var(--glass-line);
    }
}
@media (max-width: 899px) {
    /* the logo row on the phone sits directly on the photo */
    .brand {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}
