/* Fix for timeline triangles */

/* Remove all default triangles */
@media only screen and (min-width: 415px) {
  .timeline-description::after {
    display: none !important;
  }
  
  .timeline-entry.odd .timeline-description::after {
    display: none !important;
  }
  
  .timeline-entry.even .timeline-description::after {
    display: none !important;
  }
}

/* Add the pointy triangles that point toward the icons */
.timeline-entry.odd .timeline-description::before {
  content: '' !important;
  position: absolute !important;
  top: 20px !important;
  right: 100% !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 10px solid transparent !important;
  border-bottom: 10px solid transparent !important;
  border-right: 10px solid #f8f8f8 !important; /* Match the background color of the timeline box */
  z-index: 1 !important;
  filter: drop-shadow(-3px 0px 2px rgba(0, 0, 0, 0.06)) !important;
}

/* Add triangles for boxes on the left side */
.timeline-entry.even .timeline-description::before {
  content: '' !important;
  position: absolute !important;
  top: 20px !important;
  left: 100% !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 10px solid transparent !important;
  border-bottom: 10px solid transparent !important;
  border-left: 10px solid #f8f8f8 !important; /* Match the background color of the timeline box */
  border-right: none !important;
  z-index: 1 !important;
  filter: drop-shadow(3px 0px 2px rgba(0, 0, 0, 0.06)) !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .timeline-entry.odd .timeline-description::before {
    border-right-color: #333 !important;
  }
  
  .timeline-entry.even .timeline-description::before {
    border-left-color: #333 !important;
  }
}
