/* Reset ve temel ayarlar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Sayfa genel ayarları */
html, body {
  width: 100vw;
  min-height: 100vh;
  background: #fff;
  font-family: 'Montserrat', sans-serif;
  overflow-y: hidden; /* Animasyon başında scroll engellenir */
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden; /* Font yüklenene kadar gizli */
  transition: background-color 0.5s ease;
}

/* Fontlar yüklendiğinde body görünür */
html.fonts-loaded body {
  visibility: visible;
}

/* Scroll sonrası arka plan koyu tema */
body.dark-mode {
  background-color: #000;
  transition: background-color 0.8s ease;
}

/* Ana container */
#container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 90vh;
  user-select: none;
  z-index: 10; /* üstte olsun */
}

/* Yazı gösterim alanı */
#word-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12vw;
  font-weight: 900;
  color: #000;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  transition: color 0.5s ease;
}

/* Animasyondaki her bir harf */
.letter {
  position: absolute;
  width: 5vw;
  height: 7vh;
  font-size: 3vw;
  line-height: 7vh;
  text-align: center;
  color: #000;
  user-select: none;
  transition: color 0.5s ease;
}

/* Scroll sonrası harflerin rengi beyaz olur */
body.dark-mode .letter {
  color: #fff !important;
}

/* Scroll alanı (sayfa uzunluğunu sağlar) */
.scroll-area {
  height: 400vh; /* HTML'de inline style yerine burada */
}

.shape {
  display: none;
  pointer-events: none;
  user-select: none;
  transition: all 0.3s ease;
  border-radius: 8px;
}

#shape-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* etkileşimi kapatmak için */
}

#second-text {
  position: fixed;
  bottom: 20vh;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  font-size: 4vw;
  font-weight: 700;
  color: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 5; /* biraz daha altta */
}