/*Yuuruii Css Library - Buttons class

ColoRGButton / Boton RGB grandent
WhiteLightButton / Boton de luz grandent
back-btn / Boton Simple - Texto Desctacado (hover)
PurpleLightButton / Boton de luz con grandent purpura

*/


/*Boton shadow RGB grandent*/
.ColoRGButton {
  padding: 0.6em 2em;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.ColoRGButton:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: Glowing-Yuuruii 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes Glowing-Yuuruii {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.ColoRGButton:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  left: 0;
  top: 0;
  border-radius: 10px;
}

/*Variable boton de luz (white grandent)*/

.WhiteLightButton {
  padding: 0.6em 2em;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  margin-top: 20px;
  margin-bottom: 20px;
}

.WhiteLightButton:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ffffff,
    #f0f0f0,
    #e8e8e8,
    #d0d0d0,
    #b8b8b8,
    #a0a0a0,
    #888888,
    #707070,
    #585858
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: Glowing-Yuuruii 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

.WhiteLightButton:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  left: 0;
  top: 0;
  border-radius: 10px;
}

/*Variable boton de luz (Purple grandent)*/

.PurpleLightButton {
  padding: 0.6em 2em;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  margin-top: 20px;
  margin-bottom: 20px;
}

.PurpleLightButton:before {
  content: "";
  background: linear-gradient(
    45deg,
    #f3e5f5,
    #e1bee7,
    #ce93d8,
    #ba68c8,
    #ab47bc,
    #9c27b0,
    #8e24aa,
    #7b1fa2,
    #6a1b9a
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: Glowing-Yuuruii 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

.PurpleLightButton:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  left: 0;
  top: 0;
  border-radius: 10px;
}

/*Boton Simple - Texto Desctacado (hover)*/

.back-btn {
  font-size: 18px;
  color: #e1e1e1;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  text-transform: uppercase;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: color;
}

.back-btn:focus,
.back-btn:hover {
  color: #fff;
}

.back-btn:focus:after,
.back-btn:hover:after {
  width: 100%;
  left: 0%;
}

.back-btn:after {
  content: "";
  pointer-events: none;
  bottom: -2px;
  left: 50%;
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: width, left;
}

/*------------ Boton Flotante para autoscroll ------------*/

.AutoScrollButton {
  position: fixed; /* Posición fija en la pantalla */
  bottom: 20px; /* Se mantiene 20px desde la parte inferior de la pantalla */
  right: 20px; /* Se mantiene 20px desde el lado derecho de la pantalla */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 25%; /* Hace que el botón sea circular */
  width: 10vh; /* Ancho */
  height: 10vh; /* Alto (circular) */
  background: linear-gradient(45deg, #333, #555); /* Gradiente oscuro para dark theme */
  color: white; /* Texto blanco */
  font-family: 'Arial', sans-serif; /* Tipo de fuente */
  font-size: 1.0rem; /* Tamaño del texto */
  font-weight: bold; /* Negrita */
  text-decoration: none; /* Elimina la subrayado típica de los enlaces */
  text-align: center;
  cursor: pointer; /* El cursor cambia a mano */
  transition: all 0.3s ease; /* Animación suave en el hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra sutil para el efecto flotante */
  z-index: 9999; /* Asegura que el botón esté sobre otros elementos */
}

.AutoScrollButton:hover {
  background: linear-gradient(45deg, #575757, #a1a1a1); /* Gradiente azul al pasar el ratón */
  transform: scale(1.1); /* Aumenta ligeramente el tamaño cuando se pasa el ratón */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada en hover */
}

/*le pedi a chatgpt que lo haga XD*/
