@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


html,
body {
  padding: 0;
  margin: 0;
}

html {
  height: 100vh;
}

body {
  height: 100vh;
}

.carousel {
  display: flex;
  width: 100%;
  height: 70%;
  align-items: center;
  margin: 60px 0;
}
.carousel__list{
    display: flex;
    list-style: none;
    position: relative;
    width: 100%;
    height: 100%;
    justify-content: center;
    perspective: 300px;
}
  
.carousel__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    z-index: 2;
    width: 33%;
    height: 100%;
    box-shadow: 0px 2px 8px 0px rgba(50, 50, 50, 0.5);
    position: absolute;
    transition: all .3s ease-in;
    
    &:nth-child(1) {
      background: url('./assets/recar-img/8.webp');
      background-size: cover;
    }
    &:nth-child(2) {
      background: url('./assets/recar-img/9.webp');
      background-size: cover;
    }
    &:nth-child(3) {
      background: url('./assets/recar-img/5.webp');
      background-size: cover;
    }
    &:nth-child(4) {
      background: url('./assets/recar-img/6.webp');
      background-size: cover;
    }
    &:nth-child(5) {
      background: url('./assets/recar-img/7.webp');
      background-size: cover;
    }
    
    &[data-pos="0"] {
      z-index: 5;
    }
    
    &[data-pos="-1"],
    &[data-pos="1"] {
      opacity: 0.7;
      filter: blur(1px) grayscale(10%);
    }
    
    &[data-pos="-1"] {
      transform: translateX(-40%) scale(.9);
      z-index: 4;
    }
    
    &[data-pos="1"] {
      transform: translateX(40%) scale(.9);
      z-index: 4;
    }
    
    &[data-pos="-2"],
    &[data-pos="2"] {
      opacity: 0.4;
      filter: blur(3px) grayscale(20%);
    }
    
    &[data-pos="-2"] {
      transform: translateX(-70%) scale(.8);
      z-index: 3;
    }
    
    &[data-pos="2"] {
      transform: translateX(70%) scale(.8);
      z-index: 3;
    }
}

.carousel__item h1{
    font-family: "Anton", sans-serif;
    font-weight: 400;
    font-size: 72px;
    font-style: italic;
    line-height: 105%;
    pointer-events: none;
}

.white__board{
    width: 70%;
    background-color: #fff;
    padding: 35px;
    border-radius: 30px;
    color: #020202;
    margin: 100px 0 0 0;
    pointer-events: none;
}

.white__board p{
    font-family: "Montserrat", sans-serif;
    text-align: center;
}

@media (max-width: 1440px) {
  .carousel{
    height: 70%;
    margin: 45px 0 0 0;
  }

  .carousel__item h1{
    font-size: 58px;
  }

  .white__board{
    width: 70%;
    padding: 25px;
    margin: 100px 0 0 0;
    pointer-events: none;
  }

  .white__board p{
    font-size: 14px;
  }
}

@media (max-width: 1024px){
  .carousel__item{
    width: 28%;
  }

  .carousel__item h1{
    font-size: 31px;
  }

  .white__board{
    width: 85%;
    padding: 15px;
    margin: 60px 0 0 0;
    pointer-events: none;
  }

    .white__board p{
    font-size: 12px;
  }

  .carousel{
    height: 65%;
    margin: 25px 0 0 0;
  }
}

@media (max-width: 768px){
  .carousel__item{
    width: 85%;
    overflow: hidden;
  }

  .carousel__item h1{
    font-size: 38px;
  }

  .white__board{
    width: 85%;
    padding: 15px;
    margin: 120px 0 0 0;
    pointer-events: none;
  }

    .white__board p{
    font-size: 14px;
  }

  .carousel{
    height: 80%;
    margin: 40px 0 0 0;
  }
}

@media (max-width: 360px){
  .white__board{
    margin: 60px 0 0 0;
    pointer-events: none;
  }
}

@media (max-width: 375px) and (max-height: 680px){
  .white__board{
    margin: 40px 0 0 0;
    pointer-events: none;
  }
}