/* Hebrew always in one sans face (owner 11-12: the menu tabs fell back to a serif Hebrew): the theme's fonts (Verdana,
   Georgia, Trebuchet, Century Gothic) have no Hebrew, so a device without Arial picked its own fallback. "EkoHebrew"
   covers the Hebrew letters only (unicode-range: Latin keeps the theme's faces): the device's Arial / Arial Hebrew when it
   has one (the look the blog had on Windows), else Arimo - Arial's metric twin, self-hosted, Hebrew subset, 11 KB WOFF2
   (fonts/arimo-hebrew.woff2, SIL OFL: fonts/arimo-OFL.txt). */
/* the frame's pictures (render.ts BLOG_THEME, group site): each through --t-<slot>, which the page's <html style> points at
   its shared library asset (art/lib/theme_site_*.webp, replaceable in the studio: עיצוב האתר); drawn at the original's
   size in CSS px, so a 2x picture lays out exactly the same, sharper */
:root {
  --t-site-bg-ext: url(../common/images/bg_ext.jpg);
  --t-site-tileable-iw: url(../common/images/tileable_iw.jpg);
  --t-site-tileable-clean: url(../common/images/tileable_clean.jpg);
  --t-site-main-iw: url(../common/images/main_iw.jpg);
  --t-site-main-clean: url(../common/images/main_clean.jpg);
  --t-site-popup-bg: url(../common/images/popup-background.jpg);
}
@font-face {
  font-family: 'EkoHebrew'; font-style: normal; font-weight: 400; font-display: swap;
  src: local('Arial'), local('ArialMT'), local('Arial Hebrew'), local('ArialHebrew'), url(../../../blog/theme/fonts/arimo-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'EkoHebrew'; font-style: normal; font-weight: 700; font-display: swap;
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial Hebrew Bold'), local('ArialHebrew-Bold'), url(../../../blog/theme/fonts/arimo-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* The website's look: the original Flash-era page (website/iw/ekoloko.css + the 1200 px table of every page), drawn at
   --z (set by site.js from the window width; the media queries are the no-script fallback) so it fills a modern screen
   the way it filled a 2010 one. Paths are relative to /ekoloko/website/site/. */
:root { --z: 1; }
@media (min-width: 1440px) { :root { --z: 1.15; } }
@media (min-width: 1680px) { :root { --z: 1.34; } }
@media (min-width: 1900px) { :root { --z: 1.52; } }
@media (min-width: 2400px) { :root { --z: 1.6; } }

html { background: #abd93f; }
body { margin: 0; font-family: 'EkoHebrew', Arial, Helvetica, sans-serif; color: #18384f; }
img { border: 0; }

/* ---- the original classes (ekoloko.css) ---- */
.images { border: 1px solid #a7b793; }
.Title { font-size: 24px; color: #18384f; font-weight: bold; font-family: 'EkoHebrew', Arial, sans-serif; }
.BodyText { font-size: 15px; font-family: 'EkoHebrew', Arial, sans-serif; color: #18384f; }
.FAQTitle { font-size: 17px; font-weight: bold; font-family: 'EkoHebrew', Arial, sans-serif; color: #18384f; }
a.faqQuestions, a.faqQuestions:visited { text-decoration: none; color: #18384f; font-weight: bold; line-height: 16px; }
a.faqQuestions:hover, a.faqQuestions:active { color: #a7b793; }
.footerText { color: #fff; font-style: oblique; font-family: 'EkoHebrew', Arial, sans-serif; font-size: 16px; }
.footerText a, .footerText a:visited { text-decoration: none; color: #fff; font-style: oblique; }
.footerText a:hover, .footerText a:active { text-decoration: underline; }
a { color: #0000ee; }
a:visited { color: #551a8b; }

/* ---- the page (1200 css px, zoomed as a whole) ---- */
.wrap { zoom: var(--z); background: var(--t-site-bg-ext) repeat-x; min-height: 100vh; background-size: 8px 242px; }
.page { width: 1200px; margin: 0 auto; direction: ltr; }
.hdr { display: flex; height: 154px; }
.hdr > img { display: block; }
.hc { position: relative; width: 960px; height: 154px; background: #a0cd34; }
.hdr-swf { display: block; width: 960px; height: 154px; }
.mid { display: flex; align-items: stretch; }
.bl { width: 143px; flex: none; }
.br { width: 197px; flex: none; }
.bl img, .br img { display: block; }
.content { width: 860px; flex: none; min-height: 447px; background: var(--t-site-tileable-iw) repeat-y; background-size: 860px 139px; }
.content.c-clean { background-image: var(--t-site-tileable-clean); background-size: 860px 139px; }
.content-top { background: var(--t-site-main-iw) no-repeat; min-height: 447px; background-size: 860px 447px; }
.c-clean .content-top { background-image: var(--t-site-main-clean); background-size: 860px 447px; }
.cols { display: flex; width: 810px; margin-left: 50px; direction: ltr; }
.text { flex: 1; min-width: 0; direction: rtl; text-align: right; padding-bottom: 16px; font-size: 16px; line-height: normal; }
.text > p:first-child { margin-top: 16px; }
.side { width: 230px; flex: none; direction: ltr; }
.side > *:first-child { margin-left: 20px; }
.side-swf { display: block; width: 180px; }
.side .swf { display: block; margin-left: 20px; }
.ftr { text-align: center; padding-bottom: 24px; }
.ftr-img { display: block; position: relative; left: -26px; margin: 0 auto; }
.ftr p { margin: 4px 0; position: relative; left: -26px; direction: rtl; }
.ftr p + p { left: 0; }
canvas.swf { display: inline-block; vertical-align: top; }
.text canvas.swf { max-width: 100%; }

/* real links behind the Flash menus: keyboard / screen readers / no script; shown when focused, or when the canvas
   could not be drawn (no .live) */
.fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fallback:focus-within, .fallback.shown, canvas:not(.live) + .fallback { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
.hdr-nav:focus-within, .hc > canvas:not(.live) + .hdr-nav { position: absolute; left: 330px; right: 20px; top: 104px; display: flex; gap: 18px; justify-content: center; direction: rtl; font: bold 18px 'EkoHebrew', Arial, sans-serif; }
.hdr-nav a { color: #fff; text-decoration: none; text-shadow: 0 1px 2px #1d4b6a; }
.side-nav { direction: rtl; }
.side-nav:focus-within, .side-nav.shown, canvas:not(.live) + .side-nav { display: flex; flex-direction: column; gap: 6px; width: 180px; margin: 12px 0 0 20px; font: bold 16px 'EkoHebrew', Arial, sans-serif; }
.side-nav a { color: #18384f; background: #e8f3c6; border: 1px solid #a7b793; border-radius: 14px; padding: 6px 12px; text-decoration: none; }
.side-nav a[aria-current] { background: #a0cd34; color: #fff; }
a:focus-visible, canvas:focus-visible { outline: 3px solid #ff9800; outline-offset: 2px; }

/* blocks shown by a link (Help_FAQ: the generations table) */
[hidden] { display: none !important; }

/* ---- the popup window (Terms, Privacy): popup-background.jpg, 856 wide ---- */
body.l-popup { background: #abd93f; }
.popup-page { zoom: var(--z); width: 856px; margin: 0 auto; background: var(--t-site-popup-bg) repeat-y; padding-bottom: 20px; background-size: 856px 635px; }
.popup-top { text-align: center; padding-top: 18px; }
.popup-logo { display: inline-block; }
.popup-text { width: 800px; margin: 0 auto; direction: rtl; text-align: right; }
.popup-foot { text-align: center; direction: rtl; }
.popup-foot, .popup-foot a, .popup-foot a:visited { color: #18384f; }


/* ---- the studio's blocks (public/site/pages: galleries, buttons, data sets) in the original's look ---- */
.gallery { display: grid; gap: 16px; margin: 12px 0; direction: rtl; }
.gal-1 { grid-template-columns: 1fr; } .gal-2 { grid-template-columns: repeat(2, 1fr); } .gal-3 { grid-template-columns: repeat(3, 1fr); }
.gal-4 { grid-template-columns: repeat(4, 1fr); } .gal-5 { grid-template-columns: repeat(5, 1fr); } .gal-6 { grid-template-columns: repeat(6, 1fr); }
.gal-i { margin: 0; text-align: center; }
.gal-i img { max-width: 100%; height: auto; }
.gal-i figcaption { margin-top: 4px; }
.gal-i a { text-decoration: none; color: #18384f; }
a.site-btn, a.site-btn:visited { display: inline-block; padding: 7px 22px; border-radius: 16px; background: #a0cd34; border: 2px solid #6f9a1c; color: #fff; font: bold 16px 'EkoHebrew', Arial, sans-serif; text-decoration: none; text-shadow: 0 1px 1px #45670c; }
a.site-btn:hover { background: #b2dc48; }
.ds-table { border-collapse: collapse; width: 100%; }
.ds-table th, .ds-table td { border: 1px solid #a7b793; padding: 4px 8px; text-align: right; vertical-align: top; }
.ds-table th { background: #e8f3c6; }
.ds-list li { margin: 4px 0; }

/* ---- narrow screens (phones): one column, the header fitted to the width ---- */
@media (max-width: 759px) {
  html, body { overflow-x: hidden; }
  .wrap { zoom: 1; min-width: 0; background-size: auto 100px; }
  .page { width: auto; }
  .hdr { height: auto; }
  .hdr > img, .bl, .br, .ftr-img { display: none; }
  .hc { width: 100%; height: auto; aspect-ratio: 960 / 154; }
  .hdr-swf { width: 100%; height: auto; aspect-ratio: 960 / 154; }
  .hdr-nav { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 8px; direction: rtl; background: #2c6b93; font: bold 16px 'EkoHebrew', Arial, sans-serif; }
  .hdr-nav a:first-child { display: none; }
  .mid { display: block; }
  .content { width: auto; min-height: 0; background-size: 100% auto; }
  .content-top { background-size: 100% auto; min-height: 0; }
  .cols { display: block; width: auto; margin: 0; padding: 4px 14px 0; }
  .text { font-size: 16px; }
  .text img, .text table { max-width: 100%; height: auto; }
  .text table { display: block; overflow-x: auto; }
  .side { width: auto; display: flex; flex-direction: column; align-items: center; }
  .side > *:first-child, .side .swf { margin-left: 0; }
  .ftr p { left: 0; padding: 0 10px; }
  .popup-page { zoom: 1; width: auto; background-size: 100% auto; }
  .popup-text { width: auto; padding: 0 14px; }
  .gal-3, .gal-4, .gal-5, .gal-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- the page-flip reader (block "flipbook": Newspaper.swf / NewBook.swf, site/src/flipbook.js) ---- */
.cols.wide { width: 830px; margin-left: 15px; }
.flipbook { --fb-bg: #c3cf65; margin: 14px 0 18px; outline: none; }
.flipbook:focus-visible { outline: 3px solid #ff9800; outline-offset: 2px; }
/* no script: the pages one under the other */
.fb-pages { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; direction: rtl; }
.fb-pages img { width: calc(50% - 8px); height: auto; }
.fb-stage { background: var(--fb-bg); border-radius: 6px; padding: 14px 12px 8px; direction: ltr; user-select: none; -webkit-user-select: none; }
.fb-book { position: relative; margin: 0 auto; perspective: 2600px; touch-action: pan-y pinch-zoom; transition: transform .65s cubic-bezier(.45, .05, .35, 1); }
.fb-book.lone-l { transform: translateX(25%); }
.fb-book.lone-r { transform: translateX(-25%); }
.fb-l, .fb-r { position: absolute; top: 0; width: 50%; height: 100%; }
.fb-l { left: 0; } .fb-r { right: 0; }
.fb-l img, .fb-r img, .fb-face img { display: block; width: 100%; height: 100%; object-fit: fill; }
.fb-l:not(.empty), .fb-r:not(.empty) { box-shadow: 0 3px 10px rgba(30, 50, 10, .35); }
.fb-l.empty, .fb-r.empty { visibility: hidden; }
/* the fold in the middle */
.fb-l:not(.empty)::after, .fb-r:not(.empty)::after { content: ''; position: absolute; top: 0; bottom: 0; width: 7%; pointer-events: none; }
.fb-l::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.16), rgba(0,0,0,0)); }
.fb-r::after { left: 0; background: linear-gradient(to right, rgba(0,0,0,.16), rgba(0,0,0,0)); }
.fb-book.one .fb-l { width: 100%; }
.fb-book.one .fb-l::after { display: none; }
.fb-leaf { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; z-index: 3; pointer-events: none; transition: transform .65s cubic-bezier(.45, .05, .35, 1); }
.fb-leaf.on-l { left: 0; transform-origin: 100% 50%; }
.fb-leaf.on-r { left: 50%; transform-origin: 0 50%; }
.fb-leaf.on-l.go { transform: rotateY(180deg); }
.fb-leaf.on-r.go { transform: rotateY(-180deg); }
.fb-leaf.full { width: 100%; }
.fb-leaf.full.on-r { left: 0; }
.fb-leaf.full.on-l.go { transform: rotateY(100deg); opacity: 0; transition: transform .65s ease-in, opacity .65s ease-in; }
.fb-leaf.full.on-r.go { transform: rotateY(-100deg); opacity: 0; transition: transform .65s ease-in, opacity .65s ease-in; }
.fb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.3); }
.fb-face.empty { background: transparent; box-shadow: none; }
.fb-face.empty img { display: none; }
.fb-back { transform: rotateY(180deg); }
.fb-hit { position: absolute; top: 0; height: 100%; width: 50%; z-index: 2; background: none; border: 0; padding: 0; cursor: pointer; }
.fb-hit-l { left: 0; } .fb-hit-r { right: 0; }
.fb-book.one .fb-hit { width: 50%; }
.fb-bar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.fb-btn { font: bold 15px 'EkoHebrew', Arial, sans-serif; color: #fff; background: #5d8e1a; border: 2px solid #446b10; border-radius: 16px; padding: 5px 16px; cursor: pointer; text-shadow: 0 1px 1px #2c4a06; min-width: 44px; min-height: 34px; }
.fb-btn:hover:not(:disabled) { background: #6fa522; }
.fb-btn:disabled { opacity: .4; cursor: default; }
.fb-count { min-width: 90px; text-align: center; font: bold 15px 'EkoHebrew', Arial, sans-serif; color: #18384f; direction: ltr; }
@media (max-width: 759px) {
  .cols.wide { width: auto; margin: 0; }
  .fb-stage { padding: 8px 4px 6px; border-radius: 0; margin: 0 -14px; }
  .fb-bar { gap: 6px; }
  .fb-btn { padding: 5px 10px; }
}
.popup-text img { max-width: 100%; height: auto; }
