@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&Lexend:wght@100..900&family=Yrsa:ital,wght@0,300..700;1,300..700&family=Assistant:wght@200..800&family=Fredoka:wght@300..700&family=M+PLUS+Rounded+1c&family=Noto+Sans+Hebrew:wdth,wght@62.5..100,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Suez+One&display=swap');

@font-face {
    font-family: 'otfont';
    src: url(/fonts/logo/OTFont.woff2);
}

@font-face {
    font-family: 'vilna';
        src: url('https://otfiles.netlify.app/file/OT Vilna-VF.ttf');
}

* {
    box-sizing: border-box;
}


:root {
    --: #de6600;
    --main-txt: #c57702;
    --main-light: #007a7a;
    --main-mid: #3685B5;
    --main-midmid: #0471A6;
    --main-middark: #102B3F;
    --main-dark: #062726;
    --body-bgcolor:#0f253a;
    /* rgb(15 23 42 / 1)#102B3F */
    --body-color: #ebd9c8;
}

:root > body.light {
    --main-txt: #A06CD5;
    --main-light: #A06CD5;
    --main-mid: #6247AA;
    --main-middark: #102B3F;
    --main-dark: #062726;
    --body-bgcolor:#ffffff;
    --body-color: #000000;
}

 html {
        scroll-behavior: smooth;
    }



body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background: var(--body-bgcolor);
    color: var(--body-color);
    opacity: 0;
    transition: opacity 0.5s ease; /* Fade in and out with a 0.5s transition */
    overflow-x: hidden;
}

iframe[src="navbar.html"], iframe[src="/navbar.html"] {
      display: none;
    }


      /* ---------- Base Styles ---------- */

    a {
      text-decoration: none;
      color: inherit;
    }

    

    /* ---------- Donation Banner ---------- */
    .adbnr {
      z-index: 86;
      position: relative;
      padding: 20px;
      font-size: 15px;
      display:none;
    }
    .adbnr a {
      color: var(--main-midmid);
    }

    /* ---------- Top Hebrew Icon ---------- */
    .beis-hei {
      font-family: 'current-font', serif;
      direction: rtl;
      position: absolute;
      top: 5px;
      right: 5px;
      color: #fff;
      font-size: 10px;
      z-index: 99;
    }

    /* ---------- Nav Fade ---------- */
    .nav-fade {
      width: 100%;
      height: 40px;
      position: fixed;
      z-index: 41;
      left: 0;
      top: 0;
      background: linear-gradient(0deg, #0000, #0f253a8a);
      pointer-events: none;
    }

    /* ---------- Navbar ---------- */
    nav {
        z-index: 85;
        position: sticky;
        top: 8px;
        color: white;
        padding: 0;
        max-height: 0;

    }

    nav .nav-wrapper {
      min-height: 50px;
      display: flex;
      flex-direction: column;
      margin-bottom: -55px;
      margin-inline: 10px;
      border-radius: 14px;
      box-shadow: 0px 0 20px 0px #000000ba;
      box-sizing: border-box;

    }

    nav .main_nav {
      width: 100%;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;

    }

    nav .logo {
      font-size: 2.5rem;
      font-family: current-font, 'vilna';
      display: inline-flex;
      height: 30px;
      transition: 0.2s;
      margin-inline:15px;
    }
    nav .logo:hover {
      filter: brightness(0.9);
    }

    nav .logo img {
      height: 50px;
      padding-block: 10px;
      transition: inherit;
    }

    nav .logo-text {
      width: max-content;
      font-family: 'current-font', 'vilna';
    }


    /* ---------- Search Bar ---------- */
    .navsearch {
      margin-block:8px;
    }

    .search-bar {
      display: flex;
      justify-content: center;
      height: 35px;
      border-radius: 10px;
      overflow: hidden;
      transition: 0.2s;
      outline: 1px solid transparent;
    }
    .search-bar:focus-within {
      outline: 1px solid #ffffffaa;
      box-shadow: inset 0px 0px 28px #00000042;
    }

    .search-bar input[type="search"] {
      background: #0003;
      color: #fff;
      padding: 10px 10px 12px 10px;
      font-size: 18px;
      border: none;
      outline: none;
      width: 300px;
      font-family: 'Noto Sans', sans-serif;
      text-align: start;
    }

    html[lang=he] .search-bar input[type="search"] {
      direction: rtl;
    }

    .search-bar input[type="search"]::placeholder {
      color: #ffffff8a;
      text-align: start;
    }

    .search-bar button[type="submit"] {
      background: #0003;
      border: none;
      padding: 8px 0px 8px 12px;
      outline: none;
    }
    .search-bar button svg {
      fill: #ffffffaa;
      width: 18px;
      height: 18px;
    }

    /* ---------- English Logo ---------- */
    .enlogo {
      font-size: 50px;
      font-weight: normal;
      direction: rtl;
      transition: 0.2s;
      font-family: otfont, sans-serif;
      letter-spacing: 1px;
      margin: 0;
      line-height: 1em;
      padding: 0 15px;
      cursor: pointer;
      user-select: none;
      background:transparent;
      transition: 0.2s;
      height:100%;
    }
    .enlogo:hover {
      background: #00000020;
      opacity: 0.8;
    }


    /* ---------- Blur Background ---------- */
    .nav-wrapper {
    --bs-navbar-color: rgba(255, 255, 255, 0.55);
    --bs-navbar-hover-color: rgba(255, 255, 255, 0.75);
    --bs-navbar-disabled-color: rgba(255, 255, 255, 0.25);
    --bs-navbar-active-color: #fff;
    --bs-navbar-brand-color: #fff;
    --bs-navbar-brand-hover-color: #fff;
    --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.1);
    --bs-navbar-toggler-icon-bg: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e);
    backdrop-filter: contrast(125%) brightness(145%) blur(1.75rem) saturate(300%);

    
}


.nav-wrapper:before {
    content: "";
    position: absolute;
    inset: -1rem 0 0 0;
    z-index: -1;
    opacity: 0.99;
    background: url(/images/noise.svg), rgb(0 0 0 / 50%);
    background-blend-mode: overlay;
    background: cross-fade(url(/images/noise.svg) 40%, #202123 100%);
    background: -webkit-cross-fade(url(/images/noise.svg) 40%, #202123 100%);
    border-radius: 14px;
    top:0;
}

    /* ---------- Gradient Blur ---------- */
    .gradient-blur {
      position: fixed;
      z-index: 75;
      inset: auto 0 0 0;
      height: 220px;
      pointer-events: none;
      rotate: 180deg;
      top: -100px;
    }
    .gradient-blur > div,
    .gradient-blur::before {
      position: absolute;
      inset: 0;
    }
    .gradient-blur::before {
      content: "";
      z-index: 1;
      backdrop-filter: blur(1px);
      mask: linear-gradient(to bottom, transparent 0%, black 12.5%, black 25%, transparent 37.5%);
    }
    .gradient-blur > div:nth-of-type(1) {
      z-index: 2;
      backdrop-filter: blur(2px);
      mask: linear-gradient(to bottom, transparent 12.5%, black 25%, black 37.5%, transparent 50%);
    }
    .gradient-blur > div:nth-of-type(2) {
      z-index: 3;
      backdrop-filter: blur(4px);
      mask: linear-gradient(to bottom, transparent 25%, black 37.5%, black 50%, transparent 62.5%);
    }
    .gradient-blur > div:nth-of-type(3) {
      z-index: 4;
      backdrop-filter: blur(8px);
      mask: linear-gradient(to bottom, transparent 37.5%, black 50%, black 62.5%, transparent 75%);
    }
    .gradient-blur > div:nth-of-type(4) {
      z-index: 5;
      backdrop-filter: blur(16px);
      mask: linear-gradient(to bottom, transparent 50%, black 62.5%, black 75%, transparent 87.5%);
    }

    


/* ---------- Subrow Navigation (Inside Nav) ---------- */
.nav-subrow {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
    background: rgb(0 0 0 / 20%);
    padding: 0 15px;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    /* border-top: 4px solid #00000052; */
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
}

.nav-subrow a {
  color: white;
    padding: 9px 10px;
    padding-bottom: 7px;
  font-size: 15px;
  text-decoration: none;
  transition: 0.2s;
      border-bottom: 3px solid transparent;

}

.nav-subrow a.active {
  border-bottom: 3px solid #fff;
}

.nav-subrow a:hover {
border-bottom: 3px solid #fff;}


.nav-subrow.show {
  max-height: 50px;
    opacity: 1;
    padding: 0px 15px;
}

nav.hide_subrow .enlogo {
    font-size: 62px;

}

nav.hide_subrow .logo {
    font-size: 2.8rem;
}


nav.hide_subrow .logo img {
    height: 58px;
    padding-block: 10px;
    padding-top: 8px;
}

nav.show_subrow .main_nav {
    border-radius: 14px 14px 0 0;
    
}


.enlogo::before {
    content: "";
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmYiIHZpZXdCb3g9IjAgMCA2NDAgNjQwIj4KICA8cGF0aCBkPSJNMjk3LjQgNDM4LjZDMzA5LjkgNDUxLjEgMzMwLjIgNDUxLjEgMzQyLjcgNDM4LjZMNTAyLjcgMjc4LjZDNTE1LjIgMjY2LjEgNTE1LjIgMjQ1LjggNTAyLjcgMjMzLjNDNDkwLjIgMjIwLjggNDY5LjkgMjIwLjggNDU3LjQgMjMzLjNMMzIwIDM3MC43TDE4Mi42IDIzMy40QzE3MC4xIDIyMC45IDE0OS44IDIyMC45IDEzNy4zIDIzMy40QzEyNC44IDI0NS45IDEyNC44IDI2Ni4yIDEzNy4zIDI3OC43TDI5Ny4zIDQzOC43eiIvPgo8L3N2Zz4K);
    height: 30px;
    width: 30px;
    position: relative;
    z-index: 99999999999;
    background-size: contain;
    display: inline-block;
    margin-bottom: 0px;
    transition: 0.2s;
    opacity: 0;
    margin-left: 4px;
    margin-right: -24px;
}

.enlogo:hover::before {
    opacity: 0.6;
    margin-right: 0px;
}

nav.show_subrow .enlogo::before {
    transform: rotate(180deg);
    margin-bottom: -4px;

}

nav.hide_subrow .search-bar {
    height:40px;
}









#close-special-modal {
      margin-top: 0px;
    margin-right: 0px;
    padding: 1px 7px;
    font-size: 1.1em;
    border-radius: 18px;
    border: none;
    background: #ce0000;
    color: white;
    cursor: pointer;
    position: absolute;
    z-index: 999999999;
    top: 0;
    right: 0;
}



@media only screen and (max-width: 800px) {
   
    nav .logo * {display: none;}
    nav .search-bar input[type=search] {
        background: #00000033;
        color: white;
        padding: 10px 20px;
        font-size: 20px;
        appearance: none;
        border: none;
        outline: none;
        width: 90%;
    }
    .enlogo::before {
        display: none;
    }
    

  
.navsearch {
    flex-grow: 1;
    max-width: 300px;
}
nav .search-bar {
    width:100%;
}
    .enlogo { position: relative;     left: 5px;
 }


.nav-subrow.show {
    max-height: fit-content;
    opacity: 1;
    padding: 0px 15px;
}

.nav-subrow {
width: 100%;
    display: flex
;
    justify-content: center;
    gap: 5px;
    background: rgb(0 0 0 / 20%);
    padding: 0 15px;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    /* border-top: 4px solid #00000052; */
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
    flex-direction: column;}

nav.hide_subrow .enlogo {
    font-size: 50px;
}


    }

    @media only screen and (max-width: 400px) {
    nav .search-bar input[type=search] {
    padding:10px;
    padding-inline-start: 0;
    }
    }
    





main {
  max-width: 1000px;
  margin: auto;
}








footer {
    background: #0000002a;
    padding: 10px;
    color:white;
    text-align: center;    
    z-index: +40;
    position: relative;
}

footer a {
    color:#ffffffc7;
}










.tooltip {
    position: absolute;
    background-color: black;
    color: white;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 4px;
    display: none;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1000;
}


 /* tool tips styles */
.tool {
  position: absolute;
  background: #00000042;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-family: system-ui, sans-serif;
  max-width: 260px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  margin-bottom: -10px;
  transition: 0.2s ease;
  outline: 1px solid #ffffff4f;
  backdrop-filter: blur(10px);
}

.tool[hidden]::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #00000042; /* Matches tooltip background */
  top: -8px; /* Positions the arrow above the tooltip */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001; /* Ensure arrow is above the tooltip body but below the text */
}

figure.tool-figure {
    margin: 0;
    margin-block:3px;
}

.tool-image {
  max-width: 100%;   /* responsive within tooltip */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

.tool-caption {
  font-size: 0.85em;
  color: #b9b9b9;
  margin-top: 4px;
  font-style:italic;
}


.tool::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ffffff4f; /* Matches tooltip border */
  top: -7px; /* Positions the arrow slightly above the background arrow */
  left: 50%;
  transform: translate(-50%, -1px);
  z-index: 1002; /* Ensure border arrow is above the background arrow */
}


.tool.visible {
  opacity: 1;
  transform: translateY(0);
    padding: 8px 12px;

}




/* Class to trigger fade-out */
.fade-out {
    opacity: 0;
}


/* body[noheader] main {
    padding-top: 100px !important;
    transition: 0.9s;
} */


body[noheader]:not(:has(nav .nav-subrow.show)) main {
  padding-top: 100px !important;
      transition: 0.2s;

transition-delay: 0.1s;

}

body[noheader]:has(nav .nav-subrow.show) main {
  padding-top: 130px !important;
  transition: 0.2s;
}






#chat-container {
  opacity: 0;
  transition: opacity 0.5s ease-in-out; /* This makes the fade smooth */
}

/* This class will be added by JavaScript to start the animation */
#chat-container.faded-in {
  opacity: 1;
}

html[lang="he"] body {
    direction: rtl;
}

html[lang="he"] nav .main_nav {
  direction: ltr;
}

html[lang="he"] .locale-en {
    display: none;
}

html[lang="en"] .locale-he {
    display: none;
}

html[lang="he"] {
  font-family: 'ot vilna', 'yrsa', 'noto sans hebrew', sans-serif;
}

