:root {
  --yellow: #fcce07;
  --red: #de1d22;
  --darkgrey: #595959;
  --lightgrey: #898989;
  --footergrey: #404040;
}

body,
html {
  overflow-x: hidden;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

.hero {
  width: 100%;
  height: 40rem;
  background-image: url("./img/h1.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__logo {
  max-width: calc(1500px + 6rem);
  width: 100%;
  display: flex;
  justify-content: left;
  align-items: flex-end;
  max-height: 4rem;
  padding: 0 3rem;
}
.hero__forbes {
  max-width: 7rem;
}
.hero__sponsor {
  position: absolute;
  left: 50%;
  top: 2rem;
  transform: translateX(-50%);
  color: white;
  font-weight: 100;
  text-transform: uppercase;
}
.hero__social {
  display: flex;
}
.hero__social a {
  color: var(--yellow);
  text-decoration: none;
  margin-right: 1.25rem;
  font-size: 1.75rem;
}
.hero__social__container {
  width: 100%;
  max-width: 1050px;
  display: flex;
  justify-content: left;
  align-items: flex-start;
  align-self: flex-end;
  margin-bottom: 13rem;
}
.main {
  position: relative;
}
.container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.main__shell__first {
  position: absolute;
  right: 0;
  top: -3.45rem;
  user-select: none;
  -webkit-user-drag: none;
}
.main__footerimage {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}
.main__title {
  padding-top: 5rem;
  padding-bottom: 10rem;
  padding-left: 5rem;
}
/* ------------------ */
/* ------------------ */
/* ------------------ */
/* TYPOGRAPHY */
/* ------------------ */

.mb05 {
  margin-bottom: 0.5rem;
}

.mb2 {
  margin-bottom: 2rem;
}

.pl4 {
  padding-left: 4rem;
}

.pr4 {
  padding-right: 4rem;
}

.mainheading {
  font-weight: 800;
  color: var(--darkgrey);
  font-size: 2.75rem;
  text-transform: uppercase;
}
.mainheading__sub {
  font-weight: 300;
  color: var(--red);
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.heading {
  font-weight: 400;
  color: var(--lightgrey);
  text-transform: uppercase;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.heading.small {
  font-size: 1.7rem;
}
.subheading {
  font-weight: 400;
  color: var(--red);
  margin-bottom: 0.25rem;
  font-size: 25px;
}
.subheading.big {
  font-size: 30px;
}
.text {
  color: var(--lightgrey);
  font-weight: 400;
  line-height: 1.5rem;
}

/* ------------------ */
/* ------------------ */
/* ------------------ */
.main__articles {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  padding: 8rem 1rem 0 1rem;
}
.article__item {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  width: 100%;
}
.article__item > div {
  width: calc(50% - 1rem);
  transition: 0.5s transform cubic-bezier(0.165, 0.84, 0.44, 1), .5s opacity linear;
}
.article__text p {
  max-width: 570px;
  font-size: 18px;
  line-height: 24px;
}
.article__image img {
  max-height: 600px;
  max-width: 100%;
}

.double {
  position: relative;
}

.double > img {
  max-height: 420px;
}

.double.righty .s {
  left: 16rem;
}

.double .s {
  position: absolute;
  top: 6rem;
}

.double.lefty .s {
  left: 12rem;
}
.tremage {
  border-radius: 5px;
}

.footerpre {
  width: 100%;
  transform: translateY(5px);
}

/* Footer */
footer {
  height: 8rem;
  background-color: var(--footergrey);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.footer__container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  max-width: 1200px;
  padding: 0 1rem;
}
.footer__link a {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
}
.footer__link img {
  width: 5rem;
}

.article__item > div:first-of-type {
  transform: translateX(-200%);
  opacity: 0;
}

.article__item > div:last-of-type {
  transform: translateX(200%);
  opacity: 0;
}

.active > div {
  transform: translateX(0) !important;
  opacity: 1 !important;
}

/* Per article */
#article1,
#article4,
#article5,
#article6,
#article7 {
  margin-bottom: 10rem;
}
#article2,
#article3 {
  margin-bottom: 14rem;
}

.shellcont {
  display: flex;
  position: absolute;
  bottom: 0;
  width: 100%;
  right: 0;
  left: 50%;
  justify-content: flex-start;
  align-items: flex-end;
  width: 100%;
  max-width: 1200px;
  z-index: 1;
  transform: translateX(-50%);
  padding: 0 1rem;
}

@media screen and (max-width: 1250px) {
  .article__image.double.righty.pl4 {
    padding-left: 0;
  }
  .double.righty .s,
  .double.lefty .s {
    left: 10rem;
  }
}

@media screen and (max-width: 1250px) {
  .hero {
    background-image: url("../assets/img/h2.png");
  }
  .hero__social__container {
    max-width: 570px;
    margin-bottom: 15rem;
  }
  .hero__logo {
    max-width: 756px;
  }
  .article__item > div {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .article__text h3 {
    width: 100%;
    text-align: center;
  }
  .article__image {
    margin-bottom: 3rem;
  }
  .article__image.pair {
    order: 1;
  }
  .article__text {
    order: 2;
  }
  .article__image img {
    max-height: 500px;
  }
  .article__image.double.righty.pl4 {
    margin-bottom: 8rem;
  }

  .double.righty .s,
  .double.lefty .s {
    left: 8rem;
  }

  .double {
    width: unset !important;
    margin: 0 auto;
  }

  .double .f {
    transform: translateX(-5rem);
  }

  .article__image.double.lefty {
    margin-bottom: 8rem;
  }
  #article2 {
    margin-bottom: 5rem;
  }

  .article__image {
    margin-bottom: 2rem;
  }

  #article1,
  #article4,
  #article5,
  #article6,
  #article7 {
    margin-bottom: 7rem;
  }

  #article3 {
    margin-bottom: 10rem;
  }
  .footer__container {
    padding: 0 1rem;
  }
}

@media screen and (max-width: 700px) {
  .hero {
    background-image: url("../assets/img/h3.png");
  }

  .hero__social__container {
    max-width: 320px;
    margin-bottom: 7rem;
    padding-left: 6rem;
    justify-content: flex-end;
  }
  .hero__social {
    flex-direction: column;
  }
  .hero__social a {
    margin-bottom: 1rem;
  }

  .hero__logo {
    max-width: calc(320px + 4rem);
    padding: 0 1rem;
    max-height: 3rem;
  }
  .hero__forbes {
    max-width: 4rem;
  }
  .shellcont img {
    max-height: 12rem;
  }
  .main__articles {
    padding: 4rem 1rem 0 1rem;
  }
}

@media screen and (max-width: 576px) {
  .mainheading {
    font-size: 1.5rem;
  }
  .mainheading__sub {
    font-size: 2rem;
  }
  .heading {
    font-size: 1.6rem;
  }
  .subheading {
    font-size: 1.5rem;
  }
  .subheading.big {
    font-size: 1.8rem;
  }
  .article__text p {
    font-size: 0.95rem;
    text-align: center;
  }
  .article__image img {
    max-height: 240px;
  }
  .double {
    padding: 0;
  }
  .double .f {
    transform: translateX(-2rem);
  }
  .double.righty .s,
  .double.lefty .s {
    left: 2rem;
  }
  .heading.small {
    font-size: 1.3rem;
  }
  .shellcont img {
    max-height: 10rem;
  }
}
