/* The gift card's front, in its three looks (orange, wrapped, christmas): the printed card (gift-card.html), the gift page,
   the home page's gift row and the emails' pictures (scripts/giftpics.js). Drawn at 570 × 390 (the card's 190 × 130 mm at
   3 px a mm); whatever holds it scales it. Made by giftcard.js (FBGift.front), one layout for all three looks */
.gfront, .gfront * { box-sizing: border-box; }
.gfront { position: relative; width: 570px; height: 390px; overflow: hidden; border-radius: 20px; color: #fff; text-align: left; font-family: "Adventor", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.gfront b, .gfront small, .gfront i { display: block; position: relative; z-index: 1; font-style: normal; }
.gfront .gm { font-weight: 700; font-size: 26px; letter-spacing: -0.8px; } .gfront .gm span { color: #F08A24; }
.gfront .gg { font-weight: 700; font-size: 44px; letter-spacing: -1px; line-height: 1.05; overflow-wrap: normal; }
.gfront small { font-size: 19px; line-height: 1.25; }
.gfront i { position: absolute; font-size: 14px; line-height: 1.35; }
.gfront .gpad { position: absolute; background: #0A0E13; border-radius: 22px; padding: 11px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 18px 34px -12px rgba(0, 0, 0, 0.55); }
.gfront .gpad img { display: block; width: 100%; height: auto; border-radius: 4px; }
.gfront .bow { position: absolute; width: 130px; height: 87px; z-index: 3; -webkit-filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3)); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3)); }
.gfront .rv, .gfront .rh, .gfront .bow, .gfront .snow, .gfront .corner { display: none; }

/* orange: the iPad tilted in from the corner */
.gfront.orange { background: #F08A24; background: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.35), transparent 55%), linear-gradient(135deg, #FFAE52 0%, #F08A24 48%, #D8611C 100%); padding: 40px 0 0 46px; }
.orange .gm { text-shadow: 0 1px 2px rgba(120, 50, 0, 0.3); } .orange .gm span { color: #FFE7C7; }
.orange .gg { width: 220px; margin: 34px 0 10px; text-shadow: 0 2px 3px rgba(120, 50, 0, 0.3); }
.orange small { width: 230px; }
.orange i { left: 46px; bottom: 30px; width: 220px; color: rgba(255, 255, 255, 0.92); }
.orange .gpad { width: 380px; left: 300px; top: 150px; -webkit-transform: rotate(-8deg); transform: rotate(-8deg); }

/* wrapped: navy, the iPad tied up with ribbon and a bow */
.gfront.wrapped { background: #141F2B; background: linear-gradient(160deg, #141F2B, #2E4A66); text-align: center; }
.wrapped .gm { position: absolute; top: 26px; left: 0; right: 0; font-size: 22px; }
.wrapped .gpad { width: 300px; left: 135px; top: 82px; }
.wrapped .rv, .wrapped .rh { display: block; position: absolute; z-index: 2; box-shadow: 0 0 6px rgba(0, 0, 0, 0.3); }
.wrapped .rv { width: 26px; top: 82px; height: 236px; left: 272px; background: linear-gradient(90deg, #E9C9A0, #FFF6EA 45%, #E9C9A0); }
.wrapped .rh { height: 26px; left: 135px; width: 300px; top: 187px; background: linear-gradient(180deg, #E9C9A0, #FFF6EA 45%, #E9C9A0); }
.wrapped .bow { display: block; left: 220px; top: 140px; }
.wrapped .gg { position: absolute; left: 30px; right: 30px; bottom: 36px; font-size: 32px; white-space: nowrap; }
.wrapped small { position: absolute; left: 30px; right: 30px; bottom: 12px; color: #AECBE5; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrapped i { display: none; }

/* christmas: deep green, a little snow, a ribbon across the corner */
.gfront.christmas { background: #1E5A45; background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.12), transparent 50%), linear-gradient(150deg, #1E5A45, #0F3A2C); padding: 46px 0 0 40px; }
.christmas .snow { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 1.4px, transparent 1.6px), radial-gradient(circle, rgba(255, 255, 255, 0.35) 1px, transparent 1.2px); background-size: 46px 46px, 30px 30px; background-position: 0 0, 15px 20px; }
.christmas .gm span { color: #F4C66A; }
.christmas .gg { width: 186px; margin: 36px 0 10px; }
.christmas small { color: #CFE6DB; width: 186px; }
.christmas i { left: 40px; bottom: 32px; width: 180px; color: #CFE6DB; }
.christmas .gpad { width: 300px; right: 34px; top: 92px; }
.christmas .corner { display: block; position: absolute; right: 0; top: 0; width: 120px; height: 120px; overflow: hidden; z-index: 2; }
.christmas .corner span { position: absolute; width: 180px; right: -48px; top: 30px; -webkit-transform: rotate(45deg); transform: rotate(45deg); background: #C8352E; color: #fff; text-align: center; font-weight: 700; font-size: 12px; padding: 5px 0; letter-spacing: 0.5px; text-transform: uppercase; }
