@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box !important;
}

body, html {
  font-family: 'Work Sans', sans-serif !important;
  box-sizing: border-box;
  -webkit-font-smoothing: subpixel-antialiased;
  backface-visibility: hidden;
  scroll-behavior: smooth;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.8em;
  color: #111;
}

::-webkit-scrollbar {
  width: 6px !important;
}

/* Track */
::-webkit-scrollbar-track {
  background: white !important;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #d69b2a !important;
}

.history-affiliates {
  max-width: 100vw;
  width: 100vw;
  height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center center;
  font-size: 1rem;
  z-index: 50;
}

.history-affiliates__wrap {
  height: 100vh;
  width: 100%;
}

.history-affiliates__container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.history-affiliates__brand {
  position: absolute;
  top: 2.6vh;
  left: 5vw;
  width: 12.7em;
  z-index: 1000;
}

.history-affiliates__content {
  background-color: #D29723;
  width: 55%;
  color: #FFF;
  position: relative;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
}

.history-affiliates__body {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5vh 5vw;
}

.history-affiliates__title {
  font-size: 2.1em;
  line-height: 1.8em;
  font-weight: 600;
  margin-bottom: 4vh;
}

.history-affiliates__text {
  font-size: 1.33em;
  line-height: 1.6em;
  font-weight: 400;
}

.history-affiliates__button {
  width: 4.1em;
  height: 4.1em;
  background-color: #FFF;
  position: absolute;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 300;
}

.history-affiliates__button--sm {
  display: none;
}

.history-affiliates__button:hover {
  animation: animationButton 800ms ease-in-out;
}

.history-affiliates__button img {
  width: 1.9em;
}

.history-affiliates__arrow {
  position: absolute;
  transform: translate3d(-50%, -50%);
  z-index: 200;
  width: 4vw;
  height: 4vw;
  left: 50%;
  cursor: pointer;
}

.history {
  background-image: url("../assets/img/ID15690_b@2x.png");
}

.history__container {
  justify-content: flex-end;
}

.history__button {
  left: 0;
}

.history__arrow {
  bottom: 5%;
  animation: bounceDown 1000ms infinite;
}

.history__arrow--sm {
  bottom: 5%;
  display: none;
  animation: bounceDown 1000ms infinite;
}

.affiliates {
  background-image: url("../assets/img/WORLD.jpg");
}

.affiliates::after {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100;
  z-index: 150;
  background-color: rgba(0, 0, 0, 0.3);
  content: '';
}

.affiliates__button {
  left: 100%;
}

.affiliates__arrow {
  top: 5%;
  animation: bounceUp 1000ms infinite;
}

@keyframes animationButton {
  from {
    transform: translate3d(-50%, -50%, 0) rotate(0);
  }
  30% {
    transform: translate3d(-50%, -50%, 0) rotate(-70deg);
  }
  to {
    transform: translate3d(-50%, -50%, 0) rotate(180deg);
  }
}

@keyframes bounceDown {
  0%, 20%, 53%, 80%, 100% {
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(-50%, -0.8em, 0);
  }
  40%, 43% {
    transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(-50%, 1.2em, 0);
  }
  70% {
    transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(-50%, 0.2em, 0);
  }
  90% {
    transform: translate3d(-50%, -0.6em, 0);
  }
}

@keyframes bounceUp {
  0%, 20%, 53%, 80%, 100% {
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(-50%, -0.8em, 0);
  }
  40%, 43% {
    transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(-50%, -2.8em, 0);
  }
  70% {
    transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(-50%, -1.8em, 0);
  }
  90% {
    transform: translate3d(-50%, -1em, 0);
  }
}


@media only screen and (max-width: 1366px) {
  .history-affiliates {
    font-size: 0.71rem;
  }
}

@media only screen and (max-width: 1280px) {
  .history-affiliates {
    font-size: 0.66rem;
  }
}

@media only screen and (max-width: 1024px) {
  .history-affiliates {
    font-size: 0.54rem;
  }
}

@media only screen and (max-width: 768px) {
  body, html {
    overflow-x: hidden;
    overflow-y: auto;
  }
  .history-affiliates {
    font-size: 1rem;
  }
  .history-affiliates__wrap {
    height: 200vh;
  }
  .history-affiliates__brand {
    left: 10vw;
  }
  .history-affiliates__content {
    width: 100%;
    height: 100%;
    clip-path: polygon(0 48%, 100% 52%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 48%, 100% 52%, 100% 100%, 0 100%);
    align-items: flex-end;
  }
  .history-affiliates__body {
    height: 50%;
    justify-content: start;
    padding: 7vh 7vw;
  }
  .history-affiliates__button--sm {
    display: block;
    width: 4.1em;
    height: 4.1em;
    background-color: #FFF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
    animation: none;
  }
  .history__button {
    display: none;
  }
  .history__arrow {
    display: none;
  }
  .history__arrow--sm {
    display: block;
  }
  .affiliates__button {
    display: none;
  }
  .history-affiliates__arrow {
    width: 7vw;
    height: 7vw;
  }
}

@media only screen and (max-width: 420px) {
  .history-affiliates {
    font-size: 0.60rem;
  }
}