html {
  font-family: "Roboto", sans-serif;
  font-size: 62.5%;
}
@media only screen and (max-width: 800px) {
  html {
    font-size: 57%;
  }
}

@media only screen and (max-width: 1000px) {
  body {
    padding: 0;
  }
}

.slider-container {
  width: auto;
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
}
@media only screen and (max-width: 1000px) {
  .slider-container {
    border-radius: 0;
  }
}

.slider {
  display: flex;
  width: 500%;
  height: 55rem;
  transition: all 0.25s ease-in;
  transform: translateX(0);
}
.slider-desc i{
  color: #18CC24
}

@media only screen and (max-width: 1000px) {
  .slider {
    height: 100vh;
  }
}
.slider .box {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  overflow: hidden;
  position: relative;
}
@media only screen and (max-width: 650px) {
  .slider .box {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
  }
}
.slider .box .bg {
  padding: 2rem 2rem 2rem 20rem;
  width: 55%;
  transform: skewX(7deg);
  position: absolute;
  height: 100%;
  left: -10%;
  transform-origin: 0 100%;
}
@media only screen and (max-width: 800px) {
  .slider .box .bg {
    width: 65%;
  }
}
@media only screen and (max-width: 650px) {
  .slider .box .bg {
    width: 100%;
    left: 0;
    bottom: 0;
    height: 54%;
    transform: skewX(0deg);
  }
}
.slider .box .bg::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  transform: skewX(10deg);
}
@media only screen and (max-width: 650px) {
  .slider .box .bg::before {
    width: 120%;
    bottom: 0;
    transform: skewX(0deg);
  }
}
.slider .box .details {
  padding: 0 0 0 7rem;
  z-index: 100;
  grid-column: 1/span 1;
  grid-row: 1/-1;
}
@media only screen and (max-width: 650px) {
  .slider .box .details {
    grid-row: 2/span 1;
    grid-column: 1/-1;
    text-align: center;
    padding: 2rem;
    transform: translateY(-9rem);
  }
}
.slider .box .details h1 {
  font-size: 2.8rem;
  font-weight: 500;
  margin-left: 5rem;
  margin-bottom: 2rem;
  color: #fff;
  letter-spacing: 5px;
}
.slider .box .details p {
  display: inline-block;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
  margin-right: 5rem;
  margin-left: 0;
  letter-spacing: 4px;
}
.slider .box .details p i::before{
  margin-right: 5px;
}
@media only screen and (max-width: 800px) {
  .slider .box .details p {
    margin-right: 0;
  }
}
.slider .box .details button {
  width: 50%;
  padding: 1rem 3rem;
  color: #fff;
  border-radius: 2rem;
  outline: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}
.slider .box .details button:hover {
  opacity: 0.8;
}
.slider .box .details button:focus {
  outline: none;
  border: none;
}
.slider .box1 .illustration .inner img{
  width: 36rem;
  height: auto;
}
.slider .box2 .illustration .inner img{
  width: 36rem;
  height: auto;
}
.slider .box3 .illustration .inner img{
  width: 36rem;
  height: auto;
}
.slider .box4 .illustration .inner img{
  width: 36rem;
  height: auto;
}
.slider .box5 .illustration .inner img{
  width: 36rem;
  height: auto;
}
.slider .box1{
  background-color: #C791DC;
}
.slider .box1 .bg {
  background-color: rgba(147, 0, 255, 0.4);
}
.slider .box1 .bg::before {
  background-color: rgba(146, 0, 255, 0.4);
}
.slider .box1 button {
  background-color: #C791DC;
}

.slider .box2 {
  background-color: #40BE50;
}
.slider .box2 .bg {
  background-color: rgba(0, 154, 73, 0.4);
}
.slider .box2 .bg::before {
  background-color: rgba(0, 154, 73, 0.4);
}
.slider .box2 button {
  background-color: #40BE50;
}

.slider .box3 {
  background-color: #589BEF;
}
.slider .box3 .bg {
  background-color: rgba(0, 95, 255, 0.4);
}
.slider .box3 .bg::before {
  background-color: rgba(0, 95, 255, 0.4);
}
.slider .box3 button {
  background-color: #589BEF;
}

.slider .box4 {
  background-color: #DD6859;
}
.slider .box4 .bg {
  background-color: rgba(197, 0, 0, 0.4);
}
.slider .box4 .bg::before {
  background-color: rgba(197, 0, 0, 0.4);
}
.slider .box4 button {
  background-color: #DD6859;
}

.slider .box5 {
  background-color: #EB9D54;
}
.slider .box5 .bg {
  background-color: rgba(255, 101, 0, 0.4);
}
.slider .box5 .bg::before {
  background-color: rgba(255, 99, 0, 0.4);
}
.slider .box5 button {
  background-color: #EB9D54;
}

.slider .illustration {
  grid-column: 2/-1;
  grid-row: 1/-1;
  justify-self: left;
  margin-left: 8rem;
}
@media only screen and (max-width: 650px) {
  .slider .illustration {
    grid-row: 1/span 1;
    grid-column: 1/-1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
.slider .illustration div {
  height: 36rem;
  width: auto;
  border-radius: 3rem;
  /*background-color: #aa185c;*/
  position: relative;
  transform: skewX(0deg);
}
@media only screen and (max-width: 800px) {
  .slider .illustration div {
    height: 26rem;
    width: auto;
  }
}
.slider .illustration div::after, .slider .illustration div::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 3rem;
  top: 0;
  left: 0;
}
.slider .illustration div::after {
  transform: translate(4rem, -1rem);
}
.slider .illustration div::before {
  transform: translate(2rem, -2rem);
}

.prev,
.next,
.trail {
  z-index: 10000;
  position: absolute;
}

.prev,
.next {
  width: 4rem;
  cursor: pointer;
  opacity: 0.2;
  transition: all 0.3s ease;
}
@media only screen and (max-width: 650px) {
  .prev,
.next {
    display: none;
  }
}
.prev:hover,
.next:hover {
  opacity: 1;
}

.prev {
  top: 50%;
  left: 2%;
  transform: translateY(-50%);
}

.next {
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
}

.trail {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  text-align: center;
  font-size: 1.5rem;
}
@media only screen and (max-width: 650px) {
  .trail {
    width: 90%;
    bottom: 13%;
  }
}
.trail div {
  padding: 2rem;
  border-top: 3px solid #fff;
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.3s ease;
}
.trail div:hover {
  opacity: 0.6;
}
@media only screen and (max-width: 650px) {
  .trail div {
    padding: 1rem;
  }
}

.trail .active {
  opacity: 1 !important;
}