@font-face {
    font-family: 'Heebo';
    src: url('./fonts/Heebo-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    direction: rtl;
    font-family: 'Heebo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    color: #333;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    min-height: 100vh;
    /* background-color: rgb(240, 240, 240); */
}

img {
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: rgb(240, 240, 240); */
    background-color: rgb(255, 255, 255);
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 10vh;
}

.top {
    height: 10vh;
    width: 100%;
}
    

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: 10px;
    user-select: none;
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 10px;
    border-radius: 5px;
}

.logo span {
    font-size: 2rem;
    font-weight: bold;
    color: rgb(0, 87, 198);
    margin-right: 5px;
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 20px;
    /* background-color: rgb(240, 240, 240); */
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    color: rgb(50, 51, 54);
}


.icons {
    font-style: normal;
    font-size: 1.2rem;
    margin-right: 5px;
}

i.icons {
    font-style: normal;
    font-size: 1.2rem;
    /* margin-right: 5px; */
    color: white;
}

.ic-file {
    background: url('/svg/file.svg') no-repeat center;
    width: 1em;
    height: 1em;
    display: inline-block;
    background-size: contain;
}

.ic-copy {
    background: url('/svg/copy.svg') no-repeat center;
    width: 1em;
    height: 1em;
    display: inline-block;
    background-size: contain;
}

.ic-menu  {
    background: url('/svg/menu.svg') no-repeat center;
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    background-size: contain;
    cursor: pointer;
}

.ic-moon {
    background: url('/svg/moon.svg') no-repeat center;
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    background-size: contain;
    cursor: pointer;
}

.ic-sun {
    background: url('/svg/sun.svg') no-repeat center;
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    background-size: contain;
    cursor: pointer;
}

.ic-pc {
    background: url('/svg/pc-new.svg') no-repeat center;
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    background-size: contain;
}

.ic-kinneret {
    background: url('/svg/kinneret.svg') no-repeat center;
    width: 2.5em;
    height: 2.5em;
    display: inline-block;
    background-size: contain;
}

.ic-logo {
    background: url('/svg/logo.svg') no-repeat center;
    width: 10vw;
    height: 8vh;
    display: inline-block;
    background-size: contain;
}

.ic-search {
    background: url('/svg/search.svg') no-repeat center;
    width: 2.5em;
    height: 2.5em;
    display: inline-block;
    background-size: contain;
}


.slide-imgs {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    height: 300px;
}

.slide-imgs img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeSlide 16s infinite;
}

.slide-imgs img:nth-child(1) {
    animation-delay: 0s;
}
.slide-imgs img:nth-child(2) {
    animation-delay: 4s;
}
.slide-imgs img:nth-child(3) {
    animation-delay: 8s;
}
.slide-imgs img:nth-child(4) {
    animation-delay: 12s;
}

@keyframes fadeSlide {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}


.dark-mode {
    background-color: rgb(50, 51, 54) !important;
    color: white !important;
}

.dark-mode * {
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}
.dark-mode header {
    background-color: rgb(30, 31, 34) !important;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .container {
    background-color: rgb(70, 71, 74) !important;
}
.dark-mode .logo span {
    color: white !important;
}
.dark-mode .slide-imgs {
    background-color: rgb(90, 91, 94) !important;
}
.dark-mode .btns a {
    background-color: rgb(100, 149, 237) !important;
    color: white !important;
}

.dark-mode .btns a:hover {
    background-color: rgb(53, 139, 219) !important;
}
.dark-mode .bottom section {
    border-top: 1px solid #555 !important;
}
.dark-mode .search-input {
    background-color: rgb(90, 91, 94) !important;
    color: white !important;
    border: 2px solid #555 !important;
}
.dark-mode .filter-btn {
    background-color: rgb(100, 149, 237) !important;
    color: white !important;
}
.dark-mode .filter-btn:hover {
    background-color: rgb(103, 173, 238) !important;
}
.dark-mode .filter-btn.active {
    background-color: rgb(103, 173, 238) !important;
    box-shadow: 0 2px 8px rgba(70, 130, 180, 0.3) !important;
}

.dark-mode h1 {
    color: white !important;
}




/* screen pc */
@media (min-width: 1024px) {
  img {
    max-height: 40vh;
    object-fit: contain;
  }
}

@media (max-height: 900px) {
  img {
    max-height: 20vh;
  }
}


.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f3f3f3 100%);
    border-radius: 50%;
    padding: 50px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(160px, 22vw, 280px);
    height: clamp(160px, 22vw, 280px);
    z-index: 9999;
}

.loading::after {
    content: "";
    position: fixed;
    pointer-events: all;
    user-select: none;
    width: 100vw;
    height: 100vh;
}

.loading .ic-loading {
    width: clamp(80px, 21vw, 200px);
    height: clamp(80px, 21vw, 200px);
    background: url("/svg/loading-logo.svg") no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);;
    position: absolute;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: transparent;
    box-shadow: inset #5555555e 0px 1px 5px 0px;
    color: rgb(50, 51, 54) !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(0.5rem, 3vw, 2rem);
    justify-content: center;
    border-radius: 50px;
    margin-top: 5px;
    max-width: max-content;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}


footer span {
    color:#000000;
    font-size: 1rem;
    margin-left: 5px;
    margin-right: 5px;
}

footer span:first-child {
    font-weight: bold;
}

footer a {
    color: rgb(63, 165, 233);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer span:not(a) {
    user-select: none;
}

@media (max-width: 886px) {
    footer {
        flex-direction: column;
        gap: 10px;
    }

    footer i {
        display: none !important;
    }
}


.header-images {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
  justify-content: center;
  align-items: center;
  gap: 0;
  pointer-events: none;
  user-select: none;
  -moz-user-select: none;
  filter: brightness(0.55);
}

.header-images img {
  aspect-ratio: 1 / 1;
  height: 25vh;
  object-fit: cover;
  clip-path: polygon(0 0, 90% 0, 100% 100%, 10% 100%);
  margin-left: -5%;
}

.header-images img:first-child {
  clip-path: none;
}



/* scroll */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: rgb(240, 240, 240);
}
::-webkit-scrollbar-thumb {
    background: rgb(200, 200, 200);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgb(150, 150, 150);
}


.menu {
    /* background-color: rgb(240, 240, 240); */
    padding: 10px 20px;
}
.menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.menu ul li {
    position: relative;
    color: #333;
    cursor: pointer;
    padding: 5px 10px;
}

.menu ul li a {
    color: #333;
    text-decoration: none;
}
.menu ul li,
#searchInputOpt a {
    position: relative;
}

.menu ul li::after{
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.3s ease-in-out;
}

.menu ul li:hover::after {
    width: 100%;
    right: 0;
    left: auto;
}



.menu ul li.active::after {
    width: 100%;
    left: 0;
    right: auto;
    background-color: #333;
}

@media (max-width: 1000px) {
    .logo i {
        /* background: url('/svg/kinneret.svg') no-repeat center; */
        width: 15vw;
        /* height: 9vh; */
    }
    .logo span {
        display: none;
    }
}



/* -------------------------- */


#searchInput {
    anchor-name: --search-anchor;
}


#searchInputOpt {
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 6px 0;
    width: 200px;
    border-radius: 6px;
    margin: 0;
    position-anchor: --search-anchor;
    position-area: bottom;
    inset-area: bottom;
    display: none;
}

#searchInputOpt a {
    display: block;
    padding: 8px;
    color: #333;
    text-decoration: none;
}


#searchInputOpt:popover-open {
    display: block;
}


#searchInputOpt a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #c5c5c5;
    transition: width 0.3s ease-in-out;
}

#searchInputOpt a:hover::after {
    width: 100%;
    right: 0;
    left: auto;
}
