html, body {
  margin: 0;
  height: 100%;
  background-color: black;
  color: floralwhite;
  font-family: "cc-pixel-arcade-display", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 2px;
  text-align: center;
}

body {
  background-image: url('../images/6_2_parker_andrew_basic_combatgameplay.jpg');
  background-size: contain;
  background-position: center top ;
  background-repeat: no-repeat;
  min-height: 100vh;
}

#style_buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-content: stretch;
  align-items: center;
  margin-top: 100px;
}

.top-spacer {
  height: clamp(80px, 22vh, 260px);
}
.bottom-spacer {
  height: clamp(60px, 12vh, 160px);
}

button {
  border-radius: 30px;
  border-width: 0;
  cursor: pointer;
  transition: 0.2s;
}

#style_buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}



.style_button {
  display: inline-block;
  width: 200px;
  height: 200px;
  background-repeat: no-repeat;
  background-color: whitesmoke;
  border: 2px solid black;
  background-size: contain;
  background-position: center;
  
}

.style_button.selected {
  outline: 4px solid dodgerblue;
  outline-offset: 2px;
}

.punch {
  background-image: url('../images/punch.png');
}

.kick {
  background-image: url('../images/kick.png');
}

.slam {
  background-image: url('../images/slam.png');
}

.punch:hover,
.kick:hover,
.slam:hover {
  background-color: dimgray;
}

#fight {
  display: block;
  margin: 20px auto;
  padding: 10px 36px;
  background: #d6d6dc;
  color: #111;
  border: 3px solid #1b1b1b;
  border-radius: 28px;
  font: 24px 'cc-pixel-arcade-display', sans-serif;
  cursor: pointer;
  transition: 0.2s;
}

#fight:hover {
  background: #ff4d4d;
  color: #fff;
}

.game-result{
  color: dodgerblue;
    margin-top: 8px;
}

/* Message lines */
.msg {
  margin: 4px 0;
  font-family: "cc-pixel-arcade-display", sans-serif;
  letter-spacing: 2px;
}
.msg.center { text-align: center; }

/* You vs Computer colors */
.msg.player { color: #4DA3FF; }  /* blue */
.msg.cpu    { color: #39C07F; }  /* green */

/* Outcome emphasis */
#roundMsg { font-weight: 700; }
#roundMsg.win  { color: #ffd166; }  /* gold */
#roundMsg.lose { color: #ff686b; }  /* red */
#roundMsg.tie  { color: #bdb2ff; }  /* violet */

/* Rules card */
#rules {
  max-width: 720px;
  margin: 16px auto 0;
  padding: 12px 16px;
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
}
#rules h2 { margin: 0 0 8px; }
#rules ul { margin: 0; padding-left: 18px; line-height: 1.5; }

