/* Common styles */
.scroll-top-button {
  text-decoration: none;
  border: none;
  display: none;
  position: fixed;
  z-index: 2147483647;
}

.scroll-top-button:hover,
.scroll-top-button:focus,
.scroll-top-button:active {
  text-decoration: none;
  border: none;
}

/* Tab style */
#scrollTopButton-tab {
  bottom: 0;
  right: 30px;
  width: 70px;
  height: 70px;
  margin-bottom: -10px;
  padding: 10px 5px;
  font: 14px/20px sans-serif;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 #fff;
  color: #828282;
  -webkit-box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
  background-color: #e6e6e6;
  background-image: -moz-linear-gradient(top, #ebebeb, #dedede);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ebebeb), to(#dedede));
  background-image: -webkit-linear-gradient(top, #ebebeb, #dedede);
  background-image: -o-linear-gradient(top, #ebebeb, #dedede);
  background-image: linear-gradient(to bottom, #ebebeb, #dedede);
  background-repeat: repeat-x;
  -webkit-transition: margin-bottom 150ms linear;
  -moz-transition: margin-bottom 150ms linear;
  -o-transition: margin-bottom 150ms linear;
  transition: margin-bottom 150ms linear;
}

#scrollTopButton-tab:hover {
  margin-bottom: 0;
}

/* Pill style */
#scrollTopButton-pill {
  bottom: 20px;
  right: 20px;
  background-color: #555;
  color: #fff;
  font-size: 12px;
  font-family: sans-serif;
  text-decoration: none;
  opacity: .9;
  padding: 10px 20px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  border-radius: 16px;
  -webkit-transition: background 200ms linear;
  -moz-transition: background 200ms linear;
  -o-transition: background 200ms linear;
  transition: background 200ms linear;
  -webkit-backface-visibility: hidden;
}

#scrollTopButton-pill:hover {
  background-color: #000;
}

/* #scrollTopButton-image {
  background-image: url("../images/top.png");
  bottom: 20px;
  right: 84px;
  width: 38px;
  /* Width of image */
/* height: 38px; */
/* Height of image */

/* } */
/* Image style */
#scrollTopButton-image {
  position: fixed;
  bottom: 30px;
  right: 86px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #49516f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(5px);
  transition: all 0.3s ease;
}


#scrollTopButton-image::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-color: #fff;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.59 5.58L20 12l-8-8z'/></svg>") no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

#scrollTopButton-image:hover {
  background-color: #A90603;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width:767px) {
  #scrollTopButton-image {
    right: 90px;
  }
}

/* Pill style */
#scrollTopButton-pill {
  bottom: 20px;
  right: 20px;
  background-color: #555;
  color: #fff;
  font-size: 12px;
  font-family: sans-serif;
  text-decoration: none;
  opacity: .9;
  padding: 10px 20px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  border-radius: 16px;
  -webkit-transition: background 200ms linear;
  -moz-transition: background 200ms linear;
  -o-transition: background 200ms linear;
  transition: background 200ms linear;
  -webkit-backface-visibility: hidden;
}

#scrollTopButton-pill:hover {
  background-color: #000;
}

/* Text link style */
#scrollTopButton-link {
  bottom: 20px;
  right: 20px;
}