/* FUNDAL CAIET */
body {
  margin: 0;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  background: #f4f6ff;
  color: #222;
}

/* titlu tip caiet */
.title {
  text-align: center;
  margin-top: 20px;
  font-size: 2rem;
  color: #2c3e50;
}
.title span {
  font-size: 1.1rem;
  color: #4b6584;
}

/* "Harta" – sticky notes nivel */
.map {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 25px;
}

.hex {
  width: 120px;
  height: 90px;
  background: #fff9c4;
  border: 2px solid #f1c40f;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  text-align: center;
  font-weight: bold;
  color: #2c3e50;
  transform: rotate(-2deg);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  opacity: 0.4;
}

.hex small {
  font-weight: normal;
  font-size: 0.8rem;
}

.hex:nth-child(2),
.hex:nth-child(4) {
  transform: rotate(2deg);
}

.hex.unlocked {
  opacity: 1;
}

.hex.active {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 6px 10px rgba(0,0,0,0.25);
  background: #ffe082;
}

.hex.locked {
  filter: grayscale(0.8);
  cursor: not-allowed;
}

/* CONTAINER CAIET CU LINIATURI */
.quiz-container {
  max-width: 800px;
  margin: 30px auto;
  background: #fffdf7;
  border-radius: 16px;
  border: 2px solid #e0d7c2;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  padding: 25px 30px;
  position: relative;
  overflow: hidden;
}

/* linii orizontale */
.quiz-container::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.03) 0,
    rgba(0,0,0,0.03) 1px,
    transparent 22px,
    transparent 24px
  );
  pointer-events: none;
}

/* margine verticală albastră, ca un caiet */
.quiz-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 65px;
  width: 2px;
  background: rgba(52, 152, 219, 0.35);
  pointer-events: none;
}

.quiz-container h2 {
  position: relative;
  margin-top: 0;
  margin-bottom: 18px;
  padding-left: 10px;
}

/* conținut efectiv peste liniaturi */
#singleQuestionView,
#summaryView,
#feedbackScreen {
  position: relative;
  z-index: 1;
}

/* ÎNTREBARE CURSA */
.question-slide {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.3s ease;
}

.question-slide.show {
  opacity: 1;
  transform: translateX(0);
}

.options label {
  display: block;
  background: #ecf0f1;
  margin: 6px 0;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.options input[type="radio"] {
  margin-right: 8px;
}

/* FEEDBACK SCREEN – tip W3Schools */
.feedback-screen {
  display: none;
  margin-top: 20px;
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
}

.feedback-ok {
  background: #1abc9c;
}

.feedback-wrong {
  background: #e74c3c;
}

.feedback-screen button {
  margin-top: 20px;
  padding: 10px 22px;
  background: #2c3e50;
  border: none;
  color: #fff;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}

/* SUMMARY (recapitulare) */
.summary-item {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
}

.summary-item.ok {
  background: #e0f7df;
}

.summary-item.bad {
  background: #ffebee;
}

.summary-item p {
  margin: 2px 0;
}

.success {
  color: #1b5e20;
  font-weight: bold;
}

.fail {
  color: #b71c1c;
  font-weight: bold;
}

.quiz-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

button {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #3498db;
  color: #fff;
  font-weight: bold;
}

/* cod nivel */
.code-box {
  margin-top: 15px;
  background: #000;
  color: #f1c40f;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  font-size: 1.1rem;
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
}

/* deblocare */
.unlock-section {
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.unlock-section input {
  padding: 8px;
  width: 65%;
  margin-right: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* utilitare */
.hidden {
  display: none;
}
