* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.cube-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem; 
  margin: 3.125rem auto;
  z-index: 2; 
}

.container-cube {
  width: 10rem; 
  height: 10rem; 
  position: relative;
  perspective: 62.5rem; 
}

.carusel {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 1s;
}

.figure {
  position: absolute;
  width: 10rem; 
  height: 10rem; 
  border: 0.0625rem solid #8EE3F1;
  backface-visibility: hidden;
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button {
  width: 2.8125rem;
  height: 2.8125rem;
  background-color: #111;
  color: #fff;
  font-size: 1.375rem; 
  font-weight: bold;
  text-align: center;
  line-height: 2.8125rem;
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
}

.cube-wrapper .up {
  margin-bottom: 15rem; 
}

.cube-wrapper .down {
  margin-top: 15rem; 
}

.figure.clickable {
  cursor: pointer;
}
