:root {
  --primary-light: #5f75a4;
  --primary-default: #1a49a0;
  --primary-dark: #142157;

  --white: 255 255 255;
  --gray-50: 250 250 250;
  --gray-100: 241 241 241;
  --gray-200: 227 227 227;
  --gray-300: 223 223 223;
  --gray-350: 153 153 153;
  --gray-400: 146 146 146;
  --gray-500: 102 102 102;
  --gray-600: 72 72 72;
  --gray-700: 51 51 51;
  --gray-800: 34 34 34;
  --gray-900: 17 17 17;
  --black: 0 0 0;
}

.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.outfit-100 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}
.outfit-200 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}
.outfit-300 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}
.outfit-400 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
.outfit-500 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}
.outfit-600 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}
.outfit-700 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}
.outfit-800 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}
.outfit-900 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
}

.rubik-dirt-regular {
  font-family: "Rubik Dirt", system-ui;
  font-weight: 400;
  font-style: normal;
}

body {
  background-color: #e1e1e1;
}

p {
  margin-bottom: 0;
}

.fade-show-animation {
  animation: fade-show 1s ease-out;
}
.fade-in-animation {
  animation: fade-in 0.3s ease-out;
}

/* .text-primary {
  color: var(--primary-default) !important;
} */

.primary-section {
  background-color: var(--primary-default);
}

.h-dvh {
  height: 100dvh;
}
.primary-gradient-section {
  background: var(--primary-default);
  background: linear-gradient(
    45deg,
    var(--primary-default) 0%,
    var(--primary-dark) 100%
  );
}

.light-primary-gradient-section {
  background: var(--primary-light);
  background: linear-gradient(
    45deg,
    var(--primary-light) 0%,
    var(--primary-default) 100%
  );
}

.black-gradient-section {
  background: rgb(var(--primary-default));
  background: linear-gradient(
    45deg,
    rgb(var(--black)) 0%,
    rgb(var(--gray-800)) 100%
  );
}
.white-gradient-section {
  background: rgb(var(--primary-default));
  background: linear-gradient(
    120deg,
    rgb(var(--white)) 0%,
    rgb(var(--white)) 50%,
    rgb(var(--gray-400)) 100%
  );
}
.title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.subtitle {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.carousel-group {
  animation: spin 8s linear infinite;
}

.sport-card {
  background: #ffffff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-width: 300px;
  width: 300px;
  height: 400px;
  border-radius: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  padding: 1rem;
  position: relative;
  z-index: 1;
  transition: all;
  transition-duration: 300ms;
  cursor: pointer;
}
.sport-card img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: calc(300px - 1rem);
  height: calc(400px - 1rem);
  margin: auto;
  border-radius: 1.5rem;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
  z-index: -1;
}
.sport-card::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  z-index: -2;
  filter: blur(12px);
  opacity: 0.6;
  left: 50%;
  transform: translate(-50%, 5%);
}

.sport-card:hover {
  transform: translateY(-10px);
}

.sport-card.soccer {
  background-image: url("/public/assets/img/soccer.jpeg");
}
.sport-card.football {
  background-image: url("/public/assets/img/football.jpeg");
}
.sport-card.basketball {
  background-image: url("/public/assets/img/basketball.jpeg");
}
.sport-card.baseball {
  background-image: url("/public/assets/img/baseball.jpeg");
}

.sport-card .title {
  grid-row-start: 1;
  grid-column-start: 1;
  grid-column-end: 3;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 2.2rem;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}

.instructions-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.instruction-container {
  display: grid;
  grid-template-columns: 60px 3fr;
}

.instruction-container .step {
  font-size: 4rem;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  line-height: 4rem;
  text-shadow:
    0.1rem 0.1rem 0px rgb(var(--white)),
    0.2rem 0.2rem 0px var(--primary-dark);
}

.instruction-container .description {
  color: rgb(var(--gray-500));
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 1.2rem;
}

.lower-shadow {
  position: relative;
  z-index: 0;
}

.lower-shadow.animated-shadow::before {
  animation: ball-bounce-shadow var(--duration, 1s)
    cubic-bezier(0.79, 0.37, 0.14, 0.74) infinite;
}

.lower-shadow::before {
  content: "";
  position: absolute;
  min-width: 70%;
  min-height: 20%;
  background-color: rgba(0, 0, 0, 0.15);
  filter: blur(0.3rem);
  border-radius: 70%;
  top: 90%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.animation-ball-bounce {
  animation: ball-bounce var(--duration, 1s)
    cubic-bezier(0.79, 0.37, 0.14, 0.74) infinite;
}

.animation-right-appear {
  animation: right-appear var(--duration) cubic-bezier(1, 0.12, 0.17, 0.92);
}
.animation-left-appear {
  animation: left-appear var(--duration) cubic-bezier(1, 0.12, 0.17, 0.92);
}

.animated-checkbox {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  aspect-ratio: 1/1;
  border-radius: 1.7rem;
  background: transparent;
  color: transparent;
  border: 4px solid rgb(var(--gray-400));
  animation: animated-checkbox var(--duration, 5s)
    cubic-bezier(1, 0.12, 0.17, 0.92) infinite;
}

.slots-container {
  position: relative;
}
.slots-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgb(var(--gray-200));
  z-index: 10;
}

.slot {
  animation: spinSlots 5s cubic-bezier(1, 0.12, 0.17, 0.92) infinite;
}

.slot-item {
  height: 200px;
  border: 1px solid rgb(var(--gray-200));
  padding: 0 1rem;
  background: rgb(var(--white));
}
.slot-item p {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 5rem;
}

#our-games-container {
  display: grid;
  grid-template-columns: 1fr;
}

.game-card {
  box-sizing: border-box;
  background-image: url("/public/assets/img/Quien_Gana_Fondo.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 30px repeat(3, 1fr);
  padding: 1.5rem;
  position: relative;
  min-width: 300px;
  height: 300px;
  z-index: 1;
  transition: all;
  transition-duration: 300ms;
  gap: 1rem;
}

/* .game-card:hover {
  background-size: contain;
} */

.game-card::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border-radius: 1.5rem;
  border: 1.5px solid rgb(var(--white));
}

.game-card .title {
  color: rgb(var(--white));
  font-size: 1.5rem;
  grid-column: 1/5;
  grid-row: 2/5;
  font-family: "Rubik Dirt", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: 2.5rem;
  line-height: 3.2rem;
  text-transform: uppercase;
}
.game-card .description {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: rgb(var(--white));
  font-size: 1.2rem;
  grid-column: 1/-1;
}

.game-card-footer {
  grid-column: 1/5;
  grid-row: 4/5;
}
.game-card .game-button {
  border-radius: 1rem;
  font-size: 2.5rem;
  line-height: 2rem;
  background: var(--primary-default);
  background: linear-gradient(
    10deg,
    var(--primary-default) 0%,
    var(--primary-dark) 100%
  );
  border: 0;
  transition: all;
  transition-duration: 300ms;
  position: relative;
  z-index: 10;
}
.game-card .game-button:hover {
  filter: saturate(1.5);
}
.game-card .game-button:active {
  transform: scale(0.9);
}

.game-card .game-date {
  color: rgb(var(--white));
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bg-white-dot-pattern {
  --dot-bg: #ffffff;
  --dot-color: #000000;
  --dot-size: 1px;
  --dot-space: 22px;
  background:
    linear-gradient(
        90deg,
        var(--dot-bg) calc(var(--dot-space) - var(--dot-size)),
        transparent 1%
      )
      center / var(--dot-space) var(--dot-space),
    linear-gradient(
        var(--dot-bg) calc(var(--dot-space) - var(--dot-size)),
        transparent 1%
      )
      center / var(--dot-space) var(--dot-space),
    var(--dot-color);
}
.bg-black-dot-pattern {
  --dot-bg: #000000;
  --dot-color: #ffffff;
  --dot-size: 1px;
  --dot-space: 22px;
  background:
    linear-gradient(
        90deg,
        var(--dot-bg) calc(var(--dot-space) - var(--dot-size)),
        transparent 1%
      )
      center / var(--dot-space) var(--dot-space),
    linear-gradient(
        var(--dot-bg) calc(var(--dot-space) - var(--dot-size)),
        transparent 1%
      )
      center / var(--dot-space) var(--dot-space),
    var(--dot-color);
}

.bg-glass-1 {
  background-color: transparent;
  backdrop-filter: blur(2px);
}
.bg-glass-2 {
  background-color: transparent;
  backdrop-filter: blur(4px);
}
.bg-glass-3 {
  background-color: transparent;
  backdrop-filter: blur(6px);
}
.bg-glass-4 {
  background-color: transparent;
  backdrop-filter: blur(8px);
}
.bg-glass-5 {
  background-color: transparent;
  backdrop-filter: blur(10px);
}
.bg-glass-6 {
  background-color: transparent;
  backdrop-filter: blur(12px);
}
.bg-glass-7 {
  background-color: transparent;
  backdrop-filter: blur(14px);
}
.bg-glass-8 {
  background-color: transparent;
  backdrop-filter: blur(16px);
}
.bg-glass-9 {
  background-color: transparent;
  backdrop-filter: blur(18px);
}
.bg-glass-10 {
  background-color: transparent;
  backdrop-filter: blur(20px);
}

.bg-white-glass-1 {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
}
.bg-white-glass-2 {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}
.bg-white-glass-3 {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}
.bg-white-glass-4 {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}
.bg-white-glass-5 {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}
.bg-white-glass-6 {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
}
.bg-white-glass-7 {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
}
.bg-white-glass-8 {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
}
.bg-white-glass-9 {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
}
.bg-white-glass-10 {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
}

.scroll-hidden {
  scroll-behavior: smooth;
  &::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
  }
  &::-webkit-scrollbar-thumb {
    width: 0px;
    height: 0px;
    background: transparent;
  }
  &:hover::-webkit-scrollbar-thumb {
    width: 0px;
    height: 0px;
    background: transparent;
  }
}

@media (min-width: 992px) {
  .instructions-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 0 5rem;
  }

  #our-games-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@keyframes fade-show {
  0% {
    opacity: 0;
    scale: 0;
  }
  75% {
    opacity: 0;
    scale: 0;
  }
  90% {
    opacity: 1;
    scale: 1.2;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}
@keyframes fade-in {
  0% {
    opacity: 1;
    translate: 0 200px;
  }
  100% {
    opacity: 1;
    translate: 0 0px;
  }
}

@keyframes spin {
  from {
    translate: 0;
  }
  to {
    translate: -100%;
  }
}

@keyframes ball-bounce {
  0% {
    transform: translateY(0) skew(0, 0);
  }
  50% {
    transform: translateY(calc(var(--ball-height, 10px) / 3 * -1))
      skew(10deg, -10deg);
  }
  100% {
    transform: translateY(0) skew(0, 0);
  }
}
@keyframes ball-bounce-shadow {
  0% {
    min-width: 80%;
    min-height: 20%;
  }
  50% {
    min-width: 50%;
    min-height: 8%;
  }
  100% {
    min-width: 80%;
    min-height: 20%;
  }
}

@keyframes right-appear {
  0% {
    transform: translateX(-100dvw);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes left-appear {
  0% {
    transform: translateX(100dvw);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes animated-checkbox {
  0% {
    border: 4px solid rgb(var(--gray-400));
  }
  48% {
    border: 4px solid rgb(var(--gray-400));
    color: transparent;
    background: transparent;
    transform: scale(1);
  }
  50% {
    border: 4px solid rgb(var(--gray-400));
    color: transparent;
    background: transparent;
    transform: scale(0.8);
  }
  52% {
    border: 5px solid var(--primary-default);
    color: rgb(var(--white));
    background: var(--primary-default);
    transform: scale(1);
  }
  94% {
    transform: scale(1);
  }
  96% {
    border: 5px solid var(--primary-default);
    color: rgb(var(--white));
    background: var(--primary-default);
    transform: scale(0.8);
  }
  98% {
    border: 4px solid rgb(var(--gray-400));
    background: var(--primary-default);
    color: rgb(var(--white));
    transform: scale(0.8);
  }
  100% {
    border: 4px solid rgb(var(--gray-400));
    color: transparent;
    background: transparent;
    transform: scale(1);
  }
}

@keyframes spinSlots {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(200px * -10));
  }
}
