* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f6f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Original Welcome Card */
.card {
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.message {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.num-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.num-btn:hover {
  background-color: #0056b3;
}

.num-btn:active {
  transform: scale(0.96);
}

/* New Dynamic Result Boxes */
.result-box {
  padding: 2.5rem 3rem;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease-in-out;
}

/* Unique Colors per Number */
.box-1 {
  background-color: #e74c3c; /* Crimson Red */
}

.box-2 {
  background-color: #2ecc71; /* Emerald Green */
}

.box-3 {
  background-color: #8e44ad; /* Deep Purple */
}

/* Smooth fade-in effect */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}