:root {
  --bg-color: #111;
  --text-color: #0ff;
  --correct: #0f0;
  --wrong: #f00;
  --border-color: #0ff;
  --input-bg: #000;
  --highlight-color: #ff0;
  --box-bg: #1a1a1a;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 850px;
  margin: auto;
  padding: 20px;
}

h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

#textDisplay {
  min-height: 120px;
  width: 100%;
  max-width: 800px;
  padding: 15px;
  margin: 0 auto 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-y: auto;
  max-height: 180px;
  background-color: var(--box-bg);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Hardcore Mode Toggle Switch */
.input-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 16px;
  background: var(--box-bg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  overflow: hidden; /* Ensure glow doesn't spill out */
}

.input-checkbox:hover {
  background: var(--bg-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chekbox-css {
  position: relative;
  width: 40px;
  height: 20px;
  appearance: none;
  background: var(--box-bg);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  flex-shrink: 0; /* Prevent shrinking in flex container */
}

.chekbox-css:checked {
  background: var(--wrong);
  border-color: var(--wrong);
  /* Add a glow animation when checked */
  animation: hardcoreGlow 1.5s infinite alternate;
}

/* Glow animation */
@keyframes hardcoreGlow {
  0% {
    box-shadow: 0 0 5px var(--wrong), inset 0 0 5px rgba(0, 0, 0, 0.2);
  }
  100% {
    box-shadow: 0 0 20px var(--wrong), inset 0 0 5px rgba(0, 0, 0, 0.2);
  }
}

.chekbox-css::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  top: 0px;
  left: 0px;
  background: var(--text-color);
  transition: 0.3s;
  transform: scale(0.9);
}

.chekbox-css:checked::before {
  left: 20px;
  background: white;
}

.chekbox-css:active::before {
  transform: scale(0.8);
}

/* Skull icon */
.input-checkbox::after {
  content: '💀';
  font-size: 1rem;
  margin-left: 2px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.input-checkbox:hover::after {
  opacity: 1;
}

/* Add a warning glow effect to the skull when hardcore mode is active */
.chekbox-css:checked ~ span::after { /* Target the skull via the span next to the checkbox */
    animation: skullPulse 1.5s infinite alternate;
}

/* Modified skull pulse animation */
@keyframes skullPulse {
  0% {
    text-shadow: 0 0 5px var(--wrong);
  }
  100% {
    text-shadow: 0 0 15px var(--wrong);
    transform: scale(1.1); /* Slightly enlarge the skull */
  }
}

/* Remove the old warningPulse animation as it's replaced by skullPulse */
@keyframes warningPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

textarea {
  resize: vertical;
}

.correct {
  text-decoration: underline;
  color: var(--correct);
}

.wrong {
  text-decoration: line-through;
  color: var(--wrong);
}

.current {
  animation: blink 5ms infinite;
}

@keyframes blink {
  0% {
   border-block: 5px solid red;
   padding: 2px 0;
  }

  100% {
    border-block: none;
  }
}
select option{
background: var(--text-color);
}

#textInput {
  width: 100%;
  max-width: 800px;
  height: 45px;
  font-size: 1.1rem;
  padding: 10px;
  margin: 0 auto 15px;
  display: block;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-color);
  transition: border-color 0.3s;
  font-family: 'Roboto Mono', monospace;
}

#progressBar {
  width: 100%;
  height: 8px;
  margin-bottom: 25px;
  border-radius: 4px;
  overflow: hidden;
}

.results,
.leaderboard {
  text-align: center;
}

#leaderboardList {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-color);
  padding: 8px 16px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: var(--border-color);
  color: var(--bg-color);
  transform: scale(1.05);
}

button:active {
  transform: scale(0.98);
}

.chart-container {
  max-width: 100%;
  width: 100%;
  height: 250px;
  margin-top: 20px;
  background-color: var(--box-bg);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* ✅ Game Over Panel Style */
#gameOverPanel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--box-bg);
  border: 2px solid var(--border-color);
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  text-align: center;
  max-width: 90%;
}

#gameOverPanel h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

#gameOverPanel.hidden {
  display: none;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

@media (max-width: 600px) {
  .controls {
    flex-direction: column;
  }

  #textDisplay {
    font-size: 1.1rem;
    max-height: 160px;
  }

  #textInput {
    font-size: 1rem;
    height: 40px;
  }

  button {
    font-size: 0.95rem;
    padding: 6px 14px;
  }
}


/*Deepseek*/
/* Word Practice Specific Styles */
#wordDisplay {
  font-size: 2rem;
  letter-spacing: 0.5rem;
  text-align: center;
  margin: 20px 0;
}

#wordInput {
  text-align: center;
  font-size: 1.5rem;
  height: 60px;
}

.streak-animation {
  animation: streakPulse 0.5s;
}

@keyframes streakPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Add to style.css */
.correct-flash {
  animation: flashGreen 0.3s;
}

@keyframes flashGreen {
  0% {
    background: var(--correct);
  }

  100% {
    background: transparent;
  }
}

/*keyboard-tutor*/
/* Keyboard Tutor Specific */
.keyboard-mode {
  --highlight-color: #9c27b0;
  --border-color: #7b1fa2;
}

.exercise-area {
  background: var(--box-bg);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-top: 30px;
}

#targetKey span {
  font-size: 2rem;
  color: var(--highlight-color);
  font-weight: bold;
}

.key.size-wide {
  width: 100px;
}

/* Finger colors */
.key[data-finger="pinky"]::after {
  color: #FF5252;
}

.key[data-finger="ring"]::after {
  color: #FFEB3B;
}

.key[data-finger="middle"]::after {
  color: #4CAF50;
}

.key[data-finger="index"]::after {
  color: #2196F3;
}

.key[data-finger="thumb"]::after {
  color: #9C27B0;
}

/* Progress Bar */
.progress-container {
  margin: 20px auto;
  width: 80%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar {
  flex-grow: 1;
  height: 20px;
  background: var(--box-bg);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--highlight-color);
  width: 0%;
  transition: width 0.3s;
}

/* Word Practice */
#wordPractice {
  margin: 30px auto;
  max-width: 500px;
  text-align: center;
}

#wordDisplay {
  font-size: 2rem;
  margin: 20px 0;
  min-height: 60px;
}

#wordInput {
  width: 100%;
  padding: 10px;
  font-size: 1.2rem;
  text-align: center;
}

.word-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.hidden {
  display: none;
}

/* Achievements Display */
.achievements-section {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--box-bg);
    border-radius: 12px;
}

.achievements-section .section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.5rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.achievement-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Lock overlay for achievements */
.achievement-card::before {
    content: '🔒';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.achievement-card.unlocked::before {
    opacity: 0;
    pointer-events: none;
}

/* Update achievement card content to be visible but blurred when locked */
.achievement-card .icon,
.achievement-card h3,
.achievement-card p {
    position: relative;
    z-index: 1;
    transition: filter 0.3s ease;
}

.achievement-card:not(.unlocked) .icon,
.achievement-card:not(.unlocked) h3,
.achievement-card:not(.unlocked) p {
    filter: blur(1px);
    opacity: 0.8;
}

/* Hardcore achievements specific lock styling */
.achievement-card[data-type="hardcore"]::before,
.achievement-card[data-type="hardcoreWpm"]::before,
.achievement-card[data-type="hardcoreAccuracy"]::before {
    background: rgba(255, 0, 0, 0.5);
    color: white;
}

/* Hover effect for locked achievements */
.achievement-card:not(.unlocked):hover::before {
    background: rgba(0, 0, 0, 0.8);
    cursor: not-allowed;
}

.achievement-card[data-type="hardcore"]:not(.unlocked):hover::before,
.achievement-card[data-type="hardcoreWpm"]:not(.unlocked):hover::before,
.achievement-card[data-type="hardcoreAccuracy"]:not(.unlocked):hover::before {
    background: rgba(255, 0, 0, 0.8);
}

/* Update existing achievement card styles */
.achievement-card.unlocked {
    border-color: var(--text-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.achievement-card[data-type="hardcore"].unlocked,
.achievement-card[data-type="hardcoreWpm"].unlocked,
.achievement-card[data-type="hardcoreAccuracy"].unlocked {
    border-color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

/* Add a subtle animation for the lock icon */
@keyframes lockPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.achievement-card:not(.unlocked):hover::before {
    animation: lockPulse 1s infinite;
}

.achievement-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--box-bg);
}

.achievement-card .icon.bronze {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.achievement-card .icon.silver {
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.achievement-card .icon.gold {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.achievement-card .icon.platinum {
    color: #e5e4e2;
    text-shadow: 0 0 10px rgba(229, 228, 226, 0.5);
}

.achievement-card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: var(--text-color);
}

.achievement-card p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

/* Hardcore Mode Achievements */
.achievement-card[data-type="hardcore"],
.achievement-card[data-type="hardcoreWpm"],
.achievement-card[data-type="hardcoreAccuracy"] {
    border-color: #ff4444;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.2);
}

.achievement-card[data-type="hardcore"]:hover,
.achievement-card[data-type="hardcoreWpm"]:hover,
.achievement-card[data-type="hardcoreAccuracy"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.3);
}

.achievement-card[data-type="hardcore"] .icon,
.achievement-card[data-type="hardcoreWpm"] .icon,
.achievement-card[data-type="hardcoreAccuracy"] .icon {
    background: linear-gradient(145deg, #ff4444, #cc0000);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.achievement-card[data-type="hardcore"] .icon.bronze,
.achievement-card[data-type="hardcoreWpm"] .icon.bronze,
.achievement-card[data-type="hardcoreAccuracy"] .icon.bronze {
    background: linear-gradient(145deg, #ff4444, #cc0000);
}

.achievement-card[data-type="hardcore"] .icon.silver,
.achievement-card[data-type="hardcoreWpm"] .icon.silver,
.achievement-card[data-type="hardcoreAccuracy"] .icon.silver {
    background: linear-gradient(145deg, #ff6666, #ff0000);
}

.achievement-card[data-type="hardcore"] .icon.gold,
.achievement-card[data-type="hardcoreWpm"] .icon.gold,
.achievement-card[data-type="hardcoreAccuracy"] .icon.gold {
    background: linear-gradient(145deg, #ff8888, #ff3333);
}

.achievement-card[data-type="hardcore"] .icon.platinum,
.achievement-card[data-type="hardcoreWpm"] .icon.platinum,
.achievement-card[data-type="hardcoreAccuracy"] .icon.platinum {
    background: linear-gradient(145deg, #ffaaaa, #ff6666);
}

.achievement-card[data-type="hardcore"].unlocked,
.achievement-card[data-type="hardcoreWpm"].unlocked,
.achievement-card[data-type="hardcoreAccuracy"].unlocked {
    border-color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

.achievement-card[data-type="hardcore"].unlocked .icon,
.achievement-card[data-type="hardcoreWpm"].unlocked .icon,
.achievement-card[data-type="hardcoreAccuracy"].unlocked .icon {
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* Achievement Notification */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--box-bg);
    border: 2px solid var(--text-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.5s ease-out, fadeOut 0.5s ease-in 2.5s forwards;
    z-index: 1000;
}

.achievement-notification[data-type="hardcore"] {
    border-color: var(--wrong);
}

.achievement-notification .achievement-icon {
    font-size: 2rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--bg-color);
}

.achievement-notification .achievement-content h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.achievement-notification .achievement-content p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* User Stats Display */
.user-stats {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1rem 0;
}

.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--box-bg);
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.stat-card h4 {
  margin: 0;
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.stat-card .value {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.stat-card .label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Achievements Display */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.achievement-card {
  background: var(--box-bg);
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.achievement-card.unlocked {
  opacity: 1;
}

.achievement-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.achievement-card .title {
  font-size: 0.9rem;
  font-weight: bold;
  margin: 0;
}

.achievement-card .description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
}

.achievement-card .requirement {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
}

/* Hardcore Leaderboard Styles */
.hardcore-leaderboard {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--box-bg);
    border: 2px solid var(--wrong);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
}

.hardcore-leaderboard h3 {
    color: var(--wrong);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hardcore-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 0, 0, 0.05);
    border-radius: 8px;
}

.hardcore-stats .stat-item {
    text-align: center;
}

.hardcore-stats .stat-item span:first-child {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.hardcore-stats .stat-item span:last-child {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--wrong);
}

#hardcoreLeaderboardList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#hardcoreLeaderboardList li {
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: rgba(255, 0, 0, 0.05);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
}

#hardcoreLeaderboardList li:hover {
    transform: translateX(5px);
    background: rgba(255, 0, 0, 0.1);
}

#hardcoreLeaderboardList li .score {
    font-weight: bold;
    color: var(--wrong);
}

#clearHardcoreLeaderboard {
    margin-top: 1rem;
    background: transparent;
    border: 2px solid var(--wrong);
    color: var(--wrong);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#clearHardcoreLeaderboard:hover {
    background: var(--wrong);
    color: var(--bg-color);
}

/* Style for select elements (dropdowns) */
.controls select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--box-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 6px 25px 6px 10px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    width: auto;
    min-width: 80px;
    max-width: 120px;
    box-sizing: border-box;
}

.controls select:hover {
    border-color: var(--highlight-color);
}

.controls select:focus {
    border-color: var(--highlight-color);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
}

/* Ensure dropdown options are visible */
.controls select option {
    background: var(--box-bg); /* Use the box background color */
    color: var(--text-color); /* Use the main text color */
}

/* Container for label and select to manage alignment and space */
.controls label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
}

/* Custom dropdown arrow */
.controls .select-label::after {
    content: '▼';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    pointer-events: none;
    font-size: 0.8rem;
}

/* Adjust .controls flex container if needed for better spacing */
.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

/* Detailed Performance Analysis Styles */
#detailedAnalysisSection {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--box-bg);
    border-radius: 12px;
}

#detailedAnalysisSection .section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.5rem;
}

.analysis-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust column size as needed */
    gap: 1rem;
    padding: 0 1rem;
}

.analysis-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.analysis-card h4 {
    margin-top: 0;
    color: var(--highlight-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.analysis-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-card li {
    background: var(--box-bg);
    padding: 0.5rem;
    margin-bottom: 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
}

/* Optional: Style for problematic words */
.analysis-card li.problem { /* Add a class 'problem' to problematic word list items */
    color: var(--wrong);
    font-weight: bold;
}

/* Optional: Style for error characters */
.analysis-card li.error { /* Add a class 'error' to error breakdown list items */
    color: var(--wrong);
    font-weight: bold;
}

/* Style for the speed variation placeholder */
.analysis-card p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    text-align: center;
    margin: 1rem 0;
}

/* Ensure it respects the container width */
#detailedAnalysisSection.hidden {
    display: none;
}