:root {
    --primary-color: #373737;
    --secondary-color: #78787a;
    --bg-color: #fafaf9;
    --content-color:#e7e5e4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition-duration: 200ms;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--primary-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 14px;
}

.darkerText {
    color: var(--secondary-color);
}

header,
main,
footer {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

p, a {
    font-size: 1rem;
}

h1{
    color: var(--primary-color);
    font-size: 36px;
}

header {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

nav {
    color: var(--secondary-color);
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

nav a {
    font-size: 1rem;
}

nav a, header a, .content a{
    cursor: pointer;
    text-decoration: none;
    
}


nav a:hover, header a:hover, .content a:hover {
    opacity: 0.7;
}

.titleBlock {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: auto;
    padding: 1.75rem;
    border: solid var(--primary-color);
    border-width: 2px;
}

.titleBlock h1 {
    font-size: 48px;
}

.aboutMe {
  padding: 0;
  display: flex;
  text-align: center;
  line-height: 1.05rem;
  max-width: 450px;
  margin: auto;
  opacity: 0.7;
}

.aboutMe p {
  font-size: 14px;
}


.lowerHalf {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}


.imgContainer {
    display: flex;
    flex-direction: row;
    gap: 48px;
    margin-top: 15px; 
}

.imgContainer img {
    border-style: solid;
    border-color: #373737;
    border-width: 1px;
    max-width: 96px;
    overflow: hidden;
    width: fit-content;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 9px;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* Timelines CSS starts here */

/* The actual timeline (the vertical ruler) */
.timeline {
  position: relative;
  max-width: 1500px;
  margin: auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: rgb(228, 47, 47);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: 0;
}

/* Container around content */
.container {
  padding: 10px 10px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -45px;
  background-color: var(--content-color);
  border: 3.5px solid #0d0201;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.left {
  left: -30px;
}

/* Place the container to the right */
.right {
  left: 56%;
}

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

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

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

/* The actual content */
.content {
  padding: 20px 15px;
  background-color: var(--content-color);
  position: relative;
  border-radius: 6px;
 }

.content h2, p {
  max-width: fit-content;
  max-height: 150px;
}

 .content a:hover {
    text-decoration: underline;
 }

 /* Timeline CSS stops here*/

footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.footerImg {
    border-radius: 100%;
    max-width: 96px;
    overflow: hidden;
}

.footerImg img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.footerText {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    gap: 0.75rem;
}

.footerText p {
    display: flex;
    align-items: center;
    margin: auto;
    font-size: 15px;
}

.icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: auto;
    gap: 20px;
    cursor: pointer;
}

.icons a {
    text-decoration: none;
    color: var(--secondary-color);
}

.icons a:hover {
    color: var(--primary-color);
}


/* Media queries - Responsive timeline on screens less than 600px wide */
@media (max-width: 600px) {
/* Place the timelime to the left */
  .timeline::after {
    left: 31px;
  }

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

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

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

  .left::after {
    left: 15px;
  }

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

  .imgContainer {
    gap: 24px;
}
}

@media (min-width: 640px){

  header {
    max-width: 700px;
  }

  nav a {
    font-size: 1.5rem;
  }

  .titleBlock {
      display: flex;
      flex-direction: row;
      align-items: center;
      margin: auto;
      padding: 1.75rem;
      border: solid var(--primary-color);
      border-width: 2px;
  }

  .titleBlock h1 {
      font-size: 58px;
  }

  .aboutMe p {
    font-size: 18px;
    line-height: 1.1rem;
  }

  .lowerHalf h1 {
    font-size: 60px;
    font-weight: 500;
  }

  .imgContainer {
    display: flex;
    flex-direction: row;
    gap: 48px;
    margin-top: 15px; 
  }  
  
  .imgContainer img {
    border-width: 2px;
    max-width: 136px;
    border-radius: 12px;
  }
}
@media (min-width: 1200px) {
  header {
    max-width: 1000px;
  }
  .titleBlock {
      display: flex;
      flex-direction: row;
      align-items: center;
      margin: auto;
      padding: 1.75rem;
      border: solid var(--primary-color);
      border-width: 2px;
  }

  .titleBlock h1 {
      font-size: 72px;
  }

  .aboutMe {
    max-width: 550px;
  }

  .aboutMe p {
    font-size: 22px;
    line-height: 1.25rem;
  }

  .lowerHalf h1 {
    font-size: 96px;
    font-weight: 350;
  }

  .imgContainer {
    display: flex;
    flex-direction: row;
    gap: 64px;
    margin-top: 15px; 
  }  
  
  .imgContainer img {
    border-width: 2px;
    max-width: 172px;
    border-radius: 12px;
  }
}