:root{font-family:Arial,'Noto Sans Hebrew',sans-serif;color:#15294c;background:#fff9ed}*{box-sizing:border-box}body{margin:0}header{background:#1754bd;color:white;display:flex;justify-content:space-between;align-items:center;padding:12px 4%;gap:12px;flex-wrap:wrap}nav{display:flex;gap:6px;flex-wrap:wrap}button{font:inherit;cursor:pointer;background:white;color:#15468e;border:2px solid #1754bd;border-radius:14px;padding:10px 16px;font-weight:bold}header button{border-color:#fff8;background:#ffffff1c;color:white}.primary{background:#ffce25;color:#15305b;border-color:#f6ad00}button:hover{filter:brightness(.94)}main{max-width:1100px;margin:auto;padding:20px 16px 70px}.view{display:none}.view.active{display:block}.hero{display:grid;grid-template-columns:minmax(220px,380px) 1fr;gap:40px;align-items:center}.hero img{width:100%;border-radius:14px;box-shadow:0 15px 35px #233b6540}.hero h1{font-size:clamp(30px,5vw,58px);color:#14499c}.hero p{font-size:20px;line-height:1.7}.hero button{margin:8px 0 8px 8px}form{max-width:740px;margin:auto;background:white;padding:24px;border-radius:22px;box-shadow:0 8px 35px #1c42821b}form>label{display:block;font-weight:bold;margin:0 0 17px}input:not([type=color]):not([type=range]),textarea{width:100%;padding:12px;margin-top:7px;font:inherit;border:2px solid #d4e2f4;border-radius:10px}textarea{resize:vertical}.draw-header,.tools{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:12px 0}#drawing{width:100%;height:auto;background:white;border:3px dashed #79a7e8;border-radius:12px;touch-action:none;display:block;margin:8px 0 22px}.note{color:#586b87;font-size:14px}#bookArea{display:flex;justify-content:center;min-height:500px;align-items:center;overflow:hidden}#book{direction:ltr}.page{background:#fff8e8;border:1px solid #eadcc1;overflow:hidden;padding:18px;direction:rtl;box-shadow:inset 0 0 30px #c6b88c18}.page-cover{padding:0;background:#1754bd}.page-cover img{width:100%;height:100%;object-fit:cover}.page-inner{height:100%;display:flex;flex-direction:column;gap:10px;overflow:hidden}.page h2{font-size:23px;margin:0;background:#ffdb54;border-radius:14px;padding:12px}.page .item{border-radius:12px;background:#e5f1ff;padding:10px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.page .item:nth-child(even){background:#fff0b8}.page .item b{display:block;color:#174a9b;margin-bottom:4px}.page .guest-photo{width:100%;max-height:170px;object-fit:contain;border:7px solid white;box-shadow:0 3px 10px #0002}.page .guest-drawing{max-height:135px;max-width:100%;object-fit:contain}.book-controls{display:flex;justify-content:center;gap:15px;align-items:center;flex-wrap:wrap;margin:12px}.page-placeholder{display:flex;align-items:center;justify-content:center;height:100%;text-align:center;font-size:20px}footer{text-align:center;background:#1754bd;color:white;padding:16px}@media(max-width:680px){.hero{grid-template-columns:1fr}.hero img{max-width:310px;margin:auto}.hero>div{text-align:center}header{justify-content:center}form{padding:14px}#bookArea{min-height:440px}.page{padding:12px}.page .item{font-size:12px;padding:7px}.page h2{font-size:18px}.page .guest-photo{max-height:115px}.page .guest-drawing{max-height:90px}}

#book.book-fallback{display:flex;flex-direction:column;align-items:center;gap:18px;width:100%;direction:rtl;padding:16px 0}
#book.book-fallback .page{display:block;position:relative!important;transform:none!important;width:min(390px,95%)!important;height:auto!important;min-height:480px;flex-shrink:0;border-radius:12px;box-shadow:0 6px 18px #0002}
#book.book-fallback .page-cover{min-height:0;aspect-ratio:390/554}
#book.book-fallback .page-cover img{display:block;height:auto;max-height:100%;object-fit:contain}
#book.book-fallback .page-inner{height:auto;overflow:visible}
#bookArea:has(.book-fallback){overflow:visible}

/* Festive scrapbook wish pages */
.wish-page{padding:11px;background:#fff1cc;border:5px solid #f5c64b;position:relative}
.wish-page .scrapbook{position:relative;gap:7px;padding:14px 12px 12px;height:100%;overflow:hidden;border:2px dashed #7da7f4;border-radius:13px;background:radial-gradient(circle at 13% 10%,#ffb7d6 0 7px,transparent 8px),radial-gradient(circle at 88% 23%,#a5e6ee 0 6px,transparent 7px),repeating-linear-gradient(0deg,#fffaf1 0px,#fffaf1 28px,#f7e8d6 29px,#fffaf1 30px);box-shadow:inset 0 0 0 5px #ffffffad}
.scrap-confetti{text-align:center;color:#e95497;font-size:17px;letter-spacing:6px;white-space:nowrap;overflow:hidden;line-height:1.1}
.scrap-heading{text-align:center;background:linear-gradient(120deg,#ffe159,#ffadca 55%,#a8e9fc);border:2px solid #183f92;border-radius:14px;transform:rotate(-1deg);padding:9px 7px;box-shadow:4px 5px 0 #2453a4}
.wish-page .scrap-heading h2{background:none;padding:0;margin:2px 0;font-size:20px;line-height:1.15;color:#133e88}
.scrap-eyebrow{font-size:12px;font-weight:900;color:#5d2668}.scrap-subtitle{font-size:10px;color:#263a68;font-weight:bold}
.scrap-note{background:#ffffffec;border:1.5px solid #ffb4d3;border-radius:10px;padding:7px 10px;box-shadow:2px 3px 0 #f5c1d2;transform:rotate(.5deg);min-height:0;flex-shrink:1}
.scrap-note:nth-of-type(odd){background:#e9f7ff;border-color:#8ec9ee;box-shadow:2px 3px 0 #b6dff6;transform:rotate(-.5deg)}
.scrap-note.wish-main{background:#fff3b9;border-color:#e8b44a}.scrap-note.gift-note{background:#f7e8ff;border-color:#c7a3e8}
.scrap-label{font-weight:900;color:#164d9b;font-size:12px;margin-bottom:3px}.scrap-answer{font-size:13px;color:#24304c;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.3}
.scrap-polaroid,.scrap-drawing{background:#fff;border:5px solid #fff;padding:4px;box-shadow:0 2px 9px #0002;max-height:125px;display:flex;flex-direction:column;align-items:center}
.scrap-photo-caption{font-size:11px;font-weight:bold;color:#1754bd}.wish-page .guest-photo{max-height:93px;width:auto;max-width:100%;object-fit:contain;border:0;box-shadow:none}.wish-page .guest-drawing{max-height:90px;max-width:100%;object-fit:contain}
.scrap-footer{margin-top:auto;text-align:center;color:#b34287;font-weight:900;font-size:11px}
@media(max-width:680px){.wish-page{padding:7px;border-width:3px}.wish-page .scrapbook{padding:9px 7px;gap:5px}.scrap-note{padding:5px 7px}.scrap-label{font-size:11px}.scrap-answer{font-size:12px}.scrap-confetti{font-size:12px}.scrap-polaroid,.scrap-drawing{max-height:90px}.wish-page .guest-photo,.wish-page .guest-drawing{max-height:65px}}
#book.book-fallback .wish-page{min-height:555px!important}#book.book-fallback .scrapbook{height:auto;min-height:520px;overflow:visible}
