.background {
  background-image: url(../pic/curriculum.png);
  position: fixed;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  filter: blur(5px);
  z-index: -1;
}

#toptop {
  position: sticky;
  top: 0%;
  z-index: 1000;
}

.grid-item {
  background-color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

#logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

#logo > img {
  height: 100%; /* ייקח את כל הגובה של ההורה */
  width: auto; /* שומר על פרופורציות */
  max-height: 10vh;
  padding: 3vh;
}

/* תפריט עליון */
#topmenu {
  position: sticky; /* דבקות */
  top: 15%; /* מיקום מלמעלה */
  z-index: 1000; /* מעל כל התוכן */
  color: white; /* צבע טקסט לבן */
  text-align: center; /* יישור למרכז */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* משפחת גופנים */
  font-size: 100%; /* גודל גופן */
  width: 100%; /* רוחב מלא */
  background-color: rgba(127, 63, 152, 1); /* צבע רקע סגול */
}

/* עיצוב קישור פעיל בתפריט */
#topmenu ul li a.active {
  color: white; /* צבע לבן */
  border-top: 0.3vh solid white; /* גבול עליון */
  border-bottom: 0.3vh solid white; /* גבול תחתון */
  padding: 1.1vh; /* ריווח פנימי */
}

/* קישורי תפריט */
li a {
  color: white; /* צבע לבן */
  text-decoration: none; /* ללא קישוט טקסט */
  font-size: 115%; /* גודל גופן מוגדל */
  transition: all 0.3s ease; /* מעבר חלק */
}

/* אפקט ריחוף על קישורים */
li a:hover {
  opacity: 0.8; /* שקיפות קלה */
  transform: scale(1.05); /* הגדלה קלה */
}

/* פריטי רשימה */
li {
  display: inline-block; /* תצוגה בשורה */
  margin-left: 4vh; /* ריווח שמאלי */
  line-height: 7vh; /* גובה שורה */
}

.slide {
  width: 100%;
  height: 50vh;
}

.studyPictures {
  width: 70%;
  max-width: 90vw;
  margin: 4vh auto 0 auto; /* רווח של 2vh מלמעלה */
  overflow: hidden;
  text-align: center;
}

.studyPictures img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  margin: 0 auto;
}

.derechTslecha {
  bottom: 0;
  background-color: rgb(36, 22, 167);
  padding: 20px;
  text-align: center;
  z-index: 100;
}

.reka {
  position: fixed;
  background-attachment: fixed;
  background-size: cover;
  filter: blur(5px);
  z-index: -1;
  width: 100%;
  height: 100%;
}

.highLevel {
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.2)
    ),
    url(../pic/blueCurriculum.png);
  font-size: 4vh;
  font-weight: bold;
  text-align: center;
  animation: blink 10s infinite;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  color: rgb(3, 35, 36);
  position: relative;
  opacity: 0;
  z-index: 1;
}

@keyframes blink {
  0% {
    opacity: 0;
    transform: translateX(0%);
  }
  25% {
    opacity: 1;
    transform: translateX(0%);
  }
  50% {
    opacity: 1;
    transform: translateX(0%);
  }
  100% {
    opacity: 1;
    transform: translateX(100%);
  }
}

.tochniot {
  display: grid;
  grid-template-columns: auto auto;
  gap: 80px;
  padding: 100px;
}

.tochniot > div > p {
  color: rgb(10, 58, 80);
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 4vh;
  text-align: justify;
}

.tochniot > div > h2 {
  color: rgb(2, 26, 39);
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 30px;
  text-shadow: 1px 1px 3px rgb(8, 24, 99), -2px -2px 5px rgb(8, 24, 99),
    2px -2px 5px rgb(8, 24, 99), -2px 2px 5px rgb(8, 24, 99);
}

.geonut {
  position: relative;
}

.geonut > p {
  position: relative;
  width: 100%;
  height: 100%;
  color: rgb(7, 51, 87);
  font-size: 40px;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  text-shadow: 2px 2px 5px black, -2px -2px 5px black, 2px -2px 5px black,
    -2px 2px 5px black;
  font-weight: bold;
  animation: geonutAround 10s linear 2s infinite alternate;
}

@keyframes geonutAround {
  0% {
    color: rgb(0, 119, 255);
    left: 0px;
    bottom: 0px;
  }
  25% {
    color: rgb(18, 3, 53);
    left: 600px;
    bottom: 0px;
  }
  50% {
    color: blue;
    left: 600px;
    bottom: 50px;
  }
  75% {
    color: rgb(19, 222, 236);
    left: 0px;
    bottom: 50px;
  }
  100% {
    color: rgb(4, 66, 124);
    left: 0px;
    bottom: 0px;
  }
}

#logoWord {
  font-size: 60%;
  text-align: right;
}

/* ===== RESPONSIVE DESIGN ===== */

/* ========================================
   רספונסיביות - מסכים גדולים מאוד (1400px ומעלה)
   ======================================== */
@media only screen and (min-width: 1400px) {
  #topmenu {
    border: 1px solid rgba(147, 51, 234, 0.6);
    box-shadow: 0 4px 15px rgba(88, 28, 135, 0.4);
    border-radius: 0 0 15px 15px;
  }

  #topmenu li a {
    font-size: 200%;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid transparent;
  }

  #topmenu li a:hover {
    background: rgb(80 40 108);
    box-shadow: 0 3px 10px rgba(29, 1, 56, 0.3);
    border: 1px solid rgba(242, 240, 243, 0.5);
  }

  #topmenu ul li a.active {
    background: rgb(102 46 117);
    border: 1px solid rgba(249, 247, 250, 0.8);
    box-shadow: 0 2px 8px rgb(79 39 108);
  }

  .tochniot {
    grid-template-columns: auto auto;
    gap: 100px;
    padding: 120px;
  }

  .tochniot > div > h2 {
    font-size: 35px;
  }

  .highLevel {
    font-size: 6vh;
  }

  .geonut > p {
    font-size: 45px;
  }

  .studyPictures {
    width: 65%;
    max-width: 800px;
  }

  @keyframes geonutAround {
    0% {
      color: rgb(0, 119, 255);
      left: 0px;
      bottom: 0px;
    }
    25% {
      color: rgb(18, 3, 53);
      left: 300px;
      bottom: 0px;
    }
    50% {
      color: blue;
      left: 300px;
      bottom: 60px;
    }
    75% {
      color: rgb(19, 222, 236);
      left: 0px;
      bottom: 60px;
    }
    100% {
      color: rgb(4, 66, 124);
      left: 0px;
      bottom: 0px;
    }
  }
}

/* ========================================
   רספונסיביות - מסכים רגילים (769px - 1399px)
   ======================================== */
@media only screen and (min-width: 769px) and (max-width: 1399px) {
  #topmenu {
    border: 1px solid rgba(147, 51, 234, 0.6);
    box-shadow: 0 4px 15px rgba(88, 28, 135, 0.4);
    border-radius: 0 0 15px 15px;
  }

  #topmenu li a {
    font-size: 140%;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid transparent;
  }

  #topmenu li a:hover {
    background: rgb(80 40 108);
    box-shadow: 0 3px 10px rgba(29, 1, 56, 0.3);
    border: 1px solid rgba(242, 240, 243, 0.5);
  }

  #topmenu ul li a.active {
    background: rgb(102 46 117);
    border: 1px solid rgba(249, 247, 250, 0.8);
    box-shadow: 0 2px 8px rgb(79 39 108);
  }

  .tochniot {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 60px 30px;
  }

  .tochniot > div > p {
    font-size: 25px;
  }

  .tochniot > div > h2 {
    font-size: 25px;
  }

  .geonut > p {
    font-size: 30px;
  }

  .studyPictures {
    width: 60%;
  }

  .slide {
    height: 400px;
  }
  .geonut > p {
    position: relative;
    width: 100%; /* רוחב מלא של ההורה */
    height: auto; /* גובה אוטומטי בהתאם לתוכן */
    color: rgb(7, 51, 87);
    font-size: clamp(24px, 4vw, 40px); /* גודל פונט רספונסיבי */
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
      sans-serif;
    text-shadow: 2px 2px 5px black, -2px -2px 5px black, 2px -2px 5px black,
      -2px 2px 5px black;
    font-weight: bold;
    animation: geonutAround 10s linear 2s infinite alternate;
  }

  .geonut > p {
    font-size: clamp(18px, 3vw, 25px);
    animation: geonutAround 10s linear 2s infinite alternate;
    text-align: center;
  }

  @keyframes geonutAround {
    0% {
      color: rgb(0, 119, 255);
      left: 0vw;
      bottom: 0px;
    }
    25% {
      color: rgb(18, 3, 53);
      left: 1000px;
      bottom: 0px;
    }
    50% {
      color: blue;
      left: 1000px;
      bottom: 60px;
    }
    75% {
      color: rgb(19, 222, 236);
      left: 0vw;
      bottom: 60px;
    }
    100% {
      color: rgb(4, 66, 124);
      left: 0vw;
      bottom: 0px;
    }
  }
}

/* ========================================
   רספונסיביות - טאבלט ומטה (768px ומטה)
   ======================================== */
@media only screen and (max-width: 768px) {
  /* תפריט עליון - טאבלט ומובייל */
  #topmenu {
    position: static; /* ביטול דבקות */
    top: auto; /* איפוס מיקום */
    font-size: 100%; /* גופן רגיל */
    padding: 15px 0; /* ריווח פנימי */
  }

  #topmenu ul {
    display: flex; /* פלקס בוקס */
    flex-direction: column; /* כיוון אנכי */
    padding: 10px 0; /* ריווח פנימי */
    gap: 5px; /* רווח בין פריטים */
  }

  #topmenu ul li {
    margin: 8px 0; /* ריווח אנכי */
    margin-left: 0; /* איפוס ריווח שמאלי */
    width: 100%; /* רוחב מלא */
  }

  li {
    display: block; /* תצוגה בלוק */
    text-align: center; /* יישור למרכז */
    line-height: 6vh; /* גובה שורה מותאם */
    width: 100%; /* רוחב מלא */
  }

  li a {
    font-size: 4.5vw; /* גופן רספונסיבי */
    padding: 15px 20px; /* ריווח פנימי גדול */
    display: block; /* תצוגה בלוק */
    border-radius: 8px; /* פינות מעוגלות */
    margin: 0 10px; /* ריווח צדדי */
    background-color: rgba(255, 255, 255, 0.1); /* רקע קל */
  }

  li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* רקע מוגבר בריחוף */
    transform: scale(1); /* ביטול הגדלה במובייל */
  }

  li {
    margin-left: 0;
  }

  li a {
    font-size: 4.5vw;
  }

  .tochniot {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 15px;
  }

  .tochniot > div > p {
    font-size: 22px;
  }

  .tochniot > div > h2 {
    font-size: 30px;
  }

  .highLevel {
    font-size: 22px;
  }

  .geonut > p {
    font-size: 18px;
  }

  .studyPictures {
    width: 90%;
  }

  .slide {
    height: 250px;
  }

  .derechTslecha {
    padding: 15px;
    font-size: 14px;
  }

  /* ביטול אנימציית התנועה במסכים קטנים */
  @keyframes geonutAround {
    0%,
    100% {
      color: rgb(0, 119, 255);
      left: 0px;
      bottom: 0px;
    }
  }
}
