/* Flanker Test Specific Styles */
.instructions { 
  font-size: 1.1rem; 
  margin-bottom: 1.5rem; 
  text-align: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
}

/* Container for stimulus and end message to manage visibility */
#stimulus-container {
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
}

#stimulus { 
  font-size: clamp(2.5rem, 12vw, 6rem); 
  transition: color 0.3s ease; 
  text-align: center;
  letter-spacing: 0.1em;
}

/* New style for the end message, distinct from the stimulus */
#end-message {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--success-color);
  font-weight: 600;
  text-align: center;
  display: none;
}

#result { 
  font-size: 1.1rem; 
  margin-top: 1rem; 
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats { 
  font-size: 1rem; 
  margin: 1rem 0; 
  text-align: center;
}

.stats span {
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
}

button, .btn { 
  font-size: 1rem; 
  padding: 0.75rem 1.5rem; 
  margin-top: 1rem; 
  cursor: pointer; 
}

#chart { 
  width: 95%; 
  height: 300px; 
  margin: 1.5rem auto; 
  display: none; 
}

.switch-container { 
  margin: 10px auto; 
  display: inline-flex; 
  justify-content: center;
  align-items: center; 
  gap: 10px; 
}

/* Hide arrow keys by default */
#arrow-keys {
  display: none;
  justify-content: center;
  gap: 60px;
  margin-bottom: 20px;
  text-align: center;
}

.arrow-btn {
  /* Responsive font size for arrow buttons */
  font-size: clamp(4rem, 10vw, 5rem);
  color: #6c757d;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  transition: transform 0.1s ease, color 0.2s ease;
}

.arrow-btn:hover {
  color: #0d6efd;
}

.arrow-btn:active {
  transform: scale(0.92);
}

/* Flash animations */
@keyframes flashGreen {
  0%, 100% { color: #28a745; }
  50% { color: inherit; }
}
@keyframes flashRed {
  0%, 100% { color: #dc3545; }
  50% { color: inherit; }
}
.flash-correct { animation: flashGreen 0.5s ease; }
.flash-wrong { animation: flashRed 0.5s ease; }

/* Start Button Style */
#startBtn {
  display: block;
  margin: 2rem auto;
  font-size: 1.5rem;
  padding: 1rem 2.5rem;
  width: 60%;
  min-width: 250px;
}

.controls-area {
  margin-bottom: 1.5rem;
}

.switch-container {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  margin-left: auto;
  text-align: right;
  direction: rtl;
}

.form-switch .form-check-input {
  border-radius: 2em !important;
}

/* In Flanker.css */
#arrow-keys {
  opacity: 1;
  transition: opacity 0.4s ease;
}
#arrow-keys.hidden {
  opacity: 0;
  pointer-events: none;
}

details.always-open {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  background-color: #f9f9f9;
  display: block;
}

details.always-open[open] summary {
  cursor: default;
  list-style: none;
}

details.always-open summary::-webkit-details-marker {
  display: none;
}

details.always-open summary {
  font-weight: bold;
  margin-bottom: 10px;
}

/* Remove the default arrow from <summary> */
.custom-details summary::-webkit-details-marker {
  display: none;
}

.custom-details summary {
  cursor: default;
}

/* Optional: smoother card border and shadow */
.custom-details {
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}