body {
  margin: 0;
  top: -30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #282c34;
}


.title {
  color: #f8b195;
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(to right, #f67280 0%, #c06c84 50%, #355c7d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.titleSection {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* Asegura que el contenedor ocupe todo el ancho */
  margin-bottom: 20px; /* Espacio entre el título y los controles */
}

.titleSection canvas {
  display: block; /* Asegura que el canvas se trate como un bloque para centrarlo */
  margin: 0 auto; /* Centra el canvas horizontalmente */
}





#titleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Posiciona el canvas detrás del texto */
}


.controls{
  display: flex;
  margin-bottom: 20px;
}

#volumeControl {
  margin: 20px 20px;
  width: 200px;
}

#startButton {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #f67280 0%, #c06c84 50%, #355c7d 100%);
  border: 2px solid #f8b195;
  border-radius: 20px;
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.4);
  background-size: 200%;
  background-position: 0% 0%;
  transition: background-position 0.5s ease; /* Transición aplicada a la posición del fondo */
}

#startButton:hover {
  background-position: 100% 0%; /* Cambia la posición del gradiente en hover */
}

#startButton:active {
  background-position: 50% 0%; /* Cambia la posición del gradiente al estar activo */
}


body {
  position: relative;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #222;
  overflow: hidden;
}


input[type=range] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 200px;
  background-color: transparent;
}


input[type=range]:focus {
  outline-color: #f8b195;
}


input[type=range]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: #f67280;
  background: -webkit-linear-gradient(left, #f67280 0%, #c06c84 50%, #355c7d 100%);
  background: linear-gradient(to right, #f67280 0%, #c06c84 50%, #355c7d 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#f67280", endColorstr="#355c7d", GradientType=1 );
}


input[type=range]::-moz-range-track {
  -moz-appearance: none;
  appearance: none;
  height: 3px;
  background: #f67280;
  background: -moz-linear-gradient(left, #f67280 0%, #c06c84 50%, #355c7d 100%);
  background: linear-gradient(to right, #f67280 0%, #c06c84 50%, #355c7d 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#f67280", endColorstr="#355c7d", GradientType=1 );
}


input[type=range]::-ms-track {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 3px;
  background: #f67280;
  background: -moz-linear-gradient(left, #f67280 0%, #c06c84 50%, #355c7d 100%);
  background: -webkit-linear-gradient(left, #f67280 0%, #c06c84 50%, #355c7d 100%);
  background: linear-gradient(to right, #f67280 0%, #c06c84 50%, #355c7d 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#f67280", endColorstr="#355c7d", GradientType=1 );
}


input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid #f8b195;
  border-radius: 50%;
  height: 20px;
  width: 20px;
  position: relative;
  bottom: 8px;
  background: #222 url("http://codemenatalie.com/wp-content/uploads/2019/09/slider-thumb.png") center no-repeat;
  background-size: 50%;
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.4);
  cursor: grab;
}


input[type=range]::-webkit-slider-thumb:active {
  cursor: grabbing;
}


input[type=range]::-moz-range-thumb {
  -moz-appearance: none;
  appearance: none;
  border: 2px solid #f8b195;
  border-radius: 50%;
  height: 20px;
  width: 20px;
  position: relative;
  bottom: 8px;
  background: #222 url("http://codemenatalie.com/wp-content/uploads/2019/09/slider-thumb.png") center no-repeat;
  background-size: 50%;
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.4);
  cursor: grab;
}


input[type=range]::-moz-range-thumb:active {
  cursor: grabbing;
}


input[type=range]::-ms-thumb {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 2px solid #f8b195;
  border-radius: 50%;
  height: 20px;
  width: 20px;
  position: relative;
  bottom: 8px;
  background: #222 url("http://codemenatalie.com/wp-content/uploads/2019/09/slider-thumb.png") center no-repeat;
  background-size: 50%;
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.4);
  cursor: grab;
}
body input[type=range]::-ms-thumb:active {
  cursor: grabbing;
}