/* Import */
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700|Oswald:400,300,700);

/* Variables - Converted from Less to CSS Custom Properties or hardcoded */
:root {
  --background: #ffffff;
  --color-primary: #4298c3;
  --color-light: black;
  --spacing: 50px;
  --radius: 4px;

  --date-width: 120px;
  --dot-border: 4px;
  --dot-size: 11px;
  --line-width: 4px;
}

/* Base */
body {
  background: var(--background);
  font-size: 16px;
}

strong {
  font-weight: 600;
}

/*
h1 {
  font-family: "Oswald", sans-serif;
  letter-spacing: 1.5px;
  color: var(--color-light);
  font-weight: 100;
  font-size: 2.4em;
}
*/

#content {
  margin-top: var(--spacing);
  text-align: center;
}

/* Timeline */
.timeline {
  border-left: var(--line-width) solid var(--color-primary);
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background: rgba(0, 0, 0, 0.03); /* fade(@color-light, 3%) */
  color: black;
  font-family: "Source Sans Pro", sans-serif;
  margin: var(--spacing) auto;
  letter-spacing: 0.5px;
  position: relative;
  line-height: 1.4em;
  font-size: 1.03em;
  padding: 0px 0px 0px var(--spacing);
  list-style: none;
  text-align: left;
  font-weight: 400;
  max-width: 50%;
}

.timeline h1.eventTitle,
.timeline h2.eventTitle,
.timeline h3.eventTitle {
  font-family: "Oswald", sans-serif;
  letter-spacing: 1.5px;
  font-weight: 400;
  font-size: 1.4em;
  margin: 0px 10px;
  padding: 0px 0px 20px 0px;
  color: #000000
}

.timeline .event-transition {
  display: block;
  height: 50px;
  /* Dynamic background for gradient transitions */
}

.timeline .event {
  padding: 0px;
  margin: 0px;
  position: relative;
}

.timeline .event:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border: none;
}

.timeline .event:before,
.timeline .event:after {
  position: absolute;
  display: block;
  top: 0;
}

.timeline .event:before {
  /* Adjusted calculation to use CSS variables */
  left: calc(
    (
        (var(--date-width) * 0.6) + var(--spacing) + var(--line-width) +
          var(--dot-size) + (var(--dot-border) * 2)
      ) * -1.5
  );
  color: rgba(0, 0, 0, 0.4); /* @color-light, 40% */
  content: attr(data-date);
  text-align: right;
  font-weight: 900;
  font-size: 0.9em;
  min-width: var(--date-width);
}

.timeline .event:after {
  box-shadow: 0 0 0 var(--dot-border) var(--color-primary); /* fade(@color-primary,100%) */
  left: calc(
    (var(--spacing) + var(--line-width) + (var(--dot-size) * 0.35)) * -1
  );
  background: #fdfdfd; /* lighten(@background,5%) - assuming @background is #FFFFFF */
  border-radius: 50%;
  height: var(--dot-size);
  width: var(--dot-size);
  content: "";
  top: 5px;
}

.timeline p {
  margin: 0px 10px;
}

/* NEW: Style for Day Change Marker */
.timeline .day-change-marker {
  position: relative;
  height: 30px; /* Enough height for the date text */
  background-color: black;
  color: white; /* Text color for the date */
  font-family: "Oswald", sans-serif;
  font-size: 1.1em;
  font-weight: 300;
  letter-spacing: 1px;

  display: flex; /* To center content */
  align-items: center; /* Vertically center content */
  justify-content: center; /* Horizontally center content */
  z-index: 10; /* Ensure it's visually above other elements if needed */

  /* Ensure no pseudo-elements from .event interfere */
  &::before,
  &::after {
    content: none;
  }
}
