@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500&display=swap');
@import url('theme.css');

body {
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', sans-serif;
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.top-bar {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.nav-heading {
  font-size: 22px;
  font-weight: 500;
  padding: 20px 36px;
}

.nav-heading.has-branch {
  position: relative;
}

.nav-heading span {
  cursor: pointer;
  transition: color 0.4s ease;
}

.nav-heading span:hover {
  color: var(--hover-red);
}

.branch-svg path,
.straight-arrow-svg path {
  stroke: var(--arrow-stroke);
}

#arrow path {
  fill: var(--arrow-stroke);
}

/* Branch line & subheadings */
.branch-wrapper {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-150px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}

.branch-svg {
  display: block;
}

.straight-arrow-svg {
  display: block;
  width: 20px;
  height: 50px;
  flex-shrink: 0;
}

.subheadings-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: max-content;
  margin-top: 6px;
}

.branch-wrapper .subheadings-list {
  position: relative;
  left: 50px;
  transform: translateX(-50%);
}

.right-branch .subheadings-list {
  position: relative;
  left: 130px;
  transform: translateX(-50%);
}

.subheading-item {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-color);
  white-space: nowrap;
}

.subheading-item span {
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.4s ease;
}

.subheading-item span:hover {
  color: var(--hover-red);
}

/* Straight down branch (adb, cmd stuff, github) */
.straight-branch {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  pointer-events: none;
}

.straight-branch .subheadings-list {
  position: static;
  transform: none;
  left: auto;
  align-items: center;
}

/* Right-elbow branch (mirrors python for node.js) */
.right-branch {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-30px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}