/* inspired from https://codepen.io/htmlcodex/pen/KKVpdNK */

.container {
  width: 100%;
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

[class^="col-"],
[class*=" col-"] {
  padding-left: 12px;
  padding-right: 12px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.col-lg-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.col-md-6 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

@media (max-width: 767.98px) {
  .d-md-block {
    display: none !important;
  }

  .d-md-none {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .d-md-block {
    display: block !important;
  }

  .d-md-none {
    display: none !important;
  }
}

.timeline {
  position: relative;
  width: 100%;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#timeline-title-box {
  padding: 8px;
  margin-bottom: 1rem;
}

#timeline-title {
  text-align: center;
  color: var(--text);
  margin: 0.25rem;
}

#timeline-subtitle {
  text-align: center;
  color: var(--subtle);
  margin: 0;
}

.timeline .timeline-container {
  position: relative;
  width: 100%;
}

.timeline .timeline-end,
.timeline .timeline-start,
.timeline .timeline-year {
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 1;
}

.timeline .timeline-end p,
.timeline .timeline-start p,
.timeline .timeline-year p {
  display: inline-block;
  width: 80px;
  height: 80px;
  margin: 0;
  padding: 30px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--rose), var(--gold));
  border-radius: 100px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  color: var(--base);
  font-size: 14px;
  text-transform: uppercase;
}

.timeline .timeline-year {
  margin: 30px 0;
}

.timeline .timeline-continue {
  position: relative;
  width: 100%;
  padding: 20px 0px 60px 0px;
}

.timeline .timeline-continue::after {
  position: absolute;
  content: "";
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  margin-left: -1px;
  background: linear-gradient(180deg, var(--foam), var(--iris));
}

.timeline .row.timeline-left,
.timeline .row.timeline-right .timeline-date {
  text-align: right;
}

.timeline .row.timeline-right,
.timeline .row.timeline-left .timeline-date {
  text-align: left;
}

.timeline .timeline-date {
  font-size: 1.2em;
  font-weight: 600;
  margin: 41px 0 0 0;
  color: var(--subtle);
  position: relative;
}

.timeline .timeline-date::after {
  content: "";
  display: block;
  position: absolute;
  width: 14px;
  height: 14px;
  top: 4px;
  background: linear-gradient(180deg, var(--foam), var(--iris));
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  z-index: 1;
}

.timeline .row.timeline-left .timeline-date::after {
  left: -19px;
}

.timeline .row.timeline-right .timeline-date::after {
  right: -19px;
}

.timeline .timeline-box,
.timeline .timeline-future {
  position: relative;
  display: inline-block;
  margin: 15px;
  padding: 20px;
  border: 1px solid var(--highlight_high);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.timeline .timeline-future {
  width: 100%;
  margin: 15px 0;
  padding: 0;
  border: none;
  text-align: center;
  background: transparent;
  box-shadow: none;
}

.timeline .timeline-box::after,
.timeline .timeline-box::before {
  content: "";
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline .row.timeline-left .timeline-box::after,
.timeline .row.timeline-left .timeline-box::before {
  left: 100%;
}

.timeline .row.timeline-right .timeline-box::after,
.timeline .row.timeline-right .timeline-box::before {
  right: 100%;
}

.timeline .timeline-future .timeline-box::after,
.timeline .timeline-future .timeline-box::before {
  left: 50%;
  margin-left: -10px;
}

.timeline .timeline-box::after {
  top: 26px;
  border-color: transparent transparent transparent var(--surface);
  border-width: 10px;
}

.timeline .timeline-box::before {
  top: 25px;
  border-color: transparent transparent transparent var(--highlight_high);
  border-width: 11px;
}

.timeline .row.timeline-right .timeline-box::after {
  border-color: transparent var(--surface) transparent transparent;
}

.timeline .row.timeline-right .timeline-box::before {
  border-color: transparent var(--highlight_high) transparent transparent;
}

.timeline .timeline-future .timeline-box::after {
  top: -20px;
  border-color: transparent transparent var(--highlight_high) transparent;
}

.timeline .timeline-future .timeline-box::before {
  top: -19px;
  border-color: transparent transparent var(--surface) transparent;
  border-width: 10px;
  z-index: 1;
}

.timeline .timeline-box .timeline-text {
  width: 100%;
}

.timeline .timeline-future .timeline-text {
  width: 100%;
}

.timeline .timeline-text h3 {
  font-size: 1.2em;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text);
}

.timeline .timeline-text p {
  font-size: 1em;
  font-weight: 400;
  margin: 0;
  color: var(--subtle);
}

.timeline .timeline-future q {
  color: var(--gold);
}

@media (max-width: 768px) {
  .timeline .timeline-continue::after {
    left: 40px;
  }

  .timeline .timeline-end,
  .timeline .timeline-start,
  .timeline .timeline-year,
  .timeline .row.timeline-left,
  .timeline .row.timeline-right .timeline-date,
  .timeline .row.timeline-right,
  .timeline .row.timeline-left .timeline-date,
  .timeline .timeline-future {
    text-align: left;
  }

  .timeline .row.timeline-left .timeline-date::after,
  .timeline .row.timeline-right .timeline-date::after {
    left: -22px;
  }

  .timeline .timeline-box,
  .timeline .row.timeline-right .timeline-date,
  .timeline .row.timeline-left .timeline-date {
    margin-left: 55px;
  }

  .timeline .timeline-future.timeline-box {
    margin-left: 0;
  }

  .timeline .row.timeline-left .timeline-box::after {
    left: -20px;
    border-color: transparent var(--surface) transparent transparent;
  }

  .timeline .row.timeline-left .timeline-box::before {
    left: -22px;
    border-color: transparent var(--highlight_high) transparent transparent;
  }

  .timeline .timeline-future .timeline-box {
    margin-left: 0px;
  }

  .timeline .timeline-future .timeline-box::after,
  .timeline .timeline-future .timeline-box::before {
    left: 30px;
    margin-left: 0;
  }
}
