@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik+Iso&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne+Mono&display=swap'); /* NIEUW FONT */

:root {
  /* Monkeytype-style colors */
  --primary-color: #e2b714; /* Warm ochre */
  --secondary-color: #646669; /* Grey */

  --bg-color: #1e1e1e; /* Dark grey */
  --text-color: #d1d0c5; /* Light grey */
  --input-bg-color: #232323; /* Slightly lighter grey */
  --border-color: #444444; /* Grey for borders */
  --correct-color: #d1d0c5; /* Light grey for correct text */
  --incorrect-color: #ca4754; /* Red for errors */
  --incorrect-bg-color: transparent;
  --current-bg-color: transparent;
  --hover-bg-color: #2a2a2a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
  transition: background-color 0.3s, color 0.3s;
  line-height: 1.6;
  margin-top: 70px; /* Space for fixed navbar */
}

/* Navbar styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  flex-grow: 1;
  text-align: center;
  /* font-family wordt geërfd */
}

.nav-links li {
  display: inline;
  margin-left: 1.5rem;
}

.nav-links a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 0.2rem;
  transition: color 0.2s;
  /* font-family wordt geërfd */
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* Language selector for Navbar */
.navbar .language-selector {
  position: relative; /* Ensure it's part of the navbar flow */
}

.navbar .language-selector select {
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--secondary-color);
  border-radius: 4px;
  padding: 5px 10px;
  font-family: 'Cascadia Code', monospace; /* GEWIJZIGD (was inherit) */
  font-size: 0.9em;
  cursor: pointer;
  appearance: none;
  padding-right: 25px;
}

.navbar .language-selector::after {
  content: '▼';
  font-size: 0.7em;
  color: var(--primary-color);
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.navbar .language-selector select:hover {
  border-color: var(--primary-color);
}

.navbar .language-selector select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(226, 183, 20, 0.3);
}

/* General button styling */
.btn, button {
  background-color: var(--primary-color);
  color: var(--bg-color); /* Dark text on light button */
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
}

button:hover {
    background-color: #cda512; /* Darker ochre */
}

/* Containers for practice, settings, stats pages */
.practice-container,
.settings-container,
.stats-container {
  width: 90%;
  max-width: 1200px; /* Default max-width for these pages */
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--input-bg-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.practice-container {
  display: flex;
  gap: 2rem;
  max-width: 1800px;
}

.settings-container, .stats-container {
  text-align: center;
}

.settings-container h2, .stats-container h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
}

/* Practice Page Specifics */
.options-panel {
  flex: 1;
  background-color: var(--bg-color);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.options-panel h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
}

.options-panel label {
  display: block;
  margin-bottom: 1rem;
  color: var(--text-color);
  /* font-family wordt geërfd */
}

.options-panel select, .options-panel input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--input-bg-color);
  color: var(--text-color);
  /* font-family wordt geërfd */
}

.options-panel button#start-btn { /* Specific styling for start button */
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem; /* Consistent padding */
}

.typing-area {
  flex: 3; /* Give more space to typing area */
  display: flex;
  flex-direction: column;
}

.text-display { /* For practice.html */
  background-color: var(--input-bg-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
  font-size: 1.2rem; /* Font size for typing text */
  line-height: 1.8;
  min-height: 150px; /* Or adjust as needed */
  text-align: left;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  font-family: 'Fira Code', monospace; /* BEHOUDEN VOOR TYPEVLAK */
  color: var(--secondary-color); /* Untyped text color */
  margin-bottom: 1rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  position: relative;
  caret-color: transparent;
}

.typing-area .stats {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
  font-size: 1rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 1rem;
  /* font-family wordt geërfd */
}

.typing-area .stats span span { /* The actual value part */
    color: var(--primary-color);
    font-weight: bold;
}

.typing-area .instructions {
  text-align: center;
  color: var(--secondary-color);
  font-size: 0.9rem;
  /* font-family wordt geërfd */
}

/* Character styling for practice page text-display */
.text-display .char {
  color: var(--secondary-color); /* Untyped */
  position: relative;
  transition: color 0.1s ease;
  border-radius: 2px;
  line-height: 1.5;
  display: inline-block;
  height: 1.5em;
  vertical-align: middle;
  /* font-family wordt geërfd van .text-display */
}
.text-display .word {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.35em;
    /* font-family wordt geërfd van .text-display */
}
.text-display .correct {
  color: var(--correct-color); /* Typed correctly */
}
.text-display .incorrect {
  color: var(--text-color); /* Make incorrect text visible on red bg */
  background-color: var(--incorrect-color); /* Red background */
  border-radius: 2px;
  padding: 0 2px;
}
.text-display .current {
  color: var(--primary-color); /* Current character to type */
  animation: pulse 1.5s infinite;
}
.text-display .current::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  animation: blink 1s infinite;
}

/* Settings Page Specifics */
.settings-container label {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-size: 1rem;
  text-align: left;
  /* font-family wordt geërfd */
}

.settings-container input[type="range"],
.settings-container select {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 1rem;
  /* font-family wordt geërfd */
}

.settings-container input[type="range"] {
  accent-color: var(--primary-color);
}

/* Stats Page Specifics */
.stats-graph {
  background-color: var(--bg-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  min-height: 200px;
  text-align: left;
}
.stats-graph h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    /* font-family wordt geërfd */
}
.stats-graph p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    /* font-family wordt geërfd */
}
.stats-graph ul {
    list-style-type: none;
    padding: 0;
}
.stats-graph li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    /* font-family wordt geërfd */
}
.stats-graph li:last-child {
    border-bottom: none;
}
.stats-graph li strong {
    color: var(--primary-color);
}
.stats-graph li em {
    color: var(--secondary-color);
    font-size: 0.9em;
}

#reset-stats { /* Button on stats page */
    background-color: var(--incorrect-color);
    color: white;
}
#reset-stats:hover {
    background-color: #a53843; /* Darker red */
}

/* History section for practice page */
.practice-container .history-section {
  width: 250px; /* Or desired width */
  background-color: var(--input-bg-color);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--border-color);
  max-height: 500px; /* Adjust as needed */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.practice-container .history-title {
  color: var(--primary-color);
  font-size: 1.1em;
  margin-bottom: 10px;
  text-align: center;
  font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
  letter-spacing: 1px;
}

.practice-container .score-card {
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 4px;
  background-color: var(--bg-color);
  border-left: 3px solid var(--primary-color);
}

.practice-container .score-card:last-child {
  margin-bottom: 0;
}

.practice-container .score-card .score-time {
  font-size: 0.7em;
  color: var(--secondary-color);
  margin-bottom: 3px;
  /* font-family wordt geërfd */
}

.practice-container .score-card .wpm-value {
  font-size: 1.1em;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 3px;
  /* font-family wordt geërfd */
}

.practice-container .score-card .accuracy-value {
  font-size: 0.8em;
  color: var(--text-color);
  /* font-family wordt geërfd */
}

.practice-container #reset-scores {
  background-color: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Cascadia Code', monospace; /* GEWIJZIGD (was inherit) */
  font-size: 0.8em;
  margin-top: 12px;
  align-self: center;
}

.practice-container #reset-scores:hover {
  color: var(--incorrect-color);
  border-color: var(--incorrect-color);
  background-color: rgba(202, 71, 84, 0.1);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Styles for index.html layout - add class="index-layout" to index.html body */
body.index-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding-right: 320px; /* Space for the lessons sidebar */
}

/* Styles for pages with the fixed navbar (practice, settings, stats) */
body:not(.index-layout) {
    margin-top: 70px; /* Space for fixed navbar */
}

/* Combined Language selector styles */
.language-selector select,
.navbar .language-selector select {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    padding: 5px 10px;
    font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
    font-size: 0.9em;
    cursor: pointer;
    appearance: none;
    padding-right: 25px;
}

.language-selector::after,
.navbar .language-selector::after {
    content: '▼';
    font-size: 0.7em;
    color: var (--primary-color);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.language-selector select:hover,
.navbar .language-selector select:hover {
    border-color: var(--primary-color);
}

/* Specific for navbar version focus */
.navbar .language-selector select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(226, 183, 20, 0.3);
}

/* Language selector positioning for index.html (from style.css) */
.header-container .language-selector {
    position: absolute;
    top: 0;
    right: 0;
}

/* Language selector positioning for Navbar (from styles.css) */
.navbar .language-selector {
  position: relative;
}

/* Container for index.html (from style.css) */
.container {
    background-color: var(--input-bg-color);
    padding: 30px;
    padding-left: 50px;
    padding-right: 50px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    width: 90%; 
    max-width: 1400px; 
    margin: 2rem auto;
}

/* h1 for index.html (from style.css) */
h1 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
    letter-spacing: 2px;
    font-size: 2.5rem;
}

/* Header container for index.html title and language selector (from style.css) */
.header-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    position: relative; /* For absolute positioning of language selector */
}
.header-container h1 { /* Already defined above, this is more specific if needed */
    margin: 0 auto 20px; /* Center title */
}

/* Test options for index.html (from style.css) */
.test-options {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.test-options button {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    padding: 5px 12px;
    margin: 0 5px;
    cursor: pointer;
    font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
    font-size: 0.9em;
}

.test-options button.active {
    color: var(--primary-color);
    border-color: var (--primary-color);
}

.test-options button:hover {
    background-color: rgba(90, 90, 90, 0.1);
}

.test-options select {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    padding: 5px 10px;
    margin-left: 5px;
    font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
    font-size: 0.9em;
}

/* Stats display for index.html (from style.css) */
.container .stats { /* Scoped to index.html container */
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.container .stat { /* Scoped to index.html container */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container .label { /* Scoped to index.html container */
    font-size: 0.8em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.container #timer, .container #wpm, .container #accuracy { /* Scoped to index.html container */
    font-weight: bold;
    color: var(--primary-color);
}

/* Quote display for index.html (from style.css) */
.quote-display {
    margin-bottom: 20px;
    font-size: 1.4em;
    line-height: 1.8;
    text-align: left;
    background-color: var(--input-bg-color);
    padding: 20px;
    border-radius: 4px;
    min-height: 180px;
    letter-spacing: 1px;
    color: var(--secondary-color); /* Untyped text */
    white-space: pre-wrap;
    word-wrap: break-word;
    position: relative;
    caret-color: transparent;
    font-family: 'Fira Code', monospace;
    overflow-wrap: break-word;
}

/* Character styling for index.html quote-display (from style.css) */
.quote-display .char {
    color: var(--secondary-color); /* Untyped */
    position: relative;
    transition: color 0.1s ease;
    border-radius: 2px;
    line-height: 1.5;
    display: inline-block;
    height: 1.5em;
    vertical-align: middle;
}

.quote-display .word {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.35em;
}

.quote-display .correct {
    color: var(--correct-color); /* Typed correctly */
}

.quote-display .incorrect {
    color: white; /* White text for better contrast on red background */
    background-color: var(--incorrect-color); /* Red background */
    border-radius: 2px;
    padding: 0 2px;
}
.quote-display .char.incorrect[data-char=" "],
.quote-display .char.incorrect[data-isSpace="true"] {
    background-color: var(--incorrect-color);
    min-width: 0.5em;
}

.quote-display .current {
    color: var(--primary-color); /* Current character */
    animation: pulse 1.5s infinite;
}

.quote-display .current::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    animation: blink 1s infinite;
}

/* Instructions for index.html (from style.css) */
.instructions-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    width: 100%;
    text-align: center;
}

.container .instructions { /* Scoped to index.html */
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    user-select: none;
}

#reset-button { /* For index.html */
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
    margin: 0 auto;
    display: block;
}

#reset-button:hover {
    background-color: rgba(226, 183, 20, 0.1);
}

#reset-button:active {
    transform: scale(0.98);
}

/* Main content layout for index.html (from style.css) */
.main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
}

.typing-section { /* For index.html */
    flex: 3;
}

/* History section for index.html (from style.css) */
.container .history-section { /* Scoped to index.html */
    width: 250px;
    background-color: var(--bg-color);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.container .history-section .history-title { /* Scoped to index.html */
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
}
.container .history-section .score-card { /* Scoped to index.html */
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 4px;
  background-color: var(--input-bg-color);
  border-left: 3px solid var(--primary-color);
}
.container .history-section .score-card .score-time { /* Scoped to index.html */
  font-size: 0.75em;
  color: var(--secondary-color);
}
.container .history-section .score-card .wpm-value { /* Scoped to index.html */
  font-size: 1.1em;
  font-weight: bold;
  color: var(--primary-color);
}
.container .history-section .score-card .accuracy-value { /* Scoped to index.html */
  font-size: 0.85em;
  color: var(--text-color);
}
.container .history-section #reset-scores { /* Scoped to index.html */
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-top: auto;
    align-self: center;
    font-family: 'Cascadia Code', monospace;
}
.container .history-section #reset-scores:hover { /* Scoped to index.html */
    color: var(--incorrect-color);
    border-color: var(--incorrect-color); /* Corrected variable name */
}

/* Lessons sidebar styling (from style.css) */
.lessons-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 320px;
    height: 100vh;
    background-color: var(--input-bg-color);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 1000;
    padding: 20px 15px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.sidebar-header h2 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.lessons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-bottom: 40px;
    padding-right: 10px; /* Add padding to create space from scrollbar */
}

.lessons-container > *:last-child {
    margin-bottom: 80px;
}

.phase-header {
    background-color: var(--hover-bg-color);
    color: var(--primary-color);
    padding: 8px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    margin-top: 15px;
    margin-bottom: 5px;
}

.lesson-objective {
    color: var(--secondary-color);
    font-size: 0.8em;
    font-style: italic;
    padding: 5px 10px;
    margin-bottom: 10px;
}

.lesson-button {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 12px;
    text-align: left;
    margin: 2px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
    font-size: 0.9em;
    display: flex;
    align-items: center;
}

.lesson-button:hover {
    background-color: var(--hover-bg-color);
    border-color: var(--primary-color); /* Corrected variable name */
    color: var(--primary-color);
}

.lesson-button.active {
    background-color: var(--hover-bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    position: relative;
    box-shadow: 0 0 5px rgba(226, 183, 20, 0.3);
}

.lesson-button.active::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.lesson-number {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 2px 8px;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    min-width: 25px;
    text-align: center;
    flex-shrink: 0;
}

.lesson-title {
    flex-grow: 1;
    white-space: normal;
    line-height: 1.3;
}

/* Lesson info bar for index.html (from style.css) */
.lesson-info {
    background-color: var(--hover-bg-color);
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lesson-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}
.lesson-info .lesson-number {
    font-size: 1.1em;
}
.lesson-info .lesson-title {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1em;
}
#back-to-lessons {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 10px;
    white-space: nowrap;
    font-family: 'Cascadia Code', monospace; /* GEWIJZIGD */
}
#back-to-lessons:hover {
    background-color: rgba(226, 183, 20, 0.1);
}

/* Responsive layout adjustments for index.html (from style.css) */
@media (max-width: 1400px) {
    body.index-layout { /* Target index.html layout */
        padding-right: 0;
    }
    .lessons-sidebar { /* When sidebar might stack on index.html */
        position: static;
        width: 100%;
        height: auto;
        max-height: none;
        border-left: none;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin: 20px 0;
    }
    .container { /* Adjust index.html container padding */
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 1200px) { /* Further adjustments for index.html */
    .main-content { /* For index.html */
        flex-direction: column;
    }
    .typing-section, .container .history-section { /* For index.html */
        width: 100%;
        max-width: none;
    }
    .container .history-section { /* For index.html */
        margin-top: 20px;
    }
}

/* Blinking cursor for title */
.blinking-cursor {
  animation: blink 1s infinite;
  font-weight: normal; /* Adjust if needed */
}

/* Dropdown button styles */
.dropdown-button {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cascadia Code', monospace;
    font-size: 1rem;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.dropdown-button:hover {
    background-color: #cda512; /* Darker ochre */
}

#hand-image-container {
    text-align: center;
    margin-bottom: 20px;
}

.hand-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.8; /* Set image opacity to 90% */
}

/* Popup styles */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: var(--input-bg-color);
    color: var(--text-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
}

.popup-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.popup-buttons .btn {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cascadia Code', monospace;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.popup-buttons .popup-confirm {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
}

.popup-buttons .popup-confirm:hover {
    background-color: #cda512; /* Darker ochre */
}

.popup-buttons .popup-cancel {
    background-color: var(--secondary-color);
    color: var(--bg-color);
    border: none;
}

.popup-buttons .popup-cancel:hover {
    background-color: #4d4d4d; /* Slightly darker grey */
}

/* Custom scrollbar styling for menus */
.lessons-sidebar::-webkit-scrollbar,
.lessons-container::-webkit-scrollbar,
.history-section::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
  margin-left: 5px; /* Add space to the left of scrollbar */
}

.lessons-sidebar::-webkit-scrollbar-track,
.lessons-container::-webkit-scrollbar-track,
.history-section::-webkit-scrollbar-track {
  background-color: var(--bg-color); /* Dark background matching app bg */
  border-radius: 4px;
}

.lessons-sidebar::-webkit-scrollbar-thumb,
.lessons-container::-webkit-scrollbar-thumb,
.history-section::-webkit-scrollbar-thumb {
  background-color: var(--border-color); /* Dark scrollbar thumb */
  border-radius: 4px;
}

.lessons-sidebar::-webkit-scrollbar-thumb:hover,
.lessons-container::-webkit-scrollbar-thumb:hover,
.history-section::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-color); /* Slightly lighter on hover */
}

/* Firefox scrollbar styling */
.lessons-sidebar,
.lessons-container,
.history-section {
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) var(--bg-color);
  padding-right: 2px; /* Add slight padding for Firefox scrollbar spacing */
}