body {
  font-family: "Arial", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 20px;
  background-color: #f9f9f9;
}

h1 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 20px;
}

#timeline-container {
  width: 80%;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.timeline-event {
  position: relative;
  margin: 0;
  padding: 0 20px; /* Removed vertical padding */
  display: flex;
  align-items: center;
}

.timeline-dot {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  background-color: #0072ce;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  margin-right: -5px;
}

.timeline-dot.future {
  background-color: #0e9f6e; /* Different color for future events */
}

.timeline-content {
  padding: 10px 20px;
  margin-left: 20px;
}

.timeline-date {
  font-weight: bold;
  font-size: 1em; /* Smaller date */
  color: #0072ce;
}

.timeline-date.future {
  color: #0e9f6e; /* Different color for future events */
}

.timeline-text {
  font-size: 1.4em; /* Bigger event text */
  margin-top: 5px;
}

#open-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  font-size: 1.2em;
  background-color: #0072ce;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#open-popup:hover {
  background-color: #005bb5;
}

#popup-form {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#popup-form.hidden {
  display: none;
}

#add-event-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#add-event-form input,
#add-event-form button {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#add-event-form button {
  background-color: #0072ce;
  color: #fff;
  cursor: pointer;
  border: none;
}

#add-event-form button:hover {
  background-color: #005bb5;
}

#timeline-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 27px;
  width: 2px;
  height: 100%;
  background-color: #0072ce; /* Color for past events */
  z-index: 0;
}

.past-line {
  position: absolute;
  left: 27px;
  width: 2px;
  background-color: #0072ce; /* Color for past events */
  z-index: 0;
}

#future-line {
  position: absolute;
  left: 27px;
  width: 2px;
  background-color: #0e9f6e; /* Different color for future events */
  z-index: 0;
}
