body {
  margin: 0;
  padding: 5px 5px 0 5px;
  background-color: #000;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
  display: flex;
  justify-content: center;
  animation: fade-in 9s;
}

.deck {
  user-select: none;
  -webkit-user-select: none;
  position: sticky;
  top: 0;
  display: flex;
  width: 100%;
  gap: 70px;
  box-sizing: border-box;
  overflow-y: none;
  overflow-x: auto;
  flex-direction: row;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.card-select {
  border: 1px solid yellow;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85%;
  max-height: 945px;
  opacity: 0;
}

.deal-button {
  user-select: none;
}

.deck.small {
  width: 20% !important;
}

@keyframes fade-in {
  from {opacity:0}
  to {opacity:1}
}

.deck .card {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: 0;
}

.deck::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

.deck, body{
  -ms-overflow-style: none;
  scrollbar-width: none;
}

button {
  border-radius: 40px;
  color: #fff;
  font-weight: bold;
  font-family: 'Courier New', Courier, monospace;
  padding: 0 10px;
  background-color: var(--primary-color);
  border-radius: 50px !important;
  border: 2px solid var(--secondary-color) !important;
}

select {
  background: none transparent;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  color: #acacac;
  font-size: 20px;
  font-family: 'Courier New', Courier, monospace;
}

select:focus {
  border: none;
  outline: none;
}

/* select#cardSelect {
  font-weight: bold;
  font-size: 26px;
} */


footer {
  padding: 10px 10px 15px 10px;
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 30px;
  color: #000;
  background-color: #000;
  box-sizing: border-box;
  height: auto;
  display: flex;
  justify-content: space-between;
  color: #fff;
}

footer:hover {
  color: #fff;
}

@media screen and (min-width: 600px){
  .deck {
    max-width: 300px !important;
  }
  
}

@media screen and (max-width: 319px){
  body {
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100vw;
    margin: 0;
    padding: 0;
  }
  .card-select {
    width: 44vw;
    height: 100%;
  }
  .deck {
    width: 10%;
    min-width:90px;
  }
  footer {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  footer {
    padding: 12px 10px 20px 10px;
    position: relative;
  }
  button {
    width: 100%;
    margin: 0;
    padding: 5px 0;
    font-size: 14px;
    font-weight: bold;
  }
  select {
    font-size: 14px;
    font-weight: bold;
  }

  #cardPlayer {
    order: 1;
  }

  #cardSelect {
    font-size: 21px;
    text-align: center;
  }
}