/* style.css */
body {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  margin: 0;
  padding: 0;
}
/* Add fade-in animation */
.hero {
  opacity: 0;
  transform: translateY(-20px); /* Slight upward effect */
  transition: opacity 1.3s ease, transform 1.3s ease;
}
/* Add fade-in animation */
.hero {
  opacity: 0;
  transform: translateY(-20px); /* Slight upward effect */
  transition: opacity 1.3s ease, transform 1.3s ease;
}

.hero.visible {
  opacity: 1;
  transform: translateY(0); /* Reset position */
}

.hero.visible {
  opacity: 1;
  transform: translateY(0); /* Reset position */
}

.container {
  margin: 50px auto;
  max-width: 900px;
  padding: 20px;
}

h1 {
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.dice-wrapper {
  margin-bottom: 40px; /* Adjusts space between each dice section */
  text-align: center;  /* Centers the button below the dice */
}
.dice-container {
  perspective: 1000px;
  display: inline-block;
  margin-right: 20px;
}

.dice {
  position: relative;
  width: 150px;
  height: 150px;
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 1s ease-in-out;
}

.face {
  position: absolute;
  width: 150px;
  height: 150px;
  background: #fff;
  border-radius: 15px;
  border: 2px solid #ccc;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.face.front { transform: rotateY(0deg) translateZ(75px); }
.face.back { transform: rotateY(180deg) translateZ(75px); }
.face.top { transform: rotateX(90deg) translateZ(75px); }
.face.bottom { transform: rotateX(-90deg) translateZ(75px); }
.face.left { transform: rotateY(-90deg) translateZ(75px); }
.face.right { transform: rotateY(90deg) translateZ(75px); }

.roll-button {
  margin-top: 20px;
  padding: 10px 25px;
  font-size: 1rem;
  background-color: #ff6f61;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.2s;
}

.roll-button:hover {
  background-color: #ff4f49;
  transform: translateY(-2px);
}

.roll-button:active {
  transform: translateY(0px);
}
