﻿@font-face {
font-family: fr-clm;
src: url('FrankRuehlCLM-Medium.woff2');
}
@font-face {
font-family: fr-clm;
src: url('FrankRuehlCLM-Medium.woff');
}
@font-face {
font-family: fr-b-clm;
src: url('SimpleCLM-Bold.woff2');
}
@font-face {
font-family: fr-b-clm;
src: url('SimpleCLM-Bold.woff');
}
{box-sizing: border-box;}
html {font-size: 16px}
::-moz-selection {background: #9ccc69;} /*Firefox */
::selection {background: #9ccc69;}
body {
background-repeat: no-repeat;
background-size: 100%;
font-family: fr-clm, Time New Roman, Times, serif;
font-size: 2.2rem;
text-align: justify;
letter-spacing: -0.09rem;
word-spacing: -0.08rem;
line-height: 3.8rem;
height: 100%;
/*position: absolute;*/
position: relative;
padding-bottom: 2rem;
overflow-x: hidden;
-webkit-user-select: none;
-ms-user-select: none;    /* IE*/
user-select: none;    /* Standard*/
}

p {text-indent: 2.2rem; margin:0;}
p.no {text-indent: 0;}
p.f {text-indent: 0;}
p.f::first-letter {font-size: 230%;}

::-webkit-scrollbar {width: 20px;}
::-webkit-scrollbar-thumb {background: #002650; height:15vh; border: 2px solid white; border-radius: 15px;}
::-webkit-scrollbar-button {background: tranparent; height:10px;}
::-webkit-scrollbar-thumb:hover {background: #385f8b;}
.read {
padding:2.6rem;
direction:rtl;
border:2px solid gray;
border-radius: 1rem;
overflow-y: scroll; overflow-x:hidden;
}
.add-scroll {margin-bottom:0;}
span {margin-right: 2.2rem;}
span #overlay {margin: 0 0 0 0 ;}

p.poetry::first-letter {font-size: 100%;}
p.poetry {line-height:2.8rem; padding-right:2rem; text-align: right; overflow-x:hidden;}
h1.poetry {font-family: fr-clm, Time New Roman, Times, serif; font-weight:normal; font-size: 2.8rem; text-align: right; word-spacing: -0.2rem;}
h1, h2, h3 {font-family: fr-b-clm, Time New Roman, Times, serif;
-ms-transform: scaleY(1.2); /* IE 9 */
transform: scaleY(1.2);
}
h1 {font-size:2.7rem; line-height: 2.8rem; letter-spacing: -0.14rem; word-spacing: 0.3rem;}
h2 {font-size:1.6rem; line-height: 2.0rem; letter-spacing: -0.03rem;}
h3 {font-size:2.1rem; line-height: 2.3rem; letter-spacing: -0.14rem; word-spacing: 0.3rem;}
b {font-size: 102%; letter-spacing:-0.02rem;}
b.bold {font-size: 105%; letter-spacing:-0.02rem;}


/*   הערה חדשה */


a { position: relative; }

a.tip:link, a.tip:visited {
  cursor: help;
  z-index: 2;
  color: black;
  text-decoration: none;
  border-bottom: 7px dotted #7ab51d;
}

/* 1. התיבה הראשית עם תוכן ההערה (יושבת ב-::after) */
a.tip:hover:after,
a.tip:focus:after {
  content: attr(data-title);
  position: fixed;
  top: 30%;
  right: 5%;
  width: 90%;
  height: auto;
  font-size: 1.8rem;
  line-height: 2.0rem;  text-indent:0;
  text-align: right;
  background-color: #d2ffa4;
  color: black;
  box-sizing: border-box;
  border: 4px solid gray;
  border-radius: 9px;
  padding: 30px 10px 15px 2px; /* מרווח עליון (padding-top) מוגדל כדי שלא תהיה חפיפה עם ה-X */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: shake 0.5s;
  pointer-events: none; /* סגירה בלחיצה */
  z-index: 9998;
}

/* 2. כפתור "✕ סגור" בצד שמאל למעלה (יושב ב-::before) */
a.tip:hover:before,
a.tip:focus:before {
  content: "✕ ";
  position: fixed;
  top: calc(30% + 0px);   /* מיקום בדיוק בפינה העליונה של התיבה */
  left: calc(5% + 12px);  /* הצמדה לצד שמאל של התיבה */
  font-size: 1.4rem;
  font-weight: bold;
  color: #8a1558;         /* צבע בולט לסגירה */
  z-index: 9999;
  pointer-events: none;
  animation: shake 0.5s;
}




/* ההערה הישנה*/
/*
a {position: relative;}
a.tip:link, a:visited {cursor: help; z-index:2;
color: black;
text-decoration: none;
border-bottom: 7px dotted #7ab51d;
}
a.tip:hover:after {
content: attr(data-title);
position: fixed;
bottom: 40%;
right: 0;
width: 90%;
height: auto;
font-size: 2.0rem;
line-height: 2.2rem;
text-align: right;
background-color: #d2ffa4; transition: 0.6s;
color: black;
box-sizing: border-box;
border: 4px solid gray;
border-radius: 9px;
padding: 5px 16px 5px 2px;
}
a.tip:hover:after 
{animation: shake 0.5s;}
@keyframes shake {
0% { transform: translate(1px, 1px) rotate(0deg); }
10% { transform: translate(-1px, -2px) rotate(-1deg); }
20% { transform: translate(-3px, 0px) rotate(3deg); }
30% { transform: translate(3px, 2px) rotate(0deg); }
40% { transform: translate(1px, -1px) rotate(3deg); }
50% { transform: translate(-1px, 2px) rotate(-1deg); }
60% { transform: translate(-3px, 1px) rotate(0deg); }
70% { transform: translate(3px, 1px) rotate(-1deg); }
80% { transform: translate(-1px, -1px) rotate(3deg); }
90% { transform: translate(1px, 2px) rotate(0deg); }
100% { transform: translate(1px, -2px) rotate(-1deg); }
}*/
/*ההערה הישנה סוף*/



img.left {float: left; position: absolute; right:1.2rem;}
img.right {float: right; position: absolute; right: -2.4rem;}
img {
display: block; margin-left: auto; margin-right: auto;  margin-bottom: 1rem; margin-top: 1rem;}
.center100  {width: 100%;}
.center30 {width: 30%;}
.center40 {width: 40%;}
.center50 {width: 50%;}
.center60 {width: 60%;}
.center70 {width: 70%;}
.center80 {width: 80%;}
.center90 {width: 90%;}
img.center1 {float:left; width:118%; margin-left:-9%; margin-right:-9%; margin-bottom: 1rem; margin-top: 1rem;}
.caption {
font-size: 1.5rem;
letter-spacing: 0;
word-spacing: 0;
line-height: 1.5rem;
margin: -1rem auto 1.2rem auto;
}
.hagim, .hagim::first-letter{line-height:1.7rem; font-size: 1.7rem; word-spacing:0.05rem; letter-spacing: 0.05rem; text-indent: 0;}
/*אות ראשונה גדול*/
#initial, #initial2{
float: right;
font-size: 5.8rem;
line-height: 6.2rem;
text-align: center;
margin: 1.2rem auto auto 1.0rem;
padding: 0;
border: 6px dotted gray;
outline: 3px dotted #c4c4c4;
height:7.0rem; width: 4.3rem;
}
/*INDICATOR BAR*/
.prog-head {display:none; direction: rtl;
position: fixed;
top: -1px;
left:0;
height: 18px;  
z-index: 1;width: 100%;
background-color:#ffffff;
border-lef: 6px solid #8a1558;   
padding: 0;
margin: 0 0 0 0;
}
.progress-bar {height: 13px; background: #8a1558; width: 0; padding: 0;}
#scrollPercentage {position: absolute; left: 1px; top:-19px; font-size:22px; letter-spacing:0px; color:#559316; text-shadow: 1px 1px #ffffff; font-weight: bold;}

/* Aa */
.apm {-webkit-tap-highlight-color: rgba(0,255,0,0.2); -webkit-user-select: none; -ms-user-select: none; -moz-user-select; user-select: none; 
border: none; color:#67cd38; text-align: center; line-height:0.6rem; letter-spacing:-0.34rem;
text-decoration: none; cursor: pointer;
padding: 2rem 1.5rem 2rem 0.4rem; line-height:1.6rem; position:absolute; left:0.6rem; margin-left:-1rem; margin-top:-4.0rem;
}
img.aaa {width:86%}
@media screen and (max-width: 520px) {
.apm {padding-left:0; margin-left:-1.6rem;}
img.aaa {width:76%}
}
.kotar  {background-color:#ffffff;  /* max-width:790px; */
height: 1.4rem;  
font-size:1.4rem;
text-align: center;
padding: 0 2rem 0 0; 
margin:0; 
position: absolute; right: 0; top:0;
}
.covertxt, .covertxt2 {
direction:rtl;
font-size: 1.8rem;
color:#000000;
text-align: right;
padding:0 5rem 0 4rem; margin:0;
line-height:2rem;
}
.covertxt2  {letter-spacing: 0.4rem; padding-left: 2rem; margin-top:-1rem; font-size: 1.5rem; text-align: left; font-style: italic;}

/* ON RESIZE  SCREEN */   

/* 2. כלל מאוחד לטלפונים ניידים — גם בעמידה וגם בשכיבה */
@media (pointer: coarse) and (max-width: 600px),
       (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
 html {font-size:14px}
 .read {
    padding: 0.5rem; /* רווח מסביב יותר צר */
  }
}



@media (pointer:coarse) { 
.add-scroll {margin-bottom:10rem;}
::-webkit-scrollbar {width: 0;}
.read {border:0;}
.prog-head {display:block;}
.progtxt {display:block;}
}