html, body {
  height: 100%;
  overflow: hidden;
  background: white;
}

main {
  flex: 1;
  overflow-y: auto;
  padding: 0px 20px 20px 20px;
  box-sizing: border-box;
}

.hidden {
  display: none;
}

#lesson-list, #freetalk-lesson-list, #buildtalk-lesson-list {
  list-style: none;
  padding: 0;
}

.lesson-item {
  background: white;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid #ccc;
}

.lesson-item:hover {
  background: #ddd;
}

/* 🔥 Language menu as a full panel */
.panel {
  position: fixed;
  top: 86px; /* Below header */
  left: 0;
  right: 0;
  bottom: 0px;
  background: var(--bg);
  padding: 20px;
  z-index: 1000;
  overflow-y: auto;
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
}

.lang-btn {
  padding: 12px 16px;
  font-size: 1em;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.lang-btn:hover {
  background: #ddd;
}

.lang-btn.selected {
  background: #ccc;
}

p#intro-text {
    margin-bottom: 35px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 1em;
  border-top: 1px solid #ccc;
  flex-shrink: 0;
  background: white;
}

.choose-text {
  font-weight: bold;
  color: #4a90e2;
  margin-left: 10px;
}

/*
.lesson-title {
  font-weight: bold;
}
  */

.lesson-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  opacity: 0.85;
  margin-top: 2px;
}

.lesson-date {
  text-align: left;
  font-style: italic;
  color: var(--accent);
}

.lesson-score {
  text-align: right;
  font-style: italic;
  color: var(--accent);
}

.clear-scores-btn {
  background-color: #e0f0ff;
  font-weight: bold;
  margin-top: 1em;
  border: 2px solid var(--accent);
  font-size: 20px;
  width: 100%;
}

.modal.hidden {
  display: none;
}
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 78%;
  max-width: 400px;
  text-align: center;
}
.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1em;
}
.confirm-btn {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 8px;
  font-size: 18px;
}
.cancel-btn {
  background-color: #ccc;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 18px;
}