body {
  text-align: center;
  padding-top: 50px;
  font-family: Arial, sans-serif;
  background-color: #C04050;
}

.dice-wrap {
  perspective: 600px;
  display: inline-block;
}

#dice, #single-dice {
  width: 100px;
  height: 100px;
  transform-style: preserve-3d;
  transition: transform 0.12s linear;   /* smooth between frames */
}

.dice-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

button {
  margin-top: 20px;
  margin-bottom: 40px;
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  background-color: #f08693;
  color: #C04050;
  border: none;
  border-radius: 5px;
  display: inline-block;
  max-width: 200px;
}

/* Container for single dice + button */
.single-dice-section {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers the dice and button */
  margin-bottom: 40px;
}

.back-button {
  display: inline-block;
  margin: 80px auto 40px;
  padding: 10px 20px;
  background-color: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: #005fa3;
}

body, html {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-align: center;
  padding-top: 50px;
  font-family: Arial, sans-serif;
  background-color: #C04050;
}

main {
  flex-grow: 1;
}

.back-button {
  display: inline-block;
  margin: 40px auto;
  padding: 10px 20px;
  background-color: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: #005fa3;
}
