body {
  margin: 0px;
}

ul {
  padding: 0px;
  margin: 0px;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

.slide2 {
  display: flex;
  overflow: hidden;
}

.slide2 li {
  flex-shrink: 0;
  width: 85vw;
  max-width: 400px;
  max-height: 450px;
  margin: 0 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  opacity: 0.8;
  transform: scale(0.8);
  display: none;
  justify-content: center;
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.wrapper1 {
  position: relative;
  overflow: hidden;
}

.slide2 li.active {
  display: block; /* show the active slide */
  transform: translateX(0);
  position: relative;
  opacity: 1;
  transform: scale(1);
  animation: slideIn 1s ease-in-out;
  text-align: center;
  margin: auto;
}

[data-control="slide2"] {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

[data-control="slide2"] li a {
  display: block;
  width: 12px;
  height: 12px;
  background: rgb(85, 13, 83);
  border-radius: 50%;
  overflow: hidden;
  text-indent: -999px;
  margin: 5px;
}

[data-control="slide2"] li.active a,
[data-control="slide2"] li a:hover {
  background: #6134b7;
}

.arrow-nav {
  display: flex;
  justify-content: space-evenly;
  margin: 20px;
}

/* Old button style, add text to the button html.
  .btn-change-pic {
    background-color: #fb5;
    color: black;
    padding: 10px 22px;
    text-decoration: none;
    font-size: 14px;
  }
  
  .btn-change-pic:hover {
    background: #e54;
    color: white;
  } 
  */

/* New button style. */
.arrow-nav button {
  cursor: pointer;
  border: none;
  border-radius: 5px;
  color: white;
  width: 40px;
  height: 40px;
  background: #6134b7 url(../images/arrow.svg) center center no-repeat;
  transition: background-color 1s ease-in-out;
}
.arrow-nav button.prev {
  transform: rotate(180deg);
}
.arrow-nav button:hover {
  background-color: #6134b7;
}
/* ----------------- */

.custom-controls {
  display: flex;
  justify-content: center;
  margin-top: 5px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  text-align: center;
}

.custom-controls li {
  opacity: 0.8;
  transform: scale(0.6);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin: 5px;
  box-shadow: 0 2px 2px #6134b7;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.custom-controls li.active {
  opacity: 1;
  transform: scale(1);
  animation: pulse 0.5s ease-in-out;
}

@keyframes slideIn {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
