/* From Uiverse.io by vinodjangid07 */ 
html {
  scroll-behavior: smooth;
}

.button-topo {
  position: relative;
  bottom: 100px;
  right: 50%;
  z-index: 1000;
  left: 83%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 4px rgba(56, 10, 223, 0.253);
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  animation: pulseUp 1s infinite;
}

@keyframes pulseUp {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.svgIcon {
  width: 12px;
  transition-duration: 0.3s;
}

.svgIcon path {
  fill: white;
}

.button-topo:hover {
  width: 140px;
  border-radius: 50px;
  transition-duration: 0.3s;
  background-color: rgb(57, 11, 224);
  align-items: center;
}

.button-topo:hover .svgIcon {
  /* width: 20px; */
  transition-duration: 0.3s;
  transform: translateY(-200%);
}

.button-topo::before {
  position: absolute;
  bottom: -20px;
  content: "Voltar ao topo";
  color: white;
  /* transition-duration: .3s; */
  font-size: 0px;
}

.button-topo:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
  /* transform: translateY(-30px); */
  transition-duration: 0.3s;
}

@media (max-width: 600px) {
  .button-topo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: unset;
    width: 50px;
    height: 50px;
    z-index: 1000;
 }

  .button-topo {
    display: none;
  }
}