/******************************************
/* CSS
/*******************************************/

/* Box Model Hack */
* {
  box-sizing: border-box;
}

/******************************************
/* LAYOUT
/*******************************************/

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #F8E5C5;
  color: #790016;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
}

/* LUCKY MART HEADER */

body > .machine-top {
  text-align: center;
  margin-bottom: 15px;
}

body > .machine-top h2 {
  font-size: 3rem;
  margin: 0;
  border: 4px solid #790016;
  padding: 5px 20px;
  box-shadow: 7px 7px 0 #790016;
}

body > .machine-top p {
  font-weight: bold;
  font-size: 1.1rem;
}


/* SLOT MACHINE */

#machine {
  width: 100%;
  max-width: 550px;
  background: #FFF1D6;
  border: 5px solid #790016;
  padding: 30px;
  box-shadow: 10px 10px 0 #790016;
}


/* REELS */

#reel-container {
  display: flex;
  justify-content: center;
  background: #FF7A27;
  border: 4px solid #790016;
  padding: 15px;
}

.slot {
  height: 110px;
  width: 110px;
  margin: 5px;
  background: #FFF1D6;
  border: 4px solid #790016;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 3rem;
}


/* WIN / LOSE MESSAGE */

#result {
  min-height: 30px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
}


/* BALANCE */

#machine > .balance-section {
  display: flex;
  justify-content: space-between;
  align-items: center;

  border-top: 3px solid #790016;
  border-bottom: 3px solid #790016;
  padding: 5px 15px;

  font-weight: bold;
  font-size: 1.2rem;
}

#balance {
  background: #790016;
  color: #FFF1D6;
  padding: 8px 20px;
  min-width: 80px;
  text-align: center;
}


/* CONTROLS */

.buttons {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
}

.bet-button {
  background: #FF7A27;
  color: #790016;
  border: 3px solid #790016;
  padding: 12px 25px;

  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;

  cursor: pointer;
  box-shadow: 4px 4px 0 #790016;
}

.bet-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #790016;
}

.buttons p {
  font-weight: bold;
}


/* MOBILE */

@media (max-width: 550px) {

  body {
    padding: 15px;
  }

  body > .machine-top h2 {
    font-size: 2.2rem;
  }

  #machine {
    padding: 15px;
  }

  .slot {
    width: 80px;
    height: 90px;
    font-size: 2.3rem;
  }

  .buttons {
    flex-wrap: wrap;
  }
}