@tailwind base;
@tailwind components;
@tailwind utilities;

html {
  scroll-behavior: smooth;
}

.swiper-slide blockquote {
  background-color: #f1f5f9;
  color: #49608b;
  filter: contrast(1) blur(1px);
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.swiper-slide-active blockquote {
  background-color: #f1f5f9;
  color: #1b386e;
  filter: contrast(1) blur(0px) !important;
}

html
  .sr
  .slideRight
  .slideLeft
  .slideUp
  .slideDown
  .slideFadeUp
  .slideFadeDown
  .slideFadeLeft
  .slideFadeRight {
  visibility: hidden;
}

.splitBill {
  background-image: url("./assets/SplitBills/circle.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 40px;
}

.rewardsBg {
  background-image: url("./assets/rewords/bg.png");
  background-position: top;
  background-size: contain;
  background-repeat: no-repeat;
}
.splitBillsBg {
  background-image: url("./assets/SplitBills/round.png");
  background-position: top;
  background-size: contain;
  background-repeat: no-repeat;
}

/* other */
.info {
  margin: 20px 0;
  text-align: center;
}

/* p {
  color: #2e2e2e;
  margin-bottom: 20px;
} */

/* block-$ */
.block-effect {
  font-size: 72px;
  color: white;
}

.block-reveal {
  --t: calc(var(--td) + var(--d));

  color: transparent;
  padding: 4px;

  position: relative;
  overflow: hidden;

  animation: revealBlock 0s var(--t) forwards;
}

.block-reveal::after {
  content: "";

  width: 0%;
  height: 90%;
  padding-bottom: 4px;

  position: absolute;
  top: 0;
  left: 0;

  background: var(--bc);
  animation: revealingIn var(--td) var(--d) forwards,
    revealingOut var(--td) var(--t) forwards;
}

.tag-list {
  width: "100%";
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 1rem 0;
  position: relative;
  padding: 1.5rem 0;
  overflow: hidden;
  /* background: red; */
}

.loop-slider {
  .inner {
    display: flex;
    width: "100%";
    /* background: #000; */
    animation-name: loop;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: var(--direction);
    animation-duration: var(--duration);
  }
}

.tag {
  display: flex;
  align-items: center;
  gap: 0 0.2rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  /* background-color: #334155; */
  border-radius: 0.4rem;
  padding: 0.7rem 1rem;
  margin-right: 1rem;
  /* box-shadow: 0 0.1rem 0.2rem rgb(0 0 0 / 10%), 0 0.1rem 0.5rem rgb(0 0 0 / 30%),
    0 0.2rem 1.5rem rgb(0 0 0 / 40%); */

  span {
    font-size: 1.2rem;
    color: #64748b;
  }
}

.fade {
  pointer-events: none;
  /* background: linear-gradient(
    90deg,
    #fff,
    transparent 10%,
    transparent 10%,
    #fff
  ); */
  position: absolute;
  inset: 0;
}

.image-tilt-container {
  height: fit-content;
  margin-block: auto;
}
.image-tilt-container img {
  transition: filter 300ms ease-in-out;
}
.image-tilt-container:hover img:not(:hover) {
  filter: blur(5px);
  -webkit-filter: blur(5px);
}

.image-tilt-container:hover img:hover {
  z-index: 10;
}

/* animations */
@keyframes revealBlock {
  100% {
    color: white;
    font-weight: 700;
    text-align: center;
  }
}

@keyframes revealingIn {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

@keyframes revealingOut {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(110%);
  }
}

@keyframes loop {
  0% {
    transform: translateX(50%);
  }
  100% {
    transform: translateX(-40%);
  }
}
