/* styles.css */

/* גופן ראשי */
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

body {
  margin: 0;
  padding-bottom: 60px;                /* ריפוד לבאנר התחתון */
  font-family: 'Varela Round', sans-serif;
  background: url('images/background.jpg') center/cover no-repeat fixed;
  color: #2F2A45;
  text-align: center;
}

/* כותרת עליונה */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #4B0082;
  padding: 15px 20px;
}
header h1 {
  margin: 0;
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: bold;
}

/* לוגואים */
.logo {
  height: 60px;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(0.9);
}

/* ניווט */
nav {
  background-color: #F4F1ED;
  padding: 10px 0;
}
nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #4B0082;
  font-weight: bold;
  font-size: 1rem;
}
nav a:hover {
  text-decoration: underline;
}

/* סליידר כרקע מלא עם fade-in/fade-out וטשטוש */
.slider {
  position: relative;
  width: 100%;
  height: 100vh;            /* גובה מלא של החלון */
  overflow: hidden;
}
.slider img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(20px);
  animation: slideFade 30s infinite;
}
.slider img:nth-child(1) { animation-delay: 0s; }
.slider img:nth-child(2) { animation-delay: 6s; }
.slider img:nth-child(3) { animation-delay: 12s; }
.slider img:nth-child(4) { animation-delay: 18s; }
.slider img:nth-child(5) { animation-delay: 24s; }

@keyframes slideFade {
  0%   { opacity: 0; filter: blur(20px); }
  5%   { opacity: 1; filter: blur(0); }
  25%  { opacity: 1; filter: blur(0); }
  30%  { opacity: 0; filter: blur(20px); }
  100% { opacity: 0; }
}

/* שכבת Overlay במרכז הסליידר */
.slider-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.overlay-content {
  pointer-events: auto;
  max-width: 600px;
  text-align: center;
}
.overlay-text {
  color: #FFFFFF;
  font-size: 1.25rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  margin-bottom: 20px;
}
.overlay-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: rgba(75,0,130,0.85); /* אינדיגו חצי-שקוף */
  color: #FFD700;                        /* זהב */
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: transform 0.3s ease;
}
.overlay-btn:hover {
  transform: scale(1.05);
}

/* כפתור רישום מעל הסליידר (מקומי לגובה) */
.register-link {
  display: none; /* הוסר, דופליקט עם overlay */
}

/* generic סעיפים עם רקעים */
.section {
  padding: 60px 20px;
  text-align: center;
  background-size: cover;
  background-position: center;
}
.section h2 {
  margin-bottom: 10px;
  color: #4B0082;
}

/* כפתורי תרומה בדף תרומות */
.donate-buttons a,
.donate-column a {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background-color: #663399;
  color: #FFD700;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: transform 0.3s ease;
}
.donate-buttons a:hover,
.donate-column a:hover {
  transform: scale(1.05);
}

/* מבנה תרומות בעמוד */
.donate-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}
.donate-column {
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
}
.divider {
  width: 2px;
  background-color: #ccc;
}

/* לוח הזמנים בטבלה */
table {
  margin: 0 auto;
  border-collapse: collapse;
}
table td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: center;
}
.section table {
  max-width: 600px;
  width: 100%;
}

/* גלריה */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 10px;
  padding: 20px;
}
.gallery img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.1);
}

/* תמיכה בגלילה אופקית לטבלה מוטמעת */
.grid-container {
  overflow-x: auto;
  padding: 20px;
}
.waffle {
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
}

/* באנר צף בתחתית */
.float-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #FF6600;
  color: #FFFFFF;
  text-align: center;
  padding: 12px 0;
  font-weight: bold;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
}
.float-banner .btn {
  display: inline-block;
  margin-left: 15px;
  padding: 8px 18px;
  background-color: #FFFFFF;
  color: #FF6600;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: transform 0.2s ease;
}
.float-banner .btn:hover {
  transform: scale(1.05);
}
