@font-face {
  font-family: LaGi;
  src: url(./fonts/LAGI.TTF);
}

@font-face {
  font-family: LaGiTT;
  src: url(./fonts/LAGIB.TTF);
}

@font-face {
  font-family: LaGiS;
  src: url(./fonts/LAGIS.TTF);
}

@font-face {
  font-family: loading;
  src: url(./fonts/loading.ttf);
}

html {
  height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overscroll-behavior-y: contain;
}

body {
  font-family: "Lagi", "Palatino Linotype", serif;
  height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  touch-action: pan-x pan-y;
  user-select: none;
  overscroll-behavior-y: contain;
}

.hidden {
  max-height: 0px !important;
  max-width: 0px !important;
  overflow: hidden !important;
  padding: 0px !important;
  margin: 0px !important;
  display: none !important;
}

/*------------------------------------------ SCROLLBAR BEGIN ------------------------------------------*/
.scrollable-element::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

.scrollable-element::-webkit-scrollbar:hover {
  width: 0px;
  height: 0px;
}

/* Track */
.scrollable-element::-webkit-scrollbar-track {
  background: #f1f1f100;
  border-radius: 10px;
}

/* Handle */
.scrollable-element::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

/* Handle */
.scrollable-element.hide-scrollbar::-webkit-scrollbar-thumb {
  background: #00000000;
  border-radius: 10px;
}

/* Handle on hover */
.scrollable-element::-webkit-scrollbar-thumb:hover {
  background: #555;
  border-radius: 10px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
textarea::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
textarea {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.hideHorizontalScrollBars::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  background: #00000000;
  display: none;
}

/*------------------------------------------ SCROLLBAR END ------------------------------------------*/
/*------------------------------------------ GRADIENT BLUR START ------------------------------------------*/
.gradient-blur {
  position: fixed;
  pointer-events: none;
  transform: scaleY(-1);
}

.gradient-blur > div,
.gradient-blur::before,
.gradient-blur::after {
  position: absolute;
  inset: 0;
}

.gradient-blur::before {
  content: "";
  z-index: 1;
  backdrop-filter: blur(0.5px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 12.5%,
    rgba(0, 0, 0, 1) 25%,
    rgba(0, 0, 0, 0) 37.5%
  );
}

.gradient-blur > div:nth-of-type(1) {
  z-index: 2;
  backdrop-filter: blur(1px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 12.5%,
    rgba(0, 0, 0, 1) 25%,
    rgba(0, 0, 0, 1) 37.5%,
    rgba(0, 0, 0, 0) 50%
  );
}

.gradient-blur > div:nth-of-type(2) {
  z-index: 3;
  backdrop-filter: blur(2px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 25%,
    rgba(0, 0, 0, 1) 37.5%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 62.5%
  );
}

.gradient-blur > div:nth-of-type(3) {
  z-index: 4;
  backdrop-filter: blur(4px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 37.5%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 1) 62.5%,
    rgba(0, 0, 0, 0) 75%
  );
}

.gradient-blur > div:nth-of-type(4) {
  z-index: 5;
  backdrop-filter: blur(8px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 1) 62.5%,
    rgba(0, 0, 0, 1) 75%,
    rgba(0, 0, 0, 0) 87.5%
  );
}

.gradient-blur > div:nth-of-type(5) {
  z-index: 6;
  backdrop-filter: blur(16px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 62.5%,
    rgba(0, 0, 0, 1) 75%,
    rgba(0, 0, 0, 1) 87.5%,
    rgba(0, 0, 0, 0) 100%
  );
}

.gradient-blur > div:nth-of-type(6) {
  z-index: 7;
  backdrop-filter: blur(32px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 75%,
    rgba(0, 0, 0, 1) 87.5%,
    rgba(0, 0, 0, 1) 100%
  );
}

.gradient-blur::after {
  content: "";
  z-index: 8;
  backdrop-filter: blur(64px);
  mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 87.5%, rgba(0, 0, 0, 1) 100%);
}

/*------------------------------------------ GRADIENT BLUR END ------------------------------------------*/

@keyframes pulseAnimation {
  0% {
    opacity: 0.6;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

@keyframes rotateAnimation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fullMoveAnimation {
  0% {
    transform: translateX(-50vw);
  }

  85% {
    transform: translateX(-50vw);
  }

  100% {
    transform: translateX(150vw);
  }
}

.fullMove {
  animation: 10s ease-in-out infinite fullMoveAnimation;
}

.progressCircle {
  animation: 1s ease-in-out infinite rotateAnimation;
}

/*makes sure the video feed of the qr scanner is set to fill the screen*/
#qr-reader video {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

.outline {
  position: relative;
}

.outline::after {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  border: 3px solid #96dcf8;
  border-radius: inherit;
  pointer-events: none;
}
