@keyframes messageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slotSpin {
  from {
    transform: translateY(-2260px);
  }
}

@keyframes fadeAllOff {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes forceFadeAllOff {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fromTop {
  0% {
    transform: translateY(-1000%);
  }

  100% {
    transform: translateY(initial);
  }
}

@keyframes fromBottom {
  0% {
    transform: translateY(1000%);
  }

  100% {
    transform: translateY(initial);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes growthSmall {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

#app {
  padding-top: 30px;
}

body {
  margin: 0;
}

body {
  margin: auto;
  text-align: center;
  font-family: 'Alfa Slab One', cursive;
  font-weight: normal;
  letter-spacing: 1px;
  background: url('/img/main-game.png') center center;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

body.active select,button,input,label {cursor: pointer;}

#mute-btn {
  position: absolute;
  cursor: pointer;
  top: 20px;
  left: 20px;
  width: 42px;
  height: 35px;
  background: url('/img/play.svg') center center no-repeat;
  background-size: 35px;
  z-index: 999;
}

#mute-btn.muted {
  background: url('/img/mute.svg') center center no-repeat !important;
}

#modal-error, #modal-insufficient {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

#modal-error.visible {
  opacity: 1 !important;
  pointer-events: all;
}
#modal-insufficient.visible {
  opacity: 1 !important;
  pointer-events: all;
}

#modal-error.visible .modal-content {
  transform: scale(1) !important;
  pointer-events: all;
}
#modal-insufficient.visible .modal-content {
  transform: scale(1) !important;
  pointer-events: all;
}

#modal-error .modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 30px;
  max-width: 500px;
  width: 100%;
  min-height: 300px;
  padding: 50px;
  box-shadow: 2px 2px 19px 0 rgba(0, 0, 0, 0.32);
  transform: scale(0);
  transition: transform .5s cubic-bezier(0.450, -0.010, 0.445, 1.345);
}

#modal-insufficient .modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 30px;
  max-width: 500px;
  width: 100%;
  min-height: 300px;
  padding: 50px;
  box-shadow: 2px 2px 19px 0 rgba(0, 0, 0, 0.32);
  transform: scale(0);
  transition: transform .5s cubic-bezier(0.450, -0.010, 0.445, 1.345);
}

#close-btn1, #close-btn2 {
  position: absolute;
  right: 30px;
  top: 30px;
  border: 1px solid;
  padding: 5px 10px 3px 11px;
  text-align: center;
  font-weight: 100;
  border-radius: 50%;
  font-size: 1.5rem;
  font-family: Arial;
}

.modal-content h1 {
  color: #000 !important;
  margin: 0;
}

.mobile-unavailable {
  display: none;
}

.mobile-unavailable h1 {
  letter-spacing: 2px;
  font-weight: normal;
  margin: 10px;
}

.messageFadeIn {
  animation: messageFadeIn 1s backwards;
  animation-delay: 2.5s;
}

.fakeScroll {
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
}

.fakeScroll.rolling1 {
  animation: slotSpin 2s backwards;
  animation-timing-function: cubic-bezier(.29,.15,.6,1.26);
  animation-delay: 0s;
}

.fakeScroll.rolling2 {
  animation: slotSpin 2s backwards;
  animation-timing-function: cubic-bezier(.29,.15,.6,1.26);
  animation-delay: 0.1s;
}

.fakeScroll.rolling3 {
  animation: slotSpin 2s backwards;
  animation-timing-function: cubic-bezier(.29,.15,.6,1.26);
  animation-delay: 0.2s;
}

.fakeScroll img {
  border-right: 1px solid #000;
}

.noborder img {
  border-right: none;
}

symbol {
  pointer-events: none;
}

svg#opening-flair {
  animation: fadeIn 3s backwards;
  animation-delay: 1.5s;
  max-width: 600px;
}
symbol#flair {
  z-index: 999;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

svg#opening-pokeball {
  animation: growthSmall 3s backwards;
  animation-delay: 0.5s;
  max-width: 150px;
}
symbol#pokeball {
  z-index: 999;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

symbol#catch-em {
  z-index: 999;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(110%);
}

svg#opening-catch-em {
  animation: fromBottom 3s backwards;
  animation-delay: 0.10s;
}

symbol#pokemontitle {
  z-index: 999;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-150%);
}

svg#opening-pokemontitle {
  animation: fromTop 3s backwards;
  animation-delay: 0.10s;
}

/* This fades off everything after a few seconds of being on screen */
.start-screen {
  animation: fadeAllOff 1s forwards;
  animation-delay: 3.75s;
  pointer-events: none;
  z-index: 999;
  position: fixed;
}

.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.buttons button img {
  height: 70px;
  width: 70px;
  padding: 0;
}

.start-screen input[type="button"] {
  z-index: 1000;
  position: fixed;
  cursor: pointer;
  bottom: 30px;
  left: 40px;
  width: 100px;
  height: 60px;
  pointer-events: all;
  -webkit-appearance: none;
  background: url('/img/skip-btn.svg') center center no-repeat;
  background-size: cover;
  border: none;
}

.start-screen.active {
  animation: forceFadeAllOff 1s forwards;
  pointer-events: none;
}

.black-bg {
  position: fixed;
  width: 100vw;
  height: 100%;
  background: #000;
  z-index: 99;
}

.fade-bg {
  position: fixed;
  width: 100vw;
  height: 100%;
  background: url('/img/intro.png') center center;
  background-size: cover;
  z-index: 100;
  animation: fadeIn 2s backwards;
  animation-delay: 0s;
}

h1 {
  font-weight: normal;
  letter-spacing: 2px;
  color: #fff;
}

.SlotMachine {
  z-index: -1;
}

.ui {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 970px;
  margin: auto;
  min-height: 450px;
  margin-bottom: 20px;
  border: 6px solid #3c5aa6;
  border-radius: 5px;
  background: rgba(245, 245, 245, 0.86);
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.20);
}

.ui .right {
  background: #3c5aa6;
  color: #fff;
  max-width: 260px;
  width: 100%;
}

.ui .left {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #3c5aa6;
  color: #fff;
  padding-bottom: 20px;
}

.ui .left img {
  padding: 8px 0 0;
  max-width: 230px;
  height: 100px;
  width: 100%;
}

.bet-ui {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.bet-ui button {
  flex: 1 1 100%;
  margin-top: 15px;
  -webkit-appearance: none;
  border: none;
  background: #3c5aa6;
  padding: 20px;
  font-family: 'Alfa Slab One', cursive;
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: 2px;
  padding-left: 70px;
}

.wheels {
  display: flex;
  justify-content: center;
  height: 220px;
  background: white;
  margin-bottom: 20px;
  box-shadow: inset 0px 0px 12px #b9b9b9;
  overflow: hidden;
  position: relative;
}

.credit-options {
  -webkit-appearance: none;
  font-family: 'Alfa Slab One', cursive;
  border: none;
  border-radius: 0;
  width: unset;
  margin-top: 10px;
  background: none;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

#balls-left {
  font-size: 3rem;
}

.left select {
  height: 30px;
}

h2 {
  margin-bottom: 0;
  font-weight: normal;
}

img {
  height: 150px;
  width: 150px;
  padding: 38px;
}

@media screen and (max-width: 690px) {
  .mobile-unavailable {
    z-index: 9999999999;
    position: fixed;
    height: 100vh;
    background: url('/img/error.png') center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    line-height: 26px;
    line-height: 32px;
    font-size: 1.5rem;
    letter-spacing: 1px;
    padding: 25px;
  }
}
