@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz@10..48&family=DM+Serif+Display&family=Open+Sans&display=swap");

* {
  --bg-base: rgb(248, 249, 250);
  --dark-gray: rgb(92, 92, 92);
  --medium-gray: rgb(190, 190, 190);
  --black: rgb(55, 58, 60);
  --pink: rgb(190, 108, 123);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-base);
  color: var(--black);
  padding: 2rem;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
}

.container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  padding: 2rem;
}

h1,
h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
}

h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 400;
}

li {
  list-style: none;
}

.container .title {
  max-width: 100%;
  margin: 3rem 0;
}

.container .title h1 {
  font-size: 4rem;
}

.container .details {
  max-width: 100%;
  display: flex;
  margin-bottom: 2.5rem;
}

.details h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  left: 1.75em;
  color: var(--pink);
}

.details h3:before {
  content: "";
  background-color: var(--pink);
  position: absolute;
  top: 50%;
  left: -1.75em;
  transform: translateY(-50%);
  height: 2px;
  width: 1.5em;
  z-index: 10;
}

.details > div {
  margin: 1rem;
}

.details .skills {
  flex: 2;
}

.details .description {
  flex: 4;
}

.details .year {
  flex: 1;
}

.timelineContainer {
  min-width: 100%;
  background-color: #f1f1f1;
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 36px auto;
}

.timeline:after {
  content: "";
  position: absolute;
  width: 3px;
  background-color: var(--pink);
  left: 50%;
  top: 20px;
  bottom: 30px;
  margin-left: -2px;
}

.entry {
  padding: 0 40px;
  width: 50%;
  position: relative;
  text-align: right;
}

.entry:nth-of-type(even) {
  margin-left: 50%;
  text-align: left;
}

.entry:not(:first-of-type) {
  margin-top: -120px;
}

.entryContent {
  padding: 20px;
  position: relative;
  width: fit-content;
}

.entry:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  right: -8.5px;
  background-color: #f1f1f1;
  border: 3px solid var(--pink);
  top: 20px;
  border-radius: 50%;
  z-index: 1;
  transition: all 0.3s ease-in;
}

.entry:nth-of-type(even):after {
  right: auto;
  left: -10px;
}

.entry:hover:after {
  background-color: var(--pink);
}

.entry h2 {
  margin-bottom: 0.5rem;
  font-size: 2.25rem;
}

.entry h3 {
  font-size: 1.25rem;
}

.entryContent .imgContainer {
  display: flex;
  border-radius: 12.5px;
  overflow: hidden;
  box-shadow: 2px 2px 2px 1px rgba(70, 44, 74, 0.2);
  transition: all 0.3s ease-in;
}

.entryContent .imgContainer:hover {
  transform: scale(1.01);
  box-shadow: 2px 2px 4px 1px rgba(70, 44, 74, 0.3);
}

.imgContainer img {
  max-width: 100%;
  display: flex;
}

footer {
  display: flex;
  padding-top: 3rem;
}

footer p {
  font-size: 16px;
}

footer a,
footer a:visited,
footer a:active {
  color: var(--black);
  text-decoration: none;
}

footer a:hover {
  color: var(--pink);
}

@media (max-width: 1080px) {
  .entry h2 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 810px) {
  body {
    padding: 2rem 1rem;
  }

  .container .title {
    max-width: 100%;
    margin: 1.5rem 0;
  }

  .container .title h1 {
    font-size: 3rem;
  }

  .container .details {
    flex-direction: column;
    margin-bottom: 1.5rem;
  }

  .details > div {
    margin: 1rem 1rem 3rem 1rem;
  }

  .timeline:after {
    left: 32px;
  }

  .entry {
    width: 100%;
    padding: 0 16px 0 32px;
    margin-top: 16px;
    text-align: left;
  }

  .entry:nth-of-type(even) {
    margin-left: 0%;
  }

  .entry:not(:first-of-type) {
    margin-top: 16px;
  }

  .entry:after,
  .entry:nth-of-type(even):after {
    left: 22px;
  }

  .entry h2 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
  }
}

@media (max-width: 420px) {
  body {
    padding: 2rem 0;
  }

  .container .title {
    max-width: 100%;
    margin: 1rem 0;
  }

  .entry h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
}
