@media screen {

  .timeline-container .sort-button-container {
    display: flex;
  }

  .timeline-container .sort-button-container .second-button {
    width: fit-content;
    height: 100%;
    margin-left: 4px
  }

  /* Flexcontainer, Width */
  .timeline-wrapper {
    margin-top: 10px;
    margin-left: auto;  /* Center Timeline in body */
    margin-right: auto; /* Center Timeline in body */
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
  }

  .timeline {
    position: relative;
    width: 100%;
    list-style: none;
    padding: 20px 0 20px;
  }

  /* List items Flexcontainer */
  .timeline li {
    display: flex;
    position: relative;
    margin-bottom: 15px;
  }

  .timeline .panel {
    position: relative;
    left: 45px;
    width: 90%; /* Fallback */
    width: calc(100% - 52px); /* Space Line and Left offset panel 30px + 22px */
    border-radius: 10px;
    overflow: hidden;
    background-color: #f5f5f5;
  }

  .timeline div.content {
    padding: 0 20px 20px 20px;
  }

  /* Transition */
  .timeline summary {
    display: block;
    user-select: none;
    cursor: pointer;
    outline: none;
    padding: 20px;
    margin-bottom: 0;
    transition: all 600ms cubic-bezier(0.2, 1,0.3,1);
    font-weight: 600;
  }

  .timeline .panel[open] summary {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  .timeline summary:hover {
    background: #f8f8f8;
  }

  /* Line */
  .timeline:before {
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    left: 22px;
    width: 3px;
    background-color: #f5f5f5;
  }

  /* Points in line */
  .timeline li.timeline-item:before {
    position: absolute;
    content: "";
    top: 28px;
    left: 21px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #f8f8f8;
    margin-left: -5px;
    z-index: 99;
  }

  .timeline li.timeline-separator-circle > div {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .75em;
  }
}

@media screen and (min-width: 800px) { 

  /* List element */
  .timeline .panel {
    left: 0;
    width: 46%;
  }

  /* Line */
  .timeline:before {
    left: 50%;
  }

  /* Points in line */
  .timeline li.timeline-item:before {
    left: 50%; /* Fallback */
    left: calc(50% - 1px);
  }

  /* Odd items on the other side of timeline */
  .timeline .timeline-item.timeline-index-odd {
    justify-content: flex-end;
  } 

  /* Seperator circle */
  .timeline li.timeline-separator-circle {
    justify-content: center;
  }
}

