/* Game Page Styles */

/* Difficulty buttons */
#easy-btn, #hard-btn {
  margin: 0 0.25rem;
}

#easy-btn.active {
  box-shadow: 4px 4px 0 #146c43;
  transform: translate(-2px, -2px);
}

#hard-btn.active {
  box-shadow: 4px 4px 0 #997404;
  transform: translate(-2px, -2px);
}

/* Hex code display */
.hex-display {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  background-color: #212529;
  color: #fff;
  border-radius: 0.5rem;
  display: inline-block;
  border: 3px solid #212529;
}

/* Color grid - single row */
.color-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

/* Color swatch buttons */
.color-swatch {
  aspect-ratio: 1;
  width: 60px;
  height: 60px;
  border: 3px solid #212529;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.color-swatch:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #212529;
}

.color-swatch:active {
  transform: translate(0, 0);
  box-shadow: none;
}

/* Feedback states */
.color-swatch.correct {
  border-color: #198754;
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.4);
}

.color-swatch.wrong {
  border-color: #dc3545;
  opacity: 0.5;
}

.color-swatch.disabled {
  pointer-events: none;
}

/* Feedback message */
#feedback {
  min-height: 2rem;
}

.feedback-correct {
  color: #198754;
}

.feedback-wrong {
  color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .hex-display {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }

  .color-swatch {
    width: 50px;
    height: 50px;
  }
}
