* {
  font-family: "Roboto", sans-serif;
}

html,
body {
  box-sizing: border-box;
}

body {
  background-image: url(../images/my-journey-bg.webp);
  background-size: 50%;
  overflow-x: hidden;
  
}

.cd-container {
  margin: 0 auto;
  border-radius: 1rem;
}

.cd-container::after {
  content: '';
  display: table;
  clear: both;
}

.timeline-menu {
  display: flex;
  align-items: center;
  justify-content: end;
  padding: 1rem;
  background-color: transparent;
}

.timeline-menu .cancel {
  display: flex;
  padding: 0.5rem;
  border: 3px solid red;
  border-radius: 50%;
  background-color: white;
}

.timeline-menu .link {
  text-decoration: none;
  font-size: 1.2rem;
  margin-right: 1.5rem;
  padding: 0.5rem 1rem;
  background-color: #ABE7C8;
  color: black;
  border-radius: 0.5rem;
}

/* -------------------------------- 

Main components 

-------------------------------- */


#cd-timeline {
  position: relative;
  padding: 3rem 0;
  margin-top: 2rem;
  /* margin-bottom: 2rem; */
  /* background-color: #EAF3FF; */
}

#cd-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25px;
  height: 100%;
  width: 4px;
  background: #61a681;
}



.cd-timeline-block {
  position: relative;
  margin: 2em 0;
}

.cd-timeline-block:after {
  content: "";
  display: table;
  clear: both;
}

.cd-timeline-block:first-child {
  margin-top: 0;
}

.cd-timeline-block:last-child {
  margin-bottom: 0;
}



.cd-timeline-img {
  position: absolute;
  top: 8px;
  left: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #61a681, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}

.cd-timeline-img {
  background: #c9f7df;
}



.cd-timeline-content {
  position: relative;
  margin-left: 60px;
  margin-right: 30px;
  background-color: #ABE7C8;
  /* border: 2px solid #61a681; */
  box-shadow: 0px 0px 10px rgb(227, 227, 227);
  border-radius: 1rem;
  padding: 1em;

  .timeline-content-info {
    background: #2B343A;
    padding: 5px 10px;
    /* color: rgba(255, 255, 255, 0.7); */
    font-size: 12px;
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.08);
    border-radius: 2px;

    i {
      margin-right: 5px;
    }

    .timeline-content-info-title,
    .timeline-content-info-date {
      width: calc(50% - 2px);
      display: inline-block;
    }

    @media (max-width: 500px) {

      .timeline-content-info-title,
      .timeline-content-info-date {
        display: block;
        width: 100%;
      }
    }
  }

  .content-skills {
    font-size: 12px;
    padding: 0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    li {
      background: #40484D;
      border-radius: 2px;
      display: inline-block;
      padding: 2px 10px;
      /* color: rgba(255, 255, 255, 0.7); */
      margin: 3px 2px;
      text-align: center;
      flex-grow: 1;
    }
  }
}

.cd-timeline-content:after {
  content: "";
  display: table;
  clear: both;
}

.cd-timeline-content h2 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.cd-timeline-content img {
  width: 100%;
  border-radius: 0.5rem;
}

.cd-timeline-content p,
.cd-timeline-content .cd-date {
  /* color: rgba(255, 255, 255, .7); */
  font-size: 13px;
  font-size: 0.8125rem;
}

.cd-timeline-content .cd-date {
  display: inline-block;
}

.cd-timeline-content p {
  line-height: 1.6rem;
  margin-bottom: 0;
}

.cd-timeline-content::before {
  content: '';
  position: absolute;
  top: 16px;
  right: 100%;
  height: 0;
  width: 0;
  border: 7px solid transparent;
}

@media only screen and (min-width: 768px) {
  body {
    padding: 0rem;
  }

  .cd-timeline-content h2 {
    font-size: 1.5rem;
  }

  .cd-timeline-content p {
    font-size: 1.1rem;
  }

  .cd-timeline-content .cd-read-more,
  .cd-timeline-content .cd-date {
    font-size: 14px;
    font-size: 0.875rem;
  }
}

@media only screen and (min-width: 1170px) {
  .cd-timeline-content {
    margin-left: 0;
    padding: 1.6em;
    width: 36%;
    margin: 0 5%
  }

  .cd-timeline-content::before {
    top: 24px;
    left: 100%;
    border-left-color: #ABE7C8;
  }

  .cd-timeline-content .cd-date {
    position: absolute;
    width: 100%;
    left: 122%;
    top: 6px;
    font-size: 16px;
    font-size: 1rem;
  }

  .cd-timeline-block:nth-child(even) .cd-timeline-content {
    float: right;
  }

  .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
    top: 24px;
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: #ABE7C8;
  }

  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
    float: right;
  }

  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
    left: auto;
    right: 122%;
    text-align: right;
  }

  #cd-timeline {

    margin-top: 3em;
    /* margin-bottom: 3em; */
  }

  #cd-timeline::before {
    left: 50%;
    margin-left: -2px;
  }

  .cd-timeline-block {
    margin: 4em 0;
  }

  .cd-timeline-block:first-child {
    margin-top: 0;
  }

  .cd-timeline-block:last-child {
    margin-bottom: 0;
  }

  .cd-timeline-img {
    width: 30px;
    height: 30px;
    left: 50%;
    margin-left: -15px;
    margin-top: 15px;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
  }
}

@media screen and (max-width: 768px) {
  body {
    background-size: 100%;
  }

  .cd-timeline-content p {
    line-height: 1.2rem;
  }
}