@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body{
  width: 50%;
  height: 40%;
  display: grid;
  place-items: center;
  background-color: aqua;
}


.slider{
  max-width: 400px;
  height: 400px;
  position: relative;
  user-select: none;
}

.silder img{
  width: 400px;
  height: 600px;
}


.slider-item,
.hidden
{
display: none;


}

.active{
  display: block;
  animation: fadeAnimation 0.2s;
}
.slider-btns{
  position: absolute;
  top:50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between; 
  visibility: hidden;
}
.slider-btns button{
  font-size: 30px;
  font-weight: 500;
  background-color:rgba(0,0,0,0.5);
  border:none;
  color:white;
  width: 30px;
  height: 30px;
  line-height: 30px;
  cursor: pointer;
}

.slider:hover .slider-btns{
visibility: visible;
}

@keyframes fadeAnimation {
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
    transition: opacity linear;
  }
}

.dots{
  background-color: rgba(0,0,0,0.5);
  width: 100%;
  height: 15px;
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap:10px;
}

.dot{
  width: 20px;
  height: 3px;
  background-color: rgba(241,241,241,0.2);
  cursor: pointer;
}

.dot-active{
  background-color:#fff;
}
