@tailwind base;
@tailwind components;
@tailwind utilities;

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  width: 100%;
  background: black;
}

h2 {
  font-size: 26px;
}

/* width */
::-webkit-scrollbar {
  width: 12px;
}

/* Track */
::-webkit-scrollbar-track {
  @apply bg-gray-900;
}

/* Handle */
::-webkit-scrollbar-thumb {
  @apply bg-gray-700;
  border-radius: 2px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Speech Bubbles Scroll Element */
.scrollable-element {
  overflow: auto;

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

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

.speech-bubble {
  position: relative;
  width: 264px;
  height: 100px;
  left: 0px;
  top: 0px;
  background: #232329;
  border-radius: 60px;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  left: 170px;
  top: 95px;
  border-style: solid;
  border-width: 20px 20px 0 20px;
  border-color: #232329 transparent transparent transparent;
  transform: translateX(15%) rotate(-135deg);
}

@keyframes scaleUp {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes scaleDown {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.85;
  }
}

.scale-up {
  animation: scaleUp 0.1s forwards;
}

.scale-down {
  animation: scaleDown 0.1s forwards;
}

/* Orb Animation */

/* Base style (applies to very small screens, smaller than 640px) */
.orb-animation {
  width: 183px;
  height: 183px;
  max-height: 30vh;
}
.active-order .orb-animation {
  width: 130px;
  height: 130px;
}

/* Small devices (>=640px) */
@media (min-width: 640px) {
  .orb-animation {
    width: 240px;
    height: 240px;
  }
  .active-order .orb-animation {
    width: 180px;
    height: 180px;
  }
}

/* Medium devices (>=768px) */
@media (min-width: 768px) {
  .orb-animation {
    width: 240px;
    height: 240px;
  }
  .active-order .orb-animation {
    width: 180px;
    height: 180px;
  }
}

/* Large devices (>=1024px) */
@media (min-width: 1024px) {
  .orb-animation {
    width: 421px;
    height: 421px;
  }
  .active-order .orb-animation {
    width: 250px;
    height: 250px;
  }
}

/* Extra large devices (>=1280px) */
@media (min-width: 1280px) {
  .orb-animation {
    width: 421px;
    height: 421px;
  }
  .active-order .orb-animation {
    width: 250px;
    height: 250px;
  }
}

/* Extra extra large devices (>=1536px) */
@media (min-width: 1536px) {
  .orb-animation {
    width: 421px;
    height: 421px;
  }
  .active-order .orb-animation {
    width: 250px;
    height: 250px;
  }
}

/* Animated Background */

.animatedBackground {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  height: 100vh;
  width: 100vw;
  display: none; /* hide by default */
}

@media (min-width: 1024px) {
  .animatedBackground {
    display: block; /* show on desktop */
  }
}
