body {
  font-family:
    Segoe UI,
    Arial,
    sans-serif;
  background: #f6f8fc;
  margin: 0;
  color: #222;
  line-height: 1.7;
}
.page-header {
  background: linear-gradient(135deg, #4338ca, #7c3aed);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.tutorial-title {
  margin: 0;
}
.tutorial-subtitle {
  margin-top: 12px;
}
.page-container {
  max-width: 1300px;
  margin: auto;
  padding: 30px;
}
.tutorial-section {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  margin: 30px 0;
}
.section-title {
  margin: 0;
  background: #eef2ff;
  padding: 20px;
  color: #4338ca;
}
.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 25px;
}
.section-text {
}
.section-media {
}
.goal,
.tip,
.check {
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}
.goal {
  background: #eef2ff;
  border-left: 5px solid #4338ca;
}
.tip {
  background: #fff7ed;
  border-left: 5px solid #f59e0b;
}
.check {
  background: #ecfdf5;
  border-left: 5px solid #10b981;
}
.section-intro {
  margin: 16px 0;
}
.instructions {
  padding-left: 22px;
}
.instruction {
  margin: 8px 0;
}
.step-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #ddd;
}
.completion-section {
}
.completion-title {
}
.completion-message {
}
.learned-list {
  padding-left: 22px;
}
.learned-item {
  margin: 8px 0;
}
.celebrate-button {
  padding: 12px 20px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  background: #7c3aed;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}
.where-to-find-btn {
  background: #eef2ff;
  border: 1px solid #4338ca;
  color: #4338ca;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 8px;
  vertical-align: middle;
}
.where-to-find-btn:hover {
  background: #dbe0ff;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
}
.modal-close:hover {
  color: #000;
}
.modal img {
  width: 100%;
  border-radius: 8px;
  margin: 15px 0;
}
.modal p {
  margin: 0;
  color: #333;
  line-height: 1.6;
}
.completion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
}
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* Image Modal & Magnifier Styling */
.step-image {
  cursor: zoom-in;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.step-image:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.image-modal-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: inline-block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: #1e293b;
  cursor: crosshair;
  user-select: none;
}

.image-modal-img {
  display: block;
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  border-radius: 12px;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  z-index: 2010;
  line-height: 1;
  transition:
    transform 0.15s ease,
    color 0.15s ease;
  background: rgba(0, 0, 0, 0.4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-close:hover {
  color: #f87171;
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.7);
}

/* Magnifier Lens / Loupe */
.magnifier-lens {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 3px solid #7c3aed;
  border-radius: 50%;
  pointer-events: none;
  display: none;
  box-shadow:
    0 0 15px rgba(0, 0, 0, 0.5),
    inset 0 0 10px rgba(0, 0, 0, 0.25);
  background-repeat: no-repeat;
  z-index: 2005;
  transform: translate(-50%, -50%);
}

.modal-hint-bar {
  text-align: center;
  color: #cbd5e1;
  font-size: 13px;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .section-content {
    grid-template-columns: 1fr;
  }
}
