/**
 * Uhrzeiten schreiben - Exercise Styles
 * Styles for the clock time exercise
 */

.exercise-container {
  width: 68rem;
  height: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: 1em;
  width: 100%;
  height: 100%;
  padding: 1rem;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.clock-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
}

.clock-image {
  max-width: 100%;
  max-height: 8rem;
  object-fit: contain;
}

.answer-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
  font-size: 1.2rem;
}

.fill-in {
  width: 11rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  font-size: 1.2rem;
  border: 0.2rem solid #F9B002;
  border-radius: 1.5rem;
  text-align: center;
  background-color: #fff;
  transition: all 0.2s ease;
  margin: 0 0.5rem;
}

.fill-in:focus {
  outline: none;
  border-color: #00699f;
  box-shadow: 0 0 0.3rem rgba(0, 105, 159, 0.3);
}

/* Visual feedback for correct/incorrect answers */
.fill-in.correct {
  background-color: rgba(37, 129, 116, 0.1);
  border-color: #258174;
}

.fill-in.incorrect {
  background-color: rgba(255, 0, 0, 0.1);
  border-color: #ff0000;
}

/* Scrollbar styling */
.clock-grid::-webkit-scrollbar {
  width: 0.8rem;
}

.clock-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0.4rem;
}

.clock-grid::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 0.4rem;
}

.clock-grid::-webkit-scrollbar-thumb:hover {
  background: #999;
}