/*Back to home*/

.backtohome {
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  border: none;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  font-size: 17px;
  font-weight: 600;
  color: black;
  font-family: cursive;
  border-radius: 10rem;
  padding: 0.75rem 1.5rem;
  padding-left: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.3s;
  margin-right: 50px;
}

.button__icon-wrapper {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  position: relative;
  color: black;
  background-color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.backtohome:hover {
  background-color: #000;
}

.button__icon-wrapper {
  color: #000;
}

.backtohome:hover{
    color: #fff;
}

.button__icon-svg--copy {
  position: absolute;
  transform: translate(-150%, 150%);
}

.backtohome:hover .button__icon-svg:first-child {
  transition: transform 0.3s ease-in-out;
  transform: translate(150%, -150%);
}

.backtohome:hover .button__icon-svg--copy {
  transition: transform 0.3s ease-in-out 0.1s;
  transform: translate(0);
}

@media (max-width: 768px) {
    .backtohome {
        padding: 0.5rem 0.75rem;
        font-size: 15px;
        margin-right: 28px;
    }
  }