/*animation*/
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in2 {
  animation-name: fade-in;
  animation-duration: 2s;
  animation-delay: 0.5s;
  animation-fill-mode: both;
}

@keyframes slide-in-r {
  from { right: -80%; }
  to { right: 0; }
}

.slide-in-r {
  position: relative;
  animation: slide-in-r 2s forwards;
}

@keyframes slide-in-l {
  from { right: 80%; }
  to { right: 0; }
}

.slide-in-l {
  position: relative;
  animation: slide-in-l 2s forwards;
}

.slide-in-out-l {
  width: auto;
  height: auto;
  background-color: rgb(140, 233, 228);
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 2s ease-in-out, opacity 2s ease-in-out;
}

.slide-in-out-l.active {
  opacity: 1;
  transform: translateX(0%);
}

.slide-in-out-r {
  width: auto;
  height: auto;
  background-color: rgb(140, 233, 228);
  opacity: 0;
  transform: translateX(100%);
  transition: transform 2s ease-in-out, opacity 2s ease-in-out;
}

.slide-in-out-r.active {
  opacity: 1;
  transform: translateX(0%);
}


@keyframes rise {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0%);
    opacity: 1;
  }
}

.back-to-top {
  position: fixed;
  bottom: 20%;
  right: 2.5%;
  display: none;
  z-index: 999;
  transform: translateY(-1500%);
  animation-name: slide-down;
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.back-to-top img {
  width: 72px;
  height: 72px;
}

.back-to-top.active {
  display: block;
}

.back-to-top:hover {
  cursor: pointer;
}

.back-to-top-text {
  display: none;
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  font-size: 12px;
  line-height: 1.2;
  width: 80px;
  text-align: center;
  color: #343a40;
}

.back-to-top:hover .back-to-top-text {
  display: block;
}

@keyframes slide-down {
  from { transform: translateY(-1500%); }
  to { transform: translateY(0); }
}

