/* learn/styles/builder.css */

/* Level title styling */
h2#builder-title {
  margin-top: 1rem;
  font-size: 1.5rem;
  color: var(--text-dark);
}

/* Prompt image container */
#image-container {
  margin-top: 1rem;
}
#image-container img {
  max-width: 150px;
  display: block;
  margin: 0.5rem auto;
}

/* Slots container */
.slots {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

/* Each drop slot */
.slot {
  width: 80px;
  height: 80px;
  border: 2px dashed var(--primary);
  margin: 0 0.5rem;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  user-select: none;
}

/* Letters container for draggable/tappable tiles */
.letters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Draggable/tappable letter tile */
.tile {
  width: 70px;
  height: 70px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-radius: 10px;
  cursor: grab;
  user-select: none;
}

/* Visual indicator for selected tile on touch */
.tile.selected {
  outline: 3px solid #FFD700; /* adjust colour as desired */
}

/* Uniform button size for builder page */
/* Applies to buttons and links with class 'btn' inside builder UI */
#game-container .btn,
#level-picker .btn,
#game-container a.btn {
  min-width: 140px;
  padding: 0.75rem 1rem;
  text-align: center;
}

/* Centre controls container */
.controls,
.nav-controls {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Feedback message */
#feedback {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
}

/* Level picker adjustments */
#level-picker h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
#level-picker .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
  .slot {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  .tile {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  #image-container img {
    max-width: 120px;
  }
  #game-container .btn,
  #level-picker .btn,
  #game-container a.btn {
    min-width: 100px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* Optional: change cursor on touch devices */
@media (hover: none) {
  .tile {
    cursor: pointer;
  }
}
