.scroll_to_top_button {
  // --yellow_color: #06b6d4;
  // --yellow_color: #f59e0b;
  --yellow_color: #facc14;
  .to_top_btn {
    overflow: hidden;
    width: 40px;
    height: 40px;
    z-index: 9;
    transition-property: visibility;
    transition-duration: 0s;
    transition-delay: 0s;
    border: 1px solid var(--yellow_color);
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      transform: translateY(0);
      transition: 0.6s cubic-bezier(0.858, 0.01, 0.068, 0.99);
    }
    .to_top_arrow {
      width: 10px;
      height: 25px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -15%);
      transition: 0.6s cubic-bezier(0.858, 0.01, 0.068, 0.99);
      &::before {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--yellow_color);
        border-top: 2px solid var(--yellow_color);
        position: absolute;
        top: 1px;
        left: 50%;
        transform: translateX(-50%) rotate(-45deg);
        transition: 0.6s cubic-bezier(0.858, 0.01, 0.068, 0.99);
      }
      &::after {
        content: "";
        position: absolute;
        height: 100%;
        width: 2px;
        top: 0;
        left: 50%;
        transform: scaleY(0) translateX(-50%);
        transform-origin: top;
        background: var(--yellow_color);
        transition: 0.6s cubic-bezier(0.858, 0.01, 0.068, 0.99);
      }
    }
    &:hover {
      .to_top_arrow {
        transform: translate(-50%, -50%);
      }
    }
    &:hover {
      .to_top_arrow:after {
        transform: scaleY(1) translateX(-50%);
      }
    }
  }
}
