/* DESIGN RULES 


FONT SIZE SYSTEM (px)

10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

SPACING SYSTEM (px)

2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

---------------------

COLORS:
  FONT: #c3c3c3,
  
colors for button:
  PRIMARY: #ef4444,
  SECONDARY: #b91c1c,
  SHADOWS: #600808



*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html,
body {
  touch-action: manipulation;
}

html {
  /* font-size: 10px; */
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: #2d2d2d;
  color: #c3c3c3;
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1;
  margin: 0 auto;

  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 4rem);
  overflow-y: auto;
}

h1 {
  text-transform: uppercase;
  font-size: 6.2rem;
  margin: 9.6rem auto;
}

/* ************************************************ */
/* ******************* BET INPUT ****************** */
/* ************************************************ */

.betInput {
  background-color: #6c6c6c;
  color: #c3c3c3;
  font-size: inherit;
  width: 12.8rem;
  text-align: center;
  border-radius: 9px;
  padding: 0.8rem;
  border: none;
}

.betControls {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background-color: #1b1b1b;
  padding: 0.8rem 0.96rem;
  border-radius: 11px;
  margin-bottom: 4.8rem;
}

.betAdjust {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: inherit;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  border-radius: 6px;
}

.betAdjust + .betAdjust {
  border-left: 0.2rem solid #5b5b5b;
}

.betAdjust:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

.betAdjust:active {
  background-color: rgba(255, 255, 255, 0.12);
}

.betInput:focus {
  outline: none;
  box-shadow: none;
}

/* Remove arrows in Chrome, Edge, Safari (WebKit browsers) */
.betInput::-webkit-inner-spin-button,
.betInput::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove arrows in Firefox */
.betInput {
  -moz-appearance: textfield;
}

/* ************************************************ */
/* ****************** MULTIPLIER ****************** */
/* ************************************************ */

#multiplier {
  font-size: 6.2rem;
  margin-top: 4.8rem;
  font-weight: bold;
}

/* ************************************************ */
/* ******************** STATUS ******************** */
/* ************************************************ */

#status {
  font-size: inherit;
  margin-top: 3.2rem;
  font-weight: bold;
  min-height: 3.2rem;
  transition: color 200ms, opacity 200ms;
}

/* ************************************************ */
/* ******************** BUTTON ******************** */
/* ************************************************ */

.pushable {
  margin-top: 8rem;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: filter 600ms;
}

.edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 100%;
  background: linear-gradient(to left, #600808 0%, #b91c1c 8%, #b91c1c 92%, #600808 100%);
}

.shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 100%;
  background: #11111158;
  filter: blur(4px);
  transform: translateY(1.5rem);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.front {
  display: block;
  position: relative;
  color: #eeeeee;
  transform: translateY(-10px);
}

/* inner front face */
.pushable .front {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30rem;
  width: 35rem;
  border-radius: 100%;
  font-size: 4.4rem;
  background: radial-gradient(#ef4444 30%, #a51919 99%);
  color: white;
  transform: translateY(-2.5rem);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.pushable:hover {
  transition: filter 250ms;
  filter: brightness(110%);
}

.pushable:hover .front {
  transform: translateY(-3rem);
}
.pushable:hover .shadow {
  transform: translateY(2rem);
}
.pushable:active .front {
  transform: translateY(-1rem);
}
.pushable:active .shadow {
  transform: translateY(0.5rem);
}

.pushable:focus:not(:focus-visible) {
  outline: none;
}

.pushable,
.pushable * {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* old Edge */
  user-select: none;

  -webkit-touch-callout: none; /* disable long-press menu */
  -webkit-tap-highlight-color: transparent; /* remove tap highlight */
}

#version-badge {
  position: fixed;
  right: 1.6rem;
  bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px));
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-size: 1.8rem;
  letter-spacing: 0.03em;
  background-color: rgba(0, 0, 0, 0.55);
  color: #9ca3af;
  z-index: 999;
  backdrop-filter: blur(6px);
  pointer-events: none; /* so it never blocks clicks */
}

@media (max-width: 30em) {
  html {
    font-size: 40%;
  }

  h1 {
    margin: 0 0 4.8rem 0;
  }

  #multiplier {
    font-size: 7.4rem;
  }

  .pushable {
    margin-top: 4.8rem;
  }

  .pushable .front {
    height: 20rem;
    width: 25rem;
    padding: 5rem;
  }

  #version-badge {
    font-size: 2.8rem;
  }
}
