@import url(./root.css);
@import url(./loader.css);
@import url(./scrollBar.css);
@import url(./reveal-img.css);
@import url(./header.css);
@import url(./main.css);
@import url(./footer.css);

.experience-title {
  margin: 1rem 0;
  font-family: "Michroma", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: var(--font-0);
  letter-spacing: 0.15rem;
  color: var(--aqua);
  text-align: center;
}

.timeline {
  background-color: var(--black);
  margin: 0 auto;
  padding: 1rem;
  width: 70%;
}

.card {
  position: relative;
}

.card:nth-child(odd) {
  padding: 2rem 0 2rem 2rem;
}

.card:nth-child(even) {
  padding: 2rem 2rem 2rem 0;
}

.card::before {
  content: "";
  position: absolute;
  width: 50%;
  border: 2px solid var(--aqua);
}

.card:nth-child(odd)::before {
  left: 0px;
  top: -4px;
  bottom: -4px;
  border-width: 0.3rem 0 0.3rem 0.3rem;
  border-radius: 3rem 0 0 3rem;
}

.card:nth-child(even)::before {
  right: 0;
  top: 0;
  bottom: 0;
  border-width: 0.3rem 0.3rem 0.3rem 0;
  border-radius: 0 3rem 3rem 0;
}

.card:first-child::before {
  border-top: 0;
  border-top-left-radius: 0;
}

.card:last-child:nth-child(odd)::before {
  border-bottom: 0;
  border-bottom-left-radius: 0;
}

.card:last-child:nth-child(even)::before {
  border-bottom: 0;
  border-bottom-right-radius: 0;
}

.info {
  display: flex;
  flex-direction: column;
  background-color: var(--aqua-alpha);
  color: var(--white);
  border-radius: 1rem;
  padding: 1rem;
}

.title {
  color: var(--aqua);
  position: relative;
  margin-bottom: 0.5rem;
  font-family: "Michroma", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: var(--font-0);
  letter-spacing: 0.15rem;
}

.text {
  font-family: var(--lucida-sans);
  font-size: var(--font--1);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.title::before {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  background: var(--white);
  border-radius: 100%;
  border: 3px double var(--aqua);
}

.wrapper {
  width: 60%;
  max-width: 25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-image {
  width: 100%;
  height: 13rem;
  border-radius: 0.5rem;
  z-index: 5;
  image-rendering: auto;
}

.project-button {
  width: clamp(6rem, 60%, 20rem);
  margin-top: 0.5rem;
  z-index: 5;
  border: none;
  background-color: var(--aqua);
  color: var(--black);
  border-radius: 0.5rem;
  font-family: var(--lucida-sans);
  font-size: var(--font--1);
  text-align: center;
  text-decoration: none;
}

.project-button:hover {
  cursor: pointer;
}

.card:nth-child(even) > .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

.card:nth-child(odd) > .info > .title::before {
  left: -53px;
}

.card:nth-child(even) > .info > .title::before {
  right: -53px;
}

@media (max-width: 750px) {
  .timeline {
    margin: 0 auto;
    width: 100%;
  }

  .wrapper {
    width: 100%;
  }
}
