body {
      font-family: sans-serif;
    text-align: center;
    margin: 0;
    padding: 1rem;
    background: #f9f9f9;
    padding-top: 60px;
    }

    .grid-container {
      overflow: auto;
      max-width: 100vw;
      max-height: 60vh;
      touch-action: none;
      overscroll-behavior: contain;
    }

    .grid-containerSIL {
      touch-action: none;
      overscroll-behavior: contain;
    }

.grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
      gap: 5px;max-width: 100vmin;
      justify-content: center;
      align-content: center;
      margin:0 auto 20px;
      touch-action: none !important;
      cursor: crosshair;
    }

    .cell {
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 18px;
      border: 1px solid #ccc;
      box-sizing: border-box;
      width: 100%;
      aspect-ratio: 1 / 1; /* kare hücre */
      background: white;
      user-select: none;
      -webkit-user-select: none; /* Safari/Chrome */
      -moz-user-select: none; /* Firefox */
      -ms-user-select: none; /* IE/Edge */
      touch-action: none;
      -webkit-touch-callout: none;
      border-radius: 5px;
      padding: 8px;
    text-align: center;
      will-change: transform;
      cursor: pointer;
    }

/* Basılı durum */
.cell:active {
  transform: translateY(2px);
  box-shadow: 
    0 0px 0 #d0d0d0,
    inset 0 -1px 1px rgba(0,0,0,0.1);
}

/* Opsiyonel: Hover efekti */
@media (hover: hover) {
  .cell:hover {
    background: #f8f8f8;
  }
}

    .controls {
      margin-top: 20px;
      display: flex;
      flex-direction: row;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
    }

    button {
    font-size: 16px;
    padding: 10px 13px;
    margin: 3px 5px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
    }

    .question {
      background-color: rgba(0, 0, 0, 0.5); /* yarı saydam siyah */
      color: white;
      padding: 15px 20px;
      border-radius: 10px;
      font-size: 22px;
      text-align: center;
      margin: 20px auto;
      width: 90%;
      max-width: 500px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* hafif gölge */
    }
    #answerDisplay {
      background-color: rgba(0, 0, 0, 0.4); /* %40 şeffaf siyah */
      color: white;
      font-size: 24px;
      letter-spacing: 10px;
      margin: 20px auto;
      padding: 15px 20px;
      border-radius: 10px;
      width: fit-content;
      max-width: 90%;
      min-height: 80px; /* İki satır için sabit yükseklik */
      overflow: hidden; /* İçerik taşmasını engelle */
      transition: none !important; /* Animasyonları devre dışı bırak */
      text-align: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
   
    .message {
      display: none;
      background: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
      padding: 10px 20px;
      border-radius: 5px;
      margin-bottom: 10px;
      text-align: center;
    }
 #message {
  position: fixed;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 18px;
  z-index: 9999;
  display: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.top-bar {
  position: relative; /* Artık sabit değil, içerikle birlikte kayar */
  width: 100%;
  height: 50px;
  background: rgba(0, 0, 0, 0.4); /* Şeffaf siyah */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
  font-family: sans-serif;
  font-size: 18px;
  margin:0 0 15px 0; /* Altındaki içerik yapışmasın */
 
}

#backBtn {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  padding:5px 9px;
  cursor: pointer;
}

#backBtn:hover {
  text-decoration: underline;
}

.level {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
}
  
.cizgi {
  color:#fff;
    display: inline-block;
    min-width: 15px; /* Harfler arası boşluk */
    text-align: center;
}
#xbody {
  color: #fff;
  padding: 10px;
  font-size: 18px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 9999;
}
.hint-toggle {
  cursor: pointer;
  background: #ffd700;
  padding: 8px 12px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 15px;
  text-align: center;
  font-weight: bold;
  color: #333;
}
.modal-content {
    background-color: #1e0c0ce3;
}
.modal-header {
    padding: 5px 15px;
    border-bottom: 1px solid #e5e5e50a;
}
.close {
    opacity: 10 !important;
}
.modal-title {color:rgb(242, 255, 0)}

.space {
    display: inline-block;
    width: 30px; /* Kelimeler arası boşluk */
}
.selected-letter {
    color: #00ff00 !important;
    text-decoration: underline;
    font-weight: bold;
}

/* Mobil için optimize */
@media (max-width: 600px) {
    #answerDisplay {
        min-height: 60px;
        font-size: 18px;
        padding: 8px;
        white-space: normal !important;
        line-height: 1.8;
    }
    
    .cizgi {
        min-width: 12px;
    }
    
    .space {
        width: 20px;
    }
}
.correct-word {
    display: inline-block;
    margin-right: 15px;
    color: yellow;
}
/* CSS dosyasına ekle */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.pulse {
  animation: pulse 0.5s ease;
  color: #ffd700 !important;
}
#hintBtn {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 5px 11px;
  float:left;
}
#hintBtn:hover {
  opacity: 0.8;
}
.left-buttons {
  display: flex;
  gap: 5px; /* Butonlar arası boşluk */
  align-items: center;
}
