body {
  font-family: Arial;
  background-color: #f0f8ff;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.go-back {
  position: absolute;
  top: 20px;
  right: 20px;
  border-radius: 5px;
  font-size: 18px;
  padding: 5px 10px;
  font-size: 16px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#game-board {
  text-align: center;
  max-width: 600px;
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
}

#word-image {
  margin-bottom: 10px;
}

#scrambled-word {
  font-size: 20px;
  margin-bottom: 20px;
}

#letter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.draggable {
  width: 30px;
  height: 30px;
  border: 2px solid #3498db;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  user-select: none;
}

#check-button,
#next-button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#next-button {
  background-color: #2ecc71;
  margin-left: 10px;
}

#feedback {
  margin-top: 10px;
  font-size: 18px;
}

.dragging {
  opacity: 0.5;
}

.hovered {
  background-color: #3498db;
  color: white;
}



/* just added */

/* Add these to your existing CSS */
.draggable {
  /* Existing styles */
  transition: all 0.2s ease;
  /* Add smooth transitions */
  background-color: white;
  /* Ensure consistent background */
}

.dragging {
  opacity: 0.7;
  transform: scale(1.1);
  /* Slightly enlarge while dragging */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  /* Add shadow effect */
}

.draggable-over {
  background-color: #e0f7fa;
  /* Light blue background for drop target */
  transform: scale(1.05);
  /* Slightly enlarge potential drop target */
}

.correct {
  background-color: #a5d6a7;
  /* Light green for correct letters */
}

.incorrect {
  background-color: #ffcdd2;
  /* Light red for incorrect letters */
}








/* Replace your existing body and game-board styles with these: */
body {
  font-family: Arial, sans-serif;
  background-color: #f0f8ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

#game-board {
  text-align: center;
  width: 80%;
  max-width: 800px;
  /* Increased from 600px */
  min-width: 500px;
  /* Ensures good display on laptops */
  padding: 30px;
  border: 2px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

/* Make the word image slightly larger */
#word-image {
  width: 250px;
  height: 250px;
  background-size: contain;
  margin: 0 auto 20px;
  border-radius: 5px;
}

/* Increase letter tile sizes */
.draggable {
  width: 40px;
  height: 40px;
  font-size: 1.2em;
  /* ... keep your existing draggable styles ... */
}

/* Larger buttons */
#check-button,
#next-button {
  padding: 12px 25px;
  font-size: 1.1em;
  margin: 25px 10px 0;
}

/* Better feedback text */
#feedback {
  margin-top: 20px;
  font-size: 1.2em;
  min-height: 1.5em;
}