@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.quote-container {
  position: relative;
  width: 200px;
  height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote.fade-in {
  animation: fade-in 0.5s forwards;
  visibility: visible;
}

.quote.fade-out {
  animation: fade-out 0.5s forwards;
  visibility: visible;
}

.quote {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-shadow: none;
}

.quote::after {
  content: var(--text-in);
  display: flex;
  transform: rotateX(180deg);
  background-image: linear-gradient(180deg,rgba(255,255,255,.0) 10%,rgba(255,255,255,.5));
  -webkit-background-clip: text;
  color: transparent;
}

:root {
  --text-in: "";
}

