body {
  margin: 0;
  font-family: 'Rubik','Assistant',sans-serif;
  background: #f4f6f8;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
header {
  background: #0d1b2a;
  color: white;
  padding: 32px 20px;
  text-align: center;
  position: relative;
}
h1.hebrew-name { font-size: 2.4em; margin: 0 0 6px; direction: rtl; font-weight: 600; }
.rabbinic-line, .founder-line { font-size: 1.1em; direction: rtl; margin-bottom: 6px; color: #dbe5f0; }
header h2 { margin: 0; font-size: 1.5em; font-weight: 500; }
header p { margin-top: 10px; color: #cbd5e0; }
main { flex: 1; padding: 40px 20px; max-width: 800px; margin: 0 auto; }
.schedule { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-bottom: 30px; }
.schedule h3 { margin-top: 0; color: #0d1b2a; display: flex; justify-content: space-between; align-items: center; }
.schedule h3 .hebrew-title { direction: rtl; }
.schedule-item { margin: 10px 0; font-size: 1.1em; }
/* Extra spacing for Shabbat schedule */
.shabbat-schedule .schedule-item { margin: 20px 0; }
.tefillah-line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.tefillah-line span { flex: 1 1 30%; text-align: center; }
.tefillah-line span:first-child { text-align: left; }
.tefillah-line span:last-child { text-align: right; direction: rtl; }
.time-mixed { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.time-mixed .eng { font-size: 0.9em; }
.time-mixed .heb { font-size: 1.05em; direction: rtl; }
footer { text-align: center; padding: 20px; font-size: 0.9em; background: #e0e0e0; }

/* THREE-DOT MENU */
.menu-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}
.menu-button {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  color: white;
  border-radius: 6px;
  transition: background 0.2s;
}
.menu-button:hover {
  background: rgba(255,255,255,0.2);
}
.menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 140px;
}
.menu-dropdown.show {
  display: block;
}
.menu-item {
  padding: 12px 20px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 15px;
  color: #222;
  font-weight: 600;
}
.menu-item:hover {
  background-color: #f0f0f0;
}

/* FLOATING BOXES */
.floating-box {
  position: fixed;
  width: 260px;
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 999;
  transition: box-shadow .2s ease;
}
.floating-box:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.2); }
.floating-left { left: 20px; top: 50%; transform: translateY(-50%); }
/* Right side boxes - centered together as one unit */
.floating-right-top { 
  right: 20px; 
  top: 50%; 
  transform: translateY(calc(-100% - 8px));
}
.floating-right-bottom { 
  right: 20px; 
  top: 50%; 
  transform: translateY(8px);
}
.floating-box h4 { margin: 0 0 8px; text-align: center; color: #0d1b2a; font-size: 1.1em; }

.line {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 8px 0;
  font-size: 14px;
  direction: rtl;
}
.line span:first-child { text-align: left; }
.line span:last-child { text-align: right; font-weight: 700; }

/* DATE & CLOCK BOX STYLES */
.date-clock-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
}
.parsha-row {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  direction: rtl;
  margin: 10px 0;
  color: #1d3557;
}
.clock-display-row {
  display: flex;
  justify-content: space-around;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}
.clock-labels-row {
  display: flex;
  justify-content: space-around;
  font-size: 12px;
  color: #666;
}

.zmanim-next { font-size: 18px; font-weight: 600; text-align: center; direction: rtl; }
.zmanim-countdown { font-size: 26px; font-weight: 700; text-align: center; margin: 6px 0 12px; color: #1d3557; }

.wheel-container { position: relative; height: 140px; overflow: hidden; background: #f9fafb; border-radius: 8px; border: 1px solid #e5e7eb; }
.wheel { position: absolute; width: 100%; }
.wheel-item { height: 40px; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; font-size: 14px; opacity: 0.5; direction: rtl; }
.wheel-item.active { opacity: 1; font-weight: 700; color: #1d3557; }
.wheel-item .time-ltr { direction: ltr; }
.wheel-gap { height: 20px; opacity: 0; }

@media (max-width:900px) { .floating-box { display:none; } }