@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap");

body {
  margin: 0;
  padding: 0;
}

/* STORY SECTION */

.timeline {
  position: relative;
  margin: 50px auto;
  width: 1000px;
  padding: 40px 0;
  box-sizing: border-box;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 98%;
  background: #c5c5c5;
}

.timeline ul {
  margin: 0;
  padding: 0;
}

.timeline ul li {
  list-style: none;
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline ul li:nth-child(odd) {
  float: left;
  text-align: left;
  clear: both;
}

.timeline ul li:nth-child(even) {
  float: right;
  text-align: left;
  clear: both;
}

.content {
  padding-bottom: 20px;
}

.timeline ul li:nth-child(odd):before {
  content: "";
  position: absolute;
  top: 24px;
  right: -6px;
  width: 10px;
  height: 10px;
  background: rgb(38, 24, 77);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(10, 27, 121, 0.3);
}

.timeline ul li:nth-child(even):before {
  content: "";
  position: absolute;
  top: 24px;
  left: -4px;
  width: 10px;
  height: 10px;
  background: rgb(38, 24, 77);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(10, 27, 121, 0.3);
}

.timeline ul li .time h4 {
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.timeline ul li:nth-child(odd) .time {
  position: absolute;
  margin: 0;
  padding: 8px 16px;
  top: 12px;
  right: -165px;
  font-weight: 600;
  background: rgb(38, 24, 77);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 0 0 3px rgba(10, 27, 121, 0.3);
}

.timeline ul li:nth-child(even) .time {
  position: absolute;
  margin: 0;
  padding: 8px 16px;
  top: 12px;
  left: -165px;
  font-weight: 600;
  background: rgb(38, 24, 77);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 0 0 3px rgba(10, 27, 121, 0.3);
}

.timeline ul li p {
  margin: 10px 0 0;
  padding: 0;
}

h1 {
  text-align: center;
  font-size: 50px;
  margin-top: 100px;
}

@media (max-width: 1000px) {
  .timeline {
    width: 100%;
  }
}

@media (max-width: 767px) {
  h1 {
    text-align: center;
    font-size: 40px;
    padding: 0 20px;
  }
  .timeline {
    width: 100%;
    padding-bottom: 0;
  }
  .timeline:before {
    left: 20px;
  }
  .timeline ul li:nth-child(odd),
  .timeline ul li:nth-child(even) {
    width: 100%;
    text-align: left;
    padding-left: 50px;
    padding-bottom: 50px;
  }
  .timeline ul li:nth-child(odd):before,
  .timeline ul li:nth-child(even):before {
    top: -12px;
    left: 16px;
  }
  .timeline ul li:nth-child(odd) .time,
  .timeline ul li:nth-child(even) .time {
    top: -25px;
    left: 50px;
    right: inherit;
  }
}

#button {
  display: inline-block;
  background-color: lightseagreen;
  width: 40px;
  height: 40px;
  text-align: center;
  border-radius: 4px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

#button::after {
  content: "\f077";
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  font-size: 2em;
  line-height: 40px;
  color: #fff;
}

#button:hover {
  cursor: pointer;
  background-color: #333;
}

#button:active {
  background-color: #555;
}

#button.show {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 500px) {
  #button {
    margin: 30px;
  }
}

.story-head-font {
  font-weight: 500;
  font-size: 50px;
}

.text-custom-color {
  color: #151147;
}
