/* 引入谷歌字体 */
@import url("https://fonts.googleapis.com/css2?family=Monoton&display=swap");

html, body {
  margin: 0;
  padding: 0;
}
canvas {
  display: block;
}

#toggleButton {
  position: absolute;
  top: 25px;
  left: 35px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(254, 187, 255); 
  font-family: 'Monoton';
  border: none;
  color: white;
  font-size: 20px;
  text-align: center;
  line-height: 30px; 

  &:active {
    background-color: rgb(255,255,255); /* Change the color when pressed */
    color:  rgba(254, 187, 255,0.8);
  }

  box-shadow: 0px 0px 8px rgb(255, 255, 255);
  transition: box-shadow 0.5s;
}

#playText {
  position: absolute;
  top: 35px;
  left: 140px; 
  color: white;
  font-size: 40px; 
  font-family: 'Monoton';
  word-spacing: 13px;
}

label{
  font-family: 'Monoton';
  left: 30%;
  bottom: 6%;
  font-size: 3rem;
  position: absolute;
  z-index: 1;
  color: rgb(250, 174, 251);
  margin: -5rem 0 2rem;
}

input[type=range]{
  position: absolute;
  left: 30%;
  bottom: 6%;
  width: 40vw;
  height: 38px;
  background: rgba(254, 187, 255, 0.8);
  /* 去除滑动条的外貌 */
  appearance: none;
  border: none;
  outline: none;
  border-radius: 1rem;
  /* 内阴影 */
  box-shadow: inset 3px 3px 5px -1px rgb(255, 255, 255);
}

/* 滑块 */
input[type=range]::-webkit-slider-thumb{
  width: 3vw;
  height: 3vw;
  background: rgb(255, 255, 255);
  /* 去除滑块的外貌 */
  appearance: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0px 0px 15px rgb(231, 242, 255);
  /* 阴影过渡效果 */
  transition: box-shadow 0.5s ease-in-out;
}

/* 滑动条悬停时滑块的样式变化 */
input[type=range]:hover::-webkit-slider-thumb{
  background:rgb(154, 201, 255);
  box-shadow: 0px 0px 15px rgb(172, 211, 255);
  transition: box-shadow 0.5s ease-in-out;
}