@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: 'Aduma-Bold';
  src: url('./fonts/Aduma-Bold.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;   
  height: 100%;
  position: relative;
  background: #DFDCD6;
}

#overview-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  visibility: visible;
  opacity: 1;
  background: #DFDCD6;
}

.scroll-wrapper {
  width: 100vw;
  overflow-x: auto;
  overflow-y: hidden;
  height: 100vh;
}

.scroll-wrapper::-webkit-scrollbar {
  background: transparent; 
  height: 11px;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
  background: #33322E;

}

.scroll-content {
  flex-direction: row-reverse;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 100px;
  padding-right: 100px;
  padding-left: 140px;
  width: max-content;
  height: 100vh;
  background: #DFDCD6;
}


.range-years {
  font-family: 'Aduma-Heavy', sans-serif;
  font-size: 21rem;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #33322E;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.05s ease-out;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  position: relative;
  z-index: 3000;
  flex-shrink: 0;
  display: inline-block;
  will-change: color;
}

.range-years:hover {
  cursor: pointer;
  color: #AEABA5;
}


.decade-subtitle {
  font-family: 'GretaSans-Regular', sans-serif;
  font-size: 1.1rem;
  color: #33322E;
  display: inline;
}


.statistics-btn {
  position: fixed;
  top: 8px;
  right: 12px;
  z-index: 2000;
  background: none;
  border: none;
  height: 48px;
  width: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.statistics-btn:hover {
  pointer-events: pointer;
  opacity: 0.7;
}


/* Styling for polygon canvas elements */
.polygon-canvas {
  position: fixed;
  pointer-events: none;
  transition: transform 0.4s ease-in-out;
  cursor: pointer;
  will-change: transform, opacity;
  opacity: 0;
  animation: appearIn 0.4s ease-in-out forwards;
  contain: layout style paint;
}

@keyframes appearIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* עיכובים שונים לכל חיתוך בהופעה - עד 6 פוליגונים לכל עשור */
.polygon-canvas:nth-child(1) {
  animation-delay: 0.1s;
}

.polygon-canvas:nth-child(2) {
  animation-delay: 0.2s;
}

.polygon-canvas:nth-child(3) {
  animation-delay: 0.3s;
}

.polygon-canvas:nth-child(4) {
  animation-delay: 0.4s;
}

.polygon-canvas:nth-child(5) {
  animation-delay: 0.5s;
}

.polygon-canvas:nth-child(6) {
  animation-delay: 0.6s;
}




/* התאמה למסך רחב של 2048px */
@media (min-width: 2048px) {

  .decade-subtitle {
    font-size: 1.2rem;
  }


  .logo-center-container {
    top: 32px;
  }
  
 
  .scroll-content {
    gap: 200px;
    padding-right: 300px;
    padding-left: 300px;
  }
  
  .range-years {
    font-size: 24rem;
  }
  
  
  .quote-item {
    font-size: 3rem;
    max-width: 600px;
  }

  
  .scroll-wrapper::-webkit-scrollbar {
    height: 10px;
  }


}



