.bg-main {
  height: 100vh;
  width: 100vw;
}

.content-main {
  position: absolute;
  inset: 0;
  text-align: center;
  color: white;
  z-index: 10;
}

.content-main h4 {
  font-size: clamp(1rem, 4vw, 1.3rem);
  font-weight: 500;
}

.content-main .title-header h1:nth-child(1) {
  font-size: 60px;
  font-weight: 900;
  color: var(--primary-color);
}

.content-main .title-header h1:nth-child(2) {
 font-size: 60px;
  font-weight: 900;
  line-height: 0.4;
}

.container-button a:nth-child(1) {
  background-color: var(--primary-color);
  border-radius: 5px;
  width: 155px;
  height: 65px;
  border: none;
  color: white;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 5px 5px 1px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.container-button a:nth-child(2),
.container-button a:nth-child(3) {
  background-color: white;
  border-radius: 5px;
  width: auto;
  height: 65px;
  border: none;
  color: var(--secondary-color);
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 5px 5px 1px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.container-button a:active {
  border: 2px solid white !important;
}

a.btn {
  transition: all 0.2s ease;
}

a.btn:hover {
  scale: 1.05;
  box-shadow: 7px 7px 3px rgba(0, 0, 0, 0.4);
}

/* Carousel Styles ----------------------------------*/
.carousel-section {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  animation: infiniteSlide 15s ease-in-out infinite;
  /* width: calc(100vw * 6); */
}

.carousel-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.container-carousel {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.carousel-slide img.image-carousel {
  position: absolute;
  object-fit: contain;
  right: 0;
  width: 27%;
  height: auto;
  margin: 3.5rem 10rem 0 0;
  display: block;
}

@keyframes infiniteSlide {
  0%,
  20% {
    transform: translateX(0);
  }
  25%,
  45% {
    transform: translateX(-100%);
  }
  50%,
  70% {
    transform: translateX(-200%);
  }
  75%,
  95% {
    transform: translateX(-300%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Pause on hover */
.carousel-section:hover .carousel-track {
  animation-play-state: paused;
}

/* runnig text ----------------------------------------- */
@-webkit-keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 20));
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 20));
  }
}
.slider {
  background: transparent;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
  height: 100vh;
  margin: auto;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
  display: flex;
  align-items: end;
}

.slider .slide-track {
  -webkit-animation: scroll 60s linear infinite;
  animation: scroll 60s linear infinite;
  display: flex;
  width: calc(250px * 20);
}
.slider .slide {
  height: 90px;
  width: auto;
  padding: 5px 15px 0 15px;
  display: flex;
  align-items: center;
}

.slider .slide img {
  width: auto;
}

/* end style main */

/* media query ------------------------------------*/
@media screen and (max-width: 468px) {
  .bg-main {
    height: auto;
  }

  .content-main {
    top: 5;
  }

  .container-header {
    padding-top: 2rem;
    margin-bottom: 6rem;
  }

  .title-header {
    width: 100vw;
    display: flex;
    flex-direction: column;
  }

  .title-header h1 {
    font-size: 1.4rem !important;
  }

  .container-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .container-button a:nth-child(1) {
    width: 100%;
    height: 65px;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 5px 5px 1px rgba(0, 0, 0, 0.5);
  }

  .container-button a:nth-child(2),
  .container-button a:nth-child(3) {
    width: 100%;
    height: 65px;
    border: none;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 5px 5px 1px rgba(0, 0, 0, 0.5);
  }

  /* carousel ------------------ */
  .carousel-slide img.image-carousel {
    width: 100%;
    height: 25%;
    margin: 0 -1.5rem 11rem 0;
    max-width: 250px;
  }

  .container-carousel {
    padding: 15px;
  }
}