/* Phone frames and a fan of three, drawn only in CSS. Copy this file into any OpenApp.
   Needs no script and no images besides your screenshots.

   <div class="pf-fan">
     <div class="pf-stage">
       <figure class="pf pf-left"  style="--pf-bar:#f3f4f6"><div class="pf-screen"><div class="pf-status" aria-hidden="true"><b>9:41</b><i class="pf-island"></i><span class="pf-sys"><i class="pf-signal"></i><i class="pf-wifi"></i><i class="pf-batt"></i></span></div><img src="1.webp" width="390" height="760" alt="..."></div></figure>
       <figure class="pf pf-mid">...</figure>
       <figure class="pf pf-right">...</figure>
     </div>
   </div>

   Size: set --pf-w (the front phone's width) on .pf-stage. The default is 300px, or less when the
   box around the fan is narrow. The three phones always stay inside that box. The screenshots should be about 390 x 760 with no status bar of
   their own; --pf-bar is the colour of the strip drawn above each one (match the top of the image). */

.pf-fan { container-type: inline-size; width: 100%; }
.pf-stage { --pf-w: 260px; --pf-w: min(300px, 48cqw); position: relative; width: 100%; height: calc(var(--pf-w) * 2.04); }

/* One phone. Everything inside is sized in em, and the em follows the phone's own width. */
.pf { --w: var(--pf-w); --pf-bar: #f3f4f6; position: absolute; top: 0; left: 50%; width: var(--w); margin: 0; padding: .42em; box-sizing: border-box; font-size: calc(var(--w) / 20); line-height: 1;
  background: #14161b; border-radius: 2.6em;
  box-shadow: inset 0 0 0 .08em #3b3f48, inset 0 0 0 .2em #0b0c0f, 0 .1em .25em #0b0d121f, 0 1.2em 2em -.9em #1b23422e, 0 2.6em 3.6em -1.8em #1b234233; }
.pf::before, .pf::after { content: ""; position: absolute; width: .18em; border-radius: .1em; background: #14161b; }
.pf::before { left: -.14em; top: 8em; height: 3.2em; box-shadow: 0 4.6em #14161b; }  /* volume keys */
.pf::after { right: -.14em; top: 10em; height: 5em; }                                  /* power key */
.pf-screen { position: relative; overflow: hidden; border-radius: 2.2em; background: var(--pf-bar); }
.pf-screen img { display: block; width: 100%; height: auto; }

/* Status bar: 9:41, the island, signal, Wi-Fi and battery. */
.pf-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 2.6em; padding: .3em 1.6em .2em 1.9em; background: var(--pf-bar); color: #0b0b0c; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.pf-status b { font-size: .85em; font-weight: 650; letter-spacing: -.01em; }
.pf-island { position: absolute; left: 50%; top: .55em; width: 4.6em; height: 1.3em; margin-left: -2.3em; border-radius: 1em; background: #0b0b0c; }
.pf-sys { display: flex; align-items: center; gap: .32em; }
.pf-sys i { display: block; background: currentColor; }
.pf-signal { width: 1.05em; height: .68em; -webkit-mask: var(--pf-signal) center / contain no-repeat; mask: var(--pf-signal) center / contain no-repeat; }
.pf-wifi { width: 1em; height: .72em; -webkit-mask: var(--pf-wifi) center / contain no-repeat; mask: var(--pf-wifi) center / contain no-repeat; }
.pf-batt { position: relative; width: 1.55em; height: .72em; border: .07em solid #0b0b0c66; border-radius: .22em; background: transparent !important; }
.pf-batt::before { content: ""; position: absolute; inset: .09em; border-radius: .1em; background: #0b0b0c; }
.pf-batt::after { content: ""; position: absolute; right: -.2em; top: .2em; width: .1em; height: .24em; border-radius: 0 .1em .1em 0; background: #0b0b0c66; }
.pf-stage { --pf-signal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 11'%3E%3Crect x='0' y='7' width='3' height='4' rx='.8'/%3E%3Crect x='4.6' y='5' width='3' height='6' rx='.8'/%3E%3Crect x='9.2' y='2.6' width='3' height='8.4' rx='.8'/%3E%3Crect x='13.8' y='0' width='3' height='11' rx='.8'/%3E%3C/svg%3E");
  --pf-wifi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M8 2.2c2.4 0 4.6.9 6.3 2.5l1-1.1C13.300 1.700 10.800.6 8 .6S2.700 1.700.7 3.600l1 1.100C3.400 3.100 5.600 2.200 8 2.200zm0 3.600c1.400 0 2.700.5 3.700 1.400l1-1.100C11.400 4.900 9.800 4.200 8 4.200S4.600 4.900 3.300 6.100l1 1.100C5.300 6.300 6.600 5.800 8 5.800zm0 3.500c.7 0 1.300.3 1.800.7L8 12 6.200 10c.5-.4 1.100-.7 1.800-.7z'/%3E%3C/svg%3E"); }

/* The fan: the middle phone in front, the other two behind it and a little lower. */
.pf-mid { z-index: 3; transform: translateX(-50%); }
.pf-left, .pf-right { --w: calc(var(--pf-w) * .8); z-index: 1; top: calc(var(--pf-w) * .15); transform-origin: 50% 100%; }
.pf-left { left: calc(50% - var(--pf-w) * .46); transform: translateX(-50%) rotate(-4deg); }
.pf-right { left: calc(50% + var(--pf-w) * .46); transform: translateX(-50%) rotate(4deg); }
.pf-left::before, .pf-left::after, .pf-right::before, .pf-right::after { display: none; }

/* On a phone-wide box the side phones only peek out from behind the front one. */
@container (max-width: 420px) {
  .pf-stage { --pf-w: min(260px, 76cqw); }
  .pf-left, .pf-right { --w: calc(var(--pf-w) * .74); top: calc(var(--pf-w) * .12); }
  .pf-left { left: calc(50% - var(--pf-w) * .26); transform: translateX(-50%) rotate(-3deg); }
  .pf-right { left: calc(50% + var(--pf-w) * .26); transform: translateX(-50%) rotate(3deg); }
}
