@font-face {
  font-family: "League Spartan";
  src: url("./fonts/League_Spartan/static/LeagueSpartan-Thin.ttf")
    format("truetype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "League Spartan";
  src: url("./fonts/League_Spartan/static/LeagueSpartan-ExtraLight.ttf")
    format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "League Spartan";
  src: url("./fonts/League_Spartan/static/LeagueSpartan-Light.ttf")
    format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "League Spartan";
  src: url("./fonts/League_Spartan/static/LeagueSpartan-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "League Spartan";
  src: url("./fonts/League_Spartan/static/LeagueSpartan-Medium.ttf")
    format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "League Spartan";
  src: url("./fonts/League_Spartan/static/LeagueSpartan-SemiBold.ttf")
    format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "League Spartan";
  src: url("./fonts/League_Spartan/static/LeagueSpartan-Bold.ttf")
    format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "League Spartan";
  src: url("./fonts/League_Spartan/static/LeagueSpartan-ExtraBold.ttf")
    format("truetype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "League Spartan";
  src: url("./fonts/League_Spartan/static/LeagueSpartan-Black.ttf")
    format("truetype");
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("./fonts/Wix_Madefor_Text/static/WixMadeforText-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("./fonts/Wix_Madefor_Text/static/WixMadeforText-Italic.ttf")
    format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("./fonts/Wix_Madefor_Text/static/WixMadeforText-Medium.ttf")
    format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("./fonts/Wix_Madefor_Text/static/WixMadeforText-MediumItalic.ttf")
    format("truetype");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("./fonts/Wix_Madefor_Text/static/WixMadeforText-SemiBold.ttf")
    format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("./fonts/Wix_Madefor_Text/static/WixMadeforText-SemiBoldItalic.ttf")
    format("truetype");
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("./fonts/Wix_Madefor_Text/static/WixMadeforText-Bold.ttf")
    format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("./fonts/Wix_Madefor_Text/static/WixMadeforText-BoldItalic.ttf")
    format("truetype");
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("./fonts/Wix_Madefor_Text/static/WixMadeforText-ExtraBold.ttf")
    format("truetype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("./fonts/Wix_Madefor_Text/static/WixMadeforText-ExtraBoldItalic.ttf")
    format("truetype");
  font-weight: 800;
  font-style: italic;
}

/* Custom CSS for animations and other specific styles */
@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

body {
  font-family: "Wix Madefor Text", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 15px;
  line-height: normal;
  color: #333;
}

main {
  max-width: 1400px;
}

.title {
  font-family: "League Spartan", sans-serif;
}

#interactive-view {
  min-height: 300px;
  display: flex;
  align-items: center;
  padding-right: 400px;
}

#flowchart-container .flow-chart-node:first-of-type span span {
  display: none;
}

.animated-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 1s ease-in-out forwards;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.animated-arrow {
  opacity: 0;
  animation: fadeIn 0.3s ease-in-out forwards;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Custom CSS for card styling */
.card {
  position: relative;
  border-radius: 0.5rem;
  background-color: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  width: 270px;
  line-height: normal;
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Custom CSS for button styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-weight: 500;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  cursor: pointer;
}

.btn-outline {
  /* border: 1px solid var(--border); */
  background-color: transparent;
  color: inherit;
}

.btn-ghost {
  background-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background-color: hsl(210 40% 96.1%);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.flow-chart-node {
  position: absolute;
  background-color: white;
  border-radius: 0.375rem;
  padding: 0.4rem 0.7rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 12px;
  line-height: normal;
  opacity: 0.85;
}

.flow-chart-node strong {
  font-size: 13px;
}

.flow-chart-node.selected {
  border: 2px solid #333 !important;
  opacity: 1;
}

.flow-chart-node.conclusion {
  width: 230px !important;
  font-size: 12px !important;
}

.text-primary-foreground {
  background: #333;
  color: #fff;
}

.question {
  cursor: default !important;
}

.question .flex {
  pointer-events: none;
  cursor: default;
}

.multi-q .question,
[data-node-id="root"] {
  pointer-events: auto;
  cursor: pointer !important;
}

.response-var.question {
  border: 2px solid rgb(238, 220, 135);
  background: rgba(238, 220, 135, 0.25);
}
.response-var.option {
  background: rgb(238, 220, 135);
}

.explanatory-var.question {
  border: 2px solid rgb(238, 136, 102);
  background: rgba(238, 136, 102, 0.25);
}
.explanatory-var.option {
  background: rgba(238, 136, 102, 0.8);
}

.statistical-test.question {
  border: 2px solid rgb(120, 170, 222);
  background: rgba(120, 170, 222, 0.25);
}
.statistical-test.option {
  background: rgba(120, 170, 222, 0.7);
}

.statistical-test.conclusion {
  background: rgb(65, 98, 134);
  color: #fff;
  font-size: 16px;
}

.question svg.node-arrow {
  display: none;
}

/* CSS for data-node-id="root" */
[data-node-id="root"] svg.node-arrow {
  display: block;
}

.path-node {
  border-radius: 0.5rem;
  padding: 5px 8px;
  font-size: 14px;
  max-width: 240px;
}

.path-node span {
  display: none;
}

.border-primary {
  border: 3px solid #646363 !important;
}

.selected + .conclusion {
  border: 3px solid #000 !important;
}

.lottie-container {
  height: 200px;
  margin: auto;
  position: absolute;
  right: 0;
  left: 0;
  bottom: 100%;
  width: 65%;
  margin-bottom: -22%;
}

/* Video popup overlay */
.video-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Video popup container */
.video-popup {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 95%;
  width: 1000px;
  position: relative;
  text-align: center;
  max-height: 90vh;
  overflow: hidden; /* Ensure content doesn't overflow */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Video popup title */
.video-popup-title {
  margin: -5px 0 10px;
  font-size: 30px;
  font-weight: bold;
  font-family: "League Spartan", sans-serif;
}

/* Video element */
.video-popup-video {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain; /* Maintain aspect ratio without stretching */
  border-radius: 4px;
}

/* Close button */
.video-popup-close {
  position: absolute;
  top: 0px;
  right: 25px;
  background: none;
  border: none;
  font-size: 3rem;
  cursor: pointer;
}

/* Video icon */
.video-icon {
  cursor: pointer;
  background: rgb(238, 220, 135);
  width: calc(100% + 24px);
  margin-left: -12px;
  margin-bottom: -11.5px;
  margin-top: 10px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 5px 8px;
  gap: 2px;
}

/* Campaign Objective nodes */
.campaign-objective {
  background-color: #f3e8ff; /* bg-purple-100 */
  border-color: #d8b4fe; /* border-purple-300 */
}

/* Primary segmentation nodes */
.target-audience,
.customer-status,
.customer-value {
  background-color: #dbeafe; /* bg-blue-100 */
  border-color: #93c5fd; /* border-blue-300 */
}

/* Secondary factor nodes */
.budget,
.sales-cycle,
.price,
.urgency,
.temperature,
.relationship,
.frequency,
.potential {
  background-color: #dcfce7; /* bg-green-100 */
  border-color: #86efac; /* border-green-300 */
}

/* Strategy category nodes */
.strategy {
  background-color: #fef9c3; /* bg-yellow-100 */
  border-color: #fde047; /* border-yellow-300 */
}

/* Conclusion nodes */
.conclusion {
  background-color: #fed7aa; /* bg-orange-200 */
  border-color: #fb923c; /* border-orange-400 */
}

/* Question nodes */
.question {
  font-weight: 500; /* font-medium */
}
