.scrollup {
  position: fixed;
  right: 1.5rem;
  bottom: -20%;
  background-color: var(--container-color);
  border: 1.5px solid var(--border-color);
  padding: 0.5rem;
  border-radius: 0.5rem;
  z-index: var(--z-tooltip);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrollup__icon {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrollup:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--title-color);
}

.scrollup:hover .scrollup__icon {
  transform: translateY(-2px);
  color: var(--title-color);
}

/* Show scroll */
.show-scroll {
  bottom: 5rem;
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 992px) {
  .scrollup {
    right: 1.5rem;
    padding: 0.25rem 0.4rem;
  }

  .scrollup__icon {
    font-size: 1.25rem;
  }
}

/* For medium devices */
@media screen and (max-width: 768px) {
  .scrollup {
    right: 1rem;
    padding: 0.35rem 0.45rem;
  }

  .scrollup__icon {
    font-size: 1.1rem;
  }

  .show-scroll {
    bottom: 9rem;
  }
}

@media screen and (max-width: 576px) {
  .scrollup {
    right: 0.75rem;
  }
}

/* For small devices */
@media screen and (max-width: 350px) {
  .scrollup {
    right: 0.75rem;
    padding: 0.3rem 0.4rem;
  }

  .scrollup__icon {
    font-size: 1rem;
  }

  .show-scroll {
    bottom: 8.5rem;
  }
}
