/* ==================================================
   General Styles
================================================== */
:root {
  --primary-color: #fdb813;
  --secondary-color: #2f4858;
  --tertiary-color: #333;

  --dark-grey-color: #2f2f2f;
  --mid-dark-grey-color: #404040;
  --mid-grey-color: #505050;
  --light-grey-color: #999;

  --white-color: #fff;
  --blue-color: blue;
  --black-color: #000;
  --main-font-color: #f2f2f2;
}
.document {
  height: 100%;
}
.page {
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--main-font-color, #fff);
  background-color: var(--tertiary-color);
  font-family: Verdana, Tahoma, sans-serif;
}

.content {
  flex: 1 0 auto;
  background-color: var(--tertiary-color);
  margin: 2rem 1rem 4rem 1rem;
}

.center {
  text-align: center;
}

.center-text {
  max-width: 900px;
  margin: 0 auto 25px auto;
  text-align: justify;
  line-height: 1.8rem;
  letter-spacing: 0.5px;
}

.center-content {
  margin-left: auto;
  margin-right: auto;
}

.table-cell {
  padding: 8px;
  vertical-align: top;
}

.uppercase {
  text-transform: uppercase;
}

.section__header {
  position: relative;
  padding: 1rem;
  font-size: 1.5em;
  margin-bottom: 2.5rem;
}

.section__header:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  width: 150px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section__caption {
  font-size: 1.2em;
  font-weight: 300;
  padding-bottom: 15px;
}

.flex {
  display: flex;
}
.flex--down {
  display: flex;
  flex-direction: column;
}
.list {
  display: inline-block;
  text-align: left;
  line-height: 30px;
  margin-left: 1rem;
}

/* ==================================================
   Links page
================================================== */
.link {
  color: var(--main-font-color);
  display: inline-block;
  align-items: center;
}
.link-box {
  padding: 1rem;
}
.link__image {
  vertical-align: middle;
}
.link__text {
  display: none;
}

/* ==================================================
   Projects page
================================================== */
.projects-container {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  align-items: center;
  text-align: center;
  grid-gap: 2rem;
  padding: 3rem 1rem;
  font-size: 1.2rem;
}

/* ==================================================
   Skills Page
================================================== */
.skills-container {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  align-items: center;
  text-align: center;
  grid-gap: 1rem;
  padding: 1rem 10px;
  font-size: 1.2rem;
}

.skill-box {
  padding: 1rem;
  color: #ddd;
  cursor: pointer;
  min-height: 320px;
}

.skill-box:hover > .skill-title:after,
.skill-box:hover > .skill-title:before {
  width: 35px;
}

.skill-box:hover .skill-title__img {
  transform: translateY(-10px);
}

.skill-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.skill-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  width: 0;
  height: 4px;
  border-radius: 2px 0 0 2px;
  background-color: var(--primary-color);
  transition: 0.5s;
}

.skill-title:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 4px;
  border-radius: 0 2px 2px 0;
  background-color: var(--primary-color);
  transition: 0.5s;
}

.skill-title__text {
  color: #fff;
  margin-top: 0.5rem;
}

.skill-title__img {
  width: 90px;
  height: 90px;
  position: relative;
  border-radius: 45px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}

.skill-title__img:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 90px;
  background: rgba(100, 100, 100, 0.5);
  border-radius: 45px 0 0 45px;
}

.skill-title__icon {
  width: 50px;
  z-index: 2;
}

/* ==================================================
   Career Page
================================================== */

/* The actual timeline (the vertical ruler) */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--tertiary-color, #474e5d);
  color: var(--black-color, #000);
}
/* The actual timeline (the vertical ruler) */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline__image {
  vertical-align: middle;
}

/* Container around content */
.timeline__box {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

/* The circles on the timeline */
.timeline__box::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid #ff9f55;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.timeline__box--left {
  left: 0;
}

/* Place the container to the right */
.timeline__box--right {
  left: 50%;
}

/* Add arrows to the left container (pointing right) */
.timeline__box--left::before {
  content: ' ';
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.timeline__box--right::before {
  content: ' ';
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.timeline__box--right::after {
  left: -16px;
}

/* The actual content */
.timeline__content {
  text-align: center;
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
}
.timeline-text {
  text-align: justify;
}

.career-london__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  list-style: none;
  padding-left: 0;
  align-items: center;
}
.career-london {
  display: flex;
}
.career-london__image {
  margin: 0.5rem;
  width: 125px;
}
.career-london__image .timeline__image {
  width: 125px;
}
/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 720px) {
  /* Place the timelime to the left */
  .timeline::after {
    left: 31px;
  }

  /* Full-width containers */
  .timeline__box {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .timeline__box::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .timeline__box--left::after,
  .timeline__box--right::after {
    left: 15px;
  }

  /* Make all right containers behave like the left ones */
  .timeline__box--right {
    left: 0%;
  }
}

/* ==================================================
   Footer
================================================== */
.footer {
  flex-shrink: 0;
  background-color: var(--mid-grey-color);
  color: white;
  text-align: center;
  padding: 2em;
}
.footer__link {
  color: white;
}

/* ==================================================
   Media Queries
================================================== */
@media screen and (min-width: 768px) {
  .skills-container,
  .projects-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .link__text {
    display: inline;
  }
  .list {
    text-align: left;
  }
}

@media screen and (min-width: 1024px) {
  .skills-container,
  .projects-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
