@font-face {
  font-family: 'Masada-Book';
  src: url('./fonts/Masada-Book.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Masada-Medium';
  src: url('./fonts/Masada-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Masada-MediumItalic';
  src: url('./fonts/Masada-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'GretaSans-Regular';
  src: url('./fonts/GretaSansH+L-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GretaSans-Semi-Bold';
  src: url('./fonts/GretaSansH+L-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GretaSans-Bold';
  src: url('./fonts/GretaSansH+L-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GretaSans-Heavy';
  src: url('./fonts/GretaSansH+L-Heavy.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gretatext-Heavy';
  src: url('./fonts/GretaSansH+L-Heavy.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Aduma-Bold';
  src: url('./fonts/Aduma-Bold.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


.overlay-container {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #DFDCD6;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay-container.active {
  opacity: 1;
  pointer-events: auto;
}

#event-wrapper,
#canvas-wrapper {
  min-height: 100vh;
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
}

#event-wrapper {
position: relative;
z-index: 1000;
display: none;
opacity: 0;
flex-direction: column;
background: #33322E;
min-height: 100vh;
height: 100vh;
align-items: center;
justify-content: center;
}


#event-wrapper.active {
display: flex;
opacity: 1;
}

.event-texture {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: url('textures/crinkle_paper_texture.webp') center center / cover repeat;
  opacity: 0.15;
  z-index: 10;
  pointer-events: none;
}


#canvas-wrapper {
  position: relative;
  z-index: 1001;
  display: none;
  opacity: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #DFDCD6;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

#canvas-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('textures/canvas_texture.png') center center / 300px 300px repeat;
  opacity: 1;
  z-index: -1;
  pointer-events: none;
}

#canvas-wrapper.active {
  display: flex;
  opacity: 1;
} 



#multi-covers-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

  .back-to-timeline-btn {
    position: absolute;
    display: flex;
    top: 12px;
    right: 12px;
    height: 48px;
    width: 48px;
    z-index: 200;
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }


  
 .back-to-timeline-btn:hover {
    opacity: 0.7;
    cursor: pointer;
  } 

  


.back-to-top-btn {
  position: absolute;
  display: none;
  height: 48px;
  right: 12px;
  top: 12px;
  width: 48px;
  z-index: 200;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  opacity: 0;
  align-items: center;
  justify-content: center;
  pointer-events: none; 
  transition: opacity 0.3s ease-in-out;
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top-btn:hover {
  opacity: 0.6;
  cursor: pointer;
}

  .bottom-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #DFDCD6;
    box-shadow: 0 7px 25px 0 rgba(112, 110, 99, 0.174);
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
  }



  #zoom-in-btn:hover,
  #zoom-out-btn:hover {
   opacity: 0.6;
   cursor: pointer;
  }

#zoom-in-btn, #zoom-out-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

#zoom-in-btn, #zoom-out-btn, .back-to-top-btn, .event-back-to-timeline-btn {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zoom-level-display {
  min-width: 32px;
  display: inline-block;
  font-family: 'GretaSans-Regular', sans-serif;
  font-weight: 600;
  text-align: center;
  font-size: 1.1rem;
  margin: 0 8px;
}

.event-back-to-timeline-btn {
  position: absolute;
  display: flex;
  top: 12px;
  right: 12px;
  height: 48px;
  width: 48px;
  z-index: 200;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.event-back-to-timeline-btn:hover {
  opacity: 0.7;
  cursor: pointer;
}

/* Event navigation arrows */
.event-nav-btn {
  position: absolute;
  display: flex;
  height: 56px;
  width: 56px;
  z-index: 200;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.event-nav-btn:hover {
  opacity: 1;
}

.event-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}


.event-header-row .event-nav-btn {
  position: static;
}



.event-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #DFDCD6;
  font-family: 'GretaSans-Regular', sans-serif;
  font-size: 1.1rem;
  opacity: 1;
  pointer-events: none;
}


.scroll-down-icon {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* פס גלילה מותאם ל-overlay container */
.overlay-container::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}

.overlay-container::-webkit-scrollbar-thumb {
  background: #33322E;
}

.overlay-container::-webkit-scrollbar-track {
  background: #DFDCD6;
}

.event-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #DFDCD6;
  direction: rtl;
  width: 80%;
  min-height: 200px;
  }
  
  
  .event-content p {
  font-family: 'GretaSans-Regular', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.5;
  width: 70%;
  margin-top: 12px;
  margin-left: auto;
  margin-right: auto;
  }

.event-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: fit-content;
  min-height: 80px;
}

.event-header-row h2 {
  font-family: 'Aduma-Bold', sans-serif;
  font-weight: 700;
  font-size: 6rem;
  max-width:60vw; 
  margin: 0px auto;
  color: #DFDCD6;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  flex: none;
  line-height: 0.9;
}

.event-header-row .event-nav-btn {
  position: static;
  height: 56px;
  width: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-article-cutout {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: block;
  z-index: 2;
  pointer-events: none;
}
.event-article-cutout canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  pointer-events: none;
}

#zoom-in-btn:hover,
#zoom-out-btn:hover {
  background: none;
}

h3.event-title {
  min-height: 0px;
}

.event-date-wrapper {
  display: block;
  text-align: center;
  font-family: 'GretaSans-Regular', sans-serif;
  font-size: 1.2rem;
  color: #DFDCD6;
  margin-top: 24px;
  margin-bottom: 8px;
  direction: rtl;
  unicode-bidi: embed;
}


@media (min-width: 2048px) {


  .event-back-to-timeline-btn {
    top: 16px;
    right: 20px;
    height: 48px;
    width: 48px;
  }


   .event-content h2 {
     font-size: 8rem;
   }

   .event-content p {
     font-size: 1.4rem;
     line-height: 1.5;
     width: 60%;
   }

 
   #canvas-wrapper .zoom-buttons {
    bottom: 24px;
  }

    .zoom-button{
      width:52px;
      height:52px;
    }

 }

img, svg {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: auto;
}


