body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  background-color: #f4f4f4;
  padding: 20px;
  box-sizing: border-box;
}

.container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 600px;
}

h1 {
  color: #333;
  margin-bottom: 20px;
}

button {
  background-color: #007bff;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 30px;
}

button:hover {
  background-color: #0056b3;
}

#lottoNumbers {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.combination {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  background-color: #e9ecef; /* Light background for the combination "ball" */
  padding: 15px 20px;
  border-radius: 25px; /* More rounded corners for the combination container */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Inner shadow for depth */
  align-items: center;
}

.number {
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  /* Ensure transform is clean for animation */
  transition: transform 0.1s ease-out;
}

/* Specific colors for each combination */
.combination-color-0 .number { background-color: #007bff; } /* Blue */
.combination-color-1 .number { background-color: #28a745; } /* Green */
.combination-color-2 .number { background-color: #ffc107; } /* Orange */
.combination-color-3 .number { background-color: #dc3545; } /* Red */
.combination-color-4 .number { background-color: #6f42c1; } /* Purple */

/* Bounce Animation */
@keyframes bounce-animation {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); } /* Bounce up slightly */
  100% { transform: translateY(0); }
}

.number.bouncing {
  animation: bounce-animation 0.3s ease-out;
}