@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

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

body {
  font-family: 'Special Elite', monospace;
  background: white;
  padding: 20px;
}

.print-instructions {
  text-align: center;
  padding: 20px;
  background: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 30px;
}

.print-instructions p {
  font-size: 18px;
  color: #333;
}

.index-section {
  background: white;
  border: 3px solid #1f2937;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.index-section h1 {
  font-size: 32px;
  color: #1f2937;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 2px;
}

.index-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

html {
  scroll-behavior: smooth;
}

.index-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.index-item:hover {
  background: #e5e7eb;
  transform: translateX(5px);
}

.index-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1f2937;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  margin-right: 20px;
  flex-shrink: 0;
}

.index-text {
  font-size: 20px;
  color: #374151;
  font-weight: 600;
}

@media print {
  .index-section {
    border: 3px solid #000;
  }
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.role-card {
  border: 2px dashed #999;
  padding: 4px;
  background: white;
  page-break-inside: avoid;
}

.card-content {
  background: #fef9c3;
  padding: 40px 30px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.role-number {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #fbbf24;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.card-content h2 {
  font-size: 28px;
  color: #1f2937;
  margin-bottom: 10px;
  font-weight: 700;
}

.card-content p {
  font-size: 16px;
  color: #6b7280;
  font-style: italic;
}

@media print {
  body {
    padding: 0;
  }

  .print-instructions {
    display: none;
  }

  .cards-container {
    gap: 20px;
  }

  .role-card {
    border: 2px dashed #000;
  }
}

.instruction-card {
  border: 2px dashed #999;
  padding: 4px;
  background: white;
  page-break-inside: avoid;
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.instruction-content {
  background: #dbeafe;
  padding: 40px 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.instruction-content h2 {
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 15px;
  font-weight: 700;
  margin-top: 20px;
}

.instruction-content h2:first-child {
  margin-top: 0;
}

.instruction-content ul {
  margin-left: 25px;
  margin-bottom: 10px;
}

.instruction-content li {
  font-size: 16px;
  color: #374151;
  margin-bottom: 8px;
  line-height: 1.5;
}

.question-examples li {
  font-style: italic;
  color: #4b5563;
}

@media print {
  .instruction-card {
    border: 2px dashed #000;
  }
}

.dilemma-card {
  border: 2px dashed #999;
  padding: 4px;
  background: white;
  page-break-inside: avoid;
}

.dilemma-content {
  background: #fce7f3;
  padding: 40px 30px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dilemma-number {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #ec4899;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.dilemma-content h2 {
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 15px;
  font-weight: 700;
}

.dilemma-content p {
  font-size: 16px;
  color: #374151;
  line-height: 1.6;
}

@media print {
  .dilemma-card {
    border: 2px dashed #000;
  }
}

.section-header {
  grid-column: 1 / -1;
  background: #1f2937;
  padding: 30px;
  text-align: center;
  margin-top: 30px;
  border-radius: 8px;
  page-break-before: always;
}

.section-header h1 {
  font-size: 36px;
  color: white;
  font-weight: 700;
  letter-spacing: 2px;
}

@media print {
  .section-header {
    border: 2px solid #000;
  }
}

.dilemma-instruction-card {
  border: 2px dashed #999;
  padding: 4px;
  background: white;
  page-break-inside: avoid;
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.dilemma-instruction-content {
  background: #e0e7ff;
  padding: 40px 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dilemma-instruction-content h2 {
  font-size: 28px;
  color: #1f2937;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.dilemma-instruction-content h3 {
  font-size: 20px;
  color: #374151;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

.dilemma-instruction-content h3:first-of-type {
  margin-top: 10px;
}

.dilemma-instruction-content p {
  font-size: 16px;
  color: #374151;
  margin-bottom: 10px;
  line-height: 1.5;
}

@media print {
  .dilemma-instruction-card {
    border: 2px dashed #000;
  }
}

.corners-instruction-card {
  border: 2px dashed #999;
  padding: 4px;
  background: white;
  page-break-inside: avoid;
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.corners-instruction-content {
  background: #dcfce7;
  padding: 40px 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.corners-instruction-content h2 {
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 15px;
  margin-top: 20px;
  font-weight: 700;
}

.corners-instruction-content h2:first-child {
  margin-top: 0;
}

.corners-instruction-content p {
  font-size: 16px;
  color: #374151;
  margin-bottom: 10px;
  line-height: 1.5;
}

.corners-instruction-content ul {
  margin-left: 25px;
  margin-bottom: 10px;
}

.corners-instruction-content li {
  font-size: 16px;
  color: #374151;
  margin-bottom: 8px;
  line-height: 1.5;
}

.corner-labels li strong {
  color: #166534;
  font-size: 18px;
}

@media print {
  .corners-instruction-card {
    border: 2px dashed #000;
  }
}

.statement-card {
  border: 2px dashed #999;
  padding: 4px;
  background: white;
  page-break-inside: avoid;
}

.statement-content {
  background: #d1fae5;
  padding: 40px 30px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.statement-number {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.statement-content h2 {
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 15px;
  font-weight: 700;
}

.statement-content p {
  font-size: 18px;
  color: #374151;
  line-height: 1.6;
  font-weight: 600;
}

@media print {
  .statement-card {
    border: 2px dashed #000;
  }
}

.print-section-btn {
  grid-column: 1 / -1;
  background: #1f2937;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-family: 'Special Elite', monospace;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.print-section-btn:hover {
  background: #374151;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media print {
  .print-section-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: 1fr;
  }
  
  .instruction-card {
    grid-column: 1;
  }
  
  .section-header {
    grid-column: 1;
  }
}

/* Enhanced print rules for a clean printable document */
@media print {
  /* Make everything single-column and remove decorative effects */
  html, body {
    height: auto !important;
    background: white !important;
    color: #000 !important;
  }

  /* Ensure index appears first and is visible */
  .index-section {
    display: block !important;
    position: relative;
    page-break-after: avoid;
    box-shadow: none !important;
  }

  /* Cards container becomes a vertical flow for printing */
  .cards-container {
    display: block !important;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    gap: 12px;
  }

  /* Make each card occupy its own print-friendly area and break between cards */
  .role-card,
  .dilemma-card,
  .statement-card,
  .instruction-card,
  .dilemma-instruction-card,
  .corners-instruction-card {
    display: block !important;
    width: auto !important;
    margin: 0 0 18px 0 !important;
    box-shadow: none !important;
    border: 2px dashed #000 !important;
    background: #fff !important;
    page-break-inside: avoid;
    page-break-after: always;
    -webkit-print-color-adjust: exact;
  }

  /* Avoid splitting content and keep header together with first card */
  .section-header {
    page-break-before: always;
    page-break-after: avoid;
    box-shadow: none !important;
    border: 2px solid #000 !important;
  }

  /* Strip shadows and colors that won't print well */
  .card-content,
  .dilemma-content,
  .statement-content,
  .instruction-content,
  .dilemma-instruction-content,
  .corners-instruction-content {
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    padding: 24px !important;
    min-height: auto !important;
  }

  /* Increase text sizes for readability on print */
  .card-content h2,
  .dilemma-content h2,
  .statement-content h2,
  .instruction-content h2,
  .dilemma-instruction-content h2 {
    font-size: 22px !important;
  }

  .card-content p,
  .dilemma-content p,
  .statement-content p,
  .instruction-content p,
  .dilemma-instruction-content p {
    font-size: 14px !important;
    color: #000 !important;
  }

  /* Hide interactive elements that don't belong on printouts */
  .print-section-btn,
  .index-item,
  .print-instructions {
    display: none !important;
  }

  /* Remove positioned badges that may overlap on print */
  .role-number,
  .dilemma-number,
  .statement-number {
    position: static !important;
    margin-bottom: 8px;
  }

  /* Ensure dashed cut guides are visible and not too faint */
  .role-card, .dilemma-card, .statement-card, .instruction-card,
  .dilemma-instruction-card, .corners-instruction-card {
    border-style: dashed !important;
    border-color: #000 !important;
  }

  /* Reduce page margins to allow more content; use typical printer margins */
  @page {
    margin: 18mm;
  }
}