@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Mono', monospace;
  background: linear-gradient(135deg, #fff9e6 0%, #ffe6f0 100%);
  color: #222;
  line-height: 1.6;
  font-size: 18px;
}

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

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(255, 107, 107, 0.3);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.instructions {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ff6b6b;
  text-shadow: 2px 2px 0 rgba(255, 107, 107, 0.1);
}

h2 {
  font-size: 2rem;
  margin: 30px 0 15px;
  font-weight: 700;
  color: #4ecdc4;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #ff6b6b;
}

.info-box {
  background: linear-gradient(135deg, #fff 0%, #fff5cc 100%);
  padding: 25px;
  border-radius: 12px;
  margin: 20px 0;
  border-left: 6px solid #ffd93d;
  box-shadow: 0 4px 15px rgba(255, 217, 61, 0.2);
  transition: transform 0.3s ease;
}

.info-box:hover {
  transform: scale(1.02);
}

.info-box p {
  margin: 8px 0;
}

ol {
  margin-left: 25px;
  margin-bottom: 30px;
}

ol li {
  margin: 12px 0;
  padding-left: 10px;
  transition: transform 0.2s ease;
  font-size: 1.1rem;
}

ol li:hover {
  transform: translateX(5px);
  color: #ff6b6b;
}

.example {
  background: linear-gradient(135deg, #fff 0%, #e6f7ff 100%);
  padding: 25px;
  border-radius: 12px;
  margin-top: 30px;
  border: 3px solid #4ecdc4;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2);
}

.example-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin: 15px 0 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  transition: transform 0.3s ease;
}

.example-image:hover {
  transform: scale(1.02);
}

.dialogue {
  margin: 10px 0;
  padding-left: 20px;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.dialogue:hover {
  padding-left: 30px;
  color: #ff6b6b;
}

.speaker {
  font-weight: 700;
  display: inline-block;
  min-width: 30px;
  color: #4ecdc4;
}

.tips-box {
  background: linear-gradient(135deg, #fff 0%, #f0e6ff 100%);
  padding: 25px;
  border-radius: 12px;
  margin-top: 30px;
  border-left: 6px solid #a78bfa;
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.2);
  transition: transform 0.3s ease;
}

.tips-box:hover {
  transform: scale(1.02);
}

.tips-box h2 {
  margin-top: 0;
  color: #8b5cf6;
}

.tips-box ul {
  list-style: none;
  margin: 15px 0 0 0;
}

.tips-box ul li {
  margin: 12px 0;
  padding-left: 25px;
  position: relative;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.tips-box ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #a78bfa;
  font-weight: 700;
}

.tips-box ul li:hover {
  transform: translateX(5px);
  color: #8b5cf6;
}

.benefits-box {
  background: linear-gradient(135deg, #fff 0%, #e6fff2 100%);
  padding: 25px;
  border-radius: 12px;
  margin-top: 30px;
  border-left: 6px solid #34d399;
  box-shadow: 0 4px 15px rgba(52, 211, 153, 0.2);
  transition: transform 0.3s ease;
}

.benefits-box:hover {
  transform: scale(1.02);
}

.benefits-box h2 {
  margin-top: 0;
  color: #10b981;
}

.benefits-box ul {
  list-style: none;
  margin: 15px 0 0 0;
}

.benefits-box ul li {
  margin: 12px 0;
  padding-left: 25px;
  position: relative;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.benefits-box ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 700;
  font-size: 1.2rem;
}

.benefits-box ul li:hover {
  transform: translateX(5px);
  color: #10b981;
}

.index-box {
  background: linear-gradient(135deg, #fff 0%, #ffe6e6 100%);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 3px solid #ff6b6b;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
  transition: transform 0.3s ease;
}

.index-box:hover {
  transform: scale(1.02);
}

.index-box h2 {
  margin-top: 0;
  color: #ff6b6b;
  font-size: 1.8rem;
}

.index-list {
  list-style: none;
  margin: 15px 0 0 0;
  padding: 0;
}

.index-list li {
  margin: 10px 0;
  font-size: 1.1rem;
}

.index-list a {
  color: #222;
  text-decoration: none;
  padding: 8px 15px;
  display: inline-block;
  border-radius: 6px;
  transition: all 0.2s ease;
  border-left: 3px solid #ff6b6b;
  padding-left: 12px;
}

.index-list a:hover {
  background: rgba(255, 107, 107, 0.1);
  transform: translateX(5px);
  color: #ff6b6b;
}

/* Top sticky index bar */
.top-index {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(6px);
}
.top-index-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}
.menu-toggle {
  background: #ff6b6b;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.top-index-list {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.top-index-list li a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  border: 1px solid transparent;
}
.top-index-list li a:hover {
  background: rgba(78,205,196,0.12);
  color: #4ecdc4;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .top-index-inner { padding: 8px 12px; }
  .top-index-list { display: none; }
  .menu-toggle[aria-expanded="true"] + .top-index-list { display: flex; flex-direction: column; position: absolute; top: 44px; left: 12px; background: white; padding: 8px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

