:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

canvas {
  position: relative;
  width: 100% !important;
  height: 100dvh !important;
  display: block;
  transform: translate3d(0, 0, 0);
}

iframe {
  position: absolute;
  border: none;
  display: flex;
  border-radius: 8px;
  margin: 0 auto;
  z-index: 1;
}

html,
body {
  position: relative;
  overflow: hidden;
}

body {
  background-color: black;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.App {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  background: black;
}

.App::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

div#stats {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  width: max(100px, 5vw, 5vh);
  height: max(50px, 3vh, 3vh);
  opacity: 0.8;
  user-select: none;
}

canvas {
  will-change: transform;
  image-rendering: optimizeSpeed;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
  will-change: transform;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  border: 0px;
}

.spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lds-spinner {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-spinner div {
  transform-origin: 40px 40px;
  animation: lds-spinner 1.2s linear infinite;
}

.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 37px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background: linear-gradient(
    90deg,
    rgba(255, 244, 205, 1) 0%,
    rgba(255, 243, 135, 1) 35%,
    rgba(187, 92, 4, 1) 73%
  );
}

.lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}

.lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}

.lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}

.lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}

.lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}

.lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}

.lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}

.lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}

.lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}

.lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}

.lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}

.lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}

@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.slot-machine {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100dvh;
}

.reel {
  width: 40px;
  height: 120px;
  overflow: hidden;
  position: relative;
  margin: 5px;
}

.error-btn {
  box-sizing: border-box;
  width: 140px;
  font-weight: lighter;
  font-family: Varela+Round,
  sans-serif;
  font-size: 40px;
  color: white;
  border: 1px solid darkgreen;
  cursor: pointer;
  background-color: #332464;
}

.symbols {
  position: absolute;
  top: 0;
  transition: transform 2s ease-in-out;
}

.reels-wrapper {
  border: 1px solid red;
  padding: 12px;
  display: flex;
  background-color: #332464;
}

.symbol {
  font-family: Varela+Round,
  sans-serif;
  font-weight: bold;
  font-size: 35px;
  line-height: 100px;
  padding: 12px;
}

.error-message {
  font-family: Varela+Round,
  sans-serif;
  text-align: center;
  margin-top: 20px;
  font-size: 24px;
  color: #ff0000;
}

@keyframes spin {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-600px);
  }
}

@keyframes anim-border {
  0% {
    box-shadow: -1px 0px 29px 20px rgb(88, 21, 154);
  }
  30% {
    box-shadow: -1px 0px 29px 10px rgb(88, 21, 154);
  }
  100% {
    box-shadow: -1px 0px 29px 20px rgb(88, 21, 154);
  }
}

.progress {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

progress[value] {
  --w: 200px;
  --color: linear-gradient(90deg, #c40d0d, #e81010) 0 / var(--w);
  --background: white;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  height: 10px;
  width: var(--w);
  margin: 0 5px;
  border-radius: 2px;
  background: var(--background);
}

progress[value]::-webkit-progress-bar {
  border-radius: 2px;
  background: var(--background);
}

progress[value]::-webkit-progress-value {
  border-radius: 2px;
  background: var(--color);
}

progress[value]::-moz-progress-bar {
  border-radius: 2px;
  background: var(--color);
}

label {
  font-size: 20px;
  font-weight: bold;
  display: block;
  margin: 20px 0;
}

.reel:nth-child(1) .symbols {
  animation: spin 2s ease-in-out;
}

.reel:nth-child(2) .symbols {
  animation: spin 2s ease-in-out 0.5s;
}

.reel:nth-child(3) .symbols {
  animation: spin 2s ease-in-out 1s;
}

.scrolling-wrapper-flexbox {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.card {
  flex: 0 0 auto;
}

.scrolling-wrapper {
  -webkit-overflow-scrolling: touch;
}

.scrolling-wrapper {
  &::-webkit-scrollbar {
    display: none;
  }
}
