/* @import url('./main.css'); */

.element {
  display: flex;
  flex-direction: column;
  background-image: url("../img/background/black.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding-left: 15%;
  padding-right: 15%;
  width: 100%;
  z-index: 5;
}

.elementC {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row;
}

.element-img {
  margin: 3%;
  width: 50%;
}

.element-text {
  text-align: center;
  margin: 3%;
  width: 50%;
  display: flex;
  flex-direction: column;
}

.line2 {
  align-self: center;
  height: 3px;
  background-color: white;
  width: 80%;
  margin-bottom: 10px;
}

.career {
    display: flex;
    /* justify-content: center; */
    overflow: scroll;
    height: 560px;
    background-image: url(../img/about/2017-2.JPG);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;
    padding: 0;
}

.career-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100%;
  position: sticky;
  top: 0;
  display: flex;
  background-color: rgba(0, 0, 0, 0.742);
}

.career-content h2 {
  padding-top: 0;
}

/* Hide scrollbar for elements with class .career */
.career::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

/* Optional: Hide scrollbar for Firefox */
.career {
  scrollbar-width: none;
}

.spacer-long {
  height: 1500px;
}

.spacer-short {

    height: 400px;

  display: flex;
}

.h23 {
  font-size: 2em;
  padding: 0 0 20px 15%;
  margin-top: 20px;
  align-self: flex-start;
}

.bar {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background-color: #701f28;
  margin: 0 5% 0 15%;
}

.years {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-right: 10%;
  height: 313px;
}

.years p {
  color: #FFF0E3;
}

#year-1 {
  color: #701f28;
  font-weight: 900;
}

#year-1.active {
  color: #FFF0E3;
  font-weight: normal;
}

#year-2 {
  color: #FFF0E3;
}

#year-2.active {
  color:#701f28;
  font-weight: 900;
}

#year-3 {
  color: #FFF0E3;
  font-weight: normal;
}

#year-3.active {
  color:#701f28;
    font-weight: 900;
}

#year-4 {
  color: #FFF0E3;
  font-weight: normal;
}

#year-4.active {
  color:#701f28;
  font-weight: 900;
}

#year-5 {
  color: #FFF0E3;
  font-weight: normal;
}

#year-5.active {
  color:#701f28;
  font-weight: 900;
}

#year-6 {
  color: #FFF0E3;
  font-weight: normal;
}

#year-6.active {
  color:#701f28;
  font-weight: 900;
}

.appear {
  width: 100%;
}

.milestone {
  flex-direction: column;
}

.milestone h2 {
  color: #FFF0E3;
  text-transform: uppercase;
  text-align: left;
  padding-left: 50px;
  padding-top: 0;
}

.milestone-content {
  display: flex;
  flex-wrap: wrap;
}

.milestone-content img {
  margin-right: 3%;
  height: 200px;
  /* overflow: hidden; */
}

.milestone p, .p220, .p2201 {
  color: #FFF0E3;
  width: 80%;
}

/* preload background Images: */
body:after {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  z-index: -100;
  content: url(../img/about/2017-2.JPG), url(../img/about/2019-1.JPG), url(../img/about/2021-1.JPEG), url(../img/about/2022-1.jpg), url(../img/about/2023-1.jpg);
}

#career-1 {
  display: flex;
}

#career-1.active {
  display: none;
}

#career-2 {
  display: none;
}

#career-2.active {
  display: flex;
}

#career-3 {
  display: none;
}

#career-3.active {
  display: flex;
}

#career-4 {
  display: none;
}

#career-4.active {
  display: flex;
}

#career-5 {
  display: none;
}

#career-5.active {
  display: flex;
}

#career-6 {
  display: none;
}

#career-6.active {
  display: flex;
}

@media (max-width: 900px) {
  .elementC {
    flex-direction: column-reverse;
  }

  .element-img {
    margin: 3%;
    width: 100%;
  }
  
  .element-text {
    margin: 3%;
    width: 100%;
  }

.result {
  background-size: 15px;
  padding-left: 20px;
  margin-left: 3%;
}

  .milestone h2 {
    font-size: 24px;
  }

  .milestone-content img {
    height: 100px;
  }

  .milestone-content p {
    width: 70%;
  }

  .bar {
    margin: 16.67px 2% 0 5%;
  }
  
  .years {
    margin-right: 5%;
  }

  .appear {
    margin-top: 10%;
  }
}