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

:root {
  --primary-color: #347f6f;
  --primary2-color: #f8992c;
  --secondary-color: #f4efe6;
  --tertiary-color: #534840;
  --max-width: 1100px;
}

body {
  font: normal 1rem/1.5 "Poppins";
  background: var(--secondary-color);
  color: var(--tertiary-color);
  overflow-x: hidden;
  padding-bottom: 50px;
}

#main-header {
  background: inherit;
  padding: 4rem 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.title {
  margin-left: 15px;
}
h1 {
  font-size: 4.2rem;
  font-weight: 500;
  color: var(--primary2-color);
}
h3 {
  color: var(--primary2-color);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.8rem;
}
h4 {
  font-weight: 400;
}
p {
  font-weight: 300;
}

p:first-of-type {
  padding: 0.7rem 0;
}

a {
  display: inline-block;
  text-decoration: none;
}
img {
  width: 15%;
}
/* Return to Top */
.top-link{
  font-size: 1.7rem;
  position: fixed;
  bottom: 0;
  right: 0;
  transition: all 0.2s ease-in-out;
  height: 80px;
  width: 80px;
  color: var(--secondary-color);
  background: rgba(52, 127, 111, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.show {
  visibility: visible;
  opacity: 1;
}
.hide {
  visibility: hidden;
  opacity: 0;
}

/* Timeline Positions */
#timeline ul {
  padding: 50px 0;
}

/* Middle Line */
#timeline ul li {
  list-style: none;
  position: relative;
  width: 6px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
}

/* Boxes */
#timeline ul li div {
  position: relative;
  bottom: 0;
  width: 600px;
  padding: 1.5rem;
  border-radius: 10px;
  background: #fff;
  transition: all 0.5s ease-in-out;
  color: var(--tertiary-color);
  box-shadow: 0rem 0rem 15px rgba(248, 153, 44, 0.3);
  visibility: hidden;
  opacity: 0;
}

/* Boxes - Right Side */
#timeline ul li:nth-child(odd) div {
  left: 35px;
  transform: translate(200px, 0);
}

#timeline ul li:nth-child(even) div {
  left: -623px;
  transform: translate(-200px, 0);
}

/* Dots */
#timeline ul li:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 20px;
  height: 20px;
  background: #fff;
  transform: translateX(-50%);
  border-radius: 50%;
  transition: background 0.5s ease-in-out;
}

/* Arrows Base */
#timeline div:before {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 0;
  height: 0;
  border-style: solid;
}

#timeline ul li:nth-child(odd) div:before {
  left: -15px;
  border-width: 8px 16px 8px 0;
  border-color: transparent #fff transparent transparent;
}

#timeline ul li:nth-child(even) div:before {
  right: -15px;
  border-width: 8px 0px 8px 16px;
  border-color: transparent transparent transparent #fff;
}

/* Download Button */
#downloadBtn a {
  padding: 1.4rem 1.7rem;
  background: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 0.4rem;
}

/* Button Shake */
.btnShake {
  animation: shake 1.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both infinite;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* Skill Bars */
.skills-ed {
  /* padding: 0 85px; */
  margin: 35px 0;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-evenly;
}
/* .skills-ed .bars {
  width: 50%;
}
.skills-ed .education {
  width: 50%;
} */

.h-bars > div {
  margin: 4px 0;
  width: 0;
  height: 30px;
  border-radius: 2px;
  display: block;
  position: relative;
  left: 146px;
}

.h-bars *:before {
  position: absolute;
  left: -145px;
  top: 4px;
  opacity: 0;
  color: var(--primary-color);
}

@keyframes bars-after {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes bars-after {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.h-bars .bar-one:before {
  content: "Graphic Design";
  animation: bars-after 1.1s;
  animation-delay: 1.2s;
  animation-fill-mode: forwards;
  -webkit-animation: bars-after 1.1s;
  -webkit-animation-delay: 1.2s;
  -webkit-animation-fill-mode: forwards;
}

.h-bars .bar-one {
  background-color: var(--primary-color);
  animation: bars-bar-one 1s;
  animation-fill-mode: forwards;
  animation-delay: 1.1s;
  -webkit-animation: bars-bar-one 1s;
  -webkit-animation-fill-mode: forwards;
  -webkit-animation-delay: 1.1s;
}

@keyframes bars-bar-one {
  from {
    width: 0;
  }
  to {
    width: 150px;
  }
}

@-webkit-keyframes bars-bar-one {
  from {
    width: 0;
  }
  to {
    width: 150px;
  }
}

.h-bars .bar-two:before {
  content: "Web Design";
  animation: bars-after 1.3s;
  animation-delay: 1.3s;
  animation-fill-mode: forwards;
  -webkit-animation: bars-after 1.3s;
  -webkit-animation-delay: 1.3s;
  -webkit-animation-fill-mode: forwards;
}

.h-bars .bar-two {
  background-color: var(--primary2-color);
  animation: bars-bar-two 1.4s;
  animation-fill-mode: forwards;
  animation-delay: 1.4s;
  -webkit-animation: bars-bar-two 1.4s;
  -webkit-animation-fill-mode: forwards;
  -webkit-animation-delay: 1.4s;
}

@keyframes bars-bar-two {
  from {
    width: 0;
  }
  to {
    width: 110px;
  }
}

@-webkit-keyframes bars-bar-two {
  from {
    width: 0;
  }
  to {
    width: 110px;
  }
}

.h-bars .bar-three:before {
  content: "UX/UI Design";
  animation: bars-after 1s;
  animation-delay: 1.3s;
  animation-fill-mode: forwards;
  -webkit-animation: bars-after 1s;
  -webkit-animation-delay: 1.3s;
  -webkit-animation-fill-mode: forwards;
}

.h-bars .bar-three {
  background-color: var(--primary-color);
  animation: bars-bar-three 1s;
  animation-fill-mode: forwards;
  animation-delay: 1.3s;
  -webkit-animation: bars-bar-three 1s;
  -webkit-animation-fill-mode: forwards;
  -webkit-animation-delay: 1.3s;
}

@keyframes bars-bar-three {
  from {
    width: 0;
  }
  to {
    width: 85px;
  }
}

@-webkit-keyframes bars-bar-three {
  from {
    width: 0;
  }
  to {
    width: 85px;
  }
}

.h-bars .bar-four:before {
  content: "Advertising";
  animation: bars-after 1s;
  animation-delay: 1.5s;
  animation-fill-mode: forwards;
  -webkit-animation: bars-after 1s;
  -webkit-animation-delay: 1.5s;
  -webkit-animation-fill-mode: forwards;
}

.h-bars .bar-four {
  background-color: var(--primary2-color);
  animation: bars-bar-four 1s;
  animation-fill-mode: forwards;
  animation-delay: 1.5s;
  -webkit-animation: bars-bar-four 1s;
  -webkit-animation-fill-mode: forwards;
  -webkit-animation-delay: 1.5s;
}

@keyframes bars-bar-four {
  from {
    width: 0;
  }
  to {
    width: 135px;
  }
}

@-webkit-keyframes bars-bar-four {
  from {
    width: 0;
  }
  to {
    width: 135px;
  }
}

.h-bars .bar-five:before {
  content: "Social Media";
  animation: bars-after 1s;
  animation-delay: 1.8s;
  animation-fill-mode: forwards;
  -webkit-animation: bars-after 1s;
  -webkit-animation-delay: 1.8s;
  -webkit-animation-fill-mode: forwards;
}

.h-bars .bar-five {
  background-color: var(--primary-color);
  animation: bars-bar-five 1s;
  animation-fill-mode: forwards;
  animation-delay: 1.8s;
  -webkit-animation: bars-bar-five 1s;
  -webkit-animation-fill-mode: forwards;
  -webkit-animation-delay: 1.8s;
}

@keyframes bars-bar-five {
  from {
    width: 0;
  }
  to {
    width: 125px;
  }
}

@-webkit-keyframes bars-bar-five {
  from {
    width: 0;
  }
  to {
    width: 125px;
  }
}

/* Javascript "Show" Class */
#timeline ul li.show div {
  transform: none;
  visibility: visible;
  opacity: 1;
}
#timeline ul li.show:after {
  background: var(--primary-color);
}

/* Media Queries */
@media (max-width: 1500px) {
  #timeline ul li div {
    width: 550px;
  }
  #timeline ul li:nth-child(even) div {
    left: -577px;
  }
}
@media (max-width: 1200px) {
  #timeline ul li div {
    width: 450px;
  }
  #timeline ul li:nth-child(even) div {
    left: -475px;
  }
  .skills-ed .ed-software{
    padding-left: 250px;
  }
}
@media (max-width: 900px) {
  #timeline ul li div {
    width: 350px;
  }
  #timeline ul li:nth-child(even) div {
    left: -375px;
  }
  .skills-ed {
    padding: 0 25px;
  }
  .skills-ed .education h3 {
    font-size: 0.9rem;
  }
  .skills-ed .ed-software{
    padding-left: 210px;
  }

}

@media (max-width: 450px) {
  p {
    display: none;
  }
  .skills-ed{
    flex-direction: column;
  }
.skills-ed .ed-software{
    padding: 0;
    margin-top: 10px;
  }
  .software > p {
    display: block;
  }
  #main-header {
    padding: 2rem;
  }
  #main-header h1 {
    font-size: 3.1rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }
  #main-header img {
    width: 30%;
  }
  #timeline ul {
    padding: 25px 0;
  }
  #timeline ul li {
    padding-top: 25px;
    margin-left: 20px;
  }
  #timeline ul li div {
    width: calc(100vw - 90px);
  }
  #timeline ul li:nth-child(even) div {
    left: 40px;
  }
  #timeline ul li:nth-child(even) div:before {
    left: -15px;
    border-width: 8px 16px 8px 0;
    border-color: transparent #fff transparent transparent;
  }
}
