::after,
::before {
  box-sizing: border-box;
  font: 0.95em Menlo, monospaced;
}

.tl-header {
  padding: 20px;
}

.tl-header p {
  color: #2a7d98;
  font-size: 18px;
}

.timeline > time {
  font-size: 14px;
  font-weight: bold;
}

.timeline > p {
    font-weight: bold;
}

.timeline {
  --timeline-color: #4682B4;
  --dot-color: red;

  position: relative;
  list-style: none;
  display: inline-flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;

  /* set here the height of the timeline */
  height: 320px;
}

/* middle line */
.timeline:before {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  width: 100%;
  height: 4px;
  background: var(--timeline-color);
}

.timeline li {
  margin: 0 20px;
  min-width: 200px;
  align-self: flex-start;
}

/*  event in even position are bottom-aligned */
.timeline li:nth-child(2n) {
  align-self: flex-end;
}

.timeline div {
  position: relative;
  padding: 10px;
  border: 1px var(--timeline-color) solid;
}

/* style for the dot over the timeline */
.timeline li:before {
  content: "";
  position: absolute;
  top: 50%;
  margin-left: 100px;
  transform: translate(-50%, -50%);
  border: 1px #9bc solid;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--dot-color);
}

.nonsuch {
  background-image: url("images/palace.jpg");
  background-size: cover;
  opacity: 80%;
  font: bold 100% "Lucida Sans", sans-serif;
  color: black;
}

.astro {
  background-image: url("images/astro.jpg");
  background-size: cover;
  font: bold 100% "Lucida Sans", sans-serif;
  color: white;
}

.astro p,
.nonsuch p {
  font-weight: 900;
  font-size: 12px;
} 

/* style for the event arrow */
.timeline div:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -1px) rotateZ(45deg);
  background: #fff;
}

/* position of the event arrow in odd position */
.timeline li:nth-child(2n - 1) div:before {
  top: 100%;
  margin-top: -8px;
  border-right: 1px var(--timeline-color) solid;
  border-bottom: 1px var(--timeline-color) solid;
}

/* position of the event arrow in even position */
.timeline li:nth-child(2n) div:before {
  top: 0;
  margin-top: -10px;
  border-left: 1px var(--timeline-color) solid;
  border-top: 1px var(--timeline-color) solid;
}

.scrolling-wrapper {
  padding: 20px;
  padding-bottom: 40px;
  overflow: none;
  overflow-x: scroll;
  background: linear-gradient(0deg, transparent 0, #addded);
}