/* TABLE STYLING */
table {
  border-collapse: collapse;
  margin: 30px auto;
  background: #fff;
}

th, td {
  border: 1px solid #ccc;
  width: 180px;
  height: 90px;
  text-align: center;
  vertical-align: middle;
  padding: 6px;
}

th {
  background: #f0f0f0;
  font-weight: bold;
}

/* Cell turns red for a wrong answer */
.incorrect {
  background-color: #ff4444 !important;
  transition: background-color 0.5s ease;
}

/* Shake animation to provide visual feedback */
.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Container to keep input and hint elements organized */
.cell-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

/* Small, subtle hint button */
.hint-btn {
  background: none;
  border: 1px solid #ffae00;
  color: #ffae00;
  font-size: 10px;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.3s;
}

.hint-btn:hover {
  background: #ffae00;
  color: #000;
}

/* Hint text styling */
.hint-text {
  font-size: 11px;
  color: #bbb;
  font-style: italic;
  max-width: 120px;
  text-align: center;
}
/* Blue background for revealed movies */
.revealed {
  background-color: #3498db !important;
  color: white !important;
  transition: background-color 0.5s ease;
}

/* Ensure the reveal button looks distinct */
.reveal-btn {
  background: none;
  border: 1px solid #3498db;
  color: #3498db;
  font-size: 10px;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 2px;
}

.reveal-btn:hover {
  background: #3498db;
  color: white;
}
.correct {
  background: #d4edda;
  font-weight: bold;
}
