.timeline-container {
  width: 100%;
  padding: 20px;
  margin-top: 20px;
  position: relative; /* Add this line */
  min-height: 150px; /* Add this line */
}

.timeline-scale {
  position: relative;
  height: 40px;
  border-bottom: 2px solid #ddd;
  margin-bottom: 30px;
}

.timeline-today {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  /* Ensure it's above other elements */
}

.today-label {
  color: red;
  font-size: 20px;
}

.centered-arrow {
  transform: translateX(-50%);
}

.timeline-mark {
  position: absolute;
  width: 3px;
  height: 5px;
  background: white;
  bottom: 0;
  transform: translateX(-50%);
}

.timeline-mark.month-start {
  height: 10px;
  width: 2px;
  background: black;
}

.month-label {
  position: absolute;
  bottom: 15px;
  left: 0;
  font-size: 12px;
  transform: translateX(-50%);
  color: #666;
  white-space: nowrap;
}

.timeline-events {
  position: relative;
  height: 100px;
  margin-top: 20px;
}

.event-point {
  position: absolute;
  transform: translateX(-50%);
}

.event-dot {
  width: 12px;
  height: 12px;
  background: #3498db;
  border-radius: 50%;
  margin: 0 auto;
}

.event-label {
  text-align: left; /* Align text to the left */
  font-size: 12px;
  margin-top: -15px;
  background: white;
  padding: 0px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  transform: rotate(-45deg); /* Rotate the label */
  transform-origin: right bottom; /* Set the origin for rotation */
  width: max-content; /* Adjust width to content */
}

@media (max-width: 768px) {
  .event-label {
    transform: rotate(-45deg);
    transform-origin: left top;
  }
}


