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

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 0 0% 3.9%;
    --radius: 0.5rem;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
  }

  .dark {
    --background: 0 0% 3.9%;
    --foreground: 0 0% 98%;
    --card: 0 0% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 0 0% 9%;
    --secondary: 0 0% 14.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 0 0% 83.1%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
  }
}

* {
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;

  /* min-height: 50vh; */
}

.container {
  max-width: 1316px;
  padding: 0 16px;
  width: 100%;
  margin: 0 auto;
  /* overflow-x: hidden; */
}

.text-stroke {
  text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white;
}

.big-swiper .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background: white;
  border: none;
  transition: 0.3 all ease;
}

.small-swiper .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: white;
  opacity: 0.7;
  transition: 0.3 all ease;
}

.big-swiper .swiper-pagination-bullet-active,
.small-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #010431;
  transition: 0.3 all ease;
}

.small-swiper .swiper-button-next:after {
  color: white;
  content: url('/arrow-right-small.svg');
}
.small-swiper .swiper-button-prev:after {
  color: white;
  content: url('/arrow-left-small.svg');
}

.big-swiper .swiper-button-next:after {
  color: white;
  content: url('/arrow-right-big.svg');
}
.big-swiper .swiper-button-prev:after {
  color: white;
  content: url('/arrow-left-big.svg');
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main,
nav,
footer {
  z-index: 10;
  position: relative;
}

button:disabled {
  transition: all 0.3s ease;
  opacity: 0.7;
}

.MuiInputBase-root.MuiOutlinedInput-root {
  font-family: var(--font-roboto);
  border-radius: 0;
  border: 2px solid rgba(139, 218, 255, 0.24);
  font-size: 18px;
}

p a {
  display: inline;
  overflow-wrap: break-word;
}

big {
  font-size: inherit !important;
}

.clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
}

@layer utilities {
  html {
    @apply bg-lightBackground;
  }
  .input-style {
    @apply bg-[#E6E6FA] rounded-xl py-3 px-4 placeholder:text-[#BCBCD6] outline-none;
  }

  .calendar [aria-label='Go to next month'] {
    @apply shadow-sm transition-all;
  }

  .calendar [aria-label='Go to previous month'] {
    @apply shadow-sm transition-all;
  }

  .day-styles [name='day'] {
    @apply p-4 text-textDarkt leading-[140%] bg-purple-600 rounded-full;
  }

  .btn2 {
    @apply text-textBlack leading-[140%] py-1 px-3 rounded-[8px] bg-white border border-[#E6E6FA] font-semibold shadow-sm;
  }

  .pagination-item {
    @apply px-3 py-1 rounded-md border border-textBlack/20 text-textBlack/80 text-[12px] cursor-pointer hover:bg-textBlack transition-all hover:text-white;
  }

  .pagination-current {
    @apply px-3 py-1 rounded-md border bg-fillButtonAccentDefault text-white text-[12px];
  }

  .font-display-1-regular {
    @apply font-roboto text-[56px] leading-[64px] -tracking-[1%] font-normal;
  }
}

.font-heading-1-regular {
  @apply -tracking-[1%] text-[36px] leading-[44px];
}

.font-heading-3-regular {
  @apply -tracking-[1%] text-[28px] leading-[36px];
}

.font-heading-5-regular {
  @apply -tracking-[1%] text-[24px] leading-[32px];
}

.font-heading-5-medium {
  @apply font-medium -tracking-[1%] text-[24px] leading-[32px];
}

.font-heading-6-regular {
  @apply -tracking-[1%] text-[20px] leading-[28px];
}

.font-base-regular {
  @apply font-normal -tracking-[1%] text-[16px] leading-[24px];
}

.font-base-medium {
  @apply font-medium -tracking-[1%] text-[16px] leading-[24px];
}

.font-small-regular {
  @apply -tracking-[1%] text-[14px] leading-[20px];
}

.font-xsmall-regular {
  @apply -tracking-[1%] text-[12px] leading-[16px];
}

.text-countdown {
  @apply font-roboto text-[60px] leading-[70px] -tracking-[1%];
}

.numeric-display-1 {
  @apply text-[80px] leading-[88px] -tracking-[1%] text-center font-normal font-roboto;
}

.wheel-circle {
  background: url('/wheel-circle.svg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.index-module_slot__DpPgW {
  /* overflow: visible !important; */
  /* height: auto !important; */
}

.lottery-scrollbar {
  &::-webkit-scrollbar {
    width: 12px;
  }

  &::-webkit-scrollbar-track {
    background: #c0c1ff;
    border-radius: 8px;
  }

  &::-webkit-scrollbar-thumb {
    background-color: #a0a3fb;
    border-radius: 8px;
    width: 8px;
    border: 3px solid #c0c1ff;
  }
}

/* .index-module_num__j6XH3 {
  height: fit-content !important;
} */

.slot-seperator {
  content: url('/dash.svg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  @apply md:mx-5;
}

.rolling-number {
  @apply text-lightOnPrimary md:text-[80px] md:leading-[88px] -tracking-[1%] md:px-4;
}

@media (max-width: 1025px) {
  .rolling-number {
    @apply text-[48px] px-2;
  }
}

@media (max-width: 1025px) {
  .rolling-number {
    @apply text-[48px] px-2;
  }
  .slot-seperator {
    content: url('/dash-md.svg');
    @apply mx-2;
  }
  .lottery-winner-list {
    grid-template-columns: 2;
  }
}

@media (max-width: 426px) {
  .rolling-number {
    @apply text-[24px] px-1;
  }

  .slot-seperator {
    content: url('/dash-md.svg');
    @apply !mx-1;
  }
}

@media (max-width: 320px) {
  .rolling-number {
    @apply text-[16px] px-1;
  }
}

@media (max-width: 426px) {
  .slot-seperator {
    content: url('/dash-sm.svg');
    @apply mx-2;
  }
}

.confetti-piece {
  position: absolute;
  /* border-radius: 50%; */
  animation: confetti-move ease-in-out forwards;
  opacity: 0.8; /* Slight transparency for shiny effect */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Add depth */
}

@keyframes dots-flash {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes confetti-move {
  0% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  50% {
    transform: translateX(calc(var(--end-x) / 2)) translateY(-30vh) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: translateX(var(--end-x)) translateY(100vh) rotate(360deg);
  }
}
