* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: linear-gradient(90deg, #9fde9d, #58988f, #9fde9d);
  height: 100vh;
}

.timelinetitle {
  text-align: center;
  background: #e3f8f3;
  padding: 8px;
  margin: 10px;
  border-radius: 4px;
}

.timeline {
  position: relative;
  width: 10px;
  background: #e3f8f3;
  margin: auto;
  margin-bottom: 100px;
  border-radius: 3px;
}

ul {
  list-style: none;
  margin: 15px;
  text-align: center;
}

li {
  position: relative;
  width: 600px;
  height: 450px;
  margin-top: 50px;
  border-radius: 4px;
  background: #d9f4ec;
  box-shadow: 5px 8px #1d5648;
  background: #d9f4ec;
  opacity: 0;
  transform: scale(1, 0);
  transition: all 1s ease-in;
}

li:nth-child(even) {
  top: 30px;
  left: 30px;
}

li:nth-child(even)::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  border-radius: 50%;
  left: -55px;
  height: 30px;
  width: 30px;
  background-color: #e3f8f3;
  border: 8px solid #1d5648;
}

li:nth-child(even)::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  top: 62px;
  left: -17px;
  height: 30px;
  width: 25px;
  background-color: #d9f4ec;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

li:nth-child(odd)::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  top: 62px;
  right: -17px;
  height: 30px;
  width: 25px;
  background-color: #d9f4ec;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

li:nth-child(odd)::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  border-radius: 50%;
  right: -55px;
  height: 30px;
  width: 30px;
  background-color: #e3f8f3;
  border: 8px solid #1d5648;
}

li:nth-child(odd) {
  right: 650px;
}

.in-view {
  opacity: 1;
  transform: scale(1, 1);
}

.timelinecontent, h3 {
  padding: 7px;
}
.timelinecontent, p {
  text-align: left;
  text-indent:2em;
}

@media all and (max-width: 600px) {
  li:nth-child(odd) {
    top: 30px;
    left: 30px;
  }

  li:nth-child(odd)::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    border-radius: 50%;
    left: -55px;
    height: 30px;
    width: 30px;
    background-color: #e3f8f3;
    border: 8px solid #1d5648;
  }

  li:nth-child(odd)::before {
    content: "";
    position: absolute;
    box-sizing: border-box;
    top: 62px;
    left: -17px;
    height: 30px;
    width: 25px;
    background-color: #d9f4ec;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
  }

  .timeline {
    margin-left: 12px;
  }
}

.mainbtn1 {
        border:2px solid #4CAF50;
        color: rgb(113, 48, 150);
        background-color: #6496c8;
        border-radius: 20px;
        position: absolute;
        height: 60px;
        width: 180px;
        top: 120%;
        left: calc(10vw * 0.18);
        text-align:center;
        box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    }
    .mainbtn1:hover {
        border:2px solid #4CAF50;
        color: rgb(113, 48, 150);
        background-color: #6496c8;
        border-radius: 20px;
        position: absolute;
        height: 60px;
        width: 180px;
        top: 120%;
        left: calc(10vw * 0.18);
        text-align:center;
        box-shadow: 0 12px 16px 0 rgba(0,0,0,0.4), 0 17px 50px 0 rgba(0,0,0,0.19);
    }

