body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column; /* Ensure content flows vertically */
  justify-content: center;
  align-items: center; /* Center items vertically */
  min-height: 100vh; /* Ensure the body takes at least the full viewport height */
  margin: 0;
  background: linear-gradient(135deg, #a2c2e4, #f2f2f2);
  padding: 20px 0; /* Add padding to the top and bottom */
  box-sizing: border-box;
  overflow-y: auto; /* Add vertical scroll if necessary */
}

h1.animated-heading {
  font-size: 3em;
  background: linear-gradient(135deg, #ff6f61, #de4a7b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 20px;
}


.arena {
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 1000px;
  margin-bottom: 20px;
}

#message {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.player {
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dice-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.dice-wrapper {
  margin: 5px;
}

.dice {
  width: 60px;
  height: 60px;
  cursor: pointer;
  margin: 5px;
  transition: transform 0.2s;
}

.dice:hover {
  transform: scale(1.1);
}

.dice-label {
  text-align: center;
  font-weight: bold;
}

.controls {
  width: 100%;
  max-width: 1000px;
}

.customize {
  margin-top: 30px;
  text-align: center;
  background: linear-gradient(135deg, #fefefe, #e9f5ff);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.customize div {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  padding: 10px;
  border-radius: 8px;
}

.customize label {
  margin-right: 10px;
  font-weight: bold;
  color: #333;
}

.customize input {
  width: 80px;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  text-align: center;
  transition: border-color 0.3s;
}

.customize input:focus {
  border-color: #6b73ff;
}
.instructions {
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 1000px;
  margin-bottom: 20px;
  display: inline-block; /* Makes the container fit content width */
}

.instructions h2 {
  font-size: 2em;
  background: linear-gradient(135deg, #ff6f61, #de4a7b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 20px;
}

.instructions h3 {
  font-size: 1.5em;
  color: #333;
  margin: 20px 0;
}

.instructions p {
  font-size: 1em;
  color: #333;
  margin: 10px 0;
}

.instructions ul {
  list-style: disc;
  margin: 10px auto;
  padding: 0;
  text-align: center; /* Center-align the list items */
  display: inline-block; /* Make the list fit its content width */
}

.instructions li {
  font-size: 1em;
  color: #333;
  margin: 5px 0;
  padding-left: 20px; /* Adjust padding to bring text closer to bullets */
  display: inline-block; /* Make list items fit content width */
  text-align: left; /* Align text to the left for better bullet-point alignment */
}

button {
  padding: 12px 25px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(135deg, #ff6f61, #de4a7b);
  color: white;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: linear-gradient(135deg, #e65c5c, #d83f5a);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .player {
    width: 100%;
  }

  .customize {
    text-align: center;
  }

  .customize div {
    flex-direction: column;
  }

  .customize label, .customize input {
    margin: 5px;
  }

  .dice {
    width: 50px;
    height: 50px;
  }

  #message {
    font-size: 18px;
  }

  button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

.center-button {
  display: block;
  margin: 0 auto;
}

.reduction-message {
  display: none;
  color: red;
  font-weight: bold;
}
